/* VEXIUM — landing page.
 *
 * Only index.html uses this file. The legal pages (/privacy, /terms, /auth) keep style.css, so this
 * redesign cannot change a page someone may be relying on for its exact wording and layout.
 *
 * NO JAVASCRIPT, BY POLICY. web/_headers serves "/" with `default-src 'none'` and no script-src at
 * all: the reviewer console shares this origin, and a public page that runs no script is one an
 * attacker cannot use to reach a logged-in reviewer. Every motion here is CSS — keyframes on load,
 * and scroll-driven reveals (animation-timeline: view()) behind @supports, so a browser without them
 * simply shows the content, fully visible, with no motion.
 *
 * Fonts are self-hosted for the same reason (font-src 'self'): Exo 2, the app's own typeface, for
 * everything set in the brand voice; the platform serif for the one italic accent word per heading;
 * the platform mono for eyebrows and labels.
 */

@font-face {
  font-family: 'Exo 2';
  src: url('/fonts/exo2.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #000;
  --ink: #f3f6ec;
  --ink-2: #aab19f;
  --ink-3: #6d7465;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.035);
  --neon: #c8ff00;
  --neon-soft: rgba(200, 255, 0, 0.14);
  --cyan: #3ef2d0;
  --gold: #ffc64b;

  --display: 'Exo 2', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: ui-serif, 'New York', Georgia, Cambria, 'Times New Roman', serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --wrap: 1180px;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--display);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--neon); color: #000; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
/* the glows are wider than a phone; clip them so mobile browsers don't zoom the page out */
main, footer { overflow-x: hidden; overflow-x: clip; }

/* ── atmosphere ─────────────────────────────────────────────────────────────
   A neon glow high on the page and a faint grid that fades out from the centre. Both are fixed and
   sit behind everything, so the black never reads as flat. */
.atmos { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.atmos::before {
  content: ''; position: absolute; width: 1100px; height: 1100px; left: 50%; top: -620px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(200, 255, 0, 0.16), rgba(62, 242, 208, 0.05) 55%, transparent);
  animation: breathe 9s ease-in-out infinite;
}
.atmos::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 20%, transparent 75%);
  opacity: 0.55;
}
@keyframes breathe { 50% { opacity: 0.7; transform: translateX(-50%) scale(1.06); } }

/* ── type ───────────────────────────────────────────────────────────────── */
h1, h2, h3 { margin: 0; font-family: var(--display); text-wrap: balance; }

/* Chrome: the bright headline words, lit from above like brushed metal. */
.chrome {
  background: linear-gradient(176deg, #ffffff 0%, #eef2e8 40%, #b9c1ae 72%, #7c8573 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* The accent: one word per heading, italic serif, charged with the app's neon. */
.accent {
  font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -0.01em;
  background: linear-gradient(100deg, var(--neon) 0%, #e4ff7a 38%, var(--cyan) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: 0.08em;           /* italic overhang would otherwise be clipped by background-clip */
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-2);
  padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  flex-wrap: wrap; justify-content: center; max-width: 100%; line-height: 1.4;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--neon);
  box-shadow: 0 0 0 0 rgba(200, 255, 0, 0.6); animation: ping 2.2s ease-out infinite;
}
.eyebrow .sep { color: var(--ink-3); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(200, 255, 0, 0.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(200, 255, 0, 0); } }

.section-head { text-align: center; max-width: 780px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; line-height: 1.04; letter-spacing: -0.025em; margin-top: 20px; }
.section-head p:not(.eyebrow) { color: var(--ink-2); font-size: 18px; margin: 18px auto 0; max-width: 62ch; }

/* ── nav ────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(1180px, 100% - 24px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 18px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(8, 9, 6, 0.62);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  animation: drop 0.8s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes drop { from { opacity: 0; transform: translate(-50%, -18px); } }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand b { font-weight: 900; letter-spacing: 0.22em; font-size: 15px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  font: 600 13px/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-2); padding: 11px 14px; border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.nav-cta {
  font: 800 13px/1 var(--display); letter-spacing: 0.04em; text-decoration: none; color: #000;
  background: var(--neon); padding: 12px 18px; border-radius: 999px;
  box-shadow: 0 0 24px rgba(200, 255, 0, 0.35); white-space: nowrap;
}

/* ── hero ───────────────────────────────────────────────────────────────── */
.hero { padding: 150px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 40px; align-items: center; }
/* Grid items default to min-width:auto, so one unbreakable line (the eyebrow pill) sets the column's
   minimum and pushes the page wider than a phone. */
.hero-grid > *, .split > *, .privacy > * { min-width: 0; }
.hero h1 {
  font-size: clamp(50px, 7.6vw, 104px); font-weight: 800; line-height: 0.98; letter-spacing: -0.035em;
  margin: 26px 0 0;
}
.hero h1 .line { display: block; }
.hero h1 .accent { position: relative; }
.hero h1 .accent::after {
  content: ''; position: absolute; left: 4%; right: 6%; bottom: 0.06em; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(200, 255, 0, 0.8), transparent);
  filter: blur(0.4px);
}
.lede { color: var(--ink-2); font-size: clamp(17px, 1.5vw, 20px); max-width: 54ch; margin: 26px 0 0; }
.lede b { color: var(--ink); font-weight: 700; }

