/* ============================================
   FITFAM LANDING PAGE — APP-MATCHED PREMIUM STYLES
   ============================================ */

:root {
  /* ---- App-exact colors ---- */
  --teal:        hsl(159, 93%, 50%);
  --teal-dark:   hsl(170, 90%, 40%);
  --teal-glow:   hsl(159, 93%, 50%, 0.25);
  --coral:       hsl(0,   100%, 71%);
  --coral-dark:  hsl(15,  100%, 60%);
  --coral-glow:  hsl(0,   100%, 71%, 0.25);
  --gold:        hsl(45,  100%, 60%);
  --gold-dark:   hsl(35,  100%, 55%);
  --gold-glow:   hsl(45,  100%, 60%, 0.25);
  --blue:        hsl(217,  91%, 60%);

  /* ---- App-exact backgrounds ---- */
  --bg:     hsl(240, 3%, 7%);
  --bg2:    hsl(240, 3%, 9%);
  --bg3:    hsl(240, 3%, 11%);
  --bg4:    hsl(240, 3%, 15%);

  /* ---- Surfaces ---- */
  --surface:       hsl(240, 3%, 11%, 0.7);
  --surface-hover: hsl(240, 3%, 15%, 0.8);
  --border:        hsl(240, 3%, 18%);
  --border-glow:   hsl(159, 93%, 50%, 0.3);

  /* ---- Text ---- */
  --text:       hsl(0, 0%, 96%);
  --text-muted: hsl(0, 0%, 55%);
  --text-faint: hsl(0, 0%, 30%);

  /* ---- Typography ---- */
  --font-head: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', 'Space Grotesk', sans-serif;

  --radius: 20px;
  --shadow: 0 4px 40px rgba(0,0,0,0.5);
  --shadow-lg: 0 20px 80px rgba(0,0,0,0.7);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
  font-family: var(--font-body);
  /* Deep blue-charcoal base — richer than flat black; topographic layer sits on top */
  background-color: hsl(228, 12%, 6%);
  background-image:
    radial-gradient(ellipse 90% 55% at 72% -5%, hsl(228, 18%, 11%) 0%, transparent 50%),
    radial-gradient(ellipse 75% 50% at  8% 105%, hsl(220, 20%, 9%)  0%, transparent 50%);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  cursor: none;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ---- Gradient text — teal signature ---- */
.gradient-text {
  background: linear-gradient(135deg, var(--teal) 0%, hsl(170,90%,55%) 50%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-coral { background: linear-gradient(135deg, var(--coral), var(--coral-dark)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.gradient-gold  { background: linear-gradient(135deg, var(--gold),  var(--gold-dark));  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor {
  position: fixed; width: 10px; height: 10px;
  background: var(--teal); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .2s, height .2s;
  box-shadow: 0 0 12px var(--teal), 0 0 24px var(--teal-glow);
}
.cursor-follower {
  position: fixed; width: 38px; height: 38px;
  border: 1.5px solid hsl(159,93%,50%,0.35);
  border-radius: 50%; pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width .3s, height .3s, border-color .3s;
}
.cursor.hover      { width: 18px; height: 18px; background: var(--coral); box-shadow: 0 0 16px var(--coral), 0 0 32px var(--coral-glow); }
.cursor-follower.hover { width: 56px; height: 56px; border-color: hsl(0,100%,71%,0.5); }

/* ============================================
   TOPOGRAPHIC CONTOUR BACKGROUND
   ============================================ */
/* Replaces the old ambient orbs. A fixed, full-viewport layer behind ALL
   content: thin concentric teal elevation contour lines (a hiking / territory
   map — ties into the "Conquest / claim the territory" theme) that drift almost
   imperceptibly, with a soft radial vignette so the edges fade to charcoal.
   Reads premium + subtle, never busy.

   Implementation: a single tiling inline-SVG <pattern> of organic contour paths
   (crisp at any DPI, GPU-friendly), drifted via background-position in a slow
   keyframe. The vignette is a separate fixed layer (.topo-vignette is baked into
   the same ::before via a layered gradient so we keep the DOM clean).

   Cross-page: rendered on body::before, so every page that links styles.css
   (index, about, privacy, terms) gets it automatically — no per-page DOM. */
.topo-bg,            /* optional explicit element (dashboard uses this class) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  /* z-index:-1 keeps the layer behind ALL page content on every page without
     needing each content wrapper to be explicitly positioned. A negative-z
     ::before still paints ABOVE body's own background-color/gradient, so the
     charcoal base + radial corners remain underneath. */
  z-index: -1;
  pointer-events: none;
  /* Two layers: (1) the tiling teal contour pattern, (2) a vignette that fades
     the contours toward the edges so nothing reads as a hard tile seam. */
  background-image:
    radial-gradient(ellipse 78% 78% at 50% 42%, transparent 0%, transparent 46%, hsl(228,12%,6%) 92%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600'%3E%3Cg fill='none' stroke='%2300e896' stroke-width='1.1'%3E%3Cpath d='M-40 300 C 80 230 180 360 300 290 S 520 200 640 270'/%3E%3Cpath d='M-40 350 C 90 290 190 410 300 345 S 520 270 640 325'/%3E%3Cpath d='M-40 250 C 70 170 200 300 300 235 S 510 140 640 215'/%3E%3Cpath d='M-40 200 C 100 130 180 250 300 180 S 530 90 640 160'/%3E%3Cpath d='M-40 410 C 80 360 210 460 300 405 S 520 340 640 390'/%3E%3Cpath d='M120 -40 C 60 80 200 160 150 300 S 60 480 120 640'/%3E%3Cpath d='M470 -40 C 540 90 410 180 470 320 S 560 470 480 640'/%3E%3Ccircle cx='300' cy='290' r='34'/%3E%3Ccircle cx='300' cy='290' r='70'/%3E%3Ccircle cx='300' cy='290' r='112'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat, repeat;
  background-size: 100% 100%, 600px 600px;
  background-position: 0 0, 0 0;
  /* Hold the contour lines at ~6% so they whisper rather than shout. */
  opacity: 0.065;
  will-change: background-position;
  animation: topoDrift 56s linear infinite;
}

/* Drift the tiled contour layer by exactly one tile (600px) so the loop is
   seamless. The vignette layer (first background) is left static via no-repeat —
   only the tile background-position is implicitly animated together, and since
   the vignette covers the whole viewport its position shift is invisible. */
@keyframes topoDrift {
  0%   { background-position: 0 0, 0 0; }
  100% { background-position: 0 0, 600px 600px; }
}

/* ============================================
   SMOOTHNESS — GPU promotion for scrubbed layers
   ============================================ */
/* Elements that initGlobalParallax() (scrollytelling.js) continuously translates
   on scroll. Promoting them to their own GPU layer keeps scrubbed transforms off
   the main thread → noticeably smoother drift. transform/opacity only; these are
   different nodes than the child [data-reveal]/[data-card] fades, so no two
   ScrollTriggers touch the same property on the same element. */
.hero-content, .ticker-strip, .features-grid, .stats-grid,
.showcase-phones-wrap, .timeline, .notif-layout, .testi-grid {
  will-change: transform;
}

/* ============================================
   NAV
   ============================================ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 16px 0; transition: background .4s, border-color .4s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: hsl(240,3%,7%,0.9); backdrop-filter: blur(24px); border-color: var(--border); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; gap: 40px; }
.nav-logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; margin-right: auto; }
.logo-icon { font-size: 1.5rem; }
.logo-text { background: linear-gradient(135deg, var(--teal), var(--blue)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; gap: 32px; }
.nav-link { font-size: .9rem; font-weight: 500; color: var(--text-muted); transition: color .2s; position: relative; padding: 4px 0; }
.nav-link::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1px; background: var(--teal); transition: width .3s; }
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }
.nav-cta {
  position: relative; padding: 10px 24px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: hsl(240,3%,7%); border-radius: 50px;
  font-size: .9rem; font-weight: 700; overflow: hidden;
  box-shadow: 0 0 20px var(--teal-glow);
  transition: box-shadow .3s, transform .2s;
}
.nav-cta:hover { box-shadow: 0 0 40px var(--teal-glow); transform: translateY(-1px); }
.btn-glow { position: absolute; inset: 0; background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,.3), transparent 60%); opacity: 0; transition: opacity .3s; }
.nav-cta:hover .btn-glow { opacity: 1; }
.nav-actions { display: flex; align-items: center; gap: 22px; }
.nav-login { font-size: .9rem; font-weight: 600; color: var(--text-muted); transition: color .2s; position: relative; padding: 4px 0; }
.nav-login::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1px; background: var(--teal); transition: width .3s; }
.nav-login:hover { color: var(--text); }
.nav-login:hover::after { width: 100%; }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: none; padding: 4px; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }

/* Mobile menu */
.mobile-menu { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: hsl(240,3%,7%,0.97); backdrop-filter: blur(30px); z-index: 999; display: flex; align-items: center; justify-content: center; transform: translateY(-100%); transition: transform .5s cubic-bezier(.77,0,.18,1); }
.mobile-menu.open { transform: translateY(0); }
.mobile-menu ul { display: flex; flex-direction: column; gap: 32px; text-align: center; }
.mobile-link { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--text-muted); transition: color .2s; }
.mobile-link:hover, .mobile-link.cta-link { color: var(--teal); }

/* ============================================
   HERO
   ============================================ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; padding: 120px 32px 80px; }
/* hero-bg-gradient removed — ambient orbs handle all background color */
.hero-bg-gradient { display: none; }

.hero-content { position: relative; z-index: 10; max-width: 580px; flex: 0 0 auto; margin-left: max(32px, calc((100vw - 1200px) / 2)); }

/* Badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px;
  background: hsl(159,93%,50%,0.1);
  border: 1px solid hsl(159,93%,50%,0.3);
  border-radius: 50px;
  font-size: .8rem; font-weight: 600; color: var(--teal);
  margin-bottom: 28px; opacity: 0;
}
.badge-dot { width: 6px; height: 6px; background: var(--teal); border-radius: 50%; box-shadow: 0 0 8px var(--teal); animation: badgePulse 2s ease-in-out infinite; }
@keyframes badgePulse { 0%,100% { opacity:1; transform:scale(1); box-shadow: 0 0 8px var(--teal); } 50% { opacity:.6; transform:scale(.85); box-shadow: 0 0 16px var(--teal); } }

/* Hero title */
.hero-title { font-family: var(--font-head); font-size: clamp(2.8rem,5vw,4.6rem); font-weight: 700; line-height: 1.05; letter-spacing: -.03em; margin-bottom: 24px; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: block; }

/* Glitch class applied by JS */
.glitch-char {
  display: inline-block;
  position: relative;
  animation: charGlitch .15s steps(1) infinite;
}
@keyframes charGlitch {
  0%   { clip-path: none; transform: none; color: inherit; }
  20%  { clip-path: polygon(0 30%, 100% 30%, 100% 55%, 0 55%); transform: translate(-2px, 0); color: var(--teal); }
  40%  { clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%); transform: translate(2px, 0); color: var(--coral); }
  60%  { clip-path: none; transform: none; }
  100% { clip-path: none; transform: none; }
}

.hero-sub { font-size: 1.05rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 36px; max-width: 460px; opacity: 0; }
.hero-actions { display: flex; align-items: center; gap: 16px; margin-bottom: 52px; opacity: 0; }

/* Buttons */
.btn-primary {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: hsl(240,3%,7%); border-radius: 50px;
  font-weight: 700; font-size: 1rem; overflow: hidden;
  transition: transform .2s, box-shadow .3s;
  box-shadow: 0 0 30px var(--teal-glow), 0 0 60px hsl(159,93%,50%,0.1);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 50px var(--teal-glow), 0 0 80px hsl(159,93%,50%,0.15); }
.btn-primary .btn-glow { position: absolute; inset: 0; background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,.3), transparent 60%); opacity: 0; transition: opacity .3s; }
.btn-primary:hover .btn-glow { opacity: 1; }
.btn-icon { font-size: 1.1rem; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 28px; border: 1px solid var(--border);
  border-radius: 50px; font-weight: 500; font-size: 1rem; color: var(--text-muted);
  transition: color .2s, border-color .2s, background .2s;
}
.btn-ghost:hover { color: var(--teal); border-color: hsl(159,93%,50%,0.4); background: hsl(159,93%,50%,0.05); }
.btn-arrow { transition: transform .2s; }
.btn-ghost:hover .btn-arrow { transform: translateX(4px); }
.btn-xl { padding: 20px 40px; font-size: 1.1rem; }

/* Store badge button (secondary, sits beside the primary Sign up CTA) */
.btn-store {
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 28px; border: 1px solid var(--border);
  border-radius: 50px; color: var(--text); overflow: hidden;
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.btn-store:hover { border-color: hsl(159,93%,50%,0.4); background: hsl(159,93%,50%,0.05); transform: translateY(-2px); }
.btn-store .play-icon { width: 22px; height: 22px; }

/* Hero stats */
.hero-stats { display: flex; align-items: center; gap: 32px; opacity: 0; }
.hero-stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; color: var(--text); line-height: 1; }
.stat-suffix { font-size: 1.2rem; font-weight: 700; color: var(--teal); }
.stat-label { font-size: .75rem; color: var(--text-muted); margin-top: 2px; }
.hero-stat-divider { width: 1px; height: 36px; background: var(--border); }

/* Phone */
.hero-phone-wrap { position: absolute; right: max(32px, calc((100vw - 1200px) / 2)); top: 50%; transform: translateY(-50%); z-index: 10; opacity: 0; }
.phone-glow-ring { position: absolute; border-radius: 50%; border: 1px solid; top: 50%; left: 50%; transform: translate(-50%,-50%); animation: ringPulse 4s ease-in-out infinite; pointer-events: none; }
.ring-1 { width: 320px; height: 320px; border-color: hsl(159,93%,50%,0.2); }
.ring-2 { width: 420px; height: 420px; border-color: hsl(159,93%,50%,0.1); animation-delay: -1.3s; }
.ring-3 { width: 520px; height: 520px; border-color: hsl(159,93%,50%,0.05); animation-delay: -2.6s; }
@keyframes ringPulse { 0%,100% { opacity:.4; transform:translate(-50%,-50%) scale(1); } 50% { opacity:1; transform:translate(-50%,-50%) scale(1.025); } }

.phone-frame {
  width: 260px;
  background: linear-gradient(135deg, hsl(240,3%,13%), hsl(240,3%,9%));
  border-radius: 40px;
  border: 1.5px solid hsl(240,3%,20%);
  overflow: hidden;
  box-shadow: 0 0 0 1px hsl(240,3%,15%), 0 40px 100px rgba(0,0,0,.8), 0 0 60px hsl(159,93%,50%,0.12);
  position: relative;
  animation: phoneFloat 6s ease-in-out infinite;
}
@keyframes phoneFloat { 0%,100% { transform:translateY(0) rotate(0deg); } 50% { transform:translateY(-14px) rotate(.4deg); } }
.phone-notch { width: 80px; height: 24px; background: hsl(240,3%,5%); border-radius: 0 0 18px 18px; margin: 0 auto; }
.phone-screen { padding: 12px; }
.phone-home-bar { width: 80px; height: 4px; background: hsl(240,3%,25%); border-radius: 2px; margin: 8px auto; }

/* App mockup colors updated to match the real app */
.app-mockup { display: flex; flex-direction: column; gap: 10px; }
.app-topbar { display: flex; justify-content: space-between; align-items: center; font-size: .6rem; color: hsl(0,0%,55%); }
.app-streak { background: hsl(0,100%,71%,0.15); border: 1px solid hsl(0,100%,71%,0.4); padding: 2px 6px; border-radius: 20px; color: var(--coral); font-weight: 700; }
.app-leaderboard { background: hsl(240,3%,11%); border-radius: 12px; padding: 10px; border: 1px solid hsl(240,3%,18%); }
.lb-title { font-size: .6rem; font-weight: 700; margin-bottom: 8px; color: hsl(0,0%,80%); }
.lb-row { display: flex; align-items: center; gap: 5px; margin-bottom: 5px; font-size: .55rem; }
.lb-rank { width: 14px; text-align: center; }
.lb-name { width: 40px; color: hsl(0,0%,70%); font-weight: 500; }
.lb-bar-wrap { flex: 1; height: 4px; background: hsl(240,3%,18%); border-radius: 2px; overflow: hidden; }
.lb-bar { height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--teal), var(--blue)); animation: barGrow 1.5s ease-out; }
.lb-first  .lb-bar { background: linear-gradient(90deg, var(--gold), var(--coral)); }
.lb-second .lb-bar { background: linear-gradient(90deg, var(--teal), var(--blue)); }
.lb-third  .lb-bar { background: linear-gradient(90deg, var(--blue), var(--teal)); }
@keyframes barGrow { from { width: 0 !important; } }
.lb-pts { font-size: .5rem; color: hsl(0,0%,45%); width: 28px; text-align: right; }

