/* =========================================================
   NODERA — dark scroll-chapter experience
   ========================================================= */
:root {
  --bg: #090B14;
  --bg-2: #0E1120;
  --navy: #171C2C;
  --text: #ECEBF4;
  --muted: rgba(236, 235, 244, 0.58);
  --faint: rgba(236, 235, 244, 0.34);
  --line: rgba(236, 235, 244, 0.1);
  --line-2: rgba(183, 168, 255, 0.22);
  --purple: #8065F5;
  --lav: #B7A8FF;
  --lime: #C7F36B;
  --offwhite: #F6F5F0;

  --f-sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --pad: clamp(16px, 4.4vw, 64px);
  --nav-h: 78px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--f-sans); font-size: 16px; line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ol, ul { list-style: none; padding: 0; }
svg, canvas { display: block; }
::selection { background: var(--lime); color: var(--bg); }
:focus-visible { outline: 1px solid var(--lime); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 300; padding: 10px 14px; background: var(--lime); color: var(--bg); transform: translateY(-160%); transition: transform .2s; }
.skip-link:focus { transform: none; }

/* ---------- backdrop ---------- */
.backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none; transition: opacity .2s linear; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.fallback-glow {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1s;
  background:
    radial-gradient(28% 18% at 60% 42%, rgba(128,101,245,.35), transparent 70%),
    radial-gradient(60% 6% at 60% 42%, rgba(183,168,255,.25), transparent 70%);
}
.no-webgl .fallback-glow { opacity: 1; }
.vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(9,11,20,.82) 0, rgba(9,11,20,.55) 26%, rgba(9,11,20,0) 44%),
    radial-gradient(120% 90% at 60% 45%, transparent 45%, rgba(4,5,10,.85) 100%);
}
@media (max-width: 860px) {
  .vignette { background: radial-gradient(130% 80% at 50% 35%, transparent 45%, rgba(4,5,10,.85) 100%); }
}
.grain {
  position: absolute; inset: -5%; opacity: .07; mix-blend-mode: screen;
  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");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain { 25% { transform: translate(-2%, 1%); } 50% { transform: translate(1%, -2%); } 75% { transform: translate(2%, 2%); } }

/* projected 3D labels */
.labels { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
.tag3d {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text); opacity: 0; will-change: transform, opacity;
}
.tag3d::before { content: ""; display: inline-block; width: 14px; height: 1px; background: var(--lime); vertical-align: middle; margin-right: 8px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 60; height: var(--nav-h);
  display: flex; align-items: center; gap: 32px; padding: 0 var(--pad);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 26px; height: 26px; display: grid; place-items: center; background: var(--purple); border-radius: 3px; color: var(--offwhite); }
.brand__mark svg { width: 18px; height: 18px; }
.brand__word { font-weight: 500; font-size: 13px; letter-spacing: .34em; }
.nav__links { display: flex; gap: clamp(20px, 2.6vw, 40px); margin-left: auto; }
.nav__links a {
  position: relative; font-size: 11.5px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--muted); transition: color .3s; padding: 6px 0;
}
.nav__links a::after { content: ""; position: absolute; left: 0; right: .28em; bottom: 0; height: 1px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after { transform: scaleX(1); }
.nav__toggle { display: none; width: 44px; height: 44px; position: relative; margin-left: auto; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 1px; background: var(--text); transition: transform .4s var(--ease), top .4s var(--ease); }
.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child { top: 26px; }
.menu-open .nav__toggle span:first-child { top: 22px; transform: rotate(45deg); }
.menu-open .nav__toggle span:last-child { top: 22px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 55; padding: calc(var(--nav-h) + 16px) var(--pad) 28px;
  background: var(--bg); display: flex; flex-direction: column; gap: 28px;
  opacity: 0; transition: opacity .35s var(--ease);
}
.menu.is-open { opacity: 1; }
.menu nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.menu nav a { display: flex; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 30px; font-weight: 300; letter-spacing: -.03em; }
.menu nav a span { font-family: var(--f-mono); font-size: 11px; color: var(--lime); letter-spacing: .06em; }
.menu .bracket-btn { align-self: flex-start; }
.menu__foot { margin-top: auto; color: var(--faint); text-transform: uppercase; }
.menu-open { overflow: hidden; }

/* ---------- bracket buttons ---------- */
.bracket-btn {
  --c: var(--text);
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  height: 50px; padding: 0 24px;
  font-family: var(--f-sans); font-size: 11.5px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase;
  color: var(--c); border: 1px solid var(--line-2); background: rgba(9,11,20,.35);
  transition: background .35s var(--ease), color .35s, border-color .35s;
  white-space: nowrap;
}
.bracket-btn::before, .bracket-btn::after {
  content: ""; position: absolute; width: 7px; height: 7px; border: solid var(--c); transition: transform .35s var(--ease);
}
.bracket-btn::before { top: -4px; left: -4px; border-width: 1px 0 0 1px; }
.bracket-btn::after { bottom: -4px; right: -4px; border-width: 0 1px 1px 0; }
.bracket-btn:hover { border-color: var(--lav); background: rgba(128,101,245,.14); }
.bracket-btn:hover::before { transform: translate(-3px, -3px); }
.bracket-btn:hover::after { transform: translate(3px, 3px); }
.bracket-btn .num { font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em; opacity: .55; }
.bracket-btn--solid { --c: var(--bg); background: var(--lime); border-color: var(--lime); }
.bracket-btn--solid::before, .bracket-btn--solid::after { border-color: var(--lime); }
.bracket-btn--solid:hover { background: #DAFF8F; border-color: #DAFF8F; }
.bracket-btn__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.nav__cta { height: 40px; padding: 0 18px; }

/* ---------- rail ---------- */
.rail {
  position: fixed; right: var(--pad); top: 50%; z-index: 30; transform: translateY(-50%);
  display: grid; grid-template-columns: auto 1px; column-gap: 14px; justify-items: end;
  transition: opacity .5s;
}
.rail__count { grid-column: 1; margin-bottom: 22px; color: var(--faint); font-size: 12px; }
.rail__count b { color: var(--text); font-weight: 500; }
.rail__list { grid-column: 1; display: grid; gap: 4px; }
.rail__list button {
  display: flex; align-items: center; gap: 10px; justify-content: flex-end; height: 27px;
  font-family: var(--f-mono); font-size: 10px; color: var(--faint); transition: color .3s;
}
.rail__list button::after { content: ""; width: 8px; height: 1px; background: currentColor; transition: width .5s var(--ease), background .3s; }
.rail__list button:hover { color: var(--text); }
.rail__list button.is-active { color: var(--text); }
.rail__list button.is-active::after { width: 22px; background: var(--lime); }
.rail__track { grid-column: 2; grid-row: 2; width: 1px; background: var(--line); position: relative; overflow: hidden; }
.rail__track i { position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: var(--lime); transform-origin: top; transform: scaleY(0); }

/* ---------- chapters ---------- */
.chapters { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
.ch {
  position: absolute; left: var(--pad); top: 50%; width: min(470px, 36vw);
  transform: translateY(-50%); opacity: 0; visibility: hidden;
  will-change: opacity, transform, filter;
}
.ch.is-live { pointer-events: auto; }
.ch--hero { top: auto; bottom: clamp(56px, 10vh, 110px); transform: none; width: min(640px, 48vw); }
.ch__title { font-size: clamp(1.75rem, 2.25vw, 2.1rem); font-weight: 300; line-height: 1.08; letter-spacing: -0.035em; color: var(--offwhite); }
.ch__title--xl { font-size: clamp(2.4rem, 3.4vw, 3.25rem); letter-spacing: -0.04em; }
.ch__title--lg { font-size: clamp(2.2rem, 3vw, 3rem); letter-spacing: -0.04em; }
.ch__eyebrow { margin: 18px 0 22px; text-transform: uppercase; letter-spacing: .26em; color: var(--muted); }
.ch__eyebrow b { color: var(--lime); font-weight: 500; }
.ch__tag { margin: 16px 0 18px; text-transform: uppercase; letter-spacing: .26em; color: var(--muted); }
.ch__body { color: var(--muted); font-size: 15px; line-height: 1.62; max-width: 42ch; }
.ch__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.status { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; color: var(--faint); text-transform: uppercase; letter-spacing: .14em; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); animation: blink 2.4s infinite; }
.status b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
@keyframes blink { 50% { opacity: .35; } }

.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin-top: 26px; border: 1px solid var(--line); }
.facts li { padding: 10px 16px; color: var(--text); }
.facts li + li { border-left: 1px solid var(--line); }
.facts span { display: block; color: var(--faint); text-transform: uppercase; font-size: 9.5px; margin-bottom: 3px; letter-spacing: .14em; }

.cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.cats li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid var(--line); color: var(--text); text-transform: uppercase; font-size: 10px; letter-spacing: .14em; }
.cats i { width: 6px; height: 6px; }
.cats .c1 { background: var(--lav); border-radius: 50%; }
.cats .c2 { background: var(--offwhite); }
.cats .c3 { background: var(--lime); border-radius: 50%; }
.cats .c4 { border: 1px solid var(--lav); transform: rotate(45deg); }
.cats .c5 { border: 1px solid var(--lime); }
.fine { margin-top: 18px; color: var(--faint); text-transform: uppercase; font-size: 9.5px; letter-spacing: .12em; max-width: 46ch; }
.link { margin-top: 20px; text-transform: uppercase; letter-spacing: .2em; color: var(--lime); border-bottom: 1px solid rgba(199,243,107,.4); padding-bottom: 4px; transition: border-color .3s; }
.link:hover { border-color: var(--lime); }

