/* ================================================================
   CLAUSE - execution layer landing
   Design language: deep graphite ground, single warm signal colour,
   monospace for anything that is a number or a machine utterance.
   Zero dependencies, zero CDN, no emoji, inline SVG only.
   ================================================================ */

@font-face {
  font-family: 'CLAUSE Sans';
  src: local('Space Grotesk'), local('Inter'), local('Segoe UI'), local('Helvetica Neue');
  font-display: swap;
}

:root {
  /* ground */
  --bg:        #07090d;
  --bg-2:      #0b0e14;
  --panel:     #0e121a;
  --panel-2:   #121722;
  --line:      rgba(255,255,255,.08);
  --line-2:    rgba(255,255,255,.14);

  /* ink */
  --ink:       #edf0f5;
  --ink-2:     #a4adbd;
  --ink-3:     #6b7688;

  /* signal - warm ember, deliberately one hue only */
  --sig:       #ff7a3d;
  --sig-2:     #ffb27a;
  --sig-dim:   rgba(255,122,61,.14);
  --sig-line:  rgba(255,122,61,.34);

  /* semantic */
  --pos:       #5fd39a;
  --neg:       #ff6b6b;
  --cool:      #6fa8ff;

  /* type */
  --sans: 'CLAUSE Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;

  /* rhythm */
  --wrap: 1180px;
  --pad: 24px;
  --r: 14px;
  --r-lg: 22px;

  /* motion */
  --e-out: cubic-bezier(.16,1,.3,1);
  --e-io:  cubic-bezier(.65,0,.35,1);
}

* { box-sizing: border-box; }

/* overflow-x lives on html, and it is `clip` not `hidden`.
   `hidden` on body promotes body to a scroll container, which breaks
   window.scrollTo and freezes the page. `clip` trims the axis without
   creating a scroll box. */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.03em; line-height: 1.06; }
p { margin: 0; }
button { font: inherit; color: inherit; }

.skip {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  padding: 10px 16px; background: var(--sig); color: #180b04;
  border-radius: 8px; font-weight: 600; text-decoration: none;
  transform: translateY(-160%); transition: transform .2s var(--e-out);
}
.skip:focus-visible { transform: none; }

:focus-visible { outline: 2px solid var(--sig); outline-offset: 3px; border-radius: 6px; }

/* ---------------------------------------------------- icon system
   One sprite, pulled with <use>. The sprite element itself must never
   occupy layout, and every icon sizes from its own class. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg.i, svg.rail-i, svg.fc-ico, svg.prompt-caret, svg.cf-caret,
.brand-mark svg, .tok-i svg { display: block; flex: none; }
svg.i { width: 16px; height: 16px; }
svg.rail-i { width: 22px; height: 22px; color: var(--sig); }
svg.fc-ico { width: 18px; height: 18px; padding: 3px; border-radius: 5px;
  background: rgba(255,255,255,.06); color: var(--ink-2); box-sizing: content-box; }
svg.prompt-caret, svg.cf-caret { width: 14px; height: 14px; color: var(--sig); }
.brand-mark svg { width: 19px; height: 19px; }
.tok-i svg { width: 21px; height: 21px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* ---------------------------------------------------- ambient layers */

#bg {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; opacity: .55;
}

/* film grain so the flat dark never looks like a plain div */
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none;
  opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/></filter><rect width='120' height='120' filter='url(%23n)'/></svg>");
  animation: grain 7s steps(6) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-3%,2%); }
  40% { transform: translate(2%,-3%); }
  60% { transform: translate(-2%,-2%); }
  80% { transform: translate(3%,1%); }
}

.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(255,122,61,.10), transparent 60%),
    radial-gradient(100% 60% at 50% 110%, rgba(111,168,255,.06), transparent 55%);
}

main, .nav, .foot { position: relative; z-index: 2; }

/* ---------------------------------------------------- nav */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  transition: background .3s var(--e-out), border-color .3s var(--e-out), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(7,9,13,.78);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-in { display: flex; align-items: center; gap: 20px; height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 30px; height: 30px; display: grid; place-items: center;
  border: 1px solid var(--sig-line); border-radius: 9px; color: var(--sig);
  background: var(--sig-dim);
  transition: transform .4s var(--e-out), box-shadow .4s var(--e-out);
}
.brand-mark svg { width: 19px; height: 19px; }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); box-shadow: 0 0 22px rgba(255,122,61,.32); }
.brand-word { font-weight: 650; letter-spacing: .14em; font-size: 15px; }
.brand-tick {
  font-family: var(--mono); font-size: 10.5px; color: var(--sig);
  border: 1px solid var(--sig-line); border-radius: 5px; padding: 2px 6px;
  letter-spacing: .04em;
}

