/* Match Analyze — Apple-grade premium site */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
button { -webkit-appearance: none; appearance: none; }

:root {
  --bg: #000000;
  --bg-elevated: #0a0a0a;
  --bg-soft: #111111;
  --surface-1: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-tertiary: rgba(255, 255, 255, 0.44);
  --text-quaternary: rgba(255, 255, 255, 0.22);

  --accent: #ff2d75;
  --accent-2: #a855f7;
  --accent-3: #6366f1;
  --accent-soft: rgba(255, 45, 117, 0.08);
  --accent-glow: rgba(168, 85, 247, 0.24);

  --max-content: 1280px;
  --max-narrow: 720px;
  --max-text: 980px;

  --ease-apple: cubic-bezier(0.42, 0, 0.18, 1);
  --ease-out-strong: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'SF Pro Display', 'Inter', -apple-system, BlinkMacSystemFont,
    'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  min-height: 100vh;
}

::selection { background: var(--accent); color: white; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* ── Focus states (WCAG-AA keyboard navigation) ───────────────── */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.store-badge:focus-visible,
.lang-toggle:focus-visible,
.four-oh-four-cta:focus-visible {
  outline-offset: 4px;
  border-radius: 100px;
}

/* Coming-soon store badge: non-interactive */
.store-badge[aria-disabled="true"] {
  cursor: default;
}

/* ── Nav (Apple-style) ────────────────────────────────────────── */
nav.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  background: rgba(0, 0, 0, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s var(--ease-apple);
}
nav.top .container {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 28px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
nav.top .brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
nav.top .brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
nav.top .brand .wordmark {
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 15px;
  color: var(--text-primary);
}
nav.top .links {
  display: flex;
  gap: 36px;
  align-items: center;
}
nav.top .links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  letter-spacing: 0;
}
nav.top .links a:hover { color: var(--text-primary); }
nav.top .links a.active { color: var(--accent); }
nav.top .lang-toggle {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  text-transform: uppercase;
  transition: all 0.2s ease;
}
nav.top .lang-toggle:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

body { padding-top: 56px; }

/* ── Scroll-reveal base ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 1.2s var(--ease-out-strong),
              transform 1.2s var(--ease-out-strong);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Hero section (product-led) ────────────────────────────────── */
.hero {
  min-height: 100vh;
  min-height: 100dvh; /* iOS Safari URL bar fix */
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 64px;
  padding: 120px 48px 80px;
  max-width: 1400px;
  margin: 0 auto;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 20% 30%, rgba(168, 85, 247, 0.28) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 70%, rgba(255, 45, 117, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(99, 102, 241, 0.14) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, transparent 0%, rgba(0,0,0,0.3) 100%);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
  max-width: 580px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.32);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-primary);
  text-transform: uppercase;
  animation: word-enter 1.0s 0.1s var(--ease-out-strong) backwards;
}
.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.hero h1 {
  font-size: clamp(44px, 6.4vw, 84px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  animation: word-enter 1.2s 0.25s var(--ease-out-strong) backwards;
}
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: -0.005em;
  line-height: 1.5;
  animation: word-enter 1.2s 0.45s var(--ease-out-strong) backwards;
}

@keyframes word-enter {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Store badges (Apple App Store + Google Play look) */
.store-badges {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
  animation: word-enter 1.2s 0.65s var(--ease-out-strong) backwards;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 14px;
  color: var(--text-primary);
  transition: all 0.3s var(--ease-apple);
  cursor: default;
}
.store-badge:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}
.store-badge svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.store-badge-text .small {
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-weight: 500;
}
.store-badge-text .big {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-tertiary);
  animation: word-enter 1.2s 0.8s var(--ease-out-strong) backwards;
}
.hero-foot .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-quaternary);
}

/* ── Phone stage ───────────────────────────────────────────────── */
.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 720px;
}

