/* ─────────────────────────────────────────────────────────
   VibeClimb — marketing site
   The page IS the game: a winding neon line climbs the whole
   document, content flips sides like the player does, and the
   record-gold moment powers the CTA. Zero external requests.
   ───────────────────────────────────────────────────────── */
:root {
  --bg: #0b0e14;
  --panel: #11161f;
  --line: #232d3f;
  --txt: #e8edf5;
  --dim: #8b97ab;
  --neon: #7cffb2;
  --hot: #ff5470;
  --gold: #ffd166;
  --gold-deep: #b98a2e;

  --radius: 22px;
  --maxw: 1080px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--mono);
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(120,150,200,.32) 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 9%,  rgba(120,150,200,.25) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 55% 42%, rgba(120,150,200,.22) 50%, transparent 51%),
    radial-gradient(1px 1px at 30% 70%, rgba(120,150,200,.28) 50%, transparent 51%),
    radial-gradient(2px 2px at 90% 60%, rgba(120,150,200,.18) 50%, transparent 51%),
    radial-gradient(1px 1px at 65% 88%, rgba(120,150,200,.25) 50%, transparent 51%),
    var(--bg);
  color: var(--txt);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* faint CRT scanlines — arcade, not SaaS */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg, transparent 0 3px, rgba(0, 0, 0, 0.14) 3px 4px);
  z-index: 90;
}

a { color: var(--gold); text-decoration: none; }
img { max-width: 100%; display: block; }

/* ───────── The climb line (built by script.js) ───────── */
#climbLine {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}
#climbLine path { filter: drop-shadow(0 0 9px rgba(124, 255, 178, 0.55)); }
#climbLine .rider { filter: drop-shadow(0 0 10px rgba(255, 209, 102, 0.8)); }

.page { position: relative; }
.page > * { position: relative; z-index: 1; }

/* faint coding symbols drifting like stars (populated by script.js) */
.code-sky {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0 !important;
  overflow: hidden;
}
.code-sky span {
  position: absolute;
  color: #afc6e9;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(175, 198, 233, 0.8);
  animation: codeDrift ease-in-out infinite alternate;
}
@keyframes codeDrift {
  from { transform: translateY(0); }
  to { transform: translateY(-22px); }
}