.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a {
  position: relative; padding: 8px 12px; font-size: 13.5px; color: var(--ink-2);
  text-decoration: none; border-radius: 8px; transition: color .2s, background .2s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px;
  background: var(--sig); transform: scaleX(0); transform-origin: left;
  transition: transform .32s var(--e-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta { display: flex; align-items: center; gap: 8px; }
/* icon-only X in the header: same 44px height as .btn so the row stays level */
.nav-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: none;
  color: var(--ink-2); text-decoration: none;
  border: 1px solid var(--line); border-radius: 10px;
  background: rgba(255,255,255,.022);
  transition: color .2s, border-color .2s, background .2s, transform .2s var(--e-out);
}
.nav-x svg { width: 15px; height: 15px; display: block; }
.nav-x:hover { color: var(--ink); border-color: var(--sig-line); background: var(--sig-dim); transform: translateY(-1px); }

.burger {
  display: none; width: 42px; height: 42px; margin-left: auto;
  background: none; border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer; padding: 0; position: relative;
}
.burger span {
  position: absolute; left: 12px; width: 18px; height: 1.5px; background: var(--ink);
  transition: transform .3s var(--e-out), opacity .2s;
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 23px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

.mobnav {
  display: flex; flex-direction: column; gap: 2px; padding: 8px var(--pad) 20px;
  background: rgba(7,9,13,.96); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.mobnav a {
  padding: 14px 4px; color: var(--ink-2); text-decoration: none; font-size: 15px;
  border-bottom: 1px solid var(--line);
}
/* drawer entry: .nav-cta is hidden under 900px, so the X link needs its own row
   here or it disappears on phones */
.mobnav-x {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 4px; color: var(--ink-2); text-decoration: none; font-size: 15px;
  border-bottom: 1px solid var(--line); font-family: var(--mono);
}
.mobnav-x svg { width: 14px; height: 14px; flex: none; }
.mobnav .btn { margin-top: 14px; }

/* ---------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 11px;
  font-size: 14px; font-weight: 550; letter-spacing: -.01em;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .22s var(--e-out), background .22s, border-color .22s, box-shadow .32s var(--e-out), color .22s;
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .28s var(--e-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.975); }

.btn-solid {
  background: linear-gradient(180deg, var(--sig-2), var(--sig));
  color: #1b0a02; font-weight: 620;
  box-shadow: 0 1px 0 rgba(255,255,255,.28) inset, 0 10px 30px -10px rgba(255,122,61,.5);
}
.btn-solid:hover { box-shadow: 0 1px 0 rgba(255,255,255,.32) inset, 0 16px 44px -12px rgba(255,122,61,.7); transform: translateY(-1px); }

/* sheen that sweeps once on hover - cheap, no JS */
.btn-solid::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  transform: translateX(-160%) skewX(-18deg); transition: transform .7s var(--e-out);
}
.btn-solid:hover::after { transform: translateX(320%) skewX(-18deg); }

.btn-line { background: rgba(255,255,255,.03); border-color: var(--line-2); color: var(--ink); }
.btn-line:hover { border-color: var(--sig-line); background: var(--sig-dim); color: var(--ink); transform: translateY(-1px); }

.btn-ghost { background: none; border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { color: var(--ink); border-color: var(--line-2); }

.btn-lg { min-height: 52px; padding: 0 24px; font-size: 15px; border-radius: 13px; }
.btn-sm { min-height: 38px; padding: 0 13px; font-size: 12.5px; border-radius: 9px; }
.btn-block { width: 100%; }

/* ---------------------------------------------------- reveal system */

.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s var(--e-out), transform .8s var(--e-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------------------------------------------------- hero */

.hero { padding: 168px 0 84px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-2); border: 1px solid var(--line); border-radius: 100px;
  padding: 7px 14px; background: rgba(255,255,255,.02);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sig); box-shadow: 0 0 0 0 rgba(255,122,61,.6); animation: ping 2.4s var(--e-io) infinite; }
.dot-live { background: var(--pos); }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(255,122,61,.55); }
  70% { box-shadow: 0 0 0 8px rgba(255,122,61,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,122,61,0); }
}
.sep { width: 1px; height: 11px; background: var(--line-2); }

h1 {
  margin: 26px 0 0;
  font-size: clamp(40px, 8.4vw, 88px);
  letter-spacing: -.042em;
}
h1 .line { display: block; }
h1 em {
  font-style: normal;
  background: linear-gradient(96deg, var(--sig-2) 0%, var(--sig) 46%, #ff5a1f 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.lede {
  margin-top: 22px; max-width: 620px; font-size: clamp(15.5px, 2.1vw, 18.5px);
  color: var(--ink-2); line-height: 1.62;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.prompt {
  display: flex; align-items: center; gap: 10px; margin-top: 40px;
  max-width: 620px; padding: 15px 18px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  font-family: var(--mono); font-size: 13px; color: var(--ink-2);
  box-shadow: 0 22px 60px -30px rgba(0,0,0,.9);
}
.prompt-caret { color: var(--sig); }
.prompt-text { white-space: nowrap; overflow: hidden; }
.prompt-cursor { width: 7px; height: 15px; background: var(--sig); animation: blink 1.05s steps(2) infinite; flex: none; }
@keyframes blink { 50% { opacity: 0; } }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: 56px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
}
.stat { padding: 20px 18px; background: var(--bg-2); }
.stat b { display: block; font-family: var(--mono); font-size: clamp(20px, 3.1vw, 27px); font-weight: 500; letter-spacing: -.03em; }
.stat span { display: block; margin-top: 5px; font-size: 12px; color: var(--ink-3); letter-spacing: .01em; }

/* ---------------------------------------------------- live card */

.live-band { padding: 20px 0 40px; }

.live-card {
  position: relative; padding: 26px; border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  background: linear-gradient(165deg, var(--panel-2), var(--panel) 65%);
  box-shadow: 0 40px 100px -50px rgba(0,0,0,1);
  overflow: hidden;
}
/* animated conic edge - the "expensive" tell, done with one pseudo element */
.live-card::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--a, 0deg), transparent 0 62%, var(--sig-line) 78%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spin 9s linear infinite; pointer-events: none;
}
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --a: 360deg; } }

