/* Stoxa — design tokens + shared UI */
:root {
  --ink: #050607;
  --ink-2: #0b0d10;
  --ink-3: #12151a;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #eef1ea;
  --mute: #9aa197;
  --dim: #5f665c;
  --volt: #d7ff2f;
  --volt-2: #b9e600;
  --volt-glow: rgba(215, 255, 47, .35);
  --t-common: #b9c2cf;
  --t-uncommon: #4ff0a8;
  --t-rare: #3fa9ff;
  --t-epic: #ae72ff;
  --t-legend: #ffc53d;
  --t-grail: #d7ff2f;
  --r: 18px;
  --f-display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --f-body: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0; min-height: 100vh; background: var(--ink); color: var(--text);
  font: 400 16px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
main, footer, header { overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
::selection { background: var(--volt); color: #000; }
:focus-visible { outline: 2px solid var(--volt); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.mono { font-family: var(--f-mono); }
.volt { color: var(--volt); }

/* grain + vignette over everything */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .055;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- buttons ---------- */
.btn {
  --bg: var(--volt); --fg: #050607;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  height: 52px; padding: 0 26px; border-radius: 14px; background: var(--bg); color: var(--fg);
  font: 700 15px/1 var(--f-body); letter-spacing: .01em; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease-spring), box-shadow .3s, background .2s;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .2) inset, 0 10px 30px -10px var(--volt-glow);
}
.btn::before { /* light sweep */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .7s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(0, 0, 0, .2) inset, 0 16px 40px -10px var(--volt-glow); }
.btn:hover::before { transform: translateX(120%); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn[disabled] { opacity: .35; pointer-events: none; }
.btn.ghost { --bg: transparent; --fg: var(--text); box-shadow: 0 0 0 1px var(--line-2) inset; }
.btn.ghost:hover { --bg: rgba(255, 255, 255, .05); }
.btn.dark { --bg: #fff; --fg: #000; box-shadow: none; }
.btn.small { height: 40px; padding: 0 16px; border-radius: 11px; font-size: 14px; }
.btn.big { height: 62px; padding: 0 34px; border-radius: 17px; font-size: 17px; }
.btn .ico { width: 18px; height: 18px; flex: none; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px 0 10px; border-radius: 99px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); font: 500 13px/1 var(--f-mono); color: var(--mute);
  backdrop-filter: blur(8px);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--volt); box-shadow: 0 0 8px var(--volt-glow); animation: blink 1.8s ease-in-out infinite; flex: none; }
@keyframes blink { 50% { opacity: .3; } }
/* sections out of view: animations paused (see kit.js pauseOffscreen) */
.offscreen, .offscreen *, .offscreen *::before, .offscreen *::after { animation-play-state: paused !important; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 var(--volt-glow); } 70% { box-shadow: 0 0 0 10px rgba(215, 255, 47, 0); } 100% { box-shadow: 0 0 0 0 rgba(215, 255, 47, 0); } }

/* ---------- announcement strip ---------- */
.strip {
  position: relative; z-index: 30; height: 34px; overflow: hidden; background: var(--volt); color: #000;
  font: 700 12px/34px var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
}
.strip a { display: block; }
.strip .run { display: flex; width: max-content; animation: run 38s linear infinite; }
.strip span { padding: 0 22px; display: inline-flex; align-items: center; gap: 22px; }
.strip span::after { content: ''; width: 9px; height: 9px; background: #000; transform: rotate(45deg); }
@keyframes run { to { transform: translateX(-50%); } }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 40; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(5, 6, 7, .78); backdrop-filter: blur(16px) saturate(1.4); border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font: 800 19px/1 var(--f-display); letter-spacing: .06em; }
.brand img { width: 34px; height: 34px; transition: transform .6s var(--ease-spring); }
.brand:hover img { transform: rotate(-90deg) scale(1.06); }
.nav nav { display: flex; gap: 4px; margin-left: auto; }
.nav nav a { padding: 9px 14px; border-radius: 10px; color: var(--mute); font-size: 14.5px; font-weight: 500; transition: color .2s, background .2s; }
.nav nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav .btn { margin-left: 4px; }
@media (max-width: 860px) {
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
  .nav .wrap { height: 64px; }
}

/* ---------- section heads ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 12.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--volt); }
.eyebrow::before { content: ''; width: 10px; height: 10px; background: var(--volt); transform: rotate(45deg); }
.h2 { font: 800 clamp(32px, 5.2vw, 64px)/1.02 var(--f-display); letter-spacing: -.02em; margin: 18px 0 0; text-wrap: balance; }
.lede { color: var(--mute); font-size: clamp(16px, 1.6vw, 18.5px); max-width: 600px; margin: 18px 0 0; text-wrap: pretty; }

/* ---------- reveal on scroll ---------- */
.rv { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }

/* ---------- footer ---------- */
.foot { position: relative; margin-top: 120px; border-top: 1px solid var(--line); overflow: hidden; }
.foot .big {
  font: 900 clamp(80px, 21vw, 300px)/.8 var(--f-display); letter-spacing: -.04em; text-align: center; margin: 70px 0 -0.08em;
  color: transparent;
  background: linear-gradient(180deg, rgba(215, 255, 47, .2), rgba(215, 255, 47, .02) 80%); -webkit-background-clip: text; background-clip: text;
}
.foot .row { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; justify-content: space-between; padding: 30px 0; border-top: 1px solid var(--line); color: var(--mute); font-size: 14px; }
.foot .links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot .links a:hover { color: var(--volt); }
.foot .legal { padding: 0 0 40px; color: var(--dim); font-size: 12.5px; line-height: 1.6; max-width: 900px; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 200; transform: translate(-50%, 140%); padding: 14px 20px; border-radius: 14px;
  background: #15181d; border: 1px solid var(--line-2); color: var(--text); font-size: 14.5px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
  transition: transform .5s var(--ease-spring); max-width: calc(100% - 32px);
}
.toast.on { transform: translate(-50%, 0); }
.toast.bad { border-color: rgba(255, 90, 90, .5); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}
.xbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 11px; border: 1px solid var(--line-2); color: var(--text); transition: background .2s, border-color .2s, color .2s; }
.xbtn:hover { background: rgba(215, 255, 47, .1); border-color: rgba(215, 255, 47, .5); color: var(--volt); }
.xbtn svg { width: 17px; height: 17px; }
.nav .xbtn { margin-left: 10px; }
.xtext { display: inline-flex; align-items: center; gap: 8px; }
.xtext svg { width: 15px; height: 15px; }
.xtext:hover { color: var(--volt); }
.cfoot-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; color: var(--mute); font-size: 14px; }
.cfoot-row .brand { font-size: 16px; } .cfoot-row .brand img { width: 28px; height: 28px; }
@media (max-width: 860px) { .nav .xbtn { margin-left: auto; } .nav .xbtn + .btn { margin-left: 8px; } }
