/* ─────────────────────────────────────────────────────────────────────────────
   Cravedit landing v2 — "Neon Pro / tactical HUD", the app's own design system:
   solid near-black blue-slate panels, hairline borders, ONE electric-blue accent,
   Space Grotesk display + Inter body, ledger-style tabular numerals.
   Tokens mirror app/lib/theme.dart (CravePalette).
   ──────────────────────────────────────────────────────────────────────────── */
:root {
  --bg: #0F1218;
  --panel: #161A22;
  --panel-alt: #1F2630;
  --line: #2A323D;
  --line-soft: #37404D;
  --ink: #F4F7FA;
  --dim: #96A1B2;
  --blue: #3DA5FF;
  --blue-deep: #2F7FE0;
  --teal: #2FE3C6;
  --violet: #8B6CFF;
  --magenta: #E0479E;
  --lime: #C8FF3D;
  --ok: #36E08A;
  --r-chip: 10px; --r-card: 12px; --r-sheet: 16px;
  --disp: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
::selection { background: rgba(61,165,255,0.35); }

/* type roles */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 11px/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dim); padding: 8px 14px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--panel);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px var(--blue); }
h2.sect {
  font: 700 clamp(1.7rem, 4.4vw, 2.6rem)/1.15 var(--disp);
  letter-spacing: -0.01em; margin: 18px 0 10px;
}
.sect-sub { color: var(--dim); max-width: 560px; margin-bottom: 40px; }
.num { font-feature-settings: "tnum" 1, "lnum" 1; font-variant-numeric: tabular-nums lining-nums; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }
section { padding: clamp(64px, 10vw, 120px) 0; }

/* ── nav: hidden over the hero, slides in on scroll ─────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 26px;
  padding: 10px clamp(18px, 4vw, 40px);
  background: rgba(15, 18, 24, 0.88); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-110%); transition: transform 0.35s cubic-bezier(0.2, 0, 0, 1);
}
.nav.on { transform: translateY(0); }
.nav-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.nav-brand img { width: 26px; height: 26px; }
.nav-brand b { font: 700 15px/1 var(--disp); letter-spacing: 0.14em; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--dim); font: 600 13.5px/1 var(--body); transition: color 0.15s; }
.nav-links a:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: 700 15px/1 var(--body); letter-spacing: 0.01em;
  padding: 14px 24px; border-radius: var(--r-card); border: 0; cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s, background 0.15s;
}
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 6px 22px rgba(61,165,255,0.28); }
.btn-blue:hover { background: var(--blue-deep); transform: translateY(-1px); }
.btn-line { background: transparent; color: var(--ink); border: 1px solid var(--line-soft); }
.btn-line:hover { border-color: var(--dim); }
.btn-sm { padding: 10px 18px; font-size: 13.5px; border-radius: var(--r-chip); }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ── hero ───────────────────────────────────────────────────────────────── */
/* overflow:hidden is the BARRICADE: the oversized globe is clipped hard at the
   hero's edges, so nothing ever paints past the marquee line below. */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; align-items: center;
  padding: clamp(84px, 12vh, 130px) clamp(18px, 4vw, 40px) 40px;
}
.hero-copy {
  position: relative; z-index: 1; max-width: 560px;
  margin-left: clamp(0px, calc((100vw - 1240px) / 2), 999px);
}
.hero-bgglow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(52% 40% at 74% 44%, rgba(61,165,255,0.10), transparent 70%),
    radial-gradient(30% 26% at 18% 12%, rgba(139,108,255,0.07), transparent 70%),
    var(--bg);
}
.hero-kicker { font: 700 12.5px/1 var(--body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal); margin-top: 22px; }
/* logo chip stacked + centred ABOVE the CRAVEDIT name */
.hero-brand { display: flex; flex-direction: column; align-items: center; width: fit-content; gap: 14px; margin-bottom: 20px; }
.hero-brand img { width: 44px; height: 44px; filter: drop-shadow(0 0 14px rgba(61,165,255,0.5)); }
.hero-brand .word {
  font: 700 clamp(1.5rem, 3vw, 1.9rem)/1 var(--disp); letter-spacing: 0.22em; position: relative;
}
.hero h1 {
  font: 700 clamp(2rem, 4.4vw, 2.8rem)/1.1 var(--disp);
  letter-spacing: -0.01em; margin-bottom: 18px;
}
.hero h1 .alt { color: var(--blue); text-shadow: 0 0 34px rgba(61,165,255,0.45); }
.hero-sub { color: var(--dim); font-size: clamp(1rem, 1.4vw, 1.13rem); max-width: 500px; margin-bottom: 30px; }
.hero-sub b { color: var(--ink); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 38px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px;
  border: 1px solid var(--line); border-radius: var(--r-card); background: var(--panel);
  color: var(--dim); font: 600 13px/1.25 var(--body);
}
.store-badge b { display: block; color: var(--ink); font-size: 14.5px; }
.store-badge .g { width: 22px; height: 22px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px; }
.stat-chip {
  display: flex; flex-direction: column; gap: 3px;
  padding: 12px 18px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--r-card);
}
.stat-chip b { font: 700 1.35rem/1 var(--disp); }
.stat-chip b em { font-style: normal; }
.stat-chip span { font: 700 10px/1 var(--body); letter-spacing: 0.12em; color: var(--dim); text-transform: uppercase; }
/* The globe: a big planet behind the right side, fading out toward the copy
   on the left; clipped by the hero's overflow (top, right and the marquee
   line below). pointer-events off so it never blocks clicks. */