.lc-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.pill {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 100px; border: 1px solid var(--line-2); color: var(--ink-2);
}
.pill-live { color: var(--pos); border-color: rgba(95,211,154,.32); display: inline-flex; align-items: center; gap: 6px; }
.pill-live i { width: 5px; height: 5px; border-radius: 50%; background: var(--pos); animation: blink 1.6s var(--e-io) infinite; }
.lc-venue { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }

.lc-title { margin-top: 18px; font-size: clamp(21px, 3.4vw, 30px); }
.lc-body { margin-top: 10px; max-width: 560px; color: var(--ink-2); font-size: 14.5px; }

.lc-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-top: 22px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.lc-grid b { display: block; font-family: var(--mono); font-size: 18px; font-weight: 500; }
.lc-grid span { display: block; margin-top: 3px; font-size: 11.5px; color: var(--ink-3); }
.pos { color: var(--pos); }
.neg { color: var(--neg); }

.lc-log {
  display: flex; gap: 12px; margin-top: 16px;
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-2);
}
.lc-time { color: var(--sig); }
.live-card .btn { margin-top: 20px; }

/* ---------------------------------------------------- sections */

.sec { padding: 96px 0; }
.sec-head { max-width: 680px; }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--sig); margin-bottom: 16px;
}
.sec-head h2 { font-size: clamp(28px, 5vw, 48px); }
.sec-head p { margin-top: 16px; color: var(--ink-2); font-size: clamp(15px, 2vw, 17px); }

/* ---------------------------------------------------- steps */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.step {
  position: relative; padding: 26px 24px 24px; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,.008));
  transition: transform .45s var(--e-out), border-color .45s, background .45s;
  overflow: hidden;
}
.step::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(255,122,61,.09), transparent 62%);
  opacity: 0; transition: opacity .45s;
}
.step:hover { transform: translateY(-5px); border-color: var(--sig-line); }
.step:hover::after { opacity: 1; }
.step-n { font-family: var(--mono); font-size: 12px; color: var(--sig); letter-spacing: .1em; }
.step h3 { margin-top: 14px; font-size: 20px; }
.step p { margin-top: 10px; color: var(--ink-2); font-size: 14.5px; }

.step-vis {
  margin-top: 22px; height: 108px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(0,0,0,.28); padding: 14px; display: flex; position: relative; overflow: hidden;
}
.vis-spec { flex-direction: column; gap: 8px; justify-content: center; }
.sl {
  display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-2);
  opacity: 0; transform: translateX(-8px); animation: slIn .5s var(--e-out) forwards;
}
.sl i { font-style: normal; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 4px; background: var(--sig-dim); color: var(--sig); font-size: 9.5px; flex: none; }
.step:hover .sl:nth-child(1) { animation-delay: .02s; }
.step:hover .sl:nth-child(2) { animation-delay: .12s; }
.step:hover .sl:nth-child(3) { animation-delay: .22s; }
.sl:nth-child(1) { animation-delay: .1s; }
.sl:nth-child(2) { animation-delay: .22s; }
.sl:nth-child(3) { animation-delay: .34s; }
@keyframes slIn { to { opacity: 1; transform: none; } }

.vis-dry { align-items: center; justify-content: center; }
.dryline {
  position: absolute; left: 0; right: 0; height: 46px; top: 50%; margin-top: -23px;
  background:
    linear-gradient(90deg, transparent, rgba(95,211,154,.16), transparent),
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 26px);
  -webkit-mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
          mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.dryline::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 2px; background: var(--pos);
  box-shadow: 0 0 14px var(--pos); animation: sweep 2.8s var(--e-io) infinite;
}
@keyframes sweep { 0% { left: 4%; } 100% { left: 96%; } }
.drybadge {
  position: relative; z-index: 1; font-family: var(--mono); font-size: 10.5px;
  color: var(--pos); border: 1px solid rgba(95,211,154,.3); border-radius: 100px;
  padding: 4px 10px; background: rgba(7,9,13,.9); letter-spacing: .06em;
}

.vis-ladder { flex-direction: column; gap: 6px; justify-content: center; }
.rung {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 10px; border-radius: 7px; border: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  transition: border-color .3s, color .3s, background .3s;
}
.rung b { font-weight: 500; letter-spacing: .05em; }
.rung.on { border-color: var(--sig-line); color: var(--sig); background: var(--sig-dim); }
.step:hover .rung { border-color: var(--line-2); }

/* ---------------------------------------------------- replay */

.sec-engine { background: linear-gradient(180deg, transparent, rgba(255,255,255,.014), transparent); }

/* ---------------------------------------------------- live on-chain board */
.live { margin-top: 26px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.014); overflow: hidden; }
.live-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 15px 20px; border-bottom: 1px solid var(--line); }
.live-tag { display: inline-flex; align-items: center; gap: 9px; font: 600 12px/1 var(--mono);
  letter-spacing: .13em; text-transform: uppercase; color: var(--sig); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pos); box-shadow: 0 0 0 4px rgba(95,211,154,.16); animation: livePulse 2.2s ease-in-out infinite; }
@keyframes livePulse { 50% { opacity: .35; } }
.live-meta { font: 400 12px/1 var(--mono); color: var(--ink-3); letter-spacing: .04em; }
.live-meta b { color: var(--ink-2); font-weight: 600; }
.live-meta i { display: inline-block; width: 1px; height: 10px; margin: 0 10px; background: var(--line); vertical-align: -1px; }