.rise { animation: rise 0.9s cubic-bezier(.2, .8, .2, 1) both; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .18s; } .d3 { animation-delay: .3s; }
.d4 { animation-delay: .42s; } .d5 { animation-delay: .55s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } }

/* store buttons */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  padding: 12px 22px 12px 18px; border-radius: 999px; min-height: 60px;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.store svg { width: 24px; height: 24px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font: 600 11px/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; }
.store strong { font: 800 18px/1.15 var(--display); letter-spacing: -0.01em; }
.store.primary { background: #fff; color: #000; box-shadow: 0 10px 40px rgba(255, 255, 255, 0.12); }
.store.ghost { color: var(--ink); border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); }
.store:hover { transform: translateY(-2px); }
.store.primary:hover { box-shadow: 0 14px 50px rgba(200, 255, 0, 0.25); }
.store.ghost:hover { background: rgba(255, 255, 255, 0.07); }
.store-note { font: 600 12px/1.4 var(--mono); letter-spacing: 0.08em; color: var(--ink-3); margin: 14px 0 0 6px; text-transform: uppercase; }

/* phones */
.stage { position: relative; height: 640px; }
.stage::before {                        /* the neon pool the phones stand in */
  content: ''; position: absolute; left: 50%; top: 52%; width: 520px; height: 520px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(200, 255, 0, 0.28), rgba(62, 242, 208, 0.08) 60%, transparent);
  filter: blur(10px);
}
.phone {
  position: absolute; width: 272px; aspect-ratio: 600 / 1304;
  border-radius: 44px; padding: 9px;
  background: linear-gradient(160deg, #2b2e27, #0b0c0a 40%, #1a1c17);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 40px 90px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(0, 0, 0, 0.9);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 36px; }
.phone::after {                         /* glass glare across the screen */
  content: ''; position: absolute; inset: 9px; border-radius: 36px; pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.13), transparent 30%, transparent 70%, rgba(255, 255, 255, 0.04));
}
.phone.front { left: 50%; top: 10px; transform: translateX(-38%) rotate(3deg); z-index: 2; animation: float 7s ease-in-out infinite; }
.phone.back  { left: 50%; top: 70px; transform: translateX(-100%) rotate(-7deg) scale(0.88); z-index: 1; opacity: 0.8; animation: float2 8s ease-in-out infinite; }
@keyframes float  { 50% { transform: translateX(-38%) rotate(3deg) translateY(-12px); } }
@keyframes float2 { 50% { transform: translateX(-100%) rotate(-7deg) scale(0.88) translateY(10px); } }

/* stats */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 70px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass);
}
.stat { padding: 26px 22px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--neon); text-shadow: 0 0 22px rgba(200, 255, 0, 0.35); }
.stat span { display: block; margin-top: 10px; font: 600 12px/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }

/* ── sections ───────────────────────────────────────────────────────────── */
section { padding: 92px 0; position: relative; }

.statement { text-align: center; padding: 120px 0 80px; }
.statement h2 { font-size: clamp(38px, 6vw, 78px); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; max-width: 16ch; margin: 22px auto 0; }
.statement p:not(.eyebrow) { color: var(--ink-2); font-size: 19px; max-width: 60ch; margin: 28px auto 0; }
.statement p strong { color: var(--ink); }

.glass {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  overflow: hidden;
}
.glass::before {                        /* lit top edge */
  content: ''; position: absolute; left: 12%; right: 12%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}

/* how it works: steps beside a phone */
.split { display: grid; grid-template-columns: 1fr 380px; gap: 56px; align-items: center; }
.split.flip { grid-template-columns: 380px 1fr; }
.steps { display: grid; gap: 16px; }
.step { padding: 26px 28px; display: grid; grid-template-columns: 56px 1fr; gap: 18px; transition: border-color .25s, transform .25s; }
.step:hover { border-color: rgba(200, 255, 0, 0.35); transform: translateX(4px); }
.step .n {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  font: 800 15px/1 var(--mono); color: var(--neon);
  background: var(--neon-soft); border: 1px solid rgba(200, 255, 0, 0.28);
}
.step h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.step p { color: var(--ink-2); margin: 6px 0 0; font-size: 16px; }
.step p strong { color: var(--ink); }

.solo { position: relative; height: 700px; }
.solo::before {
  content: ''; position: absolute; inset: 10% -10%;
  background: radial-gradient(closest-side, rgba(200, 255, 0, 0.2), transparent 70%);
}
.solo .phone { width: 300px; left: 50%; top: 12px; transform: translateX(-50%); animation: none; }

/* feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { padding: 30px 28px 32px; }
.card .ico {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: var(--neon-soft); border: 1px solid rgba(200, 255, 0, 0.26);
}
.card .ico svg { width: 22px; height: 22px; stroke: var(--neon); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 21px; font-weight: 800; }
.card p { color: var(--ink-2); font-size: 15.5px; margin: 10px 0 0; }
.card em { color: var(--ink); font-style: normal; font-weight: 700; }

/* phases */
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
.phase { padding: 18px 18px 20px; }
.phase b { display: block; font-size: 15px; font-weight: 900; letter-spacing: 0.14em; }
.phase span { display: block; font: 600 12px/1.3 var(--mono); color: var(--ink-3); margin-top: 6px; letter-spacing: 0.06em; }
.phase .bar { height: 4px; border-radius: 2px; margin-top: 14px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.phase .bar i { display: block; height: 100%; border-radius: 2px; }

/* skins strip */
.skins { display: grid; grid-auto-flow: column; grid-auto-columns: 190px; gap: 14px; overflow-x: auto; padding: 8px 4px 22px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #333 transparent; }
.skin { scroll-snap-align: start; padding: 16px 12px 14px; text-align: center; transition: transform .3s, border-color .3s; }
.skin:hover { transform: translateY(-6px); border-color: rgba(200, 255, 0, 0.35); }
.skin img { width: 100%; height: 250px; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.7)); }
.skin span { display: block; margin-top: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 13px; }
.fineprint { color: var(--ink-3); font: 600 12px/1.5 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; text-align: center; margin-top: 10px; }

/* privacy */
.privacy { padding: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.privacy h2 { font-size: clamp(32px, 4vw, 50px); font-weight: 800; line-height: 1.04; letter-spacing: -0.025em; margin-top: 18px; }
.privacy p:not(.eyebrow) { color: var(--ink-2); margin: 0 0 16px; }
.privacy p strong { color: var(--ink); }
.privacy a { color: var(--neon); text-underline-offset: 3px; }

/* final call */
.final { text-align: center; padding: 110px 0 100px; }
.final h2 { font-size: clamp(44px, 7vw, 96px); font-weight: 800; line-height: 0.98; letter-spacing: -0.035em; }
.final .stores { justify-content: center; }
.final .store-note { margin-left: 0; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.foot nav { display: flex; gap: 22px; }
.foot nav a { color: var(--ink-2); text-decoration: none; font-size: 14px; }
.foot nav a:hover { color: var(--neon); }
.foot small { display: block; width: 100%; color: var(--ink-3); font: 500 12px/1.6 var(--mono); letter-spacing: 0.04em; margin-top: 8px; }

/* ── scroll reveals: CSS only ───────────────────────────────────────────── */
@supports (animation-timeline: view()) {
  .reveal {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 28%;
  }
  @keyframes reveal { from { opacity: 0; transform: translateY(40px) scale(0.985); filter: blur(4px); } }
}

a:focus-visible, .store:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; }

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

/* ── responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero { padding-top: 124px; }
  .hero-grid, .split, .split.flip, .privacy { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy .lede { margin-inline: auto; }
  .hero-copy .stores { justify-content: center; }
  .hero-copy .store-note { margin-left: 0; }
  .stage { height: 560px; }
  .split .solo { height: 620px; }
  .split.flip .solo { order: 1; }                  /* stacked, every section reads heading first, phone after */
  .cards { grid-template-columns: 1fr; }
  .privacy { padding: 36px 26px; gap: 10px; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 84px 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .phone { width: 220px; border-radius: 36px; padding: 7px; }
  .phone img, .phone::after { border-radius: 30px; }
  .phone::after { inset: 7px; }
  .stage { height: 470px; }
  .stage::before { width: 100vw; height: 100vw; }
  .solo { height: 520px; }
  .solo .phone { width: 240px; }
  .phases { grid-template-columns: 1fr; }
  .step { grid-template-columns: 44px 1fr; padding: 22px; }
  .step .n { width: 44px; height: 44px; border-radius: 12px; }
  .store { width: 100%; justify-content: center; }
  .eyebrow { font-size: 10.5px; letter-spacing: 0.12em; gap: 6px 8px; }
  .nav { padding: 8px 8px 8px 14px; }
  .nav-cta { padding: 11px 14px; font-size: 12px; }
  .brand b { font-size: 13px; letter-spacing: 0.18em; }
  .hero h1 { font-size: clamp(42px, 12.4vw, 60px); }
  .phone.back { display: none; }
  .phone.front { transform: translateX(-50%) rotate(2deg); }
  @keyframes float { 50% { transform: translateX(-50%) rotate(2deg) translateY(-10px); } }
}