.hero-globe {
  position: absolute; z-index: 0; top: 50%; right: clamp(-300px, -13vw, -70px);
  transform: translateY(-46%); pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 4%, rgba(0,0,0,0.5) 26%, #000 52%);
  mask-image: linear-gradient(to right, transparent 4%, rgba(0,0,0,0.5) 26%, #000 52%);
}
.hero-globe img, .hero-globe canvas { width: min(78vw, 1120px); aspect-ratio: 1; height: auto; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  color: var(--dim); font-size: 22px; opacity: 0.8;
}
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue { animation: cue 2.2s ease-in-out infinite; }
  @keyframes cue { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }
  /* glitch jitter for the dual-colour CRAVEDIT wordmarks (nav + hero) */
  .nav-brand b::before, .hero-brand .word::before { animation: glitch-a 4s steps(2) infinite; }
  .nav-brand b::after, .hero-brand .word::after { animation: glitch-b 5.5s steps(2) infinite; }
  @keyframes glitch-a { 0%,92%,100% { transform: translateX(-2px); } 94% { transform: translateX(-4px); } 96% { transform: translateX(-1px); } }
  @keyframes glitch-b { 0%,92%,100% { transform: translateX(2px); } 94% { transform: translateX(4px); } 96% { transform: translateX(1px); } }
}
/* dual-colour "glitch" chromatic split on the CRAVEDIT wordmarks — nav + hero (like cravedit.com) */
.nav-brand b { position: relative; }
.nav-brand b::before, .nav-brand b::after,
.hero-brand .word::before, .hero-brand .word::after {
  content: attr(data-text); position: absolute; inset: 0;
  letter-spacing: inherit; pointer-events: none;
}
.nav-brand b::before, .hero-brand .word::before { color: var(--teal); transform: translateX(-2px); mix-blend-mode: screen; }
.nav-brand b::after, .hero-brand .word::after { color: var(--magenta); transform: translateX(2px); mix-blend-mode: screen; }

/* ── marquees ───────────────────────────────────────────────────────────── */
.marquee {
  position: relative;
  overflow: hidden; white-space: nowrap; user-select: none;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(61,165,255,0.06), rgba(139,108,255,0.06)); padding: 15px 0;
}
.marquee-track { display: inline-flex; align-items: center; will-change: transform; }
.marquee-track span {
  display: inline-flex; align-items: center;
  font: 700 1.05rem/1 var(--disp); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink);
}
.marquee-track i {
  width: 7px; height: 7px; margin: 0 26px; transform: rotate(45deg);
  background: var(--blue); box-shadow: 0 0 9px var(--blue);
}
.marquee--big { background: linear-gradient(90deg, rgba(61,165,255,0.07), rgba(224,71,158,0.07)); padding: 14px 0; }
.marquee--big .marquee-track { animation: none; } /* JS drives base + torch together (fx.js) so they stay aligned */
.marquee--big .marquee-track span {
  font-size: clamp(2.4rem, 9vw, 6rem); letter-spacing: 0.06em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(61,165,255,0.45);
}
.marquee--big .marquee-track span.fill { color: var(--panel-alt); -webkit-text-stroke: 0; }
.marquee--big .marquee-track i { width: 11px; height: 11px; margin: 0 38px; background: var(--magenta); box-shadow: 0 0 13px var(--magenta); }
/* Marquees run unconditionally — the brand moment must always move
   (owner call: many dev devices report reduced-motion via animator-scale). */