.lt { display: flex; flex-direction: column; }
.lt-empty { padding: 26px 20px; font: 400 13px/1 var(--mono); color: var(--ink-3); }
.lt-row { display: grid; grid-template-columns: 1.5fr 1.1fr 1fr 1fr 1fr 42px;
  align-items: center; gap: 14px; padding: 15px 20px; border-top: 1px solid var(--line); }
.lt-row:first-child { border-top: 0; }
.lt-tok b { display: block; font: 700 15px/1.2 var(--sans); color: var(--ink); }
.lt-tok span { display: block; margin-top: 3px; font: 400 11px/1 var(--mono); color: var(--ink-3); letter-spacing: .04em; }
.lt-price { font: 700 15px/1.2 var(--mono); color: var(--ink); }
.lt-price i { display: block; margin-top: 3px; font: 600 11px/1 var(--mono); font-style: normal; color: var(--ink-3); }
.lt-price i.pos { color: var(--pos); }
.lt-price i.neg { color: var(--neg); }
.lt-cell span { display: block; font: 400 10px/1 var(--mono); letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3); }
.lt-cell b { display: block; margin-top: 4px; font: 600 13px/1 var(--mono); color: var(--ink-2); }
.lt-link { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  border: 1px solid var(--line); color: var(--ink-3); transition: color .18s, border-color .18s, background .18s; }
.lt-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.lt-link:hover { color: var(--sig); border-color: rgba(255,122,61,.45); background: rgba(255,122,61,.08); }
.live-src { margin: 0; padding: 15px 20px; border-top: 1px solid var(--line);
  font: 400 12px/1.65 var(--mono); color: var(--ink-3); letter-spacing: .02em; }
.live-src code { color: var(--ink-2); }

@media (max-width: 900px) {
  /* drop fdv first, then vol, so the row never goes ragged */
  .lt-row { grid-template-columns: 1.4fr 1fr 1fr 42px; }
  .lt-row .lt-cell:nth-of-type(3) { display: none; }
}
@media (max-width: 620px) {
  .lt-row { grid-template-columns: 1.3fr 1fr 42px; }
  .lt-row .lt-cell { display: none; }
}

/* ---------------------------------------------------- swap / quote + wallet */
.swap { margin-top: 26px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.014); overflow: hidden; }
.swap-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 20px 22px; border-bottom: 1px solid var(--line); }
.swap-title .tag { display: block; }
.swap-title h3 { margin-top: 8px; font-size: 20px; color: var(--ink); }
.swap-w { display: inline-flex; align-items: center; gap: 12px; }
.wwho { display: inline-flex; align-items: center; gap: 8px; font: 500 12.5px/1 var(--mono); color: var(--ink-2); }
.wwho a { color: var(--sig); margin-left: 2px; }
.wdot { width: 8px; height: 8px; border-radius: 50%; }
.wdot.ok { background: var(--pos); box-shadow: 0 0 0 4px rgba(95,211,154,.16); }
.wdot.warn { background: var(--sig); box-shadow: 0 0 0 4px rgba(255,122,61,.16); }