/* Steps ring */
.app-steps { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.steps-ring { position: relative; width: 72px; height: 72px; }
.steps-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.steps-track { fill: none; stroke: hsl(240,3%,18%); stroke-width: 8; }
.steps-progress { fill: none; stroke: url(#stepsGrad); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 157; animation: ringProgress 2s ease-out .5s forwards; }
@keyframes ringProgress { to { stroke-dashoffset: 69; } }
.steps-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.steps-num { font-size: .65rem; font-weight: 700; color: var(--teal); }
.steps-lbl { font-size: .45rem; color: hsl(0,0%,45%); }
.steps-goal { font-size: .5rem; color: hsl(0,0%,40%); }

/* Floating badges */
.float-badge { position: absolute; display: flex; align-items: center; gap: 6px; padding: 8px 14px; background: hsl(240,3%,11%,0.95); backdrop-filter: blur(20px); border: 1px solid hsl(240,3%,20%); border-radius: 50px; font-size: .75rem; font-weight: 600; white-space: nowrap; box-shadow: 0 8px 32px rgba(0,0,0,.5); }
.badge-a { top: 5%;    right: -80px; animation: badgeFloat 5s ease-in-out infinite;       border-color: hsl(159,93%,50%,0.3); color: var(--teal); }
.badge-b { bottom: 25%; left: -90px; animation: badgeFloat 5s ease-in-out infinite 1.5s; border-color: hsl(0,100%,71%,0.3); color: var(--coral); }
.badge-c { bottom: 5%;  right: -60px; animation: badgeFloat 5s ease-in-out infinite 3s;  border-color: hsl(45,100%,60%,0.3); color: var(--gold); }
@keyframes badgeFloat { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-10px); } }

.hero-scroll-hint { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 10; opacity: .4; }
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, transparent, var(--teal)); animation: scrollLineAnim 2s ease-in-out infinite; }
@keyframes scrollLineAnim { 0% { transform:scaleY(0); transform-origin:top; } 50% { transform:scaleY(1); transform-origin:top; } 51% { transform:scaleY(1); transform-origin:bottom; } 100% { transform:scaleY(0); transform-origin:bottom; } }
.hero-scroll-hint span { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }

/* ============================================
   TRUST BAR
   ============================================ */
.trust-bar { position: relative; z-index: 10; padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: hsl(240,3%,9%); overflow: hidden; }
.trust-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; gap: 40px; }
.trust-label { font-size: .75rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: .1em; white-space: nowrap; }
.trust-logos { display: flex; gap: 32px; flex-wrap: wrap; }
.trust-logo { display: flex; align-items: center; gap: 8px; opacity: .4; transition: opacity .3s; }
.trust-logo:hover { opacity: 1; }
.trust-logo svg { width: 28px; height: 28px; border-radius: 6px; }
.trust-logo span { font-size: .8rem; color: var(--text-muted); }

/* ============================================
   SECTION SHARED
   ============================================ */
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag { display: inline-block; padding: 4px 14px; background: hsl(159,93%,50%,0.1); border: 1px solid hsl(159,93%,50%,0.25); border-radius: 50px; font-size: .75rem; font-weight: 600; color: var(--teal); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.section-title { font-family: var(--font-head); font-size: clamp(2rem,3.5vw,3rem); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; margin-bottom: 16px; overflow: visible; }
.section-sub { font-size: 1rem; color: var(--text-muted); max-width: 500px; margin: 0 auto; line-height: 1.7; }

/* ============================================
   FEATURES
   ============================================ */
.features { padding: 120px 0; position: relative; z-index: 10; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.feature-card {
  position: relative;
  background: hsl(240,3%,11%);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; overflow: hidden;
  transition: transform .4s cubic-bezier(.23,1,.32,1), border-color .3s, box-shadow .4s;
  transform-style: preserve-3d; cursor: none;
}
/* Holographic shimmer on hover */
.feature-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 20%, hsl(159,93%,50%,0.06) 40%, hsl(170,90%,50%,0.04) 60%, transparent 80%);
  background-size: 200% 200%;
  opacity: 0; transition: opacity .4s;
  pointer-events: none;
  animation: shimmerMove 3s linear infinite paused;
}
.feature-card:hover::before { opacity: 1; animation-play-state: running; }
@keyframes shimmerMove { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Teal top edge glow on hover */
.card-glow { position: absolute; top: -1px; left: 50%; transform: translateX(-50%); width: 60%; height: 1px; background: linear-gradient(90deg, transparent, var(--teal), transparent); opacity: 0; transition: opacity .4s; }
.feature-card:hover { border-color: hsl(159,93%,50%,0.3); box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 0 1px hsl(159,93%,50%,0.1), 0 0 30px hsl(159,93%,50%,0.06); }
.feature-card:hover .card-glow { opacity: 1; }
.card-large { grid-column: span 2; }
.card-icon-wrap { margin-bottom: 20px; }
.card-icon { font-size: 2rem; display: inline-block; filter: drop-shadow(0 0 10px currentColor); }
.card-content h3 { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.card-content p { font-size: .9rem; color: var(--text-muted); line-height: 1.65; }
.card-tag { position: absolute; top: 20px; right: 20px; padding: 4px 10px; background: hsl(0,100%,71%,0.12); border: 1px solid hsl(0,100%,71%,0.3); border-radius: 50px; font-size: .7rem; font-weight: 600; color: var(--coral); }
.card-badge { display: inline-block; margin-top: 16px; padding: 4px 12px; background: hsl(159,93%,50%,0.1); border: 1px solid hsl(159,93%,50%,0.25); border-radius: 50px; font-size: .75rem; color: var(--teal); }

/* Leaderboard visual */
.leaderboard-visual { margin-top: 24px; display: flex; flex-direction: column; gap: 8px; }
.mini-lb-row { display: flex; align-items: center; gap: 10px; font-size: .75rem; color: var(--text-muted); }
.mini-bar { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; position: relative; }
.mini-bar::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: linear-gradient(90deg, var(--teal), var(--blue)); border-radius: 3px; transition: width 1s ease-out; }

/* Streak dots */
.streak-visual { display: flex; gap: 8px; margin-top: 20px; }
.streak-dot { width: 28px; height: 28px; border-radius: 8px; background: hsl(240,3%,15%); border: 1px solid var(--border); transition: background .3s, border-color .3s, box-shadow .3s; }
.streak-dot.active { background: linear-gradient(135deg, var(--coral), var(--coral-dark)); border-color: transparent; box-shadow: 0 0 12px hsl(0,100%,71%,0.4); }
.streak-dot.today { background: hsl(0,100%,71%,0.15); border-color: var(--coral); animation: todayPulse 2s ease-in-out infinite; }
@keyframes todayPulse { 0%,100% { box-shadow: 0 0 0 0 hsl(0,100%,71%,0.4); } 50% { box-shadow: 0 0 0 6px transparent; } }

/* Conquest hexagons */
.conquest-visual { position: relative; height: 260px; margin-top: 20px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
#conquest-map { width: 100%; height: 100%; cursor: grab; }
#conquest-map:active { cursor: grabbing; }
/* Override Leaflet defaults to match dark theme */
#conquest-map .leaflet-container { background: hsl(220,30%,8%); }
/* Tooltip */
.cq-tip-wrap { background: none !important; border: none !important; box-shadow: none !important; padding: 0 !important; }
.cq-tip-wrap .leaflet-tooltip-top::before { display: none; }
.cq-tip { background: hsl(228,18%,12%,0.95); border: 1px solid hsl(159,93%,50%,0.25); border-radius: 8px; padding: 7px 10px; font-family: 'Inter', sans-serif; font-size: 11px; color: hsl(0,0%,92%); white-space: nowrap; backdrop-filter: blur(8px); }
.cq-meta { color: hsl(0,0%,55%); font-size: 10px; margin-top: 2px; }
.territory { position: absolute; font-size: 2.2rem; color: var(--c); text-shadow: 0 0 20px var(--c); animation: hexPulse 3s ease-in-out infinite; filter: drop-shadow(0 0 8px var(--c)); }
@keyframes hexPulse { 0%,100% { transform:scale(1); opacity:.8; } 50% { transform:scale(1.12); opacity:1; } }

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section { position: relative; padding: 100px 0; z-index: 10; overflow: hidden; }
.stats-bg { position: absolute; inset: 0; background: linear-gradient(135deg, hsl(159,93%,50%,0.04) 0%, transparent 40%, hsl(0,100%,71%,0.03) 70%, transparent 100%); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; text-align: center; }
.stat-block { display: flex; flex-direction: column; align-items: center; gap: 8px; }

/* Odometer-style counter */
.big-num { font-family: var(--font-head); font-size: clamp(2.5rem,5vw,4rem); font-weight: 700; background: linear-gradient(135deg, #fff, hsl(0,0%,70%)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; }
.big-suffix { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--teal); }
.big-label { font-size: .85rem; color: var(--text-muted); }

/* ============================================
   HOW IT WORKS
   ============================================ */
.how { padding: 120px 0; position: relative; z-index: 10; }
.timeline { position: relative; display: flex; flex-direction: column; max-width: 680px; margin: 0 auto; }
.timeline-line { position: absolute; left: 40px; top: 24px; bottom: 24px; width: 1px; background: linear-gradient(to bottom, var(--teal), var(--blue), var(--coral), transparent); opacity: .3; }
.timeline-step { display: flex; gap: 32px; align-items: flex-start; padding: 24px 0; opacity: 0; transform: translateX(-30px); }
.timeline-step.visible { opacity: 1; transform: translateX(0); transition: opacity .6s ease, transform .6s ease; }
.step-number { flex: 0 0 80px; font-family: var(--font-head); font-size: 3rem; font-weight: 700; background: linear-gradient(135deg, var(--teal), var(--blue)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; text-align: center; }
.step-card { flex: 1; background: hsl(240,3%,11%); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: border-color .3s, background .3s; }
.step-card:hover { border-color: hsl(159,93%,50%,0.35); background: hsl(240,3%,13%); }
.step-icon { font-size: 1.8rem; margin-bottom: 12px; display: block; }
.step-card h3 { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: .9rem; color: var(--text-muted); line-height: 1.65; }

/* ============================================
   NOTIFICATIONS
   ============================================ */
.notif-section { padding: 120px 0; position: relative; z-index: 10; }
.notif-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.notif-text .section-title { text-align: left; font-size: clamp(1.8rem,3vw,2.5rem); }
.notif-text p { color: var(--text-muted); line-height: 1.7; margin: 20px 0 32px; }
.notif-list { display: flex; flex-direction: column; gap: 14px; }
.notif-list li { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--text-muted); }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.notif-dot.teal   { background: var(--teal);  box-shadow: 0 0 8px var(--teal); }
.notif-dot.coral  { background: var(--coral); box-shadow: 0 0 8px var(--coral); }
.notif-dot.gold   { background: var(--gold);  box-shadow: 0 0 8px var(--gold); }
.notif-dot.blue   { background: var(--blue);  box-shadow: 0 0 8px var(--blue); }

.notif-phone-wrap { display: flex; justify-content: center; }
.notif-phone { background: hsl(240,3%,11%); border: 1px solid var(--border); border-radius: 28px; padding: 24px; width: 340px; box-shadow: var(--shadow-lg), 0 0 40px hsl(159,93%,50%,0.06); }
.notif-stack { display: flex; flex-direction: column; gap: 12px; }
.push-notif { display: flex; gap: 12px; padding: 14px 16px; background: hsl(240,3%,13%); border: 1px solid var(--border); border-radius: 16px; opacity: 0; transform: translateX(30px); }
.push-notif.visible { opacity: 1; transform: translateX(0); transition: opacity .5s, transform .5s; }
.pn-icon { font-size: 1.4rem; flex: 0 0 auto; }
.pn-title { font-size: .8rem; font-weight: 600; margin-bottom: 3px; }
.pn-body { font-size: .72rem; color: var(--text-muted); line-height: 1.5; }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials { padding: 120px 0; position: relative; z-index: 10; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card { position: relative; background: hsl(240,3%,11%); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; transition: transform .4s cubic-bezier(.23,1,.32,1), border-color .3s; overflow: hidden; cursor: none; }
.testi-card:hover { transform: translateY(-8px); border-color: hsl(159,93%,50%,0.3); box-shadow: 0 20px 60px rgba(0,0,0,.4), 0 0 20px hsl(159,93%,50%,0.06); }
.testi-featured { background: linear-gradient(135deg, hsl(159,93%,50%,0.06), hsl(217,91%,60%,0.06)); border-color: hsl(159,93%,50%,0.25); }
.testi-quote { font-family: var(--font-head); font-size: 5rem; line-height: .5; color: var(--teal); opacity: .25; margin-bottom: 16px; font-weight: 700; }
.testi-card p { font-size: .95rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 28px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 700; color: hsl(240,3%,7%); flex: 0 0 auto; }
.testi-name { font-size: .9rem; font-weight: 600; }
.testi-role { font-size: .75rem; color: var(--text-faint); }
.testi-stars { margin-left: auto; color: var(--gold); font-size: .8rem; }

/* ============================================
   DOWNLOAD CTA
   ============================================ */
.download-cta { position: relative; padding: 160px 0; text-align: center; overflow: hidden; z-index: 10; }
.cta-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% 50%, hsl(159,93%,50%,0.09) 0%, transparent 60%); }
#ctaParticles { position: absolute; inset: 0; pointer-events: none; }
.cta-badge { display: inline-block; padding: 6px 20px; background: hsl(159,93%,50%,0.1); border: 1px solid hsl(159,93%,50%,0.3); border-radius: 50px; font-size: .8rem; font-weight: 600; color: var(--teal); margin-bottom: 28px; letter-spacing: .05em; }
.cta-title { font-family: var(--font-head); font-size: clamp(3rem,7vw,6rem); font-weight: 700; line-height: 1.0; letter-spacing: -.03em; margin-bottom: 24px; }
.cta-sub { font-size: 1.1rem; color: var(--text-muted); max-width: 480px; margin: 0 auto 48px; line-height: 1.7; }
.cta-actions { margin-bottom: 40px; }
.btn-primary.btn-xl { display: inline-flex; align-items: center; gap: 14px; }
.play-icon { width: 20px; height: 20px; }
.btn-small-text { font-size: .7rem; opacity: .8; line-height: 1; }
.btn-big-text { font-size: 1.1rem; font-weight: 700; line-height: 1; }
.cta-note { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; font-size: .8rem; color: var(--text-faint); }

/* ============================================
   FOOTER
   ============================================ */
.footer { position: relative; padding: 80px 0 32px; border-top: 1px solid var(--border); z-index: 10; }
.footer-glow { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 600px; height: 1px; background: linear-gradient(90deg, transparent, hsl(159,93%,50%,0.5), transparent); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }
.footer-tagline { font-size: .85rem; color: var(--text-muted); margin-bottom: 24px; }
.footer-social { display: flex; gap: 12px; }
.social-btn { width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: border-color .2s, color .2s, background .2s; }
.social-btn:hover { border-color: var(--teal); color: var(--teal); background: hsl(159,93%,50%,0.08); }
.social-btn svg { width: 16px; height: 16px; }
.footer-links-col { display: flex; flex-direction: column; gap: 12px; }
.footer-links-col h4 { font-family: var(--font-head); font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); margin-bottom: 4px; }
.footer-links-col a { font-size: .9rem; color: var(--text-muted); transition: color .2s; }
.footer-links-col a:hover { color: var(--teal); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid var(--border); font-size: .8rem; color: var(--text-faint); }

/* ============================================
   APP SHOWCASE
   ============================================ */
.showcase {
  padding: 120px 0;
  position: relative;
  z-index: 10;
  overflow: hidden;
}
.showcase::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse at center, hsl(159,93%,50%,0.05) 0%, transparent 65%);
  pointer-events: none;
}