.marquee-track { animation: marq 28s linear infinite; }
.marquee--rev .marquee-track { animation-direction: reverse; }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── cursor torch: a BLUE copy of CRAVEDIT revealed only inside the cursor radius
   (mask centred on the pointer via --ex/--ey/--er, set by fx.js). Hover the mark
   and the letters under the cursor light up blue. ── */
.egg-torch {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  color: var(--blue); font: inherit; letter-spacing: inherit; text-transform: inherit;
  text-shadow: 0 0 14px rgba(61, 165, 255, 0.75);
  -webkit-mask: radial-gradient(circle var(--er, 60px) at var(--ex, -9999px) var(--ey, -9999px), #000 56%, transparent 76%);
          mask: radial-gradient(circle var(--er, 60px) at var(--ex, -9999px) var(--ey, -9999px), #000 56%, transparent 76%);
}
/* same torch on the moving CRAVEDIT marquee (cloned track, CSS-synced) */
.marquee-torch {
  position: absolute; inset: 0; box-sizing: border-box; padding: 14px 0; /* MUST match .marquee--big padding so the torch lines up on the base */
  overflow: hidden; pointer-events: none; z-index: 3; white-space: nowrap;
  -webkit-mask: radial-gradient(circle var(--er, 90px) at var(--ex, -9999px) var(--ey, -9999px), #000 56%, transparent 76%);
          mask: radial-gradient(circle var(--er, 90px) at var(--ex, -9999px) var(--ey, -9999px), #000 56%, transparent 76%);
}
.marquee--big .marquee-torch .marquee-track span {
  color: var(--blue); -webkit-text-stroke: 0; text-shadow: none;
  filter: drop-shadow(0 0 10px rgba(61, 165, 255, 0.7));
}

/* ── features grid ──────────────────────────────────────────────────────── */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feat {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sheet);
  padding: 26px 24px; transition: transform 0.18s ease, border-color 0.18s;
}
.feat:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--c, var(--blue)) 55%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.055), 0 18px 44px rgba(0,0,0,0.35),
              0 0 30px color-mix(in srgb, var(--c, var(--blue)) 18%, transparent);
}
.feat .ic { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 14px; }
.feat .ic img { width: 56px; height: 56px; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.55)); }
.feat h3 { font: 700 1.1rem/1.3 var(--disp); margin-bottom: 7px; }
.feat p { color: var(--dim); font-size: 0.94rem; }
.feat p b { color: var(--ink); font-weight: 600; }

/* ── how it works: playful phone mocks ─────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: clamp(54px, 9vw, 120px); max-width: 1000px; margin: 0 auto; }
/* alternating rows: text ⇄ phone, flipped every other step */
.step { display: flex; align-items: center; gap: clamp(28px, 6vw, 84px); text-align: left; }
.step:nth-child(even) { flex-direction: row-reverse; }
.step-text { flex: 1; max-width: 440px; }
.step-n {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; background: var(--panel-alt); border: 1px solid var(--line-soft);
  font: 700 1rem/1 var(--disp); color: var(--blue); margin-bottom: 18px;
}
.step h3 { font: 700 clamp(1.45rem, 2.6vw, 1.95rem)/1.2 var(--disp); margin-bottom: 10px; }
.step p { color: var(--dim); font-size: 1.02rem; line-height: 1.5; max-width: 400px; margin: 0; }
.phone {
  width: min(300px, 82vw); aspect-ratio: 9 / 17; flex: 0 0 auto; margin: 0; position: relative;
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: 30px;
  padding: 12px 11px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease;
}
.step:nth-child(odd) .phone { transform: rotate(-3deg); }
.step:nth-child(even) .phone { transform: rotate(3deg); }
.step .phone:hover { transform: rotate(0) translateY(-6px); }
.phone::before {  /* punch-hole camera */
  content: ""; position: absolute; top: 17px; left: 50%; transform: translateX(-50%);
  width: 8px; height: 8px; border-radius: 50%; background: var(--line);
}
.screen {
  width: 100%; height: 100%; border-radius: 20px; overflow: hidden; position: relative;
  background: linear-gradient(180deg, #131824, #0E1219);
}
.screen svg { width: 100%; height: 100%; display: block; }
.screen img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center top; }