.swap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.qbox { padding: 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.qlab { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.qlab i { font-style: normal; color: var(--sig); }
.qsel, .qamt { width: 100%; background: var(--panel); border: 1px solid var(--line-2); color: var(--ink);
  border-radius: 12px; padding: 13px 14px; font: 500 15px/1 var(--sans); }
.qsel { -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg,transparent 50%,var(--ink-3) 50%),linear-gradient(135deg,var(--ink-3) 50%,transparent 50%);
  background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.qamt { font-family: var(--mono); }
.qsel:focus, .qamt:focus { outline: none; border-color: var(--sig-line); box-shadow: 0 0 0 4px rgba(255,122,61,.08); }
.qdir { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px;
  background: transparent; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2);
  font: 500 12px/1 var(--mono); cursor: pointer; transition: color .18s, border-color .18s; }
.qdir svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.qdir:hover { color: var(--sig); border-color: var(--sig-line); }
.qres { margin-top: 4px; padding: 14px 16px; border: 1px solid var(--sig-line); border-radius: 12px; background: var(--sig-dim); }
.qres span { display: block; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.qres span i { font-style: normal; color: var(--sig); }
.qres b { display: block; margin-top: 6px; font: 700 22px/1.1 var(--mono); color: var(--ink); word-break: break-all; }
.qmeta { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 16px; }
.qmeta span { display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  font: 400 11.5px/1.3 var(--mono); color: var(--ink-3); border-bottom: 1px solid var(--line); padding-bottom: 7px; }
.qmeta b { font-weight: 600; color: var(--ink-2); text-align: right; }
.qmeta b.neg { color: var(--sig-2); }

.wpanel { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.wp-lab { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.wbal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.wb-cell { padding: 13px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.wb-cell span { display: block; font: 600 12px/1 var(--sans); color: var(--sig); }
.wb-cell b { display: block; margin-top: 6px; font: 700 15px/1.1 var(--mono); color: var(--ink); word-break: break-all; }
.wb-cell i { display: block; margin-top: 4px; font: 400 10px/1 var(--mono); letter-spacing: .04em; color: var(--ink-3); font-style: normal; }
.wb-cell.wb-pad { border-style: dashed; opacity: .35; }
.wb-cell.wb-err b { color: var(--sig-2); }

.wlist { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; max-height: 52vh; overflow-y: auto; padding-right: 2px; }
.wopt { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.015);
  color: var(--ink); font: 500 14.5px/1.2 var(--sans); text-align: left; cursor: pointer;
  transition: border-color .2s var(--e-out), background .2s var(--e-out); }
.wopt:hover { border-color: var(--sig-line); background: rgba(255,122,61,.06); }
.wopt:focus-visible { outline: none; border-color: var(--sig-line); box-shadow: 0 0 0 4px rgba(255,122,61,.10); }
.wopt-l { display: flex; align-items: center; gap: 11px; min-width: 0; }
.wopt-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* official wallet marks: fixed 30px box, contain so nothing is clipped.
   the marks already carry their own shape, so no border-radius on the image. */
.wlogo { width: 30px; height: 30px; flex: 0 0 30px; object-fit: contain; display: block;
  border-radius: 7px; background: rgba(255,255,255,.04); padding: 1px;
  /* dark-tiled marks (OKX black, Rainbow navy) lose their edge against the panel;
     a hairline ring keeps every row reading as the same chip. */
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.wlogo-fb { display: grid; place-items: center; font: 700 13px/1 var(--sans); color: var(--ink-2);
  background: rgba(255,255,255,.06); border-radius: 8px; }

.wbadge { flex: 0 0 auto; font: 400 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); border: 1px solid var(--line); border-radius: 999px; padding: 5px 8px; }
.wbadge-on { color: var(--pos); border-color: rgba(64,220,150,.32); background: rgba(64,220,150,.07); }
.wempty { margin-top: 18px; font: 400 13.5px/1.6 var(--sans); color: var(--ink-3); }
.wstatus { margin-top: 14px; font: 400 12.5px/1.5 var(--mono); color: var(--ink-2); }

@media (max-width: 420px) {
  .wopt { padding: 10px 11px; gap: 8px; }
  .wopt-l { gap: 9px; }
  .wbadge { padding: 4px 6px; font-size: 9px; letter-spacing: .08em; }
}
.no-scroll { overflow: hidden; }

@media (max-width: 760px) {
  .swap-grid { grid-template-columns: 1fr; }
  .qbox { border-right: 0; border-bottom: 1px solid var(--line); }
  .wbal { grid-template-columns: repeat(2, 1fr); }
  .wb-cell.wb-pad { display: none; }
}

/* ---------------------------------------------------- swap execution row */
.qexec { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.qslip { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.qslip > span { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.qslip-btns { display: flex; gap: 6px; }
.qslip-btns button { appearance: none; cursor: pointer; border: 1px solid var(--line);
  background: rgba(255,255,255,.02); color: var(--ink-2); border-radius: 8px;
  padding: 5px 10px; font: 600 12px/1 var(--mono); transition: border-color .16s ease, color .16s ease, background .16s ease; }
.qslip-btns button:hover { color: var(--ink); border-color: var(--sig-line); }
.qslip-btns button[data-on] { color: var(--sig); border-color: var(--sig-line); background: var(--sig-dim); }
#qSwap { width: 100%; justify-content: center; }
#qSwap:disabled { opacity: .45; cursor: not-allowed; filter: saturate(.35); }
.qexec-note { margin: 0; font: 400 12px/1.5 var(--sans); color: var(--ink-3); }
.qexec-note a { color: var(--sig); }

/* confirm sheet */
.scbox { max-width: 440px; }
.sc-rows { display: grid; gap: 1px; margin: 14px 0 12px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.sc-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 10px 12px; background: rgba(255,255,255,.015); }
.sc-row span { font: 500 11px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.sc-row b { font: 600 13px/1.3 var(--mono); color: var(--ink); text-align: right; word-break: break-word; }
.sc-fine { margin: 0 0 14px; font: 400 12px/1.55 var(--sans); color: var(--ink-3); }
.sc-acts { display: flex; gap: 10px; }
.sc-acts .btn { flex: 1 1 0; justify-content: center; }

@media (max-width: 520px) {
  .qslip { align-items: flex-start; }
  .sc-row { flex-direction: column; gap: 3px; }
  .sc-row b { text-align: left; }
}

/* ---------------------------------------------------- chain / settlement band */
.sec-chain { background: linear-gradient(180deg, transparent, var(--sig-dim), transparent); }
.v-on { color: var(--sig) !important; border-color: var(--sig-line) !important; }
.chain-grid {
  display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 20px; margin-top: 36px; align-items: start;
}
.chain-facts {
  border: 1px solid var(--sig-line); border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--sig-dim), transparent); overflow: hidden;
}
.cf-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.cf-row:last-child { border-bottom: 0; }
.cf-row span {
  font-family: var(--mono); font-size: 11px; letter-spacing: .11em;
  text-transform: uppercase; color: var(--ink-3);
}
.cf-row b { font-family: var(--mono); font-size: 15px; color: var(--sig); }
.chain-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 920px) {
  .chain-grid { grid-template-columns: minmax(0, 1fr); }
  .chain-why { grid-template-columns: minmax(0, 1fr); }
}

.replay {
  margin-top: 44px; border: 1px solid var(--line-2); border-radius: var(--r-lg);
  background: linear-gradient(170deg, var(--panel-2), var(--panel));
  overflow: hidden; box-shadow: 0 50px 120px -60px rgba(0,0,0,1);
}
.rp-rail {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.rp-tab {
  background: none; border: 0; border-right: 1px solid var(--line);
  padding: 18px 16px; text-align: left; cursor: pointer;
  font-size: 13.5px; color: var(--ink-3); transition: color .3s, background .3s;
}
.rp-tab:last-child { border-right: 0; }
.rp-tab b { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; margin-bottom: 5px; opacity: .7; }
.rp-tab:hover { color: var(--ink-2); background: rgba(255,255,255,.02); }
.rp-tab.is-on { color: var(--ink); background: rgba(255,122,61,.055); }
.rp-prog {
  position: absolute; bottom: -1px; left: 0; width: 25%; height: 2px;
  background: linear-gradient(90deg, var(--sig), var(--sig-2));
  box-shadow: 0 0 16px rgba(255,122,61,.6);
  transition: transform .5s var(--e-out);
}

.rp-stage { position: relative; min-height: 268px; padding: 30px 28px; }
.rp-panel { position: absolute; inset: 30px 28px; opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .45s var(--e-out), transform .45s var(--e-out); }
.rp-panel.is-on { opacity: 1; transform: none; pointer-events: auto; position: relative; inset: auto; }

.rp-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--sig);
}
.rp-status::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--sig);
  animation: blink 1.2s var(--e-io) infinite;
}
.rp-quote { margin-top: 18px; font-size: clamp(19px, 3.2vw, 30px); letter-spacing: -.03em; line-height: 1.28; max-width: 720px; }
.rp-quote-sm { font-size: clamp(15px, 2.2vw, 19px); color: var(--ink-2); line-height: 1.55; }

.rp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip {
  font-family: var(--mono); font-size: 11px; padding: 5px 11px; border-radius: 100px;
  border: 1px solid var(--line); background: rgba(0,0,0,.3); color: var(--ink-2);
}

.route { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 24px; }
.node {
  display: flex; flex-direction: column; gap: 2px; padding: 12px 16px;
  border: 1px solid var(--line-2); border-radius: 12px; background: rgba(0,0,0,.32); min-width: 84px;
}
.node b { font-family: var(--mono); font-size: 14px; font-weight: 500; }
.node i { font-style: normal; font-size: 10.5px; color: var(--ink-3); font-family: var(--mono); }
.node-out { border-color: var(--sig-line); background: var(--sig-dim); }
.node-out b { color: var(--sig); }
.arrow { position: relative; flex: 1; min-width: 62px; height: 30px; display: grid; place-items: center; }
.arrow::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 5px, transparent 5px 10px);
}
.arrow::after {
  content: ''; position: absolute; top: 50%; margin-top: -2.5px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--sig); box-shadow: 0 0 10px var(--sig); animation: flow 2s linear infinite;
}
@keyframes flow { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.arrow em { position: relative; font-style: normal; font-family: var(--mono); font-size: 10px; color: var(--ink-3); background: var(--panel); padding: 0 7px; }

.fill { display: flex; align-items: center; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.fill-row { display: flex; flex-direction: column; gap: 3px; padding: 14px 18px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(0,0,0,.32); }
.fill-row span { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.fill-row b { font-family: var(--mono); font-size: 20px; font-weight: 500; }
.fill-arrow { width: 34px; height: 1px; background: var(--line-2); position: relative; }
.fill-arrow::after { content: ''; position: absolute; right: -1px; top: -3px; border-left: 6px solid var(--line-2); border-top: 3.5px solid transparent; border-bottom: 3.5px solid transparent; }

/* ---------------------------------------------------- venues */

.venues { margin-top: 34px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.vrow { display: flex; gap: 18px; padding: 18px 22px; border-bottom: 1px solid var(--line); align-items: baseline; flex-wrap: wrap; }
.vrow:last-child { border-bottom: 0; }
.vlab { flex: none; width: 168px; font-family: var(--mono); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
/* fixed 4-wide track: every item is the same width, so no row ends ragged
   and the 8-item rows land as two flush lines of four */
.vitems { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.vitems span {
  text-align: center;
  font-size: 13px; padding: 6px 13px; border-radius: 9px; border: 1px solid var(--line);
  color: var(--ink-2); background: rgba(255,255,255,.02);
  transition: border-color .28s, color .28s, transform .28s var(--e-out), background .28s;
}
.vitems span:hover { border-color: var(--sig-line); color: var(--ink); transform: translateY(-2px); background: var(--sig-dim); }

.rails { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.rail { padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(255,255,255,.018); }
.rail svg { width: 22px; height: 22px; color: var(--sig); }
.rail b { display: block; margin-top: 14px; font-size: 15px; font-weight: 550; }
.rail span { display: block; margin-top: 7px; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }

/* ---------------------------------------------------- connect */

.connect-in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.connect-copy h2 { font-size: clamp(27px, 4.4vw, 42px); }
.connect-copy p { margin-top: 16px; color: var(--ink-2); font-size: 16px; }

.conn-steps { list-style: none; margin: 28px 0 0; padding: 0; counter-reset: c; }
.conn-steps li {
  position: relative; padding: 0 0 20px 44px; counter-increment: c;
}
.conn-steps li::before {
  content: counter(c); position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px;
  font-family: var(--mono); font-size: 12px; color: var(--sig);
  border: 1px solid var(--sig-line); background: var(--sig-dim);
}
.conn-steps li::after {
  content: ''; position: absolute; left: 13.5px; top: 32px; bottom: 6px; width: 1px;
  background: linear-gradient(180deg, var(--sig-line), transparent);
}
.conn-steps li:last-child { padding-bottom: 0; }
.conn-steps li:last-child::after { display: none; }
.conn-steps b { display: block; font-size: 15px; font-weight: 550; }
.conn-steps span { display: block; margin-top: 5px; font-size: 13.5px; color: var(--ink-2); }

.connect-card {
  border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(170deg, var(--panel-2), var(--panel));
  box-shadow: 0 44px 110px -55px rgba(0,0,0,1);
}
.cc-head { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); background: rgba(0,0,0,.24); }
.cc-dots { display: flex; gap: 6px; }
.cc-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.cc-dots i:first-child { background: rgba(255,107,107,.5); }
.cc-file { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }

.cc-body { display: flex; align-items: center; gap: 12px; padding: 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cc-body code {
  flex: 1; min-width: 200px; font-family: var(--mono); font-size: 13px; color: var(--sig-2);
  padding: 11px 14px; border-radius: 10px; border: 1px dashed var(--sig-line); background: var(--sig-dim);
  word-break: break-all;
}
.cc-code { padding: 18px; background: rgba(0,0,0,.3); }
.cc-code pre { margin: 0; font-family: var(--mono); font-size: 12.5px; line-height: 1.7; color: var(--ink-2); overflow-x: auto; }
.cc-code .c { color: var(--ink-3); }
.cc-code .k { color: var(--cool); }
.cc-code .s { color: var(--pos); }
.cc-foot { display: flex; align-items: center; gap: 14px; padding: 15px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.cc-note { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }

/* ---------------------------------------------------- feed marquee */

.sec-feed { padding-bottom: 104px; }
.marquee { margin-top: 26px; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.mq-track { display: flex; gap: 14px; width: max-content; animation: mqL 44s linear infinite; }
.marquee[data-dir="right"] .mq-track { animation-name: mqR; animation-duration: 52s; }
.marquee:hover .mq-track { animation-play-state: paused; }
@keyframes mqL { to { transform: translateX(-50%); } }
@keyframes mqR { from { transform: translateX(-50%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .mq-track { animation: none; } }

.fcard {
  flex: none; width: 296px; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 9px;
  padding: 18px; border-radius: var(--r); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.008));
  transition: transform .35s var(--e-out), border-color .35s, background .35s;
}
.fcard:hover { transform: translateY(-4px); border-color: var(--sig-line); background: linear-gradient(180deg, rgba(255,122,61,.07), rgba(255,255,255,.01)); }
.fc-src { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
/* fixed heights so every card in a marquee row lines up: the title gets two
   lines and the body two, whether or not the copy fills them */
.fcard b { font-size: 14.5px; font-weight: 550; line-height: 1.35; min-height: calc(14.5px * 1.35 * 2); }
.fc-b { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; min-height: calc(12.5px * 1.5 * 2); }
.fc-m { margin-top: auto; font-family: var(--mono); font-size: 13px; }
.fc-m i { font-style: normal; font-size: 10.5px; color: var(--ink-3); margin-left: 5px; }
.fc-m.pos { color: var(--pos); }
.fc-m.neg { color: var(--neg); }
.fc-m.mon { color: var(--cool); }

/* ---------------------------------------------------- token */

.tok-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 42px; }
.tok {
  padding: 24px 22px; border-radius: var(--r-lg); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,.006));
  transition: transform .4s var(--e-out), border-color .4s;
}
.tok:hover { transform: translateY(-5px); border-color: var(--sig-line); }
.tok-i {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px;
  border: 1px solid var(--sig-line); background: var(--sig-dim); color: var(--sig);
}
.tok-i svg { width: 21px; height: 21px; }
.tok h3 { margin-top: 18px; font-size: 17px; }
.tok p { margin-top: 9px; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }

/* ---------------------------------------------------- cta */

.cta { padding: 40px 0 104px; }
.cta-in {
  position: relative; padding: clamp(34px, 6vw, 68px) clamp(24px, 5vw, 56px);
  border-radius: 26px; border: 1px solid var(--line-2); overflow: hidden;
  background:
    radial-gradient(90% 130% at 50% -20%, rgba(255,122,61,.16), transparent 62%),
    linear-gradient(170deg, var(--panel-2), var(--panel));
  box-shadow: 0 50px 130px -60px rgba(0,0,0,1);
}
.cta-in h2 { font-size: clamp(26px, 5vw, 46px); max-width: 620px; }

.cta-field {
  display: flex; align-items: center; gap: 10px; margin-top: 28px; padding: 8px 8px 8px 16px;
  border: 1px solid var(--line-2); border-radius: 15px; background: rgba(0,0,0,.4);
  transition: border-color .3s, box-shadow .3s;
  flex-wrap: wrap;
}
.cta-field:focus-within { border-color: var(--sig-line); box-shadow: 0 0 0 4px rgba(255,122,61,.09); }
.cf-caret { font-family: var(--mono); color: var(--sig); flex: none; }
.cta-field input {
  flex: 1; min-width: 180px; background: none; border: 0; outline: none; color: var(--ink);
  font-family: var(--mono); font-size: 14px; padding: 12px 0;
}
.cta-field input::placeholder { color: var(--ink-3); }
.cta-note { margin-top: 16px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }

/* ---------------------------------------------------- footer */

.foot { border-top: 1px solid var(--line); padding: 52px 0 30px; background: rgba(0,0,0,.3); }
.foot-in { display: flex; gap: 48px; flex-wrap: wrap; justify-content: space-between; }
.foot-brand { display: flex; gap: 12px; align-items: flex-start; max-width: 260px; }
.foot-brand b { display: block; font-size: 14px; letter-spacing: .14em; }
.foot-brand span { display: block; margin-top: 5px; font-size: 13px; color: var(--ink-3); }
/* 3 equal tracks, never wrapping to a ragged 2+1 */
.foot-cols { display: grid; grid-template-columns: repeat(3, auto); gap: 52px; }
.foot-cols > div { display: flex; flex-direction: column; gap: 9px; }
.fh { font-family: var(--mono); font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px; }
.foot-cols a, .foot-cols button {
  font-size: 13.5px; color: var(--ink-2); text-decoration: none; background: none; border: 0;
  padding: 0; text-align: left; cursor: pointer; transition: color .22s;
}
.foot-cols a:hover, .foot-cols button:hover { color: var(--sig); }
.foot-bot {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--ink-3);
}
/* right side of the bottom bar: X link then the gateway pill, so the row keeps
   one left block and one right block at every width */
.foot-end { display: inline-flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.foot-x {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink-2); text-decoration: none; font-family: var(--mono);
  border: 1px solid var(--line); border-radius: 9px; padding: 7px 11px;
  background: rgba(255,255,255,.022);
  transition: color .2s, border-color .2s, background .2s, transform .2s var(--e-out);
}
.foot-x svg { width: 13px; height: 13px; flex: none; }
.foot-x:hover { color: var(--ink); border-color: var(--sig-line); background: var(--sig-dim); transform: translateY(-1px); }
.foot-live { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); }
.foot-live i { width: 5px; height: 5px; border-radius: 50%; background: var(--pos); animation: blink 2s var(--e-io) infinite; }

/* ---------------------------------------------------- modal (in-site, themed) */

/* The `hidden` attribute is only a UA default of display:none, so any
   explicit display here beats it and leaves an invisible full-screen layer
   swallowing every click. Kill it explicitly. */
[hidden] { display: none !important; }

.modal { position: fixed; inset: 0; z-index: 300; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 20px; }
.modal-scrim { position: absolute; inset: 0; background: rgba(3,5,8,.76); backdrop-filter: blur(8px); animation: fade .3s var(--e-out); }
@keyframes fade { from { opacity: 0; } }
.modal-box {
  position: relative; width: 100%; max-width: min(470px, 100%); padding: 32px 28px 26px;
  border-radius: 22px; border: 1px solid var(--line-2);
  background: linear-gradient(170deg, var(--panel-2), var(--panel));
  box-shadow: 0 50px 130px -50px rgba(0,0,0,1);
  animation: pop .42s var(--e-out);
}
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.modal-x {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px;
  display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line);
  background: none; cursor: pointer; color: var(--ink-2); transition: color .2s, border-color .2s;
}
.modal-x:hover { color: var(--ink); border-color: var(--line-2); }
.modal-x svg { width: 16px; height: 16px; }
.modal-tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--sig); }
.modal-box h3 { margin-top: 14px; font-size: 24px; }
.modal-box p { margin-top: 12px; font-size: 14.5px; color: var(--ink-2); }
.modal-form { display: flex; gap: 9px; margin-top: 22px; flex-wrap: wrap; }
.modal-form input {
  flex: 1; min-width: 170px; padding: 13px 15px; border-radius: 11px;
  border: 1px solid var(--line-2); background: rgba(0,0,0,.4); color: var(--ink);
  font-family: var(--mono); font-size: 13.5px; outline: none; transition: border-color .25s, box-shadow .25s;
}
.modal-form input:focus { border-color: var(--sig-line); box-shadow: 0 0 0 4px rgba(255,122,61,.08); }
.modal-form input.bad { border-color: var(--neg); }
.modal-err { margin-top: 11px; font-family: var(--mono); font-size: 12px; color: var(--neg); }
.modal-fine { margin-top: 16px; font-size: 12px; color: var(--ink-3); }
body.locked { overflow: hidden; }

/* ================================================================
   RESPONSIVE - 1024 / 820 / 768 / 430 / 390 / 360
   ================================================================ */

@media (max-width: 1024px) {
  .connect-in { grid-template-columns: 1fr; gap: 34px; }
  .tok-grid { grid-template-columns: repeat(2, 1fr); }
  .rails { grid-template-columns: 1fr; }
  .hero { padding-top: 148px; }
}

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: block; }
  .steps { grid-template-columns: 1fr; }
  .sec { padding: 76px 0; }
}

