/* ══════════════════════════════════════════════════════════════════════════════
   VEXIUM — web design system.

   ZERO JAVASCRIPT, BY DESIGN. The reviewer console shares this origin, and the
   argument that sharing is safe rests entirely on these pages being static — so
   `default-src 'none'` in _headers must keep holding. Everything that moves here
   is CSS: scroll-driven reveals, snap galleries, hover states. Nothing scripted.

   Exo 2 is SELF-HOSTED (one 40KB variable file). Loading it from Google would
   need a CSP hole, add a third-party request to every page, and hand your
   visitors' IPs to Google to read a privacy policy — which would be a poor joke.
   ══════════════════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Exo 2';
  src: url('/fonts/exo2.woff2') format('woff2-variations');
  font-weight: 100 900;                 /* one variable file covers every weight */
  font-display: swap;                   /* text is readable before the font lands */
}

:root {
  --neon:      #C8FF00;
  --cyan:      #00E5FF;
  --bg:        #000;
  --surface:   #0b0b0c;
  --surface-2: #131315;
  --hairline:  #212124;
  --ink:       #f2f2f0;
  --body:      #b9b9bd;
  --muted:     #8a8a90;
  --faint:     #5a5a60;
  --max:       1080px;
  --text-max:  740px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: 'Exo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  /* CLIP, not hidden. `overflow-x: hidden` turns <body> into a scroll container, which splits
     window scrolling from actual page scrolling and is a well-known way to break position:sticky and
     anchor jumps. `clip` trims the hero's glow without creating a scroller. */
  overflow-x: clip;
}

.wrap      { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap-text { max-width: var(--text-max); margin: 0 auto; padding: 0 24px; }

/* ── brand lockup: mark and wordmark as ONE unit ─────────────────────────── */
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
}
.brand img { width: 38px; height: 38px; display: block; }
.brand b {
  font-size: 23px; font-weight: 900; letter-spacing: 4px; line-height: 1;
  color: var(--ink);
}

header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 20px;
}
header.site nav { display: flex; gap: 22px; }
header.site nav a {
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 700;
  letter-spacing: 0.4px;
}
header.site nav a:hover { color: var(--neon); }

/* ── type ────────────────────────────────────────────────────────────────── */
h1 {
  font-size: clamp(40px, 8.5vw, 76px);
  font-weight: 900; line-height: 1.02; letter-spacing: -1.5px;
  color: var(--ink); margin: 0 0 20px;
}
h2 {
  font-size: clamp(26px, 4.4vw, 40px);
  font-weight: 900; line-height: 1.1; letter-spacing: -0.8px;
  color: var(--ink); margin: 0 0 16px;
}
h3 { font-size: 19px; font-weight: 800; color: var(--ink); margin: 0 0 8px; }
p  { margin: 0 0 18px; }
.lede { font-size: clamp(17px, 2.2vw, 21px); line-height: 1.6; color: var(--muted); }
.eyebrow {
  font-size: 12px; font-weight: 900; letter-spacing: 3.5px; text-transform: uppercase;
  color: var(--neon); margin: 0 0 14px;
}
strong { color: var(--ink); font-weight: 700; }
a { color: var(--neon); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

section { padding: clamp(64px, 11vw, 128px) 0; }
.rule { border: 0; border-top: 1px solid var(--hairline); margin: 0; }

/* ── hero ────────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(72px, 13vw, 150px) 0 clamp(56px, 9vw, 104px); text-align: center; }
.hero::before {                          /* neon bloom behind the mark */
  content: ''; position: absolute; inset: -10% 50% auto; translate: 50% 0;
  width: min(760px, 105vw); aspect-ratio: 1;
  background: radial-gradient(circle, rgba(200,255,0,0.15) 0%, rgba(0,229,255,0.07) 42%, transparent 68%);
  pointer-events: none; z-index: -1;
}
.hero-mark { width: clamp(96px, 17vw, 136px); height: auto; margin: 0 auto 22px; display: block; }
.hero-word {
  font-size: clamp(46px, 11vw, 104px); font-weight: 900; letter-spacing: clamp(6px, 1.6vw, 16px);
  line-height: 1; color: var(--ink); margin: 0 0 12px; padding-left: clamp(6px, 1.6vw, 16px);
}
.hero-tag {
  font-size: clamp(11px, 1.9vw, 15px); font-weight: 900; letter-spacing: clamp(3px, 0.9vw, 8px);
  color: var(--neon); margin: 0 0 40px; text-transform: uppercase;
}
.hero h1 { margin-inline: auto; max-width: 15ch; }
.hero .lede { margin-inline: auto; max-width: 54ch; }