/* ---------- HUD panels ---------- */
.hud { margin-top: 26px; border: 1px solid var(--line-2); background: rgba(9, 11, 20, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); position: relative; }
.hud::before { content: ""; position: absolute; top: -4px; left: -4px; width: 7px; height: 7px; border: solid var(--lime); border-width: 1px 0 0 1px; }
.hud__label { display: block; padding: 12px 14px 0; color: var(--faint); text-transform: uppercase; letter-spacing: .18em; font-size: 9.5px; }
.hud__row { display: flex; gap: 0; margin: 10px 14px 0; border: 1px solid var(--line); }
.hud__row input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; padding: 10px 12px; color: var(--text); font-size: 12px; }
.hud__row:focus-within { border-color: var(--lav); }
.hud__btn { padding: 0 14px; color: var(--lime); text-transform: uppercase; letter-spacing: .18em; font-size: 10px; border-left: 1px solid var(--line); transition: background .3s, color .3s; }
.hud__btn:hover { background: var(--lime); color: var(--bg); }
.hud__btn:disabled { opacity: .45; cursor: progress; }
.hud__btn--wide { display: block; width: calc(100% - 28px); margin: 0 14px 14px; padding: 10px; border: 1px solid var(--line); text-align: center; }

.sim__log { padding: 12px 14px 14px; display: grid; gap: 4px; min-height: 104px; color: var(--muted); font-size: 11px; }
.sim__log li { display: flex; justify-content: space-between; gap: 12px; animation: logIn .4s var(--ease); }
.sim__log li b { font-weight: 400; color: var(--lime); }
.sim__log li b.no { color: #FF8FA3; }
.sim__log li.is-idle { color: var(--faint); }
.sim__log li.is-final { color: var(--text); margin-top: 4px; padding-top: 6px; border-top: 1px dashed var(--line); }
@keyframes logIn { from { opacity: 0; transform: translateX(-4px); } }

.policy__rows { padding: 10px 14px 12px; display: grid; gap: 6px; }
.policy__rows div { display: grid; grid-template-columns: 82px 1fr; gap: 12px; }
.policy__rows dt { color: var(--faint); text-transform: uppercase; font-size: 9.5px; letter-spacing: .14em; padding-top: 1px; }
.policy__rows dd { color: var(--text); }
.policy__rows dd.is-on { color: var(--lime); }
.policy__rows dd.is-off { color: #FF8FA3; }

.code__bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--faint); text-transform: uppercase; letter-spacing: .14em; font-size: 9.5px; }
.code__copy { color: var(--lime); text-transform: uppercase; letter-spacing: .14em; font-family: var(--f-mono); font-size: 9.5px; }
.code pre { margin: 0; padding: 12px 14px 14px; font-size: 11.5px; line-height: 1.7; overflow-x: auto; color: #D9D6EC; }
.tk-k { color: var(--lav); }
.tk-s { color: var(--lime); }
.tk-c { color: var(--faint); font-style: italic; }
.tk-f { color: #8FD8FF; }

/* ---------- scroll cue ---------- */
.cue {
  position: fixed; left: 50%; bottom: 30px; z-index: 12; transform: translateX(-50%);
  padding: 10px 14px; text-transform: uppercase; letter-spacing: .26em; color: var(--text); font-size: 10.5px;
  pointer-events: auto; transition: opacity .4s;
}
.cue::before, .cue::after { content: ""; position: absolute; width: 7px; height: 7px; border: solid var(--text); }
.cue::before { top: 0; left: 0; border-width: 1px 0 0 1px; }
.cue::after { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
.cue:hover { color: var(--lime); }

/* ---------- scroller & footer ---------- */
.scroller { height: 700vh; }
.footer { position: relative; z-index: 20; background: var(--bg); padding: clamp(120px, 18vh, 200px) var(--pad) 28px; overflow: hidden; }
.footer__pixels { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.footer__inner { position: relative; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 56px 64px; }
.footer__brand > p { margin-top: 18px; color: var(--muted); font-size: 15px; }
.footer__lines { margin-top: 18px; display: grid; gap: 8px; color: var(--text); }
.contact { margin-top: 28px; max-width: 380px; }
.contact label { display: block; color: var(--faint); text-transform: uppercase; letter-spacing: .18em; font-size: 9.5px; margin-bottom: 8px; }
.contact__row { display: flex; border: 1px solid var(--line-2); }
.contact__row:focus-within { border-color: var(--lime); }
.contact__row input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; padding: 12px; font-size: 12px; color: var(--text); }
.contact__row input::placeholder { color: var(--faint); }
.contact__row button { padding: 0 16px; color: var(--lime); text-transform: uppercase; letter-spacing: .18em; font-size: 10px; border-left: 1px solid var(--line-2); transition: background .3s, color .3s; }
.contact__row button:hover { background: var(--lime); color: var(--bg); }
.contact__msg { margin-top: 8px; color: var(--faint); font-size: 10px; }
.contact__msg.is-ok { color: var(--lime); }
.contact__msg.is-err { color: #FF8FA3; }

.footer__cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 20px; }
.footer__cols h3 { font-weight: 500; color: var(--text); text-transform: uppercase; letter-spacing: .24em; font-size: 10.5px; margin-bottom: 18px; }
.footer__cols ul { display: grid; gap: 10px; }
.footer__cols a, .footer__cols button { color: var(--muted); font-size: 14px; text-align: left; transition: color .3s; }
.footer__cols a:hover, .footer__cols button:hover { color: var(--lime); }
.footer__bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 22px; margin-top: 40px; border-top: 1px solid var(--line); color: var(--faint); }

/* ---------- dialog ---------- */
.dialog { border: 1px solid var(--line-2); padding: 0; max-width: min(440px, calc(100vw - 32px)); background: var(--bg-2); color: var(--text); }
.dialog::backdrop { background: rgba(4, 5, 10, .7); backdrop-filter: blur(3px); }
.dialog form { padding: 28px; display: grid; gap: 14px; justify-items: start; }
.dialog h3 { font-size: 24px; font-weight: 300; letter-spacing: -0.03em; }
.dialog p { color: var(--muted); font-size: 14.5px; }
.dialog .dialog__tag { color: var(--lime); text-transform: uppercase; letter-spacing: .2em; font-size: 10px; }
.dialog[open] { animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .nav__links { gap: 18px; }
  .nav__links a { letter-spacing: .18em; }
  .ch { width: min(440px, 42vw); }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav { background: linear-gradient(rgba(9,11,20,.85), transparent); }

  .rail { top: calc(var(--nav-h) + 4px); transform: none; right: var(--pad); }
  .rail__list, .rail__track { display: none; }
  .rail__count { margin: 0; }

  /* chapters sit at the bottom over a soft scrim; the scene lives above them */
  .ch, .ch--hero {
    left: var(--pad); right: var(--pad); width: auto; top: auto;
    bottom: max(20px, env(safe-area-inset-bottom)); transform: none;
  }
  .ch::before {
    content: ""; position: absolute; z-index: -1; left: calc(var(--pad) * -1); right: calc(var(--pad) * -1);
    top: -64px; bottom: -40px; background: linear-gradient(rgba(9,11,20,0), rgba(9,11,20,.88) 64px, rgba(9,11,20,.96));
  }
  .ch__title { font-size: 1.85rem; }
  .ch__title--xl { font-size: clamp(2.2rem, 10.5vw, 2.9rem); }
  .ch__title--lg { font-size: 2.3rem; }
  .ch__eyebrow { margin: 12px 0 12px; }
  .ch__body { font-size: 14px; line-height: 1.55; }
  .ch__actions { flex-direction: column; gap: 12px; margin-top: 20px; }
  .ch__actions .bracket-btn { justify-content: center; }
  .status { margin-bottom: 14px; }
  .hud { margin-top: 16px; }
  .sim__log { min-height: 92px; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; margin-top: 16px; }
  .facts li { padding: 8px 10px; }
  .cats { margin-top: 16px; gap: 6px; }
  .cue { display: none; }
  .labels { display: none; }

  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) and (max-height: 720px) {
  .ch__body { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .status i { animation: none; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

/* ---------- admin-driven bits: CA box, X link ---------- */
[hidden] { display: none !important; }
.ca { margin-bottom: 24px; max-width: 470px; }
.ca__label { color: var(--muted); text-transform: uppercase; letter-spacing: .22em; font-size: 10px; margin-bottom: 8px; }
.ca__box { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border: 1px solid var(--line-2); background: rgba(9, 11, 20, .62); }
.ca__value { flex: 1; min-width: 0; font-family: var(--f-mono); font-size: 12px; color: var(--text); overflow-wrap: anywhere; line-height: 1.4; }
.ca__copy { flex: none; color: var(--lime); text-transform: uppercase; letter-spacing: .16em; font-size: 10px; padding: 4px 2px; transition: color .2s; }
.ca__copy:hover { color: #DAFF8F; }
.ca__copy.is-done { color: var(--text); }
.ca--footer { margin: 26px 0 0; max-width: 420px; }

.x-icon { width: 13px; height: 13px; fill: currentColor; flex: none; }
.nav__x { display: inline-flex; align-items: center; gap: 9px; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.nav__x:hover { color: var(--lime); }
.menu__x { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: .18em; }
.menu__x:hover { color: var(--lime); }
@media (max-width: 860px) {
  .nav__x { display: none; }
  .ca { margin-bottom: 14px; }
  .ca__value { font-size: 11px; }
}

/* ---------- hero: CA + X side by side (chapter 00) ---------- */
.hero-links { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 26px; max-width: 640px; }
.hero-links .ca { margin: 0; flex: 1 1 320px; min-width: 0; max-width: 470px; }
.ca.is-soon .ca__value { color: var(--muted); font-family: var(--f-mono); letter-spacing: .08em; text-transform: uppercase; font-size: 11px; }
.ca.is-soon .ca__box { border-style: dashed; }
.x-chip {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  padding: 0 16px; height: 42px; border: 1px solid var(--line-2); background: rgba(9, 11, 20, .62);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--text);
  transition: border-color .3s, color .3s, background .3s;
}
.x-chip:hover { border-color: var(--lime); color: var(--lime); background: rgba(199, 243, 107, .06); }
.x-chip .x-icon { width: 14px; height: 14px; }
@media (max-width: 860px) {
  .hero-links { margin-bottom: 14px; gap: 8px; }
  .hero-links .ca { flex-basis: 100%; max-width: none; }
  .x-chip { height: 36px; }
}