@media (max-width: 768px) {
  :root { --pad: 18px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .lc-grid { grid-template-columns: repeat(2, 1fr); }
  .rp-rail { grid-template-columns: repeat(2, 1fr); }
  .rp-tab:nth-child(2) { border-right: 0; }
  .rp-tab:nth-child(1), .rp-tab:nth-child(2) { border-bottom: 1px solid var(--line); }
  .rp-prog { width: 50%; }
  .vrow { flex-direction: column; gap: 12px; }
  .vlab { width: auto; }
  /* 2-wide on tablet, still even: 8 items = 4 flush lines, 4 items = 2 */
  .vitems { grid-template-columns: repeat(2, 1fr); }
  .foot-cols { gap: 34px; }
}

@media (max-width: 520px) {
  .hero { padding: 128px 0 64px; }
  h1 { letter-spacing: -.035em; }
  .prompt { font-size: 11.5px; padding: 13px 14px; }
  .tok-grid { grid-template-columns: 1fr; }
  .live-card { padding: 20px; }
  .rp-stage { padding: 24px 20px; min-height: 300px; }
  .rp-panel { inset: 24px 20px; }
  .fcard { width: 258px; }
  .btn-lg { width: 100%; }
  .hero-cta { flex-direction: column; }
  .stat { padding: 16px 14px; }
  .foot-in { gap: 32px; }
}

@media (max-width: 380px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .brand-tick { display: none; }
  /* narrowest phones: tighten the gap so the 3 tracks still fit on one line */
  .foot-cols { gap: 20px; }
}