.phone {
  position: relative;
  width: 304px;
  height: 624px;
  background: linear-gradient(160deg, #1a1a1f 0%, #08080b 100%);
  border-radius: 46px;
  padding: 13px;
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.08),
    0 0 0 0.5px rgba(0, 0, 0, 0.6),
    0 60px 120px rgba(0, 0, 0, 0.6),
    0 30px 60px rgba(168, 85, 247, 0.18),
    0 10px 30px rgba(255, 45, 117, 0.12);
  z-index: 2;
  animation: phone-float 9s ease-in-out infinite, phone-entrance 1.4s 0.3s var(--ease-out-strong) backwards;
}
@keyframes phone-entrance {
  from { opacity: 0; transform: translateY(40px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes phone-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.phone-notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #000;
  border-radius: 100px;
  z-index: 3;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #0d0712 0%, #050208 100%);
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  padding: 60px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.screen-status {
  position: absolute;
  top: 16px;
  left: 28px;
  right: 28px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: white;
  letter-spacing: -0.01em;
  z-index: 4;
}
.screen-status .signal {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.screen-status .signal::before {
  content: '';
  display: inline-block;
  width: 4px; height: 4px; border-radius: 50%;
  background: white;
  box-shadow: 6px 0 0 white, 12px 0 0 rgba(255,255,255,0.5);
}

.match-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
}
.match-chip img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.match-teams {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.team .badge {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5));
}
.team .name {
  font-size: 11.5px;
  font-weight: 500;
  color: white;
}
.vs {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
}

.pred-tile {
  background:
    linear-gradient(135deg, rgba(255, 45, 117, 0.10) 0%, rgba(168, 85, 247, 0.10) 100%);
  border: 1px solid rgba(168, 85, 247, 0.24);
  border-radius: 16px;
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.pred-tile::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}
.pred-tile .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}
.pred-tile .row .lbl {
  text-transform: uppercase;
  font-weight: 600;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--text-tertiary);
}
.pred-tile .row .hl {
  color: white;
  font-weight: 600;
  font-size: 12px;
}
.pred-tile .pct-big {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-top: 2px;
}
.pred-tile .bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  overflow: hidden;
  margin-top: 2px;
}
.pred-tile .bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 100px;
}

.pred-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
}
.pred-list .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 12px;
}
.pred-list .row:last-child { border-bottom: none; }
.pred-list .row .label { color: var(--text-secondary); font-weight: 400; }
.pred-list .row .pct {
  color: white;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-feature-settings: 'tnum';
}

/* ── Floating glass cards (Brawl Stars-style depth) ────────────── */
.glass-card {
  position: absolute;
  background: rgba(20, 14, 30, 0.62);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 14px 16px;
  min-width: 168px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 8px 16px rgba(168, 85, 247, 0.12);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation-fill-mode: backwards;
}
.glass-card .gc-label {
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-weight: 600;
}
.glass-card .gc-pct {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.glass-card .gc-value {
  font-size: 22px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
  line-height: 1;
}
.glass-card .gc-xg {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.glass-card .gc-xg img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}
.glass-card .gc-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  overflow: hidden;
  margin-top: 4px;
}
.glass-card .gc-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 100px;
}

.glass-card--tl {
  top: 4%;
  left: -10%;
  animation: glass-float-1 9s ease-in-out infinite, glass-entrance 1.4s 0.7s var(--ease-out-strong) backwards;
}
.glass-card--tr {
  top: 18%;
  right: -8%;
  animation: glass-float-2 8s ease-in-out infinite, glass-entrance 1.4s 0.9s var(--ease-out-strong) backwards;
}
.glass-card--bl {
  bottom: 14%;
  left: -14%;
  animation: glass-float-3 11s ease-in-out infinite, glass-entrance 1.4s 1.1s var(--ease-out-strong) backwards;
}
.glass-card--br {
  bottom: 6%;
  right: -12%;
  animation: glass-float-1 10s ease-in-out infinite, glass-entrance 1.4s 1.3s var(--ease-out-strong) backwards;
}