/* ── buttons ─────────────────────────────────────────────────────────────── */
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.btn {
  display: inline-block; padding: 15px 30px; border-radius: 13px;
  font-weight: 900; font-size: 14px; letter-spacing: 1.6px; text-transform: uppercase;
  text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-primary { background: var(--neon); color: #000; box-shadow: 0 0 0 rgba(200,255,0,0); }
.btn-primary:hover { color: #000; transform: translateY(-2px); box-shadow: 0 10px 34px rgba(200,255,0,0.3); }
.btn-ghost { border: 1px solid var(--hairline); color: var(--ink); }
.btn-ghost:hover { color: var(--neon); border-color: var(--neon); transform: translateY(-2px); }

/* ── cards & steps ───────────────────────────────────────────────────────── */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 18px;
  padding: 28px 26px; transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: #33331a; transform: translateY(-3px); }
.card p:last-child { margin-bottom: 0; }

.step-n {
  font-size: 13px; font-weight: 900; letter-spacing: 2px; color: var(--neon);
  display: block; margin-bottom: 12px;
}

/* ── skins gallery: scroll-snap, no script ───────────────────────────────── */
.gallery {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 24px 22px; margin: 0 -24px;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
  scrollbar-color: var(--hairline) transparent;
}
.skin {
  flex: 0 0 auto; width: 216px; scroll-snap-align: center;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--hairline); border-radius: 18px; padding: 14px 14px 18px;
  text-align: center; transition: border-color .25s ease, transform .25s ease;
}
.skin:hover { border-color: var(--neon); transform: translateY(-6px); }
.skin img { width: 100%; height: auto; display: block; border-radius: 12px; }
.skin span {
  display: block; margin-top: 12px; font-size: 12.5px; font-weight: 900;
  letter-spacing: 2px; text-transform: uppercase; color: var(--muted);
}
.skin:hover span { color: var(--neon); }
.hint { font-size: 13px; color: var(--faint); text-align: center; margin-top: 4px; }

/* ── stat strip ──────────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px;
         background: var(--hairline); border: 1px solid var(--hairline); border-radius: 18px; overflow: hidden; }
.stat { background: var(--surface); padding: 26px 20px; text-align: center; }
.stat b { display: block; font-size: clamp(28px, 5vw, 40px); font-weight: 900; color: var(--neon); line-height: 1; }
.stat span { display: block; margin-top: 8px; font-size: 12px; font-weight: 800; letter-spacing: 1.6px;
             text-transform: uppercase; color: var(--muted); }

/* ── reveal on scroll — degrades to plain visible ────────────────────────── */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 8% cover 30%;
    }
    @keyframes rise {
      from { opacity: 0; transform: translateY(26px); }
      to   { opacity: 1; transform: none; }
    }
  }
}

/* ── legal pages ─────────────────────────────────────────────────────────── */
.doc { padding: 56px 0 96px; }
.doc h1 { font-size: clamp(32px, 6vw, 46px); margin-bottom: 8px; }
.doc h2 {
  font-size: 21px; margin: 46px 0 14px; padding-top: 24px;
  border-top: 1px solid var(--hairline);
}
.doc h3 { font-size: 15px; color: var(--neon); margin: 26px 0 8px; letter-spacing: .3px; }
.doc ul { padding-left: 22px; } .doc li { margin: 8px 0; }
.updated { color: var(--faint); font-size: 13.5px; margin: 0 0 20px; }

.note {
  background: var(--surface); border: 1px solid var(--hairline);
  border-left: 3px solid var(--neon); border-radius: 12px;
  padding: 18px 20px; margin: 22px 0; font-size: 15.5px; color: var(--body);
}
.note b { color: var(--neon); font-weight: 800; }

/* Wide tables scroll INSIDE their own box — the page itself never does. */
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 20px 0;
          border: 1px solid var(--hairline); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14.5px; }
th, td { text-align: left; padding: 12px 15px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { color: var(--neon); font-weight: 900; font-size: 11.5px; letter-spacing: 1.4px;
     text-transform: uppercase; white-space: nowrap; background: var(--surface); }
td { color: var(--body); }

/* ── footer ──────────────────────────────────────────────────────────────── */
footer.site { border-top: 1px solid var(--hairline); padding: 44px 0 60px; }
footer.site .cols { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; align-items: flex-start; }
footer.site .links { display: flex; gap: 20px; flex-wrap: wrap; }
footer.site a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
footer.site a:hover { color: var(--neon); }
footer.site small { display: block; color: var(--faint); font-size: 13px; margin-top: 20px; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  /* The nav does not fit beside the wordmark on a phone and wrapped to two lines, which broke the
     header's height. The page is a single scroll with in-page anchors, so dropping the links there
     costs nothing — the logo still returns you home. */
  header.site nav { display: none; }
  .brand img { width: 32px; height: 32px; }
  .brand b { font-size: 20px; letter-spacing: 3px; }
  .skin { width: 178px; }
  .btn { padding: 14px 24px; font-size: 13px; }
}