.showcase-phones-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 28px;
  padding: 40px 16px 8px;
  overflow: visible;
}

/* Individual phone item */
.sc-phone-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity .75s cubic-bezier(.23,1,.32,1), transform .75s cubic-bezier(.23,1,.32,1);
  transition-delay: var(--sc-delay, 0ms);
  flex: 0 0 auto;
}
.sc-phone-item.sc-visible { opacity: 1; transform: translateY(0); }
.sc-phone-center .sc-device { transform: translateY(-24px); }

/* Labels */
.sc-label {
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 4px 14px;
  background: hsl(240,3%,11%);
  border: 1px solid var(--border);
  border-radius: 50px;
}
.sc-label-featured {
  color: var(--teal);
  border-color: hsl(159,93%,50%,0.4);
  background: hsl(159,93%,50%,0.08);
  box-shadow: 0 0 16px hsl(159,93%,50%,0.15);
}

/* The phone device shell */
.sc-device {
  width: 242px;
  background: linear-gradient(145deg, hsl(240,3%,13%), hsl(240,3%,9%));
  border-radius: 38px;
  border: 1.5px solid hsl(240,3%,20%);
  overflow: hidden;
  box-shadow:
    0 0 0 1px hsl(240,3%,15%),
    0 40px 80px rgba(0,0,0,.8),
    0 0 40px hsl(159,93%,50%,0.07);
  transition: box-shadow .4s, transform .4s cubic-bezier(.23,1,.32,1);
}
.sc-device:hover {
  box-shadow:
    0 0 0 1px hsl(240,3%,20%),
    0 50px 100px rgba(0,0,0,.85),
    0 0 60px hsl(159,93%,50%,0.14);
}
.sc-device-featured {
  box-shadow:
    0 0 0 1px hsl(159,93%,50%,0.25),
    0 50px 100px rgba(0,0,0,.9),
    0 0 80px hsl(159,93%,50%,0.18) !important;
  border-color: hsl(159,93%,50%,0.25);
}
/* Animated teal top edge on featured */
.sc-device-featured::after {
  content: '';
  position: absolute;
  top: 0; left: 10%; width: 80%; height: 1px;
  background: linear-gradient(90deg, transparent, hsl(159,93%,50%,0.8), transparent);
  animation: featuredEdge 3s ease-in-out infinite;
}
@keyframes featuredEdge {
  0%,100% { opacity: .5; left: 10%; width: 80%; }
  50% { opacity: 1; left: 5%; width: 90%; }
}

/* Screen area */
.sc-screen {
  padding: 6px 9px 9px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 440px;
  overflow: hidden;
  font-family: var(--font-head);
  background: hsl(240,3%,7%);
}

/* ---- STATUS BAR ---- */
.ms-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 7.5px;
  color: hsl(0,0%,55%);
  padding: 2px 3px 0;
  font-weight: 600;
}
.ms-sb-right { display: flex; align-items: center; gap: 4px; }

/* ---- HEADER ---- */
.ms-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2px;
}
.ms-header-left { display: flex; flex-direction: column; }
.ms-greeting { font-size: 7.5px; color: hsl(0,0%,50%); }
.ms-name { font-size: 13.5px; font-weight: 700; color: var(--text); line-height: 1.2; }
.ms-header-right { display: flex; align-items: center; gap: 5px; }
.ms-streak-pill {
  font-size: 7.5px; font-weight: 700;
  padding: 2px 7px;
  background: hsl(0,100%,71%,0.12);
  border: 1px solid hsl(0,100%,71%,0.35);
  border-radius: 20px;
  color: var(--coral);
}
.ms-icon-btn {
  width: 23px; height: 23px;
  background: hsl(240,3%,13%);
  border: 1px solid hsl(240,3%,22%);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px;
}