@keyframes glass-entrance {
  from { opacity: 0; transform: translateY(30px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes glass-float-1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}
@keyframes glass-float-2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes glass-float-3 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-quaternary);
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  animation: bounce-hint 2.2s ease-in-out infinite;
  z-index: 4;
}
@keyframes bounce-hint {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-6px); }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
    padding: 110px 24px 60px;
  }
  .hero-content {
    align-items: center;
    max-width: 100%;
  }
  .phone-stage {
    height: 600px;
  }
  .phone {
    width: 268px;
    height: 552px;
    border-radius: 40px;
    padding: 11px;
  }
  .phone-screen {
    border-radius: 30px;
    padding: 54px 16px 18px;
  }
  .glass-card { min-width: 144px; padding: 12px 14px; }
  .glass-card--tl { display: none; }
  .glass-card--br { display: none; }
}
@media (max-width: 560px) {
  .glass-card--bl { display: none; }
  .glass-card--tr {
    top: 8%;
    right: -4%;
    min-width: 132px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone,
  .glass-card { animation: none !important; }
}

/* ── Story sections (Apple-style alternating) ─────────────────── */
.story {
  padding: 160px 28px;
  position: relative;
  overflow: hidden;
}
.story.dark { background: #050505; }
.story.darker { background: #000000; }
.story.glow {
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(168, 85, 247, 0.08) 0%, transparent 60%),
    #000000;
}

.story-inner {
  max-width: var(--max-text);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.story-inner.center { text-align: center; }
.story-inner.narrow { max-width: 720px; }

.story .eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 24px;
  display: block;
}

.story h2 {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin-bottom: 32px;
  max-width: 16ch;
}
.story-inner.center h2 { margin-left: auto; margin-right: auto; }
.story h2 .gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.story h3 {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.story p {
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 60ch;
  letter-spacing: -0.005em;
}
.story-inner.center p { margin-left: auto; margin-right: auto; }

/* ── Stats counter (Apple-style) ──────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 56px;
  margin-top: 96px;
  text-align: center;
}
.stat-block .num {
  display: block;
  font-size: clamp(64px, 9vw, 112px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(180deg, var(--text-primary) 0%, var(--text-tertiary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}
.stat-block .num.accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-block .label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Capability grid ──────────────────────────────────────────── */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 4px;
  margin-top: 80px;
  background: var(--border);
  border-radius: 24px;
  overflow: hidden;
}
.cap-tile {
  background: #050505;
  padding: 48px 36px;
  transition: background 0.3s ease;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.cap-tile:hover { background: #0a0a0a; }
.cap-tile .tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.cap-tile h4 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.2;
}
.cap-tile p {
  font-size: 14px;
  color: var(--text-tertiary);
  line-height: 1.5;
}

/* ── Quote-style callout ──────────────────────────────────────── */
.callout-large {
  margin: 64px auto 0;
  max-width: 780px;
  padding: 48px;
  background: linear-gradient(135deg, rgba(255, 45, 117, 0.08) 0%, rgba(168, 85, 247, 0.05) 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  text-align: center;
}
.callout-large h3 {
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.callout-large p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 60ch;
  margin: 0 auto;
}

/* ── Leagues marquee ──────────────────────────────────────────── */
.leagues-strip {
  margin-top: 64px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.leagues-strip::before,
.leagues-strip::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.leagues-strip::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}
.leagues-strip::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg), transparent);
}
.leagues-track {
  display: flex;
  gap: 64px;
  animation: scroll-leagues 40s linear infinite;
  width: max-content;
}
.leagues-track span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
@keyframes scroll-leagues {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Final CTA section ────────────────────────────────────────── */
.final-section {
  padding: 200px 28px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(255, 45, 117, 0.12) 0%, transparent 60%),
    #000000;
}
.final-section h2 {
  font-size: clamp(60px, 12vw, 140px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.98;
  margin-bottom: 32px;
}
.final-section h2 .gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.final-section p {
  font-size: 22px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
  letter-spacing: -0.01em;
}

/* ── Footer (Apple-style) ─────────────────────────────────────── */
footer {
  background: #050505;
  padding: 64px 28px 32px;
  border-top: 1px solid var(--border);
}
footer .container {
  max-width: var(--max-content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: start;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
footer .brand-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
footer .brand-block .brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
footer .brand-block img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
footer .brand-block .name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}
footer .brand-block p {
  font-size: 12px;
  color: var(--text-tertiary);
  max-width: 380px;
  line-height: 1.5;
}
footer .nav-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
footer .nav-col h5 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: 0;
}
footer .nav-col a {
  font-size: 12px;
  color: var(--text-tertiary);
  transition: color 0.2s ease;
}
footer .nav-col a:hover { color: var(--text-primary); }
footer .bottom {
  max-width: var(--max-content);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-quaternary);
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Document pages (privacy/terms/support) ───────────────────── */
.doc-page-hero {
  padding: 160px 28px 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.doc-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 25% 30%, rgba(168, 85, 247, 0.32) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 75% 70%, rgba(255, 45, 117, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 30% 30% at 50% 50%, rgba(99, 102, 241, 0.16) 0%, transparent 60%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}
.doc-page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 100%, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
  pointer-events: none;
  z-index: 0;
}
.doc-page-hero > * {
  position: relative;
  z-index: 1;
}
.doc-page-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.32);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.doc-page-hero .eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: dot-pulse 2s ease-in-out infinite;
}
.doc-page-hero h1 {
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin-bottom: 20px;
}
.doc-page-hero .meta {
  font-size: 15px;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}

