* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  color-scheme: light;
}

body[data-theme="dark"] {
  color-scheme: dark;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--background);
  color: var(--text-primary);
  min-height: 100vh;
}

body[data-theme="light"] {
  --background: #f7f8fb;
  --surface: #ffffff;
  --surface-alt: #f1f3f8;
  --text-primary: #0d1117;
  --text-secondary: #4a5568;
  --accent: #4c6fff;
  --accent-strong: #3358ff;
  --border: #e2e8f0;
  --shadow: rgba(15, 23, 42, 0.08);
}

body[data-theme="dark"] {
  --background: #0b1120;
  --surface: #0f172a;
  --surface-alt: #121c32;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5f5;
  --accent: #7a9bff;
  --accent-strong: #5f82ff;
  --border: #1f2a44;
  --shadow: rgba(15, 23, 42, 0.45);
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  gap: 48px;
  padding: 32px 6vw 40px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border);
  display: block;
}

.brand-title {
  font-size: 22px;
  font-weight: 700;
}

.brand-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.language-toggle {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}

.pill {
  border: none;
  background: transparent;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}

.pill.is-active {
  background: var(--accent);
  color: white;
}

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}

.main {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-content p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.primary,
.secondary,
.card-button {
  border: none;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 600;
  cursor: pointer;
}

.primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 12px 24px -12px var(--shadow);
}

.secondary {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.hero-metrics {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.metric-value {
  font-size: 20px;
  font-weight: 700;
}

.metric-label {
  color: var(--text-secondary);
  font-size: 14px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.card {
  background: var(--surface);
  border-radius: 24px;
  padding: 24px;
  width: min(360px, 100%);
  border: 1px solid var(--border);
  box-shadow: 0 24px 48px -36px var(--shadow);
}

.card-title {
  font-weight: 600;
  margin-bottom: 16px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.game-tile {
  background: var(--surface-alt);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.game-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #9c5bff);
}

.card-button {
  width: 100%;
  background: var(--surface-alt);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.features {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section-header h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--text-secondary);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 32px -28px var(--shadow);
}

.feature-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.info-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 20px;
  border: 1px solid var(--border);
}

.info-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.legal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.link-button {
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.info-card a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
}

.info-card.highlight {
  background: linear-gradient(135deg, var(--accent), #9c5bff);
  color: white;
  border: none;
}

.info-card.highlight p {
  color: rgba(255, 255, 255, 0.8);
  margin: 10px 0 16px;
}

.info-card.highlight .primary {
  background: white;
  color: #3b4cff;
}

.details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.detail-block {
  background: var(--surface);
  border-radius: 18px;
  padding: 20px;
  border: 1px solid var(--border);
}

.detail-block p {
  color: var(--text-secondary);
  margin-top: 10px;
  line-height: 1.6;
}

.contact-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.contact-item {
  background: var(--surface-alt);
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.footer {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  color: var(--text-secondary);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 720px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .hero-metrics {
    gap: 12px;
  }
}