/* ---- CARD BASE ---- */
.ms-card {
  background: linear-gradient(145deg, hsl(240,3%,13%), hsl(240,3%,9%));
  border: 1px solid hsl(240,3%,18%);
  border-radius: 11px;
  padding: 9px 10px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
/* Sport accent stripe */
.ms-sport-stripe {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--teal), transparent);
  border-radius: 0 11px 11px 0;
}

/* ---- POINTS CARD ---- */
.ms-points-card { border-color: hsl(159,93%,50%,0.22); }
.ms-points-body { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ms-points-left { flex: 1; min-width: 0; }
.ms-points-label {
  font-size: 6.5px; color: hsl(0,0%,40%);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1px;
}
.ms-points-num {
  font-size: 23px; font-weight: 700; line-height: 1.05;
  background: linear-gradient(135deg, var(--teal), hsl(170,90%,55%));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 2px;
}
.ms-points-rank { font-size: 7px; color: hsl(0,0%,40%); margin-bottom: 6px; }
.ms-points-badges { display: flex; gap: 4px; }
.ms-badge {
  font-size: 6.5px; padding: 1.5px 5px;
  border-radius: 20px; font-weight: 600;
}
.ms-badge.teal {
  background: hsl(159,93%,50%,0.12);
  border: 1px solid hsl(159,93%,50%,0.3);
  color: var(--teal);
}
.ms-badge.coral {
  background: hsl(0,100%,71%,0.12);
  border: 1px solid hsl(0,100%,71%,0.3);
  color: var(--coral);
}

/* Concentric rings */
.ms-rings-wrap { display: flex; flex-direction: column; align-items: center; gap: 5px; flex-shrink: 0; }
.ms-rings-svg { width: 82px; height: 82px; }
.ms-ring-progress {
  transition: stroke-dashoffset 1.4s cubic-bezier(.34,1.56,.64,1);
}
.ms-rings-legend { display: flex; gap: 7px; }
.ms-ring-leg { display: flex; align-items: center; gap: 2px; font-size: 6px; color: hsl(0,0%,40%); }
.ms-ring-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }

/* ---- STREAK CARD ---- */
.ms-streak-card {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(90deg, hsl(25,100%,50%,0.1), hsl(0,100%,50%,0.04));
  border-color: hsl(25,100%,50%,0.28);
}
.ms-streak-left { display: flex; align-items: center; gap: 6px; flex: 1; }
.ms-streak-title { font-size: 8.5px; font-weight: 700; color: hsl(25,100%,68%); }
.ms-streak-sub { font-size: 6.5px; color: hsl(0,0%,42%); margin-top: 1px; }
.ms-streak-num {
  font-size: 22px; font-weight: 700;
  color: hsl(25,100%,65%);
  text-shadow: 0 0 14px hsl(25,100%,50%,0.5);
  line-height: 1;
}

/* ---- STATS 2×2 GRID ---- */
.ms-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}
.ms-stat-card {
  background: hsl(240,3%,11%);
  border: 1px solid hsl(240,3%,18%);
  border-radius: 9px;
  padding: 7px 8px;
}
.ms-stat-top {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 2px;
}
.ms-stat-emoji { font-size: 11px; }
.ms-stat-lbl {
  font-size: 6px; color: hsl(0,0%,32%);
  font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
}
.ms-stat-val {
  font-size: 13px; font-weight: 700; color: var(--text);
  line-height: 1; margin-bottom: 4px;
}
.ms-stat-bar-wrap { height: 3px; background: hsl(240,3%,18%); border-radius: 2px; overflow: hidden; }
.ms-stat-bar { height: 100%; border-radius: 2px; width: var(--w,50%); background: var(--c, var(--teal)); }

/* ============================================
   LEADERBOARD SCREEN
   ============================================ */
.ms-lb-header { padding-bottom: 4px; }
.ms-lb-title { font-size: 14px; font-weight: 700; margin-bottom: 5px; }
.ms-period-tabs { display: flex; gap: 4px; }
.ms-period-tab {
  font-size: 6.5px; padding: 2.5px 7px;
  border-radius: 20px;
  background: hsl(240,3%,13%);
  border: 1px solid hsl(240,3%,22%);
  color: hsl(0,0%,42%); font-weight: 600;
}
.ms-period-tab.active {
  background: hsl(159,93%,50%,0.12);
  border-color: hsl(159,93%,50%,0.35);
  color: var(--teal);
}

.ms-family-card {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
}
.ms-family-icon { font-size: 16px; flex-shrink: 0; }
.ms-family-name { font-size: 9px; font-weight: 700; }
.ms-family-meta { font-size: 6.5px; color: hsl(0,0%,38%); margin-top: 1px; }

.ms-rankings { display: flex; flex-direction: column; gap: 5px; }
.ms-rank-row {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 8px;
  background: hsl(240,3%,11%);
  border: 1px solid hsl(240,3%,18%);
  border-radius: 9px;
}
.ms-rank-gold  { border-color: hsl(45,100%,60%,0.25); background: hsl(45,100%,60%,0.04); }
.ms-rank-you   { border-color: hsl(159,93%,50%,0.32); background: hsl(159,93%,50%,0.07); }
.ms-rank-medal { font-size: 12px; width: 14px; text-align: center; flex-shrink: 0; }
.ms-rank-num   { font-size: 9px; font-weight: 700; color: hsl(0,0%,38%); }
.ms-rank-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; color: hsl(240,3%,7%);
  flex-shrink: 0;
}
.ms-rank-info { flex: 1; min-width: 0; }
.ms-rank-name {
  font-size: 8px; font-weight: 600; margin-bottom: 3px;
  display: flex; align-items: center; gap: 4px;
}
.ms-you-tag {
  font-size: 6px; padding: 1px 4px;
  background: hsl(159,93%,50%,0.15);
  border: 1px solid hsl(159,93%,50%,0.3);
  border-radius: 20px; color: var(--teal);
}
.ms-rank-bar-wrap { height: 3px; background: hsl(240,3%,18%); border-radius: 2px; overflow: hidden; }
.ms-rank-bar { height: 100%; border-radius: 2px; }
.ms-rank-pts { font-size: 8px; font-weight: 700; color: hsl(0,0%,62%); white-space: nowrap; }

.ms-goal-card { padding: 8px 10px; }
.ms-goal-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.ms-goal-title { font-size: 7.5px; font-weight: 600; }
.ms-goal-pct { font-size: 8.5px; font-weight: 700; color: var(--teal); }
.ms-goal-bar-wrap { height: 4px; background: hsl(240,3%,18%); border-radius: 2px; overflow: hidden; margin-bottom: 3px; }
.ms-goal-bar { width: 57%; height: 100%; background: linear-gradient(90deg, var(--teal), var(--blue)); border-radius: 2px; }
.ms-goal-sub { font-size: 6.5px; color: hsl(0,0%,38%); }

/* ============================================
   MISSIONS SCREEN
   ============================================ */
.ms-back-btn { font-size: 16px; color: var(--teal); flex-shrink: 0; }
.ms-page-title { font-size: 12px; font-weight: 700; flex: 1; text-align: center; }
.ms-bonus-pts-pill {
  font-size: 7px; font-weight: 700;
  padding: 2px 6px;
  background: hsl(45,100%,60%,0.12);
  border: 1px solid hsl(45,100%,60%,0.3);
  border-radius: 20px; color: var(--gold);
  flex-shrink: 0;
}

.ms-missions-summary { padding: 8px 10px; }
.ms-missions-prog-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 5px;
}
.ms-missions-count { font-size: 8px; font-weight: 700; color: var(--teal); }
.ms-missions-xp { font-size: 6.5px; color: hsl(0,0%,38%); }
.ms-missions-prog-bg { height: 4px; background: hsl(240,3%,18%); border-radius: 2px; overflow: hidden; }
.ms-missions-prog { height: 100%; background: linear-gradient(90deg, var(--teal), var(--blue)); border-radius: 2px; }

.ms-missions-list { display: flex; flex-direction: column; gap: 5px; }
.ms-mission {
  display: flex; align-items: center; gap: 7px;
  background: hsl(240,3%,11%);
  border: 1px solid hsl(240,3%,18%);
  border-radius: 9px;
  padding: 7px 8px;
}
.ms-mission-done {
  border-color: hsl(159,93%,50%,0.22);
  background: hsl(159,93%,50%,0.05);
}
.ms-mission-icon-wrap {
  width: 27px; height: 27px;
  background: hsl(240,3%,16%);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0;
}
.ms-mission-icon-wrap.done { background: hsl(159,93%,50%,0.15); }
.ms-mission-body { flex: 1; min-width: 0; }
.ms-mission-title { font-size: 7.5px; font-weight: 600; margin-bottom: 3px; }
.ms-mission-bar-wrap { height: 3px; background: hsl(240,3%,18%); border-radius: 2px; overflow: hidden; margin-bottom: 2px; }
.ms-mission-bar { height: 100%; background: linear-gradient(90deg, var(--teal), var(--blue)); border-radius: 2px; }
.ms-mission-bar.done { background: var(--teal); }
.ms-mission-progress { font-size: 6.5px; color: hsl(0,0%,38%); }
.ms-mission-reward {
  font-size: 7.5px; font-weight: 700; color: var(--teal);
  background: hsl(159,93%,50%,0.1);
  border: 1px solid hsl(159,93%,50%,0.25);
  border-radius: 7px; padding: 3px 5px;
  white-space: nowrap; flex-shrink: 0;
}
.ms-mission-reward.done {
  background: hsl(159,93%,50%,0.18);
  border-color: hsl(159,93%,50%,0.45);
}