.lang-tabs {
  display: flex;
  gap: 2px;
  justify-content: center;
  margin: 40px auto 56px;
  padding: 3px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 100px;
  width: fit-content;
}
.lang-tab {
  padding: 8px 22px;
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 100px;
  transition: all 0.25s ease;
  font-family: inherit;
}
.lang-tab.active {
  background: var(--text-primary);
  color: #000;
}
.lang-section { display: none; }
.lang-section.active { display: block; }

.doc-body {
  max-width: var(--max-narrow);
  margin: 0 auto;
  padding: 0 28px 120px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
}
.doc-body h2 {
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 700;
  color: var(--text-primary);
  margin: 72px 0 20px;
  letter-spacing: -0.025em;
  line-height: 1.15;
  position: relative;
  padding-top: 28px;
}
.doc-body h2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 2.5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 100px;
}
.doc-body h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
}
.doc-body p { margin-bottom: 16px; }
.doc-body ul, .doc-body ol { margin: 0 0 16px 24px; }
.doc-body li { margin-bottom: 6px; }
.doc-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.doc-body th, .doc-body td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.doc-body tr:last-child td { border-bottom: none; }
.doc-body th {
  background: var(--surface-1);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.doc-body a {
  color: var(--text-primary);
  border-bottom: 1px solid var(--accent);
  transition: color 0.2s ease;
}
.doc-body a:hover { color: var(--accent); }
.doc-body strong { color: var(--text-primary); font-weight: 600; }
.doc-body code {
  background: var(--surface-2);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 13px;
  font-family: 'SF Mono', Monaco, monospace;
}
.doc-callout {
  padding: 28px 32px;
  background:
    linear-gradient(135deg, rgba(168, 85, 247, 0.08) 0%, rgba(255, 45, 117, 0.08) 100%);
  border: 1px solid rgba(168, 85, 247, 0.24);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  margin: 32px 0;
  font-size: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}
.doc-callout::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
}
.doc-callout p:first-child { margin-top: 0; }
.doc-callout p:last-child { margin-bottom: 0; }
.doc-callout a {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  nav.top .container { padding: 0 20px; }
  nav.top .links { gap: 20px; }
  nav.top .links a { font-size: 12px; }
  nav.top .lang-toggle { padding: 4px 10px; font-size: 10px; }
  .story { padding: 96px 24px; }
  .final-section { padding: 120px 24px; }
  .stats-grid { gap: 32px; margin-top: 64px; }
  .cap-grid { grid-template-columns: 1fr; margin-top: 48px; }
  .cap-tile { padding: 36px 28px; min-height: 200px; }
  .callout-large { padding: 32px 24px; }
  .doc-page-hero { padding: 120px 24px 80px; }
  .doc-page-hero .eyebrow { margin-bottom: 20px; }
  .doc-body { padding: 0 24px 80px; }
  .doc-body h2 { margin-top: 56px; padding-top: 22px; }
  .doc-callout { padding: 22px 24px; }
  footer .container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  footer .bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 { letter-spacing: -0.03em; }
  .store-badges { gap: 8px; }
  .store-badge { padding: 9px 14px; }
  .store-badge-text .big { font-size: 15px; }
  .hero-foot { font-size: 12px; gap: 8px; }
  .phone { width: 248px; height: 510px; border-radius: 38px; padding: 10px; }
  .phone-screen { border-radius: 28px; padding: 50px 14px 16px; }
  .phone-notch { width: 86px; height: 24px; top: 18px; }
  .phone-stage { height: 560px; }
  .doc-page-hero { padding: 100px 20px 60px; }
  .doc-body h2 { font-size: 24px; }
}

/* ── 404 page ─────────────────────────────────────────────────── */
.four-oh-four {
  min-height: calc(100vh - 56px);
  min-height: calc(100dvh - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 28px;
  position: relative;
  overflow: hidden;
}
.four-oh-four::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 50% at 30% 30%, rgba(168, 85, 247, 0.32) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 70% 70%, rgba(255, 45, 117, 0.22) 0%, transparent 55%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}
.four-oh-four-inner {
  max-width: 580px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.four-oh-four-inner .hero-eyebrow {
  margin: 0 auto 24px;
  display: inline-flex;
}
.four-oh-four-inner h1 {
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.four-oh-four-inner p {
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 40px;
}
.four-oh-four-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 100px;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all 0.3s var(--ease-apple);
}
.four-oh-four-cta:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

/* Reduce motion respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
