:root {
  color-scheme: dark;
  --bg: #0a0e1a;
  --bg-soft: #101935;
  --bg-elevated: #1a2240;
  --card: rgba(26, 34, 64, .72);
  --card-strong: rgba(26, 34, 64, .92);
  --text: #f4f9ff;
  --muted: rgba(255, 255, 255, .62);
  --line: rgba(90, 200, 250, .34);
  --accent: #0a84ff;
  --cyan: #5ac8fa;
  --player: #ff3b30;
  --goal: #34c759;
  --warning: #ff9500;
  --coin: #ffd60a;
  --shadow: 0 24px 80px rgba(0, 0, 0, .38);
  font-family: ui-rounded, "SF Pro Rounded", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 12%, rgba(10, 132, 255, .2), transparent 30rem),
    radial-gradient(circle at 78% 24%, rgba(255, 59, 48, .16), transparent 22rem),
    radial-gradient(circle at 18% 72%, rgba(52, 199, 89, .1), transparent 22rem),
    linear-gradient(180deg, #030711 0%, var(--bg) 38%, #050712 100%);
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(90, 200, 250, .18);
  background: rgba(10, 14, 26, .82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 0 18px rgba(90, 200, 250, .42);
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-title {
  color: var(--text);
  font-size: 24px;
  font-weight: 950;
  letter-spacing: -.02em;
  line-height: 1;
}

.brand-tagline {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav a {
  text-decoration: none;
}

.nav a:hover { color: var(--text); }

.language-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--text);
  background: rgba(10, 132, 255, .16);
  font: inherit;
  cursor: pointer;
}

.language-toggle:hover {
  border-color: rgba(101, 220, 255, .62);
}

.section {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 112px) 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.08fr);
  align-items: center;
  gap: clamp(32px, 5vw, 76px);
  padding-top: clamp(36px, 7vw, 88px);
}

.hero-copy h1,
.section h2,
.legal-page h1 {
  margin: 0;
  letter-spacing: -.045em;
  line-height: .95;
}

.hero-copy h1 {
  max-width: 660px;
  font-size: clamp(56px, 8vw, 104px);
}

.section h2 {
  max-width: 780px;
  font-size: clamp(36px, 5vw, 66px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero-lede,
.section p,
.legal-page p,
.legal-page li {
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.7;
}

.hero-lede {
  max-width: 660px;
  margin: 26px 0 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 18px 40px rgba(10, 132, 255, .4);
}

.button.primary.app-store-button::before {
  content: "";
  margin-right: 9px;
  font-size: 1.08em;
}

.button.secondary {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(26, 34, 64, .74);
}

.download-note {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.5;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 620px;
  margin: 38px 0 0;
}

.stats div,
.feature-card,
.legal-callout,
.legal-page {
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.stats div {
  padding: 18px;
  border-radius: 22px;
}

.stats dt {
  font-size: 34px;
  font-weight: 950;
  color: var(--cyan);
}

.stats dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.hero-art img,
.card-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 32px;
  border: 1px solid rgba(90, 200, 250, .22);
  box-shadow: var(--shadow);
}

.split {
  display: grid;
  grid-template-columns: .72fr 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.gameplay-section {
  display: grid;
  gap: 28px;
}

.gameplay-section > div:first-child {
  max-width: 860px;
}

.gameplay-layout {
  display: grid;
  gap: 20px;
}

.gameplay-flow-image {
  aspect-ratio: 1200 / 460;
  object-fit: cover;
}

.gameplay-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gameplay-steps article {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 14px;
  align-content: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.gameplay-steps span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: white;
  background: var(--player);
  font-size: 20px;
  font-weight: 950;
  grid-row: span 2;
}

.gameplay-steps h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.gameplay-steps p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.feature-card {
  min-height: 250px;
  padding: 28px;
  border-radius: 28px;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: var(--bg);
  background: var(--accent);
  font-weight: 950;
}

.feature-card h3 {
  margin: 22px 0 10px;
  font-size: 23px;
}

.feature-card p {
  margin: 0;
  font-size: 16px;
}

.quote-section {
  padding-top: 20px;
  padding-bottom: 20px;
}

blockquote {
  margin: 0;
  padding: clamp(34px, 5vw, 62px);
  border: 1px solid rgba(255, 214, 10, .32);
  border-radius: 34px;
  color: var(--coin);
  background: rgba(255, 214, 10, .06);
  font-size: clamp(30px, 5vw, 58px);
  font-weight: 950;
  line-height: 1.08;
  text-align: center;
}

.legal-callout {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 360px);
  gap: 30px;
  align-items: center;
  padding: clamp(28px, 5vw, 52px);
  border-radius: 34px;
}

.legal-callout p {
  margin-bottom: 0;
}

.legal-links {
  display: grid;
  gap: 12px;
}

.legal-links a {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--text);
  background: rgba(10, 132, 255, .14);
  font-weight: 850;
  text-decoration: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid rgba(90, 200, 250, .18);
}

.site-footer p { margin: 0; }

.legal-main {
  padding: 42px 0 78px;
}

.legal-page {
  width: min(880px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 32px;
}

.legal-page h1 {
  font-size: clamp(42px, 6vw, 74px);
}

.legal-page h2 {
  margin-top: 34px;
  color: var(--text);
}

.legal-page .effective {
  color: var(--cyan);
  font-weight: 900;
}

.legal-page a {
  color: var(--cyan);
}

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

  .nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .hero,
  .split,
  .legal-callout {
    grid-template-columns: 1fr;
  }

  .hero-art {
    order: -1;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .brand-icon { width: 42px; height: 42px; }
  .brand-title { font-size: 21px; }
  .brand-tagline { font-size: 8px; }
  .nav { gap: 12px; }
  .stats,
  .gameplay-steps,
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .site-footer {
    flex-direction: column;
  }
}