.ms-bonus-card {
  display: flex; align-items: center; gap: 9px;
  background: linear-gradient(90deg, hsl(45,100%,60%,0.08), hsl(240,3%,11%));
  border-color: hsl(45,100%,60%,0.22);
}
.ms-bonus-icon { font-size: 20px; flex-shrink: 0; }
.ms-bonus-body { flex: 1; }
.ms-bonus-title { font-size: 8px; font-weight: 700; margin-bottom: 1px; }
.ms-bonus-sub { font-size: 6.5px; color: hsl(0,0%,42%); }
.ms-bonus-timer { font-size: 6.5px; color: var(--gold); margin-top: 2px; }
.ms-bonus-pts-badge {
  font-size: 9px; font-weight: 700; color: var(--gold);
  background: hsl(45,100%,60%,0.12);
  border: 1px solid hsl(45,100%,60%,0.3);
  border-radius: 8px; padding: 4px 7px;
  white-space: nowrap; flex-shrink: 0;
}

/* ---- Dot indicators ---- */
.sc-indicators { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.sc-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: hsl(240,3%,22%);
  transition: background .3s, width .3s;
}
.sc-dot.active {
  background: var(--teal); width: 24px;
  border-radius: 3px;
  box-shadow: 0 0 8px var(--teal);
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
[data-reveal], [data-reveal-right] {
  opacity: 0; transform: translateY(30px);
  transition: opacity .8s cubic-bezier(.23,1,.32,1), transform .8s cubic-bezier(.23,1,.32,1);
}
[data-reveal-right] { transform: translateX(50px); }
[data-reveal].visible, [data-reveal-right].visible { opacity: 1; transform: translate(0); }
[data-card] { opacity: 0; transform: translateY(20px) scale(.98); transition: opacity .6s cubic-bezier(.23,1,.32,1), transform .6s cubic-bezier(.23,1,.32,1); }
[data-card].visible { opacity: 1; transform: translateY(0) scale(1); }

/* ============================================
   EXTRA FLASH ANIMATIONS
   ============================================ */

/* Neon flicker */
@keyframes neonFlicker {
  0%,19%,21%,23%,25%,54%,56%,100% { text-shadow: 0 0 10px var(--teal), 0 0 30px var(--teal), 0 0 60px var(--teal-dark); }
  20%,24%,55% { text-shadow: none; }
}

/* Electric border */
@keyframes electricBorder {
  0%   { border-color: var(--teal); box-shadow: 0 0 8px var(--teal-glow); }
  25%  { border-color: var(--coral); box-shadow: 0 0 8px var(--coral-glow); }
  50%  { border-color: var(--gold);  box-shadow: 0 0 8px var(--gold-glow); }
  75%  { border-color: var(--blue);  box-shadow: 0 0 8px rgba(96,165,250,.25); }
  100% { border-color: var(--teal); box-shadow: 0 0 8px var(--teal-glow); }
}

/* Warp entrance */
@keyframes warpIn {
  0%   { clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%); opacity: 0; }
  60%  { clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%); opacity: 1; }
  80%  { transform: scaleX(1.04); }
  100% { transform: scaleX(1); opacity: 1; }
}

/* Teal sweep line */
@keyframes sweepLine {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

/* Stagger flash on counter */
@keyframes countFlash {
  0%   { color: var(--teal); text-shadow: 0 0 20px var(--teal); }
  100% { color: inherit; text-shadow: none; }
}

/* ============================================
   PREMIUM ANIMATION LAYER — $30K FEEL
   ============================================ */

/* Subtle film-grain noise overlay — makes everything feel tactile */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.028;
  pointer-events: none;
  z-index: 9995;
  mix-blend-mode: overlay;
}

/* ---- Marquee / infinite ticker ---- */
.marquee-outer { overflow: hidden; mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent); }
.marquee-track { display: flex; gap: 0; width: max-content; animation: marqueeRoll 28s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-item { flex: 0 0 auto; }
@keyframes marqueeRoll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ---- Word-split reveal ---- */
.split-word-wrap { overflow: hidden; display: inline-block; }
.split-word {
  display: inline-block;
  transform: translateY(110%) rotate(4deg);
  opacity: 0;
  transition: transform 0.75s cubic-bezier(.23,1,.32,1), opacity 0.55s ease;
}
.split-word.in { transform: translateY(0) rotate(0deg); opacity: 1; }

/* ---- Enhanced data-reveal with blur ---- */
[data-reveal], [data-reveal-right] {
  filter: blur(4px);
}
[data-reveal].visible, [data-reveal-right].visible {
  filter: blur(0px);
  transition: opacity .9s cubic-bezier(.23,1,.32,1), transform .9s cubic-bezier(.23,1,.32,1), filter .9s ease;
}

/* ---- Skew-in card variants ---- */
[data-card-left]  { opacity: 0; transform: translateX(-40px) skewX(4deg); transition: opacity .7s cubic-bezier(.23,1,.32,1), transform .7s cubic-bezier(.23,1,.32,1); }
[data-card-right] { opacity: 0; transform: translateX(40px) skewX(-4deg); transition: opacity .7s cubic-bezier(.23,1,.32,1), transform .7s cubic-bezier(.23,1,.32,1); }
[data-card-left].visible  { opacity: 1; transform: translateX(0) skewX(0); }
[data-card-right].visible { opacity: 1; transform: translateX(0) skewX(0); }
[data-card-up]  { opacity: 0; transform: translateY(60px) scale(0.94); transition: opacity .75s cubic-bezier(.23,1,.32,1), transform .75s cubic-bezier(.23,1,.32,1); }
[data-card-up].visible { opacity: 1; transform: translateY(0) scale(1); }

/* ---- Section glow divider line ---- */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, hsl(159,93%,50%,0) 20%, hsl(159,93%,50%,0.5) 50%, hsl(159,93%,50%,0) 80%, transparent 100%);
  position: relative;
  overflow: hidden;
  transform: scaleX(0);
  transition: transform 1.2s cubic-bezier(.23,1,.32,1);
}
.section-divider.in { transform: scaleX(1); }
.section-divider::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
  width: 30%;
  animation: dividerSweep 2.5s ease-in-out infinite 1.2s;
}
@keyframes dividerSweep { 0% { left: -30%; } 100% { left: 130%; } }

/* ---- Horizontal ticker strip ---- */
.ticker-strip {
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: hsl(240,3%,9%);
  overflow: hidden;
  position: relative; z-index: 10;
}
.ticker-track { display: flex; gap: 0; width: max-content; animation: marqueeRoll 22s linear infinite; }
.ticker-item {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 8px;
  padding: 0 40px;
  font-size: .8rem; font-weight: 600; color: var(--text-muted);
  white-space: nowrap;
}
.ticker-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 6px var(--teal); flex: 0 0 auto; }

/* ---- Parallax section layers ---- */
.parallax-slow   { will-change: transform; }
.parallax-medium { will-change: transform; }

/* ---- Animated gradient text on big numbers ---- */
.animated-gradient {
  background: linear-gradient(90deg, var(--teal), hsl(170,90%,60%), var(--blue), var(--teal));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease-in-out infinite;
}
@keyframes gradientShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ---- Section sweep-in overlay (teal flash) ---- */
.section-sweep {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, hsl(159,93%,50%,0.06), transparent);
  transform: translateX(-100%);
}
.section-sweep.fire { animation: sectionSweep .8s ease-in-out forwards; }
@keyframes sectionSweep { 0%{transform:translateX(-100%);} 100%{transform:translateX(100%);} }

/* ---- Feature card enhanced glow on hover ---- */
.feature-card:hover {
  border-color: hsl(159,93%,50%,0.35);
  box-shadow:
    0 20px 60px rgba(0,0,0,.5),
    0 0 0 1px hsl(159,93%,50%,0.12),
    0 0 40px hsl(159,93%,50%,0.08),
    inset 0 1px 0 hsl(159,93%,50%,0.1);
  transform: translateY(-4px) !important;
}

/* ---- Testi card stagger variants ---- */
[data-testi-left]  { opacity: 0; transform: translateX(-50px) rotate(-2deg); transition: opacity .8s cubic-bezier(.23,1,.32,1), transform .8s cubic-bezier(.23,1,.32,1); }
[data-testi-right] { opacity: 0; transform: translateX(50px) rotate(2deg);  transition: opacity .8s cubic-bezier(.23,1,.32,1), transform .8s cubic-bezier(.23,1,.32,1); }
[data-testi-up]    { opacity: 0; transform: translateY(50px) scale(.92);     transition: opacity .8s cubic-bezier(.23,1,.32,1), transform .8s cubic-bezier(.23,1,.32,1); }
[data-testi-left].visible, [data-testi-right].visible, [data-testi-up].visible { opacity: 1; transform: none; }