/* ───────── Header ───────── */
.site-header {
  position: sticky; top: 0; z-index: 95;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(11, 14, 20, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand__name { font-weight: 800; font-size: 1.1rem; letter-spacing: 3px; color: var(--txt); }
.brand__name em { font-style: normal; color: var(--gold); text-shadow: 0 0 16px rgba(255, 209, 102, .6); }

.nav__menu { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav__menu a { color: var(--dim); font-size: .82rem; letter-spacing: 1px; text-transform: uppercase; }
.nav__menu a:hover { color: var(--txt); }
.nav__cta {
  color: #241a02 !important;
  background: linear-gradient(180deg, var(--gold), #e5b44d);
  padding: 9px 18px; border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 4px 18px rgba(255, 209, 102, 0.35);
}
.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav__toggle span { width: 24px; height: 3px; background: var(--txt); border-radius: 3px; }

/* ───────── Hero ───────── */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(40px, 7vw, 84px) clamp(16px, 4vw, 40px);
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 5vw, 60px); align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel);
  color: var(--neon);
  font-size: .72rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  padding: 7px 16px; margin-bottom: 20px;
}
.pill::before { content: "▲"; font-size: .6rem; }

.hero__title {
  font-size: clamp(1.9rem, 4.8vw, 3rem);
  font-weight: 800; line-height: 1.04; letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero__title .g { color: var(--gold); text-shadow: 0 0 26px rgba(255, 209, 102, .5); }
.hero__title .n { color: var(--neon); text-shadow: 0 0 26px rgba(124, 255, 178, .5); }

.hero__tagline { color: var(--dim); max-width: 40ch; margin-bottom: 28px; font-size: 1rem; }
.hero__tagline strong { color: var(--txt); }

.hero__note { margin-top: 16px; color: var(--dim); font-size: .78rem; letter-spacing: 2px; text-transform: uppercase; }

/* HUD-style stat strip under the hero copy */
.hud-strip { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hud-chip {
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
  padding: 10px 14px; text-align: center; min-width: 86px;
}
.hud-chip b { display: block; font-size: 1.15rem; color: var(--gold); }
.hud-chip span { font-size: .62rem; letter-spacing: 2px; color: var(--dim); text-transform: uppercase; }

/* ───────── Device mockup with LIVE CSS game preview ───────── */
.hero__device { display: flex; justify-content: center; }
.device {
  width: min(290px, 76vw);
  padding: 12px;
  background: #05070b;
  border: 1px solid var(--line);
  border-radius: 44px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 60px rgba(124, 255, 178, 0.09);
  position: relative;
}
.device::before {
  content: ""; position: absolute; top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 34%; height: 7px; background: #000; border-radius: 999px; z-index: 3;
}
.screen {
  position: relative; overflow: hidden;
  border-radius: 33px;
  aspect-ratio: 9 / 19;
  background: linear-gradient(180deg, #0d1119, var(--bg));
}
/* the live game demo: a JS canvas running a faithful port of the app's
   engine + painter (game-demo.js) */
#gameDemo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}

/* the game's HUD, scaled to the mockup */
.screen__dist {
  position: absolute; top: 56px; right: 12px; z-index: 2;
  font-size: 9px; color: var(--dim); line-height: 1.5;
  text-align: right;
}
.screen__tok { color: var(--gold); font-size: 8px; }
.screen__btns {
  position: absolute; top: 20px; left: 12px; z-index: 2;
  display: flex; gap: 5px;
}
.screen__btns i {
  width: 21px; height: 21px;
  display: grid; place-items: center;
  font-style: normal; font-size: 10px;
  background: rgba(18, 23, 34, 0.8);
  border: 1px solid var(--line); border-radius: 5px;
}
.screen__score {
  position: absolute; top: 20px; right: 12px; z-index: 2;
  text-align: right;
  font-weight: 800; font-size: 1rem;
  text-shadow: 0 0 10px rgba(217, 119, 87, 0.4);
  transition: color .3s;
}
.screen__score.gold {
  color: var(--gold);
  text-shadow: 0 0 16px rgba(255, 209, 102, 0.55);
}
.screen__record {
  position: absolute; top: 44px; right: 12px;
  width: 30%; height: 4px; border-radius: 999px;
  background: rgba(26, 33, 48, 0.8); border: 1px solid var(--line); overflow: hidden;
  z-index: 2;
}
.screen__record i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #d97757, var(--gold));
  width: 0; transition: width .2s;
}
.screen__record.full i {
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}
.screen__power {
  position: absolute; bottom: 14px; left: 0; right: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.screen__power b { font-size: 8px; color: var(--dim); letter-spacing: 2px; }
.screen__power b.hot {
  color: var(--gold);
  text-shadow: 0 0 8px var(--gold);
  animation: blink .35s infinite alternate;
}
.screen__power span {
  width: 38%; height: 5px; border-radius: 999px;
  background: rgba(26, 33, 48, 0.8); border: 1px solid var(--line); overflow: hidden;
}
.screen__power i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #66ccff, var(--neon), var(--gold));
  width: 0; transition: width .15s;
}

/* ───────── Marquee ticker of the roster ───────── */
.ticker {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden; white-space: nowrap;
  padding: 12px 0;
}
.ticker__track { display: inline-block; animation: tick 30s linear infinite; }
.ticker span {
  font-size: .8rem; font-weight: 800; letter-spacing: 3px; text-transform: uppercase;
  margin: 0 18px; color: var(--chip, var(--dim));
}
.ticker i { color: var(--line); font-style: normal; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ───────── Sections ───────── */
.section {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(52px, 8vw, 96px) clamp(16px, 4vw, 40px);
}
.section__kicker {
  color: var(--neon); font-size: .7rem; font-weight: 800;
  letter-spacing: 4px; text-transform: uppercase;
  text-align: center; display: block; margin-bottom: 10px;
}
.section__title {
  font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800;
  letter-spacing: 1px; text-align: center; text-transform: uppercase;
}
.section__lead { text-align: center; color: var(--dim); margin: 10px auto 44px; max-width: 52ch; font-size: .95rem; }

/* zigzag feature rows: content flips sides of the climb line */
.flip { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: clamp(26px, 4vw, 44px); }
.flip__card {
  grid-column: 1; justify-self: end;
  width: min(430px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  position: relative;
  transition: transform .18s, border-color .18s;
}
.flip--r .flip__card { grid-column: 2; justify-self: start; }
.flip__card:hover { transform: translateY(-4px); border-color: var(--neon); }
/* tether to the line, like rivals perch beside it */
.flip__card::after {
  content: ""; position: absolute; top: 50%;
  width: clamp(20px, 4vw, 56px); height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 84, 112, 0.55));
}
.flip:not(.flip--r) .flip__card::after { left: 100%; }
.flip--r .flip__card::after { right: 100%; transform: scaleX(-1); }

.flip__icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  font-size: 1.5rem; border-radius: 14px;
  background: rgba(124, 255, 178, 0.08);
  border: 1px solid var(--line);
  margin-bottom: 14px;
}
.flip__card h3 { font-size: 1.05rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
.flip__card p { color: var(--dim); font-size: .9rem; }

/* ───────── How to play — HUD cards ───────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 20px 26px; text-align: center; position: relative; overflow: hidden;
}
.step::before {
  content: attr(data-n);
  position: absolute; top: -18px; right: 2px;
  font-size: 6rem; font-weight: 800; line-height: 1;
  color: rgba(124, 255, 178, 0.07);
}
.step .emoji { font-size: 2rem; display: block; margin-bottom: 12px; }
.step p { color: var(--dim); font-size: .88rem; }
.step b { color: var(--txt); display: block; margin-bottom: 6px; letter-spacing: 1px; text-transform: uppercase; font-size: .92rem; }

/* ───────── Roster ───────── */
.roster { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; max-width: 820px; margin: 0 auto; }
.model { text-align: center; width: 86px; }
/* real in-game badges: same discs, same CC0 glyphs, same gloss as the app */
.model__badge {
  width: 62px; height: 62px; margin: 0 auto 8px; display: block;
  border-radius: 50%;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45));
  transition: transform .16s;
}
.model:hover .model__badge { transform: scale(1.12) rotate(8deg); }
.model span { font-size: .72rem; color: var(--dim); letter-spacing: 1px; }

/* ───────── Record CTA — the gold moment ───────── */
.cta {
  text-align: center;
  padding: clamp(60px, 9vw, 110px) clamp(16px, 4vw, 40px);
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(255, 209, 102, 0.16), transparent 70%),
    linear-gradient(180deg, #141008, #0b0e14 80%);
  border-top: 1px solid var(--gold-deep);
  border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.cta .confetti { position: absolute; width: 7px; height: 7px; border-radius: 2px; top: -12px; animation: confetti 5s linear infinite; }
@keyframes confetti { to { transform: translateY(120vh) rotate(720deg); } }
.cta__label {
  color: var(--gold); font-size: .72rem; font-weight: 800;
  letter-spacing: 5px; text-transform: uppercase;
  text-shadow: 0 0 16px rgba(255, 209, 102, 0.7);
  animation: blink 1s ease-in-out infinite alternate;
}
@keyframes blink { to { opacity: .45; } }
.cta__score {
  font-size: clamp(3.2rem, 10vw, 5.4rem); font-weight: 800;
  color: var(--gold); line-height: 1.1;
  text-shadow: 0 0 34px rgba(255, 209, 102, 0.45);
  margin: 8px 0 4px;
}
.cta h2 { font-size: clamp(1.3rem, 3.4vw, 1.8rem); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
.cta p { color: var(--dim); max-width: 46ch; margin: 0 auto 30px; font-size: .95rem; }

/* store badges */
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 20px; border-radius: 14px;
  background: #05070b; border: 1px solid var(--line);
  color: var(--txt); min-width: 180px;
  transition: transform .15s, border-color .15s;
}
.badge:hover { transform: translateY(-2px); border-color: var(--gold); }
.badge__logo { font-size: 1.3rem; }
.badge__text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.badge__text small { font-size: .62rem; color: var(--dim); }
.badge__text strong { font-size: 1.02rem; font-weight: 800; }
.badge--soon { opacity: .8; cursor: default; position: relative; }
.badge--soon:hover { transform: none; border-color: var(--line); }
.badge--soon::after {
  content: "Android in progress";
  position: absolute; top: -10px; right: -8px;
  background: var(--gold); color: #241a02;
  font-size: .56rem; font-weight: 900;
  padding: 3px 8px; border-radius: 999px; white-space: nowrap;
}

/* ───────── Privacy band ───────── */
.section--privacy { max-width: none; background: var(--panel); border-top: 1px solid var(--line); }
.section--privacy > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.privacy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.privacy-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px 18px;
}
.privacy-card strong { color: var(--neon); display: block; margin-bottom: 4px; font-size: .95rem; letter-spacing: 1px; }
.privacy-card span { color: var(--dim); font-size: .85rem; }
.privacy-link { text-align: center; margin-top: 30px; }

/* ───────── Footer ───────── */
.site-footer {
  background: #05070b; border-top: 1px solid var(--line);
  text-align: center; padding: 40px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.site-footer__brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 2px; }
.site-footer__brand img { width: 28px; border-radius: 7px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; }
.site-footer__links a { color: var(--dim); font-size: .82rem; }
.site-footer__links a:hover { color: var(--gold); }
.site-footer__legal { color: var(--dim); font-size: .68rem; max-width: 640px; opacity: .8; }
.site-footer__copy { font-size: .72rem; color: var(--dim); opacity: .7; }

/* ───────── Legal page ───────── */
.legal { max-width: 760px; margin: 0 auto; padding: 48px 20px 80px; position: relative; z-index: 1; }
.legal h1 { font-size: 1.9rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 6px; }
.legal .updated { color: var(--dim); font-size: .78rem; margin-bottom: 26px; }
.legal h2 { font-size: 1.02rem; margin: 30px 0 8px; letter-spacing: 1px; text-transform: uppercase; }
.legal p { color: var(--dim); font-size: .9rem; margin-bottom: 12px; }
.legal strong { color: var(--txt); }
.callout {
  border: 1px solid var(--gold); border-radius: 14px;
  background: rgba(255, 209, 102, 0.07);
  padding: 18px 20px; margin-bottom: 30px;
  color: var(--txt); font-size: .92rem;
}
.back-home { display: inline-block; color: var(--neon); font-size: .82rem; margin-bottom: 26px; }

/* ───────── Responsive ───────── */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero__device { order: -1; }
  .hero__tagline, .hud-strip { margin-left: auto; margin-right: auto; }
  .hud-strip { justify-content: center; }
  .store-badges { justify-content: center; }

  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute; top: 60px; right: 12px;
    flex-direction: column; align-items: flex-start; gap: 10px;
    background: var(--panel); border: 1px solid var(--line);
    padding: 16px 20px; border-radius: 14px;
    display: none; min-width: 200px; z-index: 96;
  }
  .nav__menu.open { display: flex; }

  /* the line hugs the left edge; cards go full width */
  .flip, .flip--r { grid-template-columns: 1fr; }
  .flip__card, .flip--r .flip__card { grid-column: 1; justify-self: stretch; width: 100%; }
  .flip__card::after, .flip--r .flip__card::after { display: none; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