/* ── VIP compare ────────────────────────────────────────────────────────── */
.vip-head { text-align: center; }
.vip-head .eyebrow .dot { background: var(--magenta); box-shadow: 0 0 9px var(--magenta); }
.vip-head .sect-sub { margin: 0 auto 46px; }
.vip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 900px; margin: 0 auto; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sheet); padding: 30px 28px; position: relative; }
.plan-tag { font: 700 12px/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.plan h3 { font: 700 1.7rem/1.15 var(--disp); margin: 10px 0 4px; }
.plan .plan-sub { color: var(--dim); font-size: 0.92rem; margin-bottom: 22px; }
.plan ul { list-style: none; display: grid; gap: 12px; }
.plan li { display: flex; gap: 11px; font-size: 0.95rem; color: var(--ink); }
.plan li svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; }
.plan li span b { font-weight: 700; }
.plan li .why { color: var(--dim); }
.plan--vip { border: 1px solid transparent;
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    linear-gradient(135deg, var(--violet), var(--magenta)) border-box;
  box-shadow: 0 0 44px rgba(139, 108, 255, 0.14);
}
.plan--vip .plan-tag { color: color-mix(in srgb, var(--magenta) 80%, white); }
.plan-note { text-align: center; color: var(--dim); font-size: 0.87rem; margin-top: 22px; }

/* ── footer ─────────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); background: var(--panel); padding: 52px 0 34px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; margin-bottom: 34px; }
.foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.foot-brand img { width: 26px; height: 26px; }
.foot-brand b { font: 700 15px/1 var(--disp); letter-spacing: 0.16em; }
footer p, footer a { color: var(--dim); font-size: 0.9rem; }
footer h4 { font: 700 11px/1 var(--body); letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.foot-links { display: grid; gap: 9px; }
.foot-links a:hover { color: var(--ink); }
.foot-fine { border-top: 1px solid var(--line); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; }
.foot-fine p { font-size: 0.8rem; }

/* ── responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero { flex-direction: column; justify-content: center; text-align: center; padding-top: 96px; }
  .hero-copy { margin-left: 0; }
  /* phones: a HUGE live globe fills the backdrop, cropped by the hero; the
     copy rides in front wearing layered dark shadows (outline-tight first,
     then wide falloff) so it stays readable over the spinning planet */
  .hero-globe { position: absolute; top: 50%; left: 50%; right: auto;
    transform: translate(-50%, -50%); margin: 0; opacity: 0.85;
    -webkit-mask-image: none; mask-image: none; }
  .hero-globe img, .hero-globe canvas { width: min(190vw, 118svh); }
  .hero-brand img { width: 44px; height: 44px; }
  .hero h1, .hero-brand .word {
    text-shadow: 0 0 3px rgba(0,0,0,0.95), 0 2px 12px rgba(0,0,0,0.9), 0 4px 34px rgba(0,0,0,0.8);
  }
  .hero-sub {
    color: #CBD4E0;
    text-shadow: 0 0 2px rgba(0,0,0,0.95), 0 1px 9px rgba(0,0,0,0.92), 0 2px 24px rgba(0,0,0,0.8);
  }
  .btn, .store-badge { box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5); }
  .hero-copy { position: relative; z-index: 1; }
  /* Strong readable OUTLINE over the busy globe: a tight dark stroke (close double
     halo + 4 corners) plus one soft drop for separation. */
  .hero h1, .hero-brand .word {
    text-shadow:
      0 0 2px #000, 0 0 4px #000,
      1.5px 1.5px 2px #000, -1.5px 1.5px 2px #000, 1.5px -1.5px 2px #000, -1.5px -1.5px 2px #000,
      0 3px 22px rgba(0,0,0,0.82);
  }
  /* the accent word needs the same dark outline — its glow alone reads poorly on the planet */
  .hero h1 .alt {
    text-shadow:
      0 0 2px #000, 0 0 4px #000,
      1.5px 1.5px 2px #000, -1.5px 1.5px 2px #000, 1.5px -1.5px 2px #000, -1.5px -1.5px 2px #000,
      0 0 20px rgba(61,165,255,0.4);
  }
  .hero-sub {
    color: #DDE4EE;
    text-shadow:
      0 0 2px #000, 1px 1px 2px #000, -1px 1px 2px #000, 1px -1px 2px #000, -1px -1px 2px #000,
      0 2px 16px rgba(0,0,0,0.85);
  }
  /* logo stacked ABOVE the CRAVEDIT name, centred on phones */
  .hero-brand { flex-direction: column; align-items: center; gap: 10px; margin-inline: auto; }
  .hero-kicker { margin-inline: auto; text-shadow: 0 0 2px #000, 0 1px 8px rgba(0,0,0,0.9); }
  .hero-brand .logo-chip { width: 102px; height: 102px; }
  .hero-brand .logo-chip img { width: 144px; height: 144px; }
  .hero-brand, .hero-cta, .hero-stats { justify-content: center; }
  .hero-sub { margin-inline: auto; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 46px; }
  .vip-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav .btn-discord { margin-left: auto; }   /* keep Discord pinned right without the links row */
}
@media (max-width: 560px) { .feat-grid { grid-template-columns: 1fr; } }