/* ---- Spotlight effect behind sections ---- */
.spotlight {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, hsl(159,93%,50%,0.07) 0%, transparent 70%);
  pointer-events: none;
  transition: opacity .5s;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-phone-wrap { display: none; }
  .hero-content { max-width: 700px; margin: 0 auto; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .card-large { grid-column: span 2; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .sc-phone-center .sc-device { transform: none; }
  .showcase-phones-wrap { justify-content: flex-start; padding: 0 32px 16px; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta, .nav-actions { display: none; }
  .nav-burger { display: flex; }
  .hero { padding: 100px 24px 60px; }
  .features-grid { grid-template-columns: 1fr; }
  .card-large { grid-column: span 1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
  .notif-layout { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .hero-content { margin-left: 0; max-width: 100%; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .hero-stat-divider { display: none; }
  .cursor, .cursor-follower { display: none; }
  body { cursor: auto; }
  .cta-title { font-size: clamp(2.5rem,8vw,3.5rem); }
}
@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .hero-title { font-size: 2.4rem; }
  .hero-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .btn-ghost { justify-content: center; }
  .timeline-step { flex-direction: column; }
  .step-number { font-size: 2rem; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ============================================
   LUCIDE ICON SYSTEM
   ============================================ */
/* Base — SVG replaces <i data-lucide> after createIcons() */
.ic {
  display: inline-block;
  width: 1em;
  height: 1em;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.15em;
  flex-shrink: 0;
  overflow: visible;
}
.ic-xs  { width: 0.8em; height: 0.8em; }
.ic-star { fill: var(--gold); stroke: var(--gold); width: 0.75em; height: 0.75em; }

/* Thinner strokes in dense phone mockup contexts */
.phone-screen .ic,
.sc-screen .ic { stroke-width: 1.5; }

/* Semantic color overrides */
.ic-streak { stroke: var(--coral); }
.ic-heart   { fill: var(--coral); stroke: var(--coral); }

/* Rank badge colours */
.lb-rank-1, .ms-rank-1 { color: var(--gold); }
.lb-rank-2, .ms-rank-2 { color: hsl(215, 20%, 65%); font-weight: 700; }
.lb-rank-3, .ms-rank-3 { color: hsl(25, 60%, 55%);  font-weight: 700; }

/* Pulsing live dot (replaces 🔴) */
.live-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #ef4444;
  vertical-align: middle;
  margin-right: 3px;
  animation: liveBlip 1.5s ease-in-out infinite;
}
@keyframes liveBlip {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

/* ============================================
   PREFERS-REDUCED-MOTION
   ============================================ */
/* ============================================================================
   PREMIUM SCROLLYTELLING SECTIONS
   Namespaced blocks: .hm- (hero map) · .wc- (world conquest) ·
   .fb- (family battles) · .bp- (beat past self) · .mr- (missions stack) ·
   .cr- (cta reveal). Motion lives in js/scrollytelling.js; this is layout +
   appearance only. transform/opacity friendly.
   ============================================================================ */

/* Shared scaffolding for the immersive sections */
.scrolly {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.scrolly-pin {
  min-height: 100vh;
  height: 100vh;
  display: flex;
  align-items: center;
}
.scrolly-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal);
  padding: 7px 14px; border-radius: 100px;
  border: 1px solid var(--border-glow);
  background: hsl(159,93%,50%,0.06);
  margin-bottom: 22px;
}
.scrolly-title {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.05;
  letter-spacing: -0.02em; margin-bottom: 18px;
}
.scrolly-sub {
  color: var(--text-muted); font-size: clamp(1rem, 1.4vw, 1.15rem);
  max-width: 30ch; line-height: 1.6;
}

/* ---- HERO MOVING MAP ----------------------------------------------------- */
.hm-map {
  position: absolute; inset: -10% -5% 0 -5%;
  z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at center, hsl(159,93%,50%,0.55) 0, hsl(159,93%,50%,0) 1.6px);
  background-size: 34px 34px;
  /* Fade the dot-field toward edges so it reads as a luminous map, not a grid */
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 38%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 38%, #000 0%, transparent 78%);
  opacity: 0.5;
  animation: hmDrift 38s ease-in-out infinite alternate;
}
@keyframes hmDrift {
  0%   { background-position: 0 0; }
  100% { background-position: 60px 30px; }
}
.hm-ping {
  position: absolute; width: 9px; height: 9px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 0 0 hsl(159,93%,50%,0.5);
  animation: hmPing 3.4s ease-out infinite;
}
.hm-ping.p2 { background: var(--blue);  box-shadow: 0 0 0 0 hsl(217,91%,60%,0.5); animation-delay: 1.1s; }
.hm-ping.p3 { background: var(--coral); box-shadow: 0 0 0 0 hsl(0,100%,71%,0.5);   animation-delay: 2.2s; }
@keyframes hmPing {
  0%   { box-shadow: 0 0 0 0 hsl(159,93%,50%,0.45); opacity: 1; }
  70%  { box-shadow: 0 0 0 26px hsl(159,93%,50%,0); opacity: 0.9; }
  100% { box-shadow: 0 0 0 26px hsl(159,93%,50%,0); opacity: 0.6; }
}
/* Keep hero content above the map layer */
.hero > .hero-content,
.hero > .hero-phone-wrap,
.hero > .hero-scroll-hint { position: relative; z-index: 2; }

/* ---- WORLD CONQUEST (pinned tiles) --------------------------------------- */
.wc-inner {
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center;
}
.wc-counter {
  margin-top: 28px; display: flex; align-items: baseline; gap: 12px;
}
.wc-counter-num {
  font-family: var(--font-head); font-weight: 700; font-size: 3.6rem;
  line-height: 1; color: var(--teal);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 30px hsl(159,93%,50%,0.4);
}
.wc-counter-lbl { color: var(--text-muted); font-size: 0.95rem; letter-spacing: 0.04em; }
.wc-clans { display: flex; gap: 18px; margin-top: 24px; flex-wrap: wrap; }
.wc-clan { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); }
.wc-clan::before { content: ''; width: 12px; height: 12px; border-radius: 4px; }
.wc-clan.a::before { background: var(--teal); }
.wc-clan.b::before { background: var(--blue); }
.wc-clan.c::before { background: var(--coral); }

.wc-grid-wrap { position: relative; }
.wc-grid {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 9px;
  position: relative; z-index: 2;
}
.wc-tile {
  aspect-ratio: 1; border-radius: 9px;
  background: hsl(240,3%,12%);
  border: 1px solid hsl(240,3%,18%);
  position: relative;
  transform-origin: center;
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease;
  will-change: transform;
}
.wc-tile.claimed.clan-a { background: hsl(159,93%,50%,0.85); border-color: var(--teal);  box-shadow: 0 0 16px hsl(159,93%,50%,0.45); }
.wc-tile.claimed.clan-b { background: hsl(217,91%,60%,0.85); border-color: var(--blue);  box-shadow: 0 0 16px hsl(217,91%,60%,0.45); }
.wc-tile.claimed.clan-c { background: hsl(0,100%,71%,0.85);  border-color: var(--coral); box-shadow: 0 0 16px hsl(0,100%,71%,0.45); }
.wc-foreground-glow {
  position: absolute; inset: -20%; z-index: 1; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, hsl(159,93%,50%,0.12), transparent 60%);
}

/* ---- FAMILY vs FAMILY (horizontal scroll) -------------------------------- */
.fb-viewport { width: 100%; overflow: hidden; }
.fb-head { max-width: 1200px; margin: 0 auto 38px; padding: 0 32px; }
.fb-track {
  display: flex; gap: 28px; padding: 0 32px; width: max-content;
  will-change: transform;
}
.fb-card {
  flex: 0 0 auto; width: 420px; max-width: 80vw;
  background: linear-gradient(160deg, hsl(240,3%,11%), hsl(240,3%,9%));
  border: 1px solid var(--border); border-radius: 24px;
  padding: 28px; box-shadow: var(--shadow);
  will-change: transform;
}
.fb-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.fb-status { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); display: inline-flex; align-items: center; gap: 7px; }
.fb-status .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 8px var(--coral); animation: fbPulse 1.6s ease-in-out infinite; }
@keyframes fbPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.fb-round { font-size: 0.72rem; color: var(--text-faint); }
.fb-versus { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
.fb-team { text-align: center; }
.fb-team-badge {
  width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: #06140f;
}
.fb-team-name { font-weight: 600; font-size: 0.98rem; margin-bottom: 4px; }
.fb-team-meta { font-size: 0.74rem; color: var(--text-muted); }
.fb-team-score { font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; margin-top: 10px; font-variant-numeric: tabular-nums; }
.fb-vs { font-family: var(--font-head); font-weight: 700; color: var(--text-faint); font-size: 1.1rem; }
.fb-bar { height: 8px; border-radius: 100px; background: hsl(240,3%,16%); overflow: hidden; margin-top: 20px; display: flex; }
.fb-bar > i { display: block; height: 100%; }
.fb-bar > .fb-bar-a { background: linear-gradient(90deg, var(--teal), hsl(170,90%,55%)); }
.fb-bar > .fb-bar-b { background: linear-gradient(90deg, var(--blue), hsl(217,91%,70%)); }
.fb-foot { margin-top: 16px; display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--text-muted); }
.fb-hint { text-align: center; color: var(--text-faint); font-size: 0.8rem; margin-top: 30px; display: flex; align-items: center; justify-content: center; gap: 8px; }

