/* ═══════════════════════════════════════════════════════════════════════════════════════════════
   VEXIUM — shared site system (landing, /rank, legal pages). 2026-11-03.
   Tokens, type, nav, buttons, store badges, footer. Page files add only what is theirs.
   No external requests: the font is self-hosted and every CSP on this site sets font-src 'self'.
   ═══════════════════════════════════════════════════════════════════════════════════════════════ */

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

:root {
  --bg: #050505;
  --bg-2: #0b0c09;
  --surface: #101109;
  --surface-2: #16180f;
  --line: rgba(240, 255, 200, 0.09);
  --line-2: rgba(240, 255, 200, 0.16);
  --ink: #f3f5ec;
  --ink-2: #c9ccbf;
  --dim: #8a8f80;
  /* DEPRECATED, AND NOW UNUSED · 2026-11-24. #5e6258 is the app's retired pre-2026-11-19 t5: it
     measures 3.26:1 on --bg, under the 4.5:1 that body copy owes. Its one consumer was
     .foot-bottom's `color`, and that reach is SMALLER than it looks: `.foot a` sets every anchor
     inside <footer class="foot"> to --ink-2, and .foot-bottom is nested in that footer on all 16
     pages, so the footer LINKS were never this grey anywhere. What --dim-2 actually carried was
     the non-link text of that bottom row — the "© 2026 VEXIUM" span and the " · " separators
     standing between the links, plus the "Operated by ..." span on the two landing pages (the
     only .foot-bottom that holds no anchors at all). That row reads --dim now.
     Left declared rather than deleted so an in-flight page that inlined it
     degrades to a readable grey instead of to the browser default; delete the declaration once
     nothing in web/ names it. Do not give it a new consumer. */
  --dim-2: #5e6258;
  --neon: #c8ff00;
  --neon-ink: #0a0d00;
  --neon-soft: rgba(200, 255, 0, 0.14);
  --ice: #6fe3ff;
  --danger: #ff5a4e;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --gutter: clamp(16px, 4.5vw, 40px);
  --max: 1240px;
  --display: 'Exo 2', 'Arial Black', system-ui, sans-serif;
  --body: 'Exo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
/* On phones overflow-x:clip on BODY does not stop a wide decorative glow from widening the LAYOUT
   viewport (it did, on the 2026-09 hero). Clipping main and footer is what actually holds the width. */
main, .foot { overflow-x: clip; }
a { color: inherit; }
::selection { background: var(--neon); color: var(--neon-ink); }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--neon); color: var(--neon-ink); font-weight: 800; padding: 10px 14px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ── type ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 800 12px/1 var(--display); letter-spacing: 0.24em; text-transform: uppercase; color: var(--neon);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 12px var(--neon); }
.display {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  letter-spacing: -0.02em; line-height: 0.92; margin: 0; text-wrap: balance;
}
.accent { color: var(--neon); }
.lede { color: var(--ink-2); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; max-width: 58ch; text-wrap: pretty; }
.lede b, .lede strong { color: var(--ink); font-weight: 800; }

/* ── nav ── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  background: linear-gradient(180deg, rgba(5,5,5,0.86), rgba(5,5,5,0));
  -webkit-backdrop-filter: blur(0px); backdrop-filter: blur(0px);
}
.nav .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav .brand img { width: 32px; height: 32px; }
.nav .brand b { font: 900 18px/1 var(--display); letter-spacing: 0.14em; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { font: 700 13px/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); }
.nav-links a:hover { color: var(--neon); }
.nav-cta {
  font: 800 12px/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  color: var(--neon-ink); background: var(--neon); padding: 11px 16px; border-radius: 999px; white-space: nowrap;
}
@media (max-width: 860px) { .nav-links { display: none; } }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 900 14px/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  padding: 18px 26px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-neon { background: var(--neon); color: var(--neon-ink); box-shadow: 0 0 0 0 rgba(200,255,0,0); }
.btn-neon:hover { transform: translateY(-2px); box-shadow: 0 10px 40px -8px rgba(200,255,0,0.55); }
.btn-ghost { background: rgba(255,255,255,0.04); color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--neon); color: var(--neon); }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ── store badges ── */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-width: 196px;
  padding: 11px 20px 11px 16px; border-radius: 14px; text-decoration: none;
  background: rgba(255,255,255,0.05); border: 1px solid var(--line-2); color: var(--ink);
}
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font: 700 10px/1.2 var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.store strong { font: 800 18px/1.15 var(--display); }
.store.primary { background: var(--neon); color: var(--neon-ink); border-color: var(--neon); }
.store.primary small { color: rgba(10,13,0,0.6); }
.store[aria-disabled="true"] { cursor: default; }
.store-note { margin: 14px 0 0; font: 700 12px/1.4 var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }

/* ── footer ── */
.foot { border-top: 1px solid var(--line); background: var(--bg); padding: 56px 0 40px; position: relative; z-index: 2; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot h4 { font: 800 12px/1 var(--display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); margin: 0 0 16px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.foot a:hover { color: var(--neon); }
.foot .brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.foot .brand img { width: 30px; height: 30px; }
.foot .brand b { font: 900 17px/1 var(--display); letter-spacing: 0.14em; }
.foot p { color: var(--dim); font-size: 14px; margin: 0 0 10px; max-width: 42ch; }
.foot-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--dim); font-size: 13px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ── film grain, shared: one tiny SVG as a data URI (img-src data: is allowed) ── */
.grain::after {
  content: ""; position: fixed; inset: -50%; z-index: 60; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