/* ── Discord-branded buttons/links (official blurple #5865F2) ──────────── */
.btn-discord { background: #5865F2; color: #fff; box-shadow: 0 6px 22px rgba(88, 101, 242, 0.3); }
.btn-discord:hover { background: #4752C4; transform: translateY(-1px); }
.btn-discord svg { width: 19px; height: 19px; }
.discord-link { display: inline-flex; align-items: center; gap: 7px; color: #949CF7; }
.discord-link svg { width: 16px; height: 16px; }
.discord-link:hover { color: #B6BDFA; }
.hero-cta { flex-direction: column; align-items: flex-start; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 960px) { .hero-cta { align-items: center; } .store-row { justify-content: center; } }

/* ── underground pass ───────────────────────────────────────────────────── */
/* raw section tags replace the pill eyebrows */
/* Inter for small caps (display faces hint poorly this size) + colours cut
   with 18% white — pure-chroma tiny text fringes on RGB subpixels and reads
   as "pixelated" on 1x screens. */
.tag { font: 700 13px/1 var(--body); letter-spacing: 0.17em; text-transform: uppercase; color: color-mix(in srgb, var(--blue) 82%, white); }
.tag-vip { color: color-mix(in srgb, var(--magenta) 82%, white); }
/* bigger, louder section heads */
h2.sect { text-transform: uppercase; font-size: clamp(2rem, 5.6vw, 3.4rem); letter-spacing: -0.01em; }
.sect-sub { font-size: 1.05rem; }

/* ── live counter band ──────────────────────────────────────────────────── */
.stats-band { border-bottom: 1px solid var(--line); background: var(--bg); padding: clamp(36px, 6vw, 64px) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-big { display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; padding: 6px 10px; }
.stat-big + .stat-big { border-left: 1px solid var(--line); }
.stat-big b { font: 700 clamp(2rem, 4.6vw, 3.4rem)/1 var(--disp); }
.stat-big span { font: 700 11px/1 var(--body); letter-spacing: 0.16em; color: var(--dim); text-transform: uppercase; }
/* icon squares (ported from the original site) */
.stat-big .stat-ico { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; margin-bottom: 8px; }
.stat-big .stat-ico svg { width: 27px; height: 27px; }
.stat-big .stat-ico.blue { color: var(--blue); background: rgba(61,165,255,0.12); box-shadow: inset 0 0 22px rgba(61,165,255,0.22); }
.stat-big .stat-ico.teal { color: var(--teal); background: rgba(47,227,198,0.12); box-shadow: inset 0 0 22px rgba(47,227,198,0.22); }
.stat-big .stat-ico.violet { color: var(--violet); background: rgba(139,108,255,0.12); box-shadow: inset 0 0 22px rgba(139,108,255,0.22); }
.stat-big .stat-ico.lime { color: var(--lime); background: rgba(200,255,61,0.12); box-shadow: inset 0 0 22px rgba(200,255,61,0.22); }
@media (max-width: 720px) {
  .stats-grid { grid-template-columns: 1fr 1fr; row-gap: 26px; }
  .stat-big:nth-child(3) { border-left: 0; }
}

/* features: punchier titles, one-line subs */
.feat h3 { text-transform: uppercase; font-size: 1.22rem; letter-spacing: 0.02em; }
.feat p { font-size: 0.98rem; }

/* ── top cravers board ──────────────────────────────────────────────────── */
.lb { border: 1px solid var(--line); border-radius: var(--r-sheet); background: var(--panel); overflow: hidden; max-width: 640px; }
.lb-row { display: flex; align-items: center; gap: 16px; padding: 15px 20px; }
.lb-row + .lb-row { border-top: 1px solid var(--line); }
.lb-row .pos { font: 700 1.05rem/1 var(--disp); color: var(--dim); width: 26px; }
.lb-row .hex { width: 30px; height: 34px; flex: 0 0 auto; }
.lb-row .who { font: 700 1.02rem/1.2 var(--disp); letter-spacing: 0.02em; }
.lb-row .pts { margin-left: auto; font: 700 1.02rem/1 var(--disp); font-variant-numeric: tabular-nums; }
.lb-row .pts small { color: var(--dim); font: 700 10px/1 var(--body); letter-spacing: 0.1em; margin-left: 5px; }
.lb-row.first { background: linear-gradient(90deg, rgba(61,165,255,0.10), transparent 60%); }
.lb-row.first .who { background: linear-gradient(90deg, var(--blue), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lb-note { color: var(--dim); font-size: 0.85rem; margin-top: 14px; }
.lb-empty { padding: 22px; color: var(--dim); }
/* leaderboard tabs (Monthly / Local) + the Local download CTA */
.lb-tabs { display: flex; width: fit-content; gap: 4px; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; margin: 0 auto 22px; }
.lb, .lb-cta { margin-left: auto; margin-right: auto; }
.lb-note { text-align: center; }
.lb-tab { padding: 9px 22px; border: 0; background: transparent; color: var(--dim); font: 700 0.9rem/1 var(--body); border-radius: 999px; cursor: pointer; transition: color .15s, background .15s; }
.lb-tab:hover { color: var(--ink); }
.lb-tab.is-active { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(61,165,255,0.28); }
.lb-cta { text-align: center; max-width: 640px; padding: clamp(30px, 5vw, 52px) clamp(20px, 4vw, 40px);
  border: 1px solid var(--line); border-radius: var(--r-sheet);
  background: linear-gradient(180deg, var(--panel), rgba(22, 26, 34, 0.55)); }
.lb-cta h3 { font: 700 clamp(1.4rem, 3vw, 1.9rem)/1.2 var(--disp); margin-bottom: 10px; }
.lb-cta p { color: var(--dim); max-width: 430px; margin: 0 auto 24px; }
.lb-cta .store-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 13px; }
/* final "try it yourself" CTA */
#try { text-align: center; }
#try .sect-sub { margin-left: auto; margin-right: auto; }
.try-cta .store-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 13px; }

/* scroll reveal (gated by reduced-motion) */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .reveal.on { opacity: 1; transform: none; }
}

/* ── pointer FX layer ───────────────────────────────────────────────────── */
/* soft blue light that trails the cursor (desktop only; fx.js drives it) */
#cursor-glow {
  position: fixed; top: 0; left: 0; width: 150px; height: 150px; z-index: 45;
  pointer-events: none; will-change: transform;
  /* no mix-blend-mode: it forces a re-composite with the animated backdrop every move,
     which is what made the glow trail. A plain GPU-composited layer tracks instantly. */
  background: radial-gradient(circle, rgba(61,165,255,0.10), rgba(61,165,255,0.035) 42%, transparent 70%);
}
@media (pointer: coarse) { #cursor-glow { display: none; } }
/* drifting motes behind all content (fx.js paints; z:-1 sits above the page
   background but under every section, card and panel) */
#bg-fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
/* buttons/badges get a transform transition so the magnetic pull is smooth */
.btn, .store-badge { transition: transform 0.18s ease, box-shadow 0.2s, background 0.15s; }

/* ── heavyweight pass: poster type, glass panels, blueprint backdrop ────── */
:root { --black: "Archivo Black", "Space Grotesk", system-ui, sans-serif; }
/* the truly bold display voice (Space Grotesk caps at 700 — this doesn't) */
.hero h1 { font-family: var(--black); font-weight: 400; letter-spacing: 0; line-height: 1.04; }
h2.sect { font-family: var(--black); font-weight: 400; letter-spacing: 0.005em; }
.hero-brand .word { font-family: var(--black); font-weight: 400; letter-spacing: 0.13em; font-size: clamp(2.5rem, 6.2vw, 4.2rem); line-height: 1; }
.nav-brand b { font-family: var(--black); font-weight: 400; letter-spacing: 0.15em; font-size: 19px; }
.marquee--big .marquee-track span { font-family: var(--black); font-weight: 400; -webkit-text-stroke-width: 1.2px; }
.stat-big b { font-family: var(--black); font-weight: 400; font-size: clamp(1.9rem, 4.2vw, 3.1rem); }

/* the logo gets a solid chip (outline + dark fill) so it reads over the globe.
   Small padding so the LOGO itself is big — the chip just hugs it. */
/* dark disc with an OUTER + INNER (inset) glow, but NO hard border line */
.hero-brand .logo-chip {
  width: 118px; height: 118px; border-radius: 50%; flex: 0 0 auto; position: relative;
  background: radial-gradient(circle at 50% 40%, #151c28, #0a0d13);
  box-shadow: 0 0 24px rgba(61, 165, 255, 0.45), 0 0 60px rgba(61, 165, 255, 0.20),
              inset 0 0 24px rgba(61, 165, 255, 0.30);
}
/* logo sized larger than the chip (its PNG has a 12% margin) and absolutely centred
   ON TOP of the chip — no overflow clip, so nothing is cut off; chip/glow unchanged */
.hero-brand .logo-chip img {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 168px; height: 168px; max-width: none; padding: 0; z-index: 1;
  filter: drop-shadow(0 0 12px rgba(61,165,255,0.45));
}
.nav-brand img { width: 38px; height: 38px; }

/* section headers: one consistent, centered rhythm everywhere */
section .wrap > .tag, section .wrap > h2.sect, section .wrap > .sect-sub {
  display: block; text-align: center; margin-left: auto; margin-right: auto;
}
.lb { margin: 0 auto; }
.lb-note { text-align: center; }

/* futuristic glass panels replace flat fills: translucency + blur + a top
   light edge + corner brackets, over the motes/grid behind them */
.feat, .plan, .lb, .phone {
  background: linear-gradient(165deg, rgba(31, 38, 48, 0.52), rgba(15, 18, 24, 0.38));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(61, 165, 255, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 18px 44px rgba(0, 0, 0, 0.35);
  position: relative;
}
.plan--vip {
  background:
    linear-gradient(165deg, rgba(15, 18, 25, 0.92), rgba(10, 12, 17, 0.85)) padding-box,
    linear-gradient(135deg, var(--violet), var(--magenta)) border-box;
  border: 1px solid transparent;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 28px rgba(139, 108, 255, 0.09);
}
/* corner brackets — the HUD tick marks */
.feat::after, .plan::after {
  content: ""; position: absolute; inset: 8px; pointer-events: none;
  background:
    linear-gradient(var(--blue), var(--blue)) top left / 14px 1.5px,
    linear-gradient(var(--blue), var(--blue)) top left / 1.5px 14px,
    linear-gradient(var(--blue), var(--blue)) bottom right / 14px 1.5px,
    linear-gradient(var(--blue), var(--blue)) bottom right / 1.5px 14px;
  background-repeat: no-repeat; opacity: 0.28;
}
.plan--vip::after {
  background:
    linear-gradient(var(--magenta), var(--magenta)) top left / 14px 1.5px,
    linear-gradient(var(--magenta), var(--magenta)) top left / 1.5px 14px,
    linear-gradient(var(--magenta), var(--magenta)) bottom right / 14px 1.5px,
    linear-gradient(var(--magenta), var(--magenta)) bottom right / 1.5px 14px;
  background-repeat: no-repeat; opacity: 0.4;
}

/* blueprint grid behind everything (under the motes canvas) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(61, 165, 255, 0.033) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(90deg, rgba(61, 165, 255, 0.033) 0 1px, transparent 1px 72px);
  mask-image: radial-gradient(120% 90% at 50% 30%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 30%, #000 30%, transparent 100%);
}

/* ── mobile fixes ───────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero { min-height: 100svh; padding-top: clamp(64px, 10svh, 96px); padding-bottom: clamp(24px, 5svh, 48px); }
  /* fluid on BOTH axes: vw scales with width, svh keeps short screens tight */
  .hero-brand { margin-bottom: clamp(8px, 2.2svh, 20px); }
  .hero-brand .word { font-size: min(clamp(1.9rem, 9.2vw, 3rem), 6svh); }
  .hero h1 { font-size: clamp(1.35rem, 6.2vw, 2.1rem); margin-bottom: clamp(8px, 1.8svh, 18px); }
  .hero-sub { font-size: clamp(0.88rem, 3.9vw, 1.05rem); margin-bottom: clamp(14px, 3svh, 28px); }
  .hero-cta { gap: clamp(8px, 1.6svh, 13px); }
  .btn { padding: clamp(11px, 1.8svh, 14px) clamp(18px, 5vw, 24px); font-size: clamp(13.5px, 3.6vw, 15px); }
  .store-badge { padding: clamp(8px, 1.6svh, 12px) clamp(13px, 3.6vw, 20px); font-size: clamp(11px, 3vw, 13px); }
  .store-badge b { font-size: clamp(12.5px, 3.4vw, 14.5px); }
  .store-badge .g { width: clamp(17px, 4.6vw, 22px); height: clamp(17px, 4.6vw, 22px); }
  .scroll-cue { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-big:nth-child(odd) { border-left: 0; }
  .stat-big { padding: 10px 6px; }
  h2.sect { font-size: clamp(1.6rem, 7.2vw, 2.2rem); }
  .lb-row { padding: 13px 14px; gap: 11px; }
  .lb-row .who { font-size: 0.92rem; }
  .steps .phone { width: min(340px, 84vw); }
  .foot-grid { gap: 22px; }
}


/* ── small phones (iPhone SE class): the hero holds ONE clean screen ────── */
/* narrow OR short phones: trim the long sentence so one screen stays clean */
@media (max-width: 430px), (max-height: 720px) and (max-width: 960px) {
  .hero-sub .xtra { display: none; }
}

.plan-emblem { position: absolute; top: 20px; right: 22px; width: 64px; height: 64px; opacity: 0.9;
  filter: drop-shadow(0 0 18px rgba(224, 71, 158, 0.4)); }
/* desktop gets a gradient "Anywhere." (mobile keeps solid + shadows for the globe) */
@media (min-width: 961px) {
  .hero h1 .alt {
    background: linear-gradient(100deg, var(--blue), var(--teal) 55%, var(--violet));
    -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none;
  }
}

/* ── mobile overrides (placed last so they win) ───────────────────────────── */
/* How it works: stack the text over a STRAIGHT (untilted) phone on phones. */
@media (max-width: 760px) {
  .step, .step:nth-child(even) { flex-direction: column; text-align: center; gap: 26px; }
  .step-text { max-width: 100%; }
  .step p { margin-inline: auto; }
  .step:nth-child(odd) .phone, .step:nth-child(even) .phone { transform: none; }
}
/* Features: compact icon-left / text-right rows so they don't hog the scroll. */
@media (max-width: 560px) {
  .feat-grid { grid-template-columns: 1fr; gap: 10px; }
  .feat {
    display: grid; grid-template-columns: auto 1fr;
    grid-template-areas: "ic title" "ic desc";
    column-gap: 14px; row-gap: 2px; align-items: center; text-align: left; padding: 14px 16px;
  }
  .feat .ic { grid-area: ic; width: 42px; height: 42px; margin-bottom: 0; }
  .feat .ic img { width: 42px; height: 42px; }
  .feat h3 { grid-area: title; font-size: 1.02rem; margin-bottom: 0; }
  .feat p { grid-area: desc; font-size: 0.9rem; }
}

/* How it works — desktop polish: per-step accent, glowing number chip, underline. */
@media (min-width: 761px) {
  .step:nth-child(1) { --sc: #3DA5FF; }
  .step:nth-child(2) { --sc: #2FE3C6; }
  .step:nth-child(3) { --sc: #8B6CFF; }
  /* fill the dead space: bigger phone, wider copy, tighter rows, ghost numeral */
  .steps { counter-reset: step; gap: clamp(36px, 5vw, 68px); max-width: 1060px; }
  .step { gap: clamp(36px, 6vw, 96px); }
  .step .phone { width: min(360px, 33vw); }
  .step-text { max-width: 500px; position: relative; }
  .step-text::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    position: absolute; z-index: -1; pointer-events: none;
    top: -0.62em; left: -0.06em; line-height: 0.78;
    font-family: var(--black); font-weight: 400; font-size: clamp(9rem, 15vw, 15rem);
    letter-spacing: -0.04em; color: color-mix(in srgb, var(--sc) 20%, transparent);
  }
  .step-n { display: none; } /* the big ghost numeral is the step marker now */
  .step h3 { font-size: 2.05rem; letter-spacing: -0.01em; }
  .step h3::after {
    content: ""; display: block; width: 46px; height: 3px; margin-top: 16px; border-radius: 2px;
    background: linear-gradient(90deg, var(--sc), transparent);
  }
  .step p { font-size: 1.06rem; line-height: 1.55; color: #A7B1C1; margin-top: 16px; }
}

/* ── vibrant section headings (gradient-filled h2.sect) ───────────────────── */
h2.sect {
  background: linear-gradient(100deg, #EAF2FF 0%, #5FB0FF 52%, #A78BFF 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ── legal pages (privacy / terms) ──────────────────────────────────────── */
.legal { max-width: 820px; margin: 0 auto; padding: clamp(96px, 13vh, 140px) clamp(18px, 5vw, 40px) clamp(60px, 10vw, 100px); }
.legal h1 { font: 400 clamp(2rem, 6vw, 3.2rem)/1.05 var(--black); margin-bottom: 8px; }
.legal .updated { color: var(--dim); font-size: 0.9rem; margin-bottom: 30px; }
.legal h2 { font: 700 clamp(1.2rem, 3.5vw, 1.55rem)/1.2 var(--disp); color: var(--blue); margin: 40px 0 12px; }
.legal h3 { font: 700 1.05rem/1.35 var(--body); color: var(--ink); margin: 22px 0 6px; }
.legal p { color: #C3CCD9; margin-bottom: 14px; }
.legal ul { color: #C3CCD9; margin: 0 0 14px 1.2rem; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--blue); text-decoration: underline; }