/* ---- BEAT YOUR PAST SELF (dual runners) ---------------------------------- */
.bp-stage { position: relative; width: 100%; height: 100vh; overflow: hidden; }
.bp-skyline {
  position: absolute; inset: auto 0 30% 0; height: 220px; z-index: 0;
  background:
    radial-gradient(circle at 12% 100%, hsl(217,40%,20%,0.5) 0 60px, transparent 61px),
    radial-gradient(circle at 30% 100%, hsl(159,40%,18%,0.45) 0 90px, transparent 91px),
    radial-gradient(circle at 52% 100%, hsl(217,40%,22%,0.4) 0 70px, transparent 71px),
    radial-gradient(circle at 74% 100%, hsl(159,40%,18%,0.4) 0 100px, transparent 101px),
    radial-gradient(circle at 92% 100%, hsl(217,40%,20%,0.45) 0 64px, transparent 65px);
  opacity: 0.7; will-change: transform;
}
.bp-track-lines {
  position: absolute; inset: auto 0 0 0; height: 30%; z-index: 1;
  background-image: repeating-linear-gradient(90deg, hsl(240,3%,22%) 0 60px, transparent 60px 140px);
  background-position-y: center;
  -webkit-mask-image: linear-gradient(to top, #000, transparent);
  mask-image: linear-gradient(to top, #000, transparent);
  opacity: 0.5; will-change: background-position;
}
.bp-ground { position: absolute; inset: auto 0 0 0; height: 30%; z-index: 1; background: linear-gradient(to top, hsl(240,4%,9%), transparent); }
.bp-copy {
  position: absolute; top: 12%; left: 0; right: 0; z-index: 4;
  max-width: 1200px; margin: 0 auto; padding: 0 32px; text-align: center;
}
.bp-runner {
  position: absolute; bottom: 28%; left: 4%; z-index: 3;
  width: clamp(90px, 11vw, 150px); will-change: transform;
}
.bp-runner svg { width: 100%; height: auto; display: block; overflow: visible; }
/* Head = filled circle (no stroke); limbs = stroked paths (no fill). Color is
   set once on the group via fill+stroke. */
.bp-fill circle { stroke: none; }
.bp-fill path   { fill: none; }
.bp-runner-past { z-index: 2; bottom: 30%; filter: grayscale(1) brightness(0.7); opacity: 0.45; }
.bp-runner-past .bp-fill { fill: hsl(0,0%,55%); stroke: hsl(0,0%,55%); }
.bp-runner-now { z-index: 3; }
.bp-runner-now .bp-fill { fill: var(--teal); stroke: var(--teal); }
.bp-runner-now::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at 50% 60%, hsl(159,93%,50%,0.4), transparent 65%);
  filter: blur(8px);
}
.bp-runner-label {
  position: absolute; top: -26px; left: 50%; transform: translateX(-50%);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  white-space: nowrap; padding: 3px 9px; border-radius: 100px;
}
.bp-runner-now  .bp-runner-label { color: #06140f; background: var(--teal); }
.bp-runner-past .bp-runner-label { color: var(--text-muted); background: hsl(240,3%,18%); }
.bp-finish {
  position: absolute; bottom: 26%; right: 6%; z-index: 2; width: 14px; height: 150px;
  background:
    repeating-conic-gradient(#e8e8e8 0% 25%, #1a1a1a 0% 50%) 0 0 / 14px 14px;
  border-radius: 3px; opacity: 0.2;
}
.bp-gap {
  position: absolute; bottom: 30%; left: 50%; transform: translateX(-50%); z-index: 4;
  text-align: center;
}
.bp-gap-num {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  color: var(--teal); font-variant-numeric: tabular-nums; line-height: 1;
  text-shadow: 0 0 26px hsl(159,93%,50%,0.45);
}
.bp-gap-lbl { font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.05em; margin-top: 4px; }

/* ---- MISSIONS (stacked card reveal) -------------------------------------- */
.mr-inner {
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center;
}
/* Stack tall enough to hold 4 compact cards with clear breathing room.
   Final fanned layout: cardHeight 88px + 3 gaps of SLOT(104px) = 400px span,
   centered inside this 420px box → no clipping, small positive gap per card. */
.mr-stack { position: relative; height: 420px; }
.mr-card {
  position: absolute; inset: 0; margin: auto; width: 100%; max-width: 460px; height: 88px;
  background: linear-gradient(155deg, hsl(240,3%,12%), hsl(240,3%,9%));
  border: 1px solid var(--border); border-radius: 18px; padding: 0 20px;
  display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow-lg);
  transform-origin: center; will-change: transform;
}
.mr-stack-static { height: auto; display: flex; flex-direction: column; gap: 14px; }
.mr-stack-static .mr-card { position: relative; inset: auto; height: 88px; }
.mr-card-icon {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: hsl(159,93%,50%,0.12); color: var(--teal);
}
.mr-card-icon .ic { width: 22px; height: 22px; }
.mr-card-done .mr-card-icon { background: hsl(159,93%,50%,0.18); }
.mr-card-body { flex: 1; min-width: 0; }
.mr-card-title { font-weight: 600; font-size: 0.98rem; margin-bottom: 6px; line-height: 1.2; }
.mr-card-bar { height: 6px; border-radius: 100px; background: hsl(240,3%,17%); overflow: hidden; margin-bottom: 6px; }
.mr-card-bar > i { display: block; height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--teal), hsl(170,90%,55%)); }
.mr-card-meta { font-size: 0.74rem; color: var(--text-muted); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mr-card-reward {
  flex: 0 0 auto; font-family: var(--font-head); font-weight: 700; font-size: 0.92rem;
  color: var(--teal); display: inline-flex; align-items: center; gap: 6px;
}
.mr-check { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; background: var(--teal); color: #06140f; align-items: center; justify-content: center; }
.mr-check .ic { width: 13px; height: 13px; }

/* ---- FINAL CTA app mockup zoom / reveal ---------------------------------- */
.cr-stage {
  position: relative; padding: 60px 0 10px; display: flex; flex-direction: column;
  align-items: center; text-align: center; overflow: hidden;
}
.cr-bloom {
  position: absolute; top: 8%; left: 50%; transform: translateX(-50%);
  width: 620px; height: 620px; max-width: 90vw; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, hsl(159,93%,50%,0.22), transparent 62%);
  will-change: transform, opacity;
}
.cr-phone {
  position: relative; z-index: 2; width: 280px; max-width: 70vw;
  border-radius: 42px; padding: 10px;
  background: linear-gradient(160deg, hsl(240,3%,18%), hsl(240,3%,8%));
  border: 1px solid hsl(240,3%,22%);
  box-shadow: 0 40px 120px rgba(0,0,0,0.7), 0 0 60px hsl(159,93%,50%,0.12);
  will-change: transform;
}
.cr-screen {
  border-radius: 33px; overflow: hidden; aspect-ratio: 9 / 19.5;
  background: linear-gradient(160deg, hsl(240,3%,12%), hsl(240,4%,8%));
  position: relative; display: flex; align-items: center; justify-content: center;
}
.cr-shot { width: 100%; height: 100%; object-fit: cover; display: block; }
.cr-screen-fallback {
  text-align: center; color: var(--text-muted); padding: 24px; font-size: 0.85rem;
}
.cr-screen-fallback .ic { width: 40px; height: 40px; color: var(--teal); margin-bottom: 12px; }
.cr-chips { position: relative; z-index: 3; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.cr-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.85rem; color: var(--text); backdrop-filter: blur(8px);
}
.cr-chip .ic { width: 16px; height: 16px; color: var(--teal); }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 880px) {
  .scrolly-pin { height: auto; min-height: auto; padding: 90px 0; }
  .wc-inner, .mr-inner { grid-template-columns: 1fr; gap: 36px; }
  .wc-grid { grid-template-columns: repeat(8, 1fr); }
  .fb-card { width: 320px; padding: 22px; }
  .mr-stack { height: auto; display: flex; flex-direction: column; gap: 14px; }
  .mr-stack .mr-card { position: relative; inset: auto; height: 88px; max-width: 100%; }
  .bp-stage { height: 70vh; }
  .bp-runner { width: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .topo-bg, body::before { animation: none; }
  .cursor, .cursor-follower { display: none; }
  body { cursor: auto; }
  /* No parallax under reduced motion → don't hold idle GPU layers. */
  .hero-content, .ticker-strip, .features-grid, .stats-grid,
  .showcase-phones-wrap, .timeline, .notif-layout, .testi-grid { will-change: auto; }
  /* Immersive sections: render readable static states, no pinning height traps */
  .scrolly-pin { height: auto; min-height: auto; padding: 80px 0; }
  .hm-map { animation: none; }
  .bp-stage { height: auto; padding: 80px 0; }
  .bp-runner { position: relative; bottom: auto; display: inline-block; }
}
