/* ============================================================
   Arvora — design system
   Structure & energy from notbald.fun (brutalist: slab type, thick
   borders, hard offset shadows, loud colour fields, marquees).
   Arvora Stable palette: deep financial green with electric lime.
   ============================================================ */

:root {
  /* Arvora palette */
  --gold: #63ff75;
  --gold-2: #9dffd0;
  --ink: #031f1b;
  --ink-2: #021612;
  --navy: #0a3029;
  --navy-2: #124238;
  --blue: #245248;
  --sky: #9dffd0;
  --cream: #e9fff3;
  --hot: #ff5c47;           /* struck-through accent */

  /* semantic */
  --bg: var(--ink);
  --text: var(--cream);
  --text-dim: #a7c5ba;
  --text-mute: #6f9588;
  --up: #63ffb0;
  --down: #ff5c47;

  --line: rgba(157, 255, 208, 0.14);
  --line-strong: rgba(157, 255, 208, 0.30);

  /* brutalist shadows (hard offset, no blur) */
  --sh: 5px 5px 0 var(--ink-2);
  --sh-lg: 8px 8px 0 var(--ink-2);
  --sh-gold: 5px 5px 0 var(--gold);

  --font-head: "Archivo Black", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;

  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.section { padding-block: 84px; }
.section--tight { padding-block: 46px; }

/* alternating loud colour fields (very notbald) */
.field-gold { background: #0c352d; color: var(--text); }
.field-navy { background: var(--navy); }
.field-ink { background: var(--ink-2); }
.field-gold .muted, .field-gold .text-dim { color: var(--text-dim) !important; }

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 400; line-height: 0.98; letter-spacing: -0.01em; text-transform: uppercase; overflow-wrap: break-word; }
.h-xl { font-size: clamp(33px, 8.4vw, 104px); }
.h-lg { font-size: clamp(29px, 5.6vw, 72px); }
.h-md { font-size: clamp(24px, 3.6vw, 46px); }
.h-sm { font-size: clamp(19px, 2.4vw, 30px); }

.eyebrow {
  font-family: var(--font-mono); font-weight: 700; font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
  display: inline-block; padding: 6px 12px; border: 2px solid currentColor;
  background: rgba(233, 161, 63, 0.08);
}
.eyebrow--ink { color: var(--ink); background: rgba(10,17,34,0.08); }

.lead { font-family: var(--font-body); font-size: clamp(16px, 2vw, 20px); color: var(--text-dim); max-width: 54ch; line-height: 1.5; }
.field-gold .lead { color: var(--text-dim); }
.hero .eyebrow--ink, .field-gold .eyebrow--ink { color: var(--gold); background: rgba(99,255,117,.06); border-color: var(--gold); }
.hero .btn--outline-ink, .field-gold .btn--outline-ink { color: var(--text); border-color: var(--gold); box-shadow: 5px 5px 0 var(--ink-2); }
.muted { color: var(--text-mute); }
.mono { font-family: var(--font-mono); }
.up { color: var(--up); } .down { color: var(--down); } .gold { color: var(--gold); }
.strike { position: relative; color: var(--hot); white-space: nowrap; }
.strike::after { content: ""; position: absolute; left: -2%; right: -2%; top: 52%; height: 8px; background: var(--ink); transform: rotate(-4deg); }
.field-gold .strike::after { background: var(--ink); }

/* ---------- buttons (blocky, hard shadow) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-size: 14px; text-transform: uppercase; letter-spacing: 0.02em;
  padding: 15px 24px; border: 2.5px solid var(--ink); background: var(--gold); color: var(--ink);
  box-shadow: var(--sh); transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink-2); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink-2); }
.btn--ink { background: var(--ink); color: var(--gold); border-color: var(--ink); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); box-shadow: none; }
.btn--ghost:hover { border-color: var(--gold); background: rgba(99,255,117,0.08); transform: translate(-2px,-2px); box-shadow: var(--sh-gold); }
.btn--outline-ink { background: transparent; color: var(--ink); border-color: var(--ink); box-shadow: var(--sh); }
.btn--sm { padding: 9px 14px; font-size: 12px; box-shadow: 3px 3px 0 var(--ink-2); }
.btn--sm:hover { box-shadow: 4px 4px 0 var(--ink-2); }
.btn--block { width: 100%; }
.btn--up { background: var(--up); color: var(--ink); border-color: var(--ink); }
.btn--down { background: var(--hot); color: var(--ink); border-color: var(--ink); }

/* ---------- pills / tags ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-weight: 700; font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 4px 10px; border: 2px solid var(--line-strong); color: var(--text-dim);
}
.pill--gold { color: var(--ink); border-color: var(--ink); background: var(--gold); }
.pill--up { color: var(--ink); border-color: var(--ink); background: var(--up); }
.pill--grad { color: var(--ink); border-color: var(--ink); background: var(--sky); }

/* ---------- cards (bordered, hard shadow) ---------- */
.card { background: var(--navy); border: 2.5px solid var(--ink-2); box-shadow: var(--sh); }
.card--pad { padding: 22px; }
.card--hover { transition: transform 0.08s ease, box-shadow 0.08s ease; }
.card--hover:hover { transform: translate(-3px, -3px); box-shadow: var(--sh-gold); border-color: var(--gold); }

/* ---------- navbar ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--ink); border-bottom: 2.5px solid var(--ink-2); }
.nav__inner { display: flex; align-items: center; gap: 22px; height: 68px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--font-head); font-size: 22px; text-transform: uppercase; letter-spacing: -0.02em; }
.brand__mark { width: 30px; height: 30px; }
.brand-flame.brand__mark { position: relative; width: 27px; height: 34px; flex: none; display: inline-block; background: linear-gradient(155deg, #dffff0 0 18%, #63ff75 42%, #16a966 100%); clip-path: polygon(52% 0, 69% 25%, 88% 17%, 83% 45%, 100% 64%, 88% 89%, 66% 100%, 33% 97%, 10% 80%, 0 57%, 16% 31%, 25% 58%, 38% 43%); filter: drop-shadow(0 0 8px rgba(99,255,117,.24)); }
.brand-flame::before { content: ""; position: absolute; inset: 3px; background: #06352d; clip-path: inherit; }
.brand-flame i { position: absolute; z-index: 1; left: 33%; bottom: 9%; width: 44%; height: 59%; background: linear-gradient(#dffff0, #63ff75); clip-path: polygon(55% 0, 100% 54%, 82% 88%, 52% 100%, 16% 89%, 0 62%, 29% 35%, 31% 68%); }
.nav__links { display: flex; gap: 20px; margin-left: 10px; }
.nav__links a { color: var(--text-dim); font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; transition: 0.14s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--gold); }
.nav__spacer { flex: 1; }
.nav__wallet { display: flex; align-items: center; gap: 12px; }
.wallet-account { position: relative; }
.wallet-account__menu { position: absolute; z-index: 60; top: calc(100% + 9px); right: 0; min-width: 150px; padding: 7px; background: var(--ink); border: 2px solid var(--line-strong); box-shadow: 7px 7px 0 rgba(0,0,0,.3); }
.wallet-account__menu[hidden] { display: none; }
.wallet-account__menu button { width: 100%; padding: 11px 13px; color: var(--text); background: transparent; border: 0; text-align: left; font-family: var(--font-head); font-size: 12px; text-transform: uppercase; cursor: pointer; }
.wallet-account__menu button:hover { color: var(--gold); background: rgba(99,255,117,.08); }

/* hamburger (mobile only) */
.nav__toggle { display: none; width: 44px; height: 40px; flex-direction: column; justify-content: center; gap: 5px; padding: 0 10px; background: var(--ink); border: 2.5px solid var(--line-strong); }
.nav__toggle span { display: block; height: 2.5px; background: var(--gold); transition: 0.18s; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* mobile dropdown panel */
.nav__mobile { display: none; flex-direction: column; background: var(--ink); border-bottom: 2.5px solid var(--ink-2); }
.nav__mobile a { padding: 15px 22px; border-top: 2px solid var(--ink-2); color: var(--text); font-family: var(--font-head); font-size: 15px; text-transform: uppercase; }
.nav__mobile a:hover, .nav__mobile a.is-active { color: var(--gold); background: rgba(99,255,117,0.06); }
.nav__mobile.open { display: flex; }

/* ---------- hero (loud gold field) ---------- */
.hero { background: radial-gradient(circle at 76% 18%, rgba(99,255,117,.11), transparent 34%), linear-gradient(135deg, #052a24 0%, #031f1b 58%, #021612 100%); color: var(--text); border-bottom: 2.5px solid var(--blue); position: relative; overflow: hidden; }
.hero .lead { color: var(--text-dim); }
.hero .muted { color: var(--text-mute); }
.hero__grid { display: block; position: relative; min-height: 720px; padding: 92px 0 76px; }
.hero__grid > div:first-child { position: relative; z-index: 3; width: min(58%, 700px); min-width: 0; }
.hero__title { margin: 22px 0; font-size: clamp(56px, 6.2vw, 92px); line-height: .92; max-width: 9ch; letter-spacing: -.035em; }
.hero__art { width: 100%; max-width: 560px; justify-self: end; }
.stable-visual { position: absolute; z-index: 1; right: max(-5vw, -70px); top: 3%; width: min(59vw, 780px); height: 94%; overflow: hidden; border: 0; isolation: isolate; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 25%, #000 90%, transparent); }
.stable-visual::before { content: ""; position: absolute; z-index: 0; left: 24%; top: 16%; width: 62%; height: 68%; background: radial-gradient(ellipse at center, rgba(99,255,117,.11), rgba(99,255,117,.025) 38%, transparent 70%); filter: blur(22px); animation: stableGlow 8s ease-in-out infinite; }
.stable-visual::after { content: ""; position: absolute; z-index: 2; left: 28%; top: 23%; width: 50%; height: 55%; background: linear-gradient(112deg, transparent 25%, rgba(202,239,222,.028) 46%, rgba(99,255,117,.075) 50%, rgba(202,239,222,.025) 54%, transparent 75%); filter: blur(8px); animation: stableLight 7s ease-in-out infinite; }
.stable-visual__beam { position: absolute; z-index: 4; left: 31%; top: 68%; width: 48%; height: 2px; background: linear-gradient(90deg, transparent, rgba(99,255,117,.24), transparent); filter: blur(2px); animation: stableBeam 6s ease-in-out infinite; }
/* Hero brand as a terminal window: outlined flame on the screen, wordmark
   under it, prompt line at the bottom. */
.hero-term { --hero-brand-scale: 1; position: absolute; z-index: 6; left: 55%; top: 47%; width: 328px; transform: translate(-50%,-50%) scale(var(--hero-brand-scale)); background: linear-gradient(180deg, rgba(7,58,49,.94), rgba(2,22,18,.97)); border: 2px solid var(--line-strong); box-shadow: 0 24px 60px rgba(0,18,14,.55), 0 0 70px rgba(99,255,117,.13); animation: stableBrandFloat 7s ease-in-out infinite; }
/* Corner ticks, sitting just outside the frame. */
.hero-term::before, .hero-term::after { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid var(--gold); opacity: .55; }
.hero-term::before { left: -7px; top: -7px; border-right: 0; border-bottom: 0; }
.hero-term::after { right: -7px; bottom: -7px; border-left: 0; border-top: 0; }

.hero-term__bar { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: rgba(2,18,15,.8); border-bottom: 2px solid var(--line-strong); }
.hero-term__dots { display: flex; gap: 5px; }
.hero-term__dots i { width: 8px; height: 8px; background: var(--hot); }
.hero-term__dots i:nth-child(2) { background: var(--gold-2); }
.hero-term__dots i:nth-child(3) { background: var(--gold); }
.hero-term__path { color: var(--text-mute); font: 700 9px/1 var(--font-mono); letter-spacing: .1em; }

.hero-term__screen { position: relative; display: grid; justify-items: center; padding: 30px 22px 18px; overflow: hidden; }
/* CRT scanlines + phosphor bloom behind the flame. */
.hero-term__screen::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(99,255,117,.055) 0 1px, transparent 1px 3px); pointer-events: none; }
.hero-term__screen::after { content: ""; position: absolute; left: 50%; top: 34%; width: 72%; height: 56%; transform: translate(-50%,-50%); background: radial-gradient(ellipse at center, rgba(99,255,117,.2), transparent 70%); filter: blur(26px); pointer-events: none; }

.hero-term__logo { position: relative; z-index: 1; display: block; width: 168px; animation: heroTermFlame 3.2s ease-in-out infinite; }
.hero-term__logo svg { display: block; width: 100%; height: auto; }
.hero-term__gem { animation: heroTermGem 1.9s ease-in-out infinite alternate; transform-origin: 512px 520px; }
.hero-term__spark { opacity: .92; animation: heroTermSpark 1.4s ease-in-out infinite alternate; transform-origin: 512px 500px; }

.hero-term strong { position: relative; z-index: 1; margin-top: 20px; color: var(--cream); font: 900 clamp(23px, 2.4vw, 32px)/1 var(--font-head); letter-spacing: .2em; text-indent: .2em; text-shadow: 0 0 26px rgba(99,255,117,.4); }
.hero-term small { position: relative; z-index: 1; margin-top: 10px; color: var(--gold); font: 700 clamp(8px, .8vw, 10px)/1 var(--font-mono); letter-spacing: .46em; text-indent: .46em; }
.hero-term__prompt { position: relative; z-index: 1; width: 100%; margin-top: 22px; padding-top: 13px; border-top: 1px dashed var(--line); color: var(--text-mute); font: 700 9px/1 var(--font-mono); letter-spacing: .08em; text-align: center; }
.hero-term__prompt i { display: inline-block; width: 6px; height: 10px; margin-left: 6px; vertical-align: -1px; background: var(--gold); animation: heroTermCaret 1.1s steps(1) infinite; }

@keyframes stableGlow { 0%,100% { opacity:.55; transform:scale(.94); } 50% { opacity:1; transform:scale(1.05); } }
@keyframes stableLight { 0%,100% { opacity:.22; transform:translateX(-18px); } 50% { opacity:.75; transform:translateX(18px); } }
@keyframes stableBeam { 0%,100% { opacity:.15; transform:scaleX(.7); } 50% { opacity:.55; transform:scaleX(1); } }
@keyframes stableBrandFloat { 0%,100% { transform:translate(-50%,-50%) scale(var(--hero-brand-scale)); } 50% { transform:translate(-50%,calc(-50% - 7px)) scale(var(--hero-brand-scale)); } }
@keyframes heroTermFlame { 0%,100% { filter:drop-shadow(0 0 14px rgba(99,255,117,.35)); } 50% { filter:drop-shadow(0 0 30px rgba(99,255,117,.6)); } }
@keyframes heroTermGem { to { transform:scale(.94,1.05); } }
@keyframes heroTermSpark { to { transform:scale(.88,1.08); opacity:.7; } }
@keyframes heroTermCaret { 50% { opacity:0; } }
/* In-flow variant (mobile): float without the centring translate. */
@keyframes heroTermFloat { 0%,100% { transform:scale(var(--hero-brand-scale)); } 50% { transform:translateY(-7px) scale(var(--hero-brand-scale)); } }
.curve-section { padding: 82px 0; background: var(--ink-2); border-bottom: 2.5px solid var(--blue); }
.curve-section__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(440px, .9fr); gap: clamp(48px, 7vw, 96px); align-items: center; }
.curve-section__copy { min-width: 0; }
.curve-section__copy h2 { margin: 22px 0 20px; }
.curve-section__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 30px; }
.curve-section__steps span { padding: 12px 10px; border: 2px solid var(--blue); color: var(--text-dim); font-size: 9px; letter-spacing: .05em; }
.curve-section__steps b { display: block; color: var(--gold); font-size: 15px; margin-bottom: 5px; }
.stable-chain-section {
  position: relative;
  overflow: hidden;
  padding: 86px 0;
  background:
    radial-gradient(circle at 18% 52%, rgba(99,255,117,.09), transparent 28%),
    var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.stable-chain-section__grid {
  display: grid;
  grid-template-columns: minmax(420px, .95fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(54px, 8vw, 112px);
}
.stable-chain-section__copy h2 { margin: 22px 0 20px; }
.stable-chain-section__copy .lead { max-width: 48ch; }
.stable-chain-section--text { padding: 92px 0; background: linear-gradient(135deg, #021612, #031f1b 58%, #052a24); }
.stable-chain-section--text .stable-chain-section__grid { display: block; }
.stable-chain-section--text .stable-chain-section__copy { max-width: 1080px; margin: 0 auto; }
.stable-chain-section--text .stable-chain-section__copy h2 { max-width: 13ch; margin-top: 26px; }
.stable-chain-section--text .stable-chain-section__copy .lead { max-width: 68ch; font-size: clamp(17px, 1.8vw, 21px); }
.stable-chain-section--text .stable-chain-points { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 48px; }
.stable-chain-section--text .stable-chain-points > div { min-height: 178px; padding: 26px 24px; }
.stable-chain-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 34px;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}
.stable-chain-points > div { min-height: 132px; padding: 20px; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.stable-chain-points b { display: block; margin-bottom: 9px; color: var(--gold); font: 700 10px/1.4 var(--font-mono); letter-spacing: .1em; }
.stable-chain-points span { display: block; color: var(--text-dim); font-size: 13px; line-height: 1.55; }
.stable-chain-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / .92;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(circle at center, rgba(18,66,56,.8), rgba(3,31,27,.15) 45%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at center, #000 45%, rgba(0,0,0,.75) 67%, transparent 91%);
  mask-image: radial-gradient(circle at center, #000 45%, rgba(0,0,0,.75) 67%, transparent 91%);
}
.stable-chain-visual__mesh {
  position: absolute;
  inset: -8%;
  opacity: .5;
  background-image:
    linear-gradient(28deg, transparent 49.7%, rgba(99,255,117,.18) 49.85%, rgba(99,255,117,.18) 50%, transparent 50.15%),
    linear-gradient(151deg, transparent 49.7%, rgba(157,255,208,.11) 49.85%, rgba(157,255,208,.11) 50%, transparent 50.15%);
  background-size: 104px 74px, 142px 100px;
  animation: stableChainMesh 18s ease-in-out infinite alternate;
}
.stable-chain-visual__orbit {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: 67%;
  aspect-ratio: 1;
  border: 1px solid rgba(99,255,117,.25);
  border-radius: 50%;
  transform: translate(-50%,-50%) rotate(15deg);
  animation: stableChainOrbit 14s linear infinite;
}
.stable-chain-visual__orbit--two { width: 82%; height: 42%; aspect-ratio: auto; border-color: rgba(157,255,208,.16); transform: translate(-50%,-50%) rotate(-23deg); animation-duration: 19s; animation-direction: reverse; }
.stable-chain-visual__flow { position: absolute; z-index: 2; inset: 0; }
.stable-chain-visual__flow i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 16px var(--gold); animation: stableChainPulse 3.4s ease-in-out infinite; }
.stable-chain-visual__flow i:nth-child(1) { left: 12%; top: 30%; }
.stable-chain-visual__flow i:nth-child(2) { right: 14%; top: 23%; animation-delay: -.8s; }
.stable-chain-visual__flow i:nth-child(3) { right: 8%; bottom: 27%; animation-delay: -1.6s; }
.stable-chain-visual__flow i:nth-child(4) { left: 18%; bottom: 16%; animation-delay: -2.4s; }
.stable-chain-visual__coin {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 190px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(157,255,208,.36);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #155244, #072d26 62%, #031f1b 100%);
  box-shadow: 0 0 80px rgba(99,255,117,.12), inset 0 0 38px rgba(157,255,208,.06);
  transform: translate(-50%,-50%);
}
.stable-chain-visual__coin small,
.stable-chain-visual__coin span { color: var(--text-mute); font: 700 7px/1.4 var(--font-mono); letter-spacing: .13em; }
.stable-chain-visual__coin b { margin: 7px 0; color: var(--cream); font-family: var(--font-head); font-size: 36px; line-height: 1; }
.stable-chain-visual__coin span { color: var(--gold); }
.stable-chain-visual__label { position: absolute; z-index: 4; padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(3,31,27,.82); color: var(--gold-2); font-size: 8px; font-weight: 700; letter-spacing: .12em; backdrop-filter: blur(7px); }
.stable-chain-visual__label--gas { left: 8%; top: 49%; }
.stable-chain-visual__label--value { right: 8%; top: 34%; }
.stable-chain-visual__label--settle { right: 13%; bottom: 21%; }
@keyframes stableChainMesh { to { transform: translate3d(28px,-18px,0); } }
@keyframes stableChainOrbit { to { transform: translate(-50%,-50%) rotate(375deg); } }
@keyframes stableChainPulse { 0%,100% { opacity:.25; transform:scale(.65); } 50% { opacity:1; transform:scale(1.65); } }
/* Three.js edition — frameless, dimensional, and deliberately restrained. */
.stable-chain-visual {
  min-height: 500px;
  aspect-ratio: 1 / .94;
  overflow: visible;
  background: radial-gradient(ellipse at 50% 48%, rgba(33,117,91,.22), rgba(3,31,27,.05) 44%, transparent 73%);
  -webkit-mask-image: none;
  mask-image: none;
}
.stable-chain-visual::before {
  content: "";
  position: absolute;
  inset: 12% 7%;
  z-index: -1;
  background: radial-gradient(ellipse, rgba(99,255,117,.09), transparent 68%);
  filter: blur(28px);
}
#stableChainCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; }
.stable-chain-fallback { position: absolute; inset: 0; display: grid; place-items: center; opacity: 1; transition: opacity .45s ease; pointer-events: none; }
.stable-chain-visual.is-three-ready .stable-chain-fallback { opacity: 0; }
.stable-chain-fallback::before,
.stable-chain-fallback::after { content: ""; position: absolute; width: 72%; height: 1px; background: linear-gradient(90deg, transparent, rgba(99,255,117,.34), transparent); transform: rotate(28deg); }
.stable-chain-fallback::after { transform: rotate(-31deg); opacity: .65; }
.stable-chain-fallback__mark { position: relative; width: 210px; height: 220px; filter: drop-shadow(0 18px 26px rgba(0,0,0,.4)) drop-shadow(0 0 24px rgba(99,255,117,.15)); }
.stable-chain-fallback__mark i { position: absolute; left: 13px; top: 24px; width: 184px; height: 38px; background: linear-gradient(135deg, #effff6, #8ddcb5 58%, #eafff3); clip-path: polygon(0 0,100% 0,88% 100%,59% 100%,58% 122%,42% 122%,41% 100%,12% 100%); }
.stable-chain-fallback__mark b { position: absolute; left: 82px; top: 55px; width: 47px; height: 143px; background: linear-gradient(90deg, #8fd4b2, #f1fff7 52%, #74c99e); clip-path: polygon(0 0,100% 0,83% 100%,17% 100%); }
.stable-chain-fallback__mark span { position: absolute; left: 0; top: 74px; width: 210px; height: 52px; border: 12px solid #bff5d8; border-radius: 50%; box-shadow: inset 0 0 14px rgba(99,255,117,.2), 0 0 16px rgba(99,255,117,.12); }
.stable-chain-visual__caption,
.stable-chain-visual__status {
  position: absolute;
  z-index: 5;
  bottom: 20px;
  color: var(--text-mute);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .13em;
  pointer-events: none;
}
.stable-chain-visual__caption { left: 24px; display: flex; gap: 12px; }
.stable-chain-visual__caption b { color: var(--gold); }
.stable-chain-visual__status { right: 24px; display: flex; align-items: center; gap: 7px; color: var(--gold-2); }
.stable-chain-visual__status i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); animation: stableChainStatus 2.2s ease-in-out infinite; }
@keyframes stableChainStatus { 0%,100% { opacity:.35; } 50% { opacity:1; } }
.hero__cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; align-items: center; }
.hero__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: min(100%, 560px); margin-top: 36px; }
.hero__stat { min-width: 0; min-height: 104px; padding: 16px 10px; border: 2.5px solid var(--blue); background: rgba(157,255,208,.035); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.hero__stat + .hero__stat { border-left: 2.5px solid var(--blue); }
/* Sized so the longest formatted value ("$999.99K") still clears the border. */
.hero__stat b { display: block; max-width: 100%; font-family: var(--font-head); font-size: clamp(20px, 1.7vw, 28px); line-height: 1.05; letter-spacing: -.01em; overflow-wrap: anywhere; }
.hero__stat b.is-loading { color: var(--text-mute); }
.hero__stat span { display: block; margin-top: 7px; font-family: var(--font-mono); font-weight: 700; font-size: 9px; line-height: 1.35; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-mute); }

/* hero bonding-curve terminal */
.tokenframe { border: 3px solid var(--ink); background: var(--navy); box-shadow: var(--sh-lg); padding: 18px; color: var(--cream); }
.tokenframe__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 14px; border-bottom: 2px solid var(--blue); }
.tokenframe__head .mono { color: var(--gold-2); font-weight: 700; font-size: 13px; letter-spacing: 0.1em; }
.tokenframe__head small { display: block; color: var(--text-mute); font-family: var(--font-mono); font-size: 9px; margin-top: 4px; letter-spacing: 0.08em; }
.tokenframe__live { color: var(--up) !important; font-size: 10px !important; }
.tokenframe__chart { position: relative; margin-top: 14px; min-height: 260px; overflow: hidden; border: 2px solid var(--blue); background-color: var(--ink); background-image: linear-gradient(rgba(172,198,233,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(172,198,233,.08) 1px, transparent 1px); background-size: 36px 36px; }
.tokenframe__chart svg { width: 100%; height: 100%; min-height: 260px; display: block; padding: 18px; }
.curve-area { fill: rgba(99,255,117,.14); }
.curve-line { fill: none; stroke: var(--gold-2); stroke-width: 5; stroke-linecap: square; }
.curve-target { stroke: var(--sky); stroke-width: 2; stroke-dasharray: 7 7; }
.curve-point { fill: var(--gold); stroke: var(--cream); stroke-width: 4; }
.tokenframe__price { position: absolute; left: 10px; top: 10px; color: var(--text-mute); font-size: 8px; letter-spacing: .12em; }
.tokenframe__target { position: absolute; right: 10px; top: 10px; color: var(--sky); text-align: right; font-size: 8px; line-height: 1.35; letter-spacing: .08em; }
.tokenframe__locked { position: absolute; right: 12px; bottom: 12px; padding: 8px 10px; background: var(--gold); color: var(--ink); border: 2px solid var(--ink-2); text-align: right; box-shadow: 3px 3px 0 var(--ink-2); }
.tokenframe__locked b { display: block; font-family: var(--font-head); font-size: 14px; }
.tokenframe__locked span { display: block; font-family: var(--font-mono); font-size: 7px; letter-spacing: .1em; }
.tokenframe__foot { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding-top: 14px; }
.tokenframe__foot span { color: var(--text-mute); font-size: 8px; letter-spacing: .1em; }
.tokenframe__foot strong { color: var(--gold-2); font-family: var(--font-head); font-size: 14px; }
.tokenframe__meter { height: 8px; background: var(--ink-2); border: 1px solid var(--blue); }
.tokenframe__meter i { display: block; width: 68%; height: 100%; background: var(--gold); }

/* Live V3 pool visualization — one market, no migration. */
.poolviz { min-height: 300px; display: grid; grid-template-columns: 1fr 1.25fr 1fr; align-items: center; gap: 18px; padding: 42px 22px 64px; isolation: isolate; }
.poolviz__rail { position: absolute; left: 15%; right: 15%; top: 50%; height: 3px; background: var(--blue); z-index: -1; }
.poolviz__rail::after { content: ""; position: absolute; left: 42%; top: -4px; width: 44%; height: 11px; background: var(--gold); }
.poolviz__node, .poolviz__core { min-width: 0; text-align: center; border: 2px solid var(--blue); background: var(--ink-2); padding: 18px 10px; }
.poolviz__node b, .poolviz__core b { display: block; font-family: var(--font-head); color: var(--cream); font-size: clamp(16px, 2vw, 24px); line-height: 1.05; }
.poolviz__node span, .poolviz__core span, .poolviz__core small { display: block; font-family: var(--font-mono); font-size: 8px; letter-spacing: .1em; color: var(--text-mute); margin-top: 7px; }
.poolviz__core { padding: 28px 10px; border-color: var(--gold); background: var(--navy-2); box-shadow: 5px 5px 0 var(--ink-2); }
.poolviz__core > span { color: var(--gold); margin: 0 0 8px; }
.poolviz__core small { color: var(--up); }
.poolviz__node--supply b { color: var(--gold-2); }
.poolviz__node--market b { color: var(--sky); }

/* Stable-inspired settlement rail: infrastructure, not a dashboard card. */
.market-rail {
  position: relative;
  min-height: 500px;
  padding: 20px 0 14px;
  overflow: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 48%, rgba(99,255,117,.10), transparent 25%),
    linear-gradient(180deg, rgba(157,255,208,.025), transparent 34%, rgba(99,255,117,.025));
  border-block: 1px solid var(--line);
  isolation: isolate;
}
.market-rail__top,
.market-rail__bottom {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-inline: 2px;
  color: var(--text-mute);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .13em;
}
.market-rail__top b,
.market-rail__bottom b { color: var(--gold); font-weight: 700; }
.market-rail__scene { position: relative; z-index: 1; min-height: 420px; }
.market-rail__mesh {
  position: absolute;
  inset: 2% -10% 0;
  opacity: .34;
  background-image:
    linear-gradient(28deg, transparent 49.65%, rgba(99,255,117,.15) 49.8%, rgba(99,255,117,.15) 50%, transparent 50.15%),
    linear-gradient(151deg, transparent 49.65%, rgba(157,255,208,.10) 49.8%, rgba(157,255,208,.10) 50%, transparent 50.15%);
  background-size: 108px 76px, 144px 102px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 15%, transparent 72%);
  animation: railDrift 18s ease-in-out infinite alternate;
}
.market-rail__rings {
  position: absolute;
  left: 50%;
  top: 49%;
  width: 230px;
  aspect-ratio: 1;
  border: 1px solid rgba(99,255,117,.28);
  border-radius: 50%;
  box-shadow:
    0 0 0 48px rgba(157,255,208,.055),
    0 0 0 49px rgba(157,255,208,.09),
    0 0 0 98px rgba(99,255,117,.018),
    0 0 0 99px rgba(99,255,117,.06);
  transform: translate(-50%,-50%);
  animation: railBreathe 7s ease-in-out infinite;
}
.market-rail__line {
  position: absolute;
  z-index: 1;
  left: 10%;
  right: 10%;
  top: 49%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(157,255,208,.45) 12%, var(--gold) 50%, rgba(157,255,208,.45) 88%, transparent);
  box-shadow: 0 0 20px rgba(99,255,117,.18);
}
.market-rail__line i {
  position: absolute;
  top: -3px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px rgba(99,255,117,.85);
  animation: railFlow 4.8s linear infinite;
}
.market-rail__line i:nth-child(2) { animation-delay: -1.6s; }
.market-rail__line i:nth-child(3) { animation-delay: -3.2s; }
.market-rail__endpoint,
.market-rail__core {
  position: absolute;
  z-index: 3;
  top: 49%;
  transform: translateY(-50%);
  text-align: center;
}
.market-rail__endpoint { width: 22%; }
.market-rail__endpoint--left { left: 0; }
.market-rail__endpoint--right { right: 0; }
.market-rail__endpoint small,
.market-rail__endpoint span,
.market-rail__core small,
.market-rail__core span {
  display: block;
  font: 700 8px/1.35 var(--font-mono);
  letter-spacing: .13em;
  color: var(--text-mute);
}
.market-rail__endpoint b {
  display: block;
  margin: 8px 0 5px;
  font-family: var(--font-head);
  font-size: clamp(25px, 3vw, 40px);
  line-height: 1;
  color: var(--gold-2);
}
.market-rail__core {
  left: 50%;
  width: 190px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(157,255,208,.35);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18,66,56,.96) 0 48%, rgba(3,31,27,.92) 70%);
  box-shadow: 0 0 70px rgba(99,255,117,.09), inset 0 0 40px rgba(157,255,208,.05);
  transform: translate(-50%,-50%);
}
.market-rail__core b {
  margin: 9px 0;
  font-family: var(--font-head);
  font-size: 27px;
  line-height: .95;
  color: var(--cream);
}
.market-rail__core b em { color: var(--gold); font-style: normal; }
.market-rail__core small { color: var(--gold); }
.market-rail__lock {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 23px;
  transform: translateX(-50%);
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(3,31,27,.82);
  color: var(--text-dim);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .12em;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}
.market-rail__lock span { color: var(--gold); margin-right: 6px; }
@keyframes railFlow { from { left: 0; opacity: 0; } 10%,90% { opacity: 1; } to { left: calc(100% - 7px); opacity: 0; } }
@keyframes railDrift { to { transform: translate3d(24px,-14px,0); } }
@keyframes railBreathe { 0%,100% { opacity: .58; transform: translate(-50%,-50%) scale(.96); } 50% { opacity: 1; transform: translate(-50%,-50%) scale(1.035); } }

/* social icon buttons */
.iconbtn { width: 48px; height: 48px; display: grid; place-items: center; border: 2.5px solid var(--ink); background: var(--ink); color: var(--gold); box-shadow: var(--sh); transition: 0.08s; }
.iconbtn:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink-2); }

/* ---------- marquee ---------- */
.marquee { background: var(--ink-2); border-top: 2.5px solid var(--ink-2); border-bottom: 2.5px solid var(--ink-2); overflow: hidden; }
.marquee--gold { background: var(--gold); }
.marquee__track { display: flex; gap: 36px; padding: 12px 0; white-space: nowrap; animation: scrollx 26s linear infinite; font-family: var(--font-head); font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }
.marquee--gold .marquee__track { color: var(--ink); animation-duration: 30s; }
.marquee--hero { position: relative; z-index: 4; background: #021a16; border-color: var(--blue); }
.marquee--hero .marquee__track { padding: 17px 0; color: var(--gold); animation-duration: 34s; will-change: transform; }
.marquee__track span::after { content: "◆"; margin-left: 36px; }
@keyframes scrollx { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- grids ---------- */
.grid { display: grid; gap: 18px; }
.grid > *, .card { min-width: 0; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- feature / step ---------- */
.feature { padding: 24px; }
.feature__ic { width: 52px; height: 52px; display: grid; place-items: center; border: 2.5px solid var(--gold); background: var(--ink-2); color: var(--gold); font-family: var(--font-head); font-size: 22px; margin-bottom: 16px; }
.feature h4 { font-size: 20px; margin-bottom: 10px; color: var(--gold); }
.feature p { color: var(--text-dim); font-size: 15px; line-height: 1.5; }

.step { display: flex; gap: 16px; align-items: flex-start; }
.step__n { font-family: var(--font-head); color: var(--ink); background: var(--gold); border: 2.5px solid var(--ink); min-width: 44px; height: 44px; display: grid; place-items: center; font-size: 16px; box-shadow: 3px 3px 0 var(--ink-2); }
.step h4 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--text-dim); font-size: 14px; }

/* ---------- VS comparison (notbald "BALD vs NOT BALD") ---------- */
.versus { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch; }
.vs-col { border: 2.5px solid var(--ink-2); padding: 26px; }
.vs-col--bad { background: var(--ink-2); }
.vs-col--good { background: var(--gold); color: var(--ink); box-shadow: var(--sh-lg); }
.vs-col h3 { font-size: 26px; margin-bottom: 4px; }
.vs-col .tag { font-family: var(--font-mono); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 18px; display: block; }
.vs-col ul { list-style: none; display: grid; gap: 12px; }
.vs-col li { font-size: 15px; padding-left: 24px; position: relative; }
.vs-col--bad li::before { content: "✕"; position: absolute; left: 0; color: var(--hot); font-weight: 700; }
.vs-col--good li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; }
.vs-mid { display: grid; place-items: center; font-family: var(--font-head); font-size: 26px; color: var(--gold); }

/* ---------- stat tiles ---------- */
.stat { border: 2.5px solid var(--ink-2); padding: 22px; background: var(--navy); }
.stat b { font-family: var(--font-head); font-size: clamp(34px, 4.4vw, 56px); display: block; color: var(--gold); line-height: 1; }
.stat span { font-family: var(--font-mono); font-weight: 700; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mute); margin-top: 10px; display: block; }

/* ---------- light editorial feature rails ---------- */
.feature-rails {
  position: relative;
  overflow: hidden;
  background: #effbf6;
  color: #03231e;
  border-block: 1px solid rgba(3,35,30,.16);
  isolation: isolate;
}
.feature-rails__mesh {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .7;
  background:
    radial-gradient(circle at 82% 18%, rgba(99,255,117,.18), transparent 24%),
    linear-gradient(118deg, transparent 0 58%, rgba(3,35,30,.035) 58.2% 58.5%, transparent 58.7%),
    linear-gradient(62deg, transparent 0 73%, rgba(3,35,30,.03) 73.2% 73.5%, transparent 73.7%);
}
.feature-rails__inner { padding-top: 78px; padding-bottom: 0; }
.feature-rails__head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .65fr);
  gap: 24px 64px;
  padding-bottom: 58px;
}
.feature-rails__kicker {
  grid-column: 1 / -1;
  color: #437168;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
}
.feature-rails__head h2 {
  max-width: 14ch;
  font-family: var(--font-head);
  font-size: clamp(38px, 5.2vw, 70px);
  line-height: .98;
  letter-spacing: -.035em;
  text-transform: none;
}
.feature-rails__head p {
  align-self: end;
  max-width: 42ch;
  color: #496a63;
  font-size: 16px;
  line-height: 1.65;
}
.feature-rails__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 78px;
}
.feature-rails__item {
  position: relative;
  min-height: 210px;
  padding: 38px 40px 34px;
  border: 2px solid rgba(3,35,30,.18);
  background: rgba(255,255,255,.48);
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.feature-rails__item > span {
  position: absolute;
  top: 18px;
  right: 20px;
  color: rgba(3,35,30,.22);
  font-family: var(--font-head);
  font-size: 32px;
  line-height: 1;
}
.feature-rails__item h3 {
  max-width: 15ch;
  margin-bottom: 18px;
  color: #03231e;
  font-family: var(--font-head);
  font-size: clamp(19px, 1.7vw, 25px);
  line-height: 1.08;
  text-transform: none;
}
.feature-rails__item p { max-width: 39ch; color: #506f68; font-size: 15px; line-height: 1.65; }
.feature-rails__item::after {
  content: "";
  position: absolute;
  left: -2px;
  top: 26px;
  bottom: 26px;
  width: 4px;
  height: auto;
  background: var(--gold);
  transition: width .25s ease;
}
.feature-rails__item:hover { background: #062c25; transform: translateY(-3px); }
.feature-rails__item:hover h3 { color: #effbf6; }
.feature-rails__item:hover p { color: #a8c9bf; }
.feature-rails__item:hover > span { color: rgba(99,255,117,.28); }
.feature-rails__item:hover::after { width: 4px; }

/* ---------- footer ---------- */
.foot { margin-top: 0; padding: 0; overflow: hidden; border-top: 1px solid var(--line-strong); background: #021a16; }
.foot__shell { max-width: none; padding-inline: clamp(22px, 4vw, 64px); }
.foot__main { display: grid; grid-template-columns: minmax(340px, .8fr) minmax(560px, 1.15fr); gap: clamp(42px, 7vw, 110px); align-items: center; min-height: 300px; padding: 50px 0; }
.foot__identity { min-width: 0; }
.foot__brand { display: inline-flex; align-items: center; gap: 18px; color: var(--cream); font-family: var(--font-head); font-size: clamp(50px, 6vw, 94px); line-height: .9; letter-spacing: -.05em; }
.foot__brand .brand__mark { width: clamp(56px, 6vw, 90px); height: clamp(56px, 6vw, 90px); }
.foot__brand .brand-flame { width: clamp(52px, 5vw, 76px); height: clamp(66px, 6.3vw, 96px); }
.foot__identity p { max-width: 48ch; margin-top: 24px; color: var(--text-mute); font-size: 14px; line-height: 1.65; }
.foot__right { min-width: 0; }
.foot__actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.foot__action { min-height: 62px; display: flex; align-items: center; justify-content: center; padding: 14px 16px; border: 1px solid var(--line); color: var(--text-dim); font: 700 10px/1.25 var(--font-mono); letter-spacing: .06em; text-align: center; text-transform: uppercase; transition: .18s ease; }
.foot__action + .foot__action { border-left: 0; }
.foot__action:hover { color: var(--cream); border-color: var(--line-strong); background: rgba(157,255,208,.06); }
.foot__action--primary { border-color: var(--gold); background: var(--gold); color: var(--ink); }
.foot__action--primary:hover { background: var(--gold-2); color: var(--ink); }
.foot__meta { display: flex; align-items: center; justify-content: flex-start; gap: 26px; margin-top: 42px; color: var(--text-mute); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.foot__meta a:hover { color: var(--gold); }
.foot__meta span { display: inline-flex; align-items: center; gap: 7px; }
.foot__meta i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px rgba(99,255,117,.7); }
.foot__bottom { display: grid; grid-template-columns: auto minmax(260px, 1fr) auto; gap: 32px; align-items: center; min-height: 116px; padding: 24px 0; border-top: 1px solid var(--line); color: var(--text-mute); font-size: 8px; letter-spacing: .05em; }
.foot__bottom p { max-width: 92ch; justify-self: center; line-height: 1.65; }
.foot__bottom b { color: var(--text-dim); font-weight: 700; white-space: nowrap; }

/* ---------- utilities ---------- */
.flex { display: flex; } .between { justify-content: space-between; } .center { align-items: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }
.wide { width: 100%; } .hide-m { display: revert; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero__grid { min-height: 650px; padding: 60px 0 58px; }
  .hero__grid > div:first-child { width: min(72%, 650px); }
  .hero__title { font-size: clamp(42px, 8.5vw, 68px); }
  .curve-section { padding: 58px 0; }
  .curve-section__grid { grid-template-columns: 1fr; gap: 38px; }
  .stable-chain-section { padding: 62px 0; }
  .stable-chain-section__grid { grid-template-columns: 1fr; gap: 44px; }
  .stable-chain-visual { width: min(100%, 560px); justify-self: center; }
  .stable-chain-section--text .stable-chain-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__art { width: min(100%, 560px); max-width: none; justify-self: center; }
  .market-rail { min-height: 460px; }
  .market-rail__scene { min-height: 380px; }
  /* Keep the brand terminal fully on-screen instead of bleeding off the right. */
  .stable-visual { right: 0; width: 46%; opacity: .95; -webkit-mask-image: none; mask-image: none; }
  .hero-term { --hero-brand-scale: .76; left: 50%; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .versus { grid-template-columns: 1fr; }
  .vs-mid { padding: 8px; }
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .section { padding-block: 56px; }
  .feature-rails__head { grid-template-columns: 1fr; }
  .feature-rails__head p { max-width: 58ch; }
  .feature-rails__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 56px; }
  .foot__main { grid-template-columns: 1fr; min-height: 0; padding: 48px 0; }
  .foot__actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__action:nth-child(3) { border-left: 1px solid var(--line); }
  .foot__action:nth-child(n+3) { border-top: 0; }
  .foot__bottom { grid-template-columns: 1fr auto; }
  .foot__bottom p { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .hide-m { display: none; }
  .section { padding-block: 44px; }
  .section--tight { padding-block: 32px; }
  .feature-rails__inner { padding-top: 48px; }
  .feature-rails__head { gap: 20px; padding-bottom: 38px; }
  .feature-rails__head h2 { font-size: clamp(34px, 11vw, 48px); }
  .feature-rails__head p { font-size: 15px; }
  .feature-rails__grid { grid-template-columns: 1fr; margin-inline: 0; padding-bottom: 44px; }
  .feature-rails__item { min-height: 190px; padding: 38px 24px 30px; }
  .feature-rails__item > span { right: 22px; font-size: 27px; }
  .feature-rails__item::after { left: -2px; top: 22px; bottom: 22px; }
  .foot__shell { padding-inline: 16px; }
  .foot__main { gap: 34px; padding: 42px 0 36px; }
  .foot__brand { gap: 12px; font-size: clamp(42px, 15vw, 64px); }
  .foot__brand .brand__mark { width: 50px; height: 50px; }
  .foot__brand .brand-flame { width: 42px; height: 54px; }
  .foot__actions { grid-template-columns: 1fr; }
  .foot__action { min-height: 54px; }
  .foot__action + .foot__action, .foot__action:nth-child(3) { border-left: 1px solid var(--line); border-top: 0; }
  .foot__meta { flex-wrap: wrap; gap: 16px 22px; margin-top: 28px; }
  .foot__bottom { grid-template-columns: 1fr; gap: 14px; padding: 24px 0 30px; }
  .foot__bottom p { grid-column: auto; grid-row: auto; }
  .card--pad { padding: 18px; }

  /* hero: full-width stacked CTAs, tighter */
  .hero__grid { padding: 36px 0 46px; }
  .hero__title { margin: 14px 0 16px; font-size: clamp(35px, 10.5vw, 48px); line-height: 1; max-width: 100%; }
  .hero .eyebrow { max-width: 100%; line-height: 1.5; overflow-wrap: anywhere; }
  .hero__cta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hero__cta .btn { grid-column: 1 / -1; width: 100%; }
  .hero__cta .iconbtn { width: 100%; height: 52px; }
  .hero__stats { gap: 8px; width: 100%; margin-top: 30px; }
  .hero__stat { min-height: 92px; padding: 12px 6px; text-align: center; }
  .hero__stat b { font-size: clamp(18px, 3.1vw, 26px); }
  .hero__stat span { font-size: 8px; line-height: 1.35; overflow-wrap: anywhere; }
  .hero__grid { min-height: auto; padding-bottom: 40px; }
  .hero__grid > div:first-child { width: 100%; }
  .stable-visual { inset: 0 -45% 0 auto; width: 130%; height: 100%; opacity: .22; }
  .hero-term { --hero-brand-scale: .8; }
  .stable-visual__spec { display: none; }
  .stable-visual__label { left: 14px; right: 14px; bottom: 13px; font-size: 7px; }
  .curve-section { padding: 46px 0 52px; }
  .curve-section__grid { gap: 28px; }
  .curve-section__steps { grid-template-columns: 1fr; margin-top: 24px; }
  .curve-section__steps span { display: flex; align-items: center; gap: 12px; }
  .curve-section__steps b { margin: 0; }
  .stable-chain-section { padding: 48px 0; }
  .stable-chain-section--text { padding: 54px 0; }
  .stable-chain-section__grid { gap: 28px; }
  .stable-chain-visual { width: calc(100% + 16px); margin-left: -8px; }
  .stable-chain-visual { min-height: 350px; aspect-ratio: 1 / .92; }
  .stable-chain-visual__caption, .stable-chain-visual__status { bottom: 8px; font-size: 6px; letter-spacing: .08em; }
  .stable-chain-visual__caption { left: 12px; gap: 7px; }
  .stable-chain-visual__status { right: 12px; }
  .stable-chain-visual__coin { width: 138px; }
  .stable-chain-visual__coin b { font-size: 27px; }
  .stable-chain-visual__label { padding: 5px 7px; font-size: 6px; }
  .stable-chain-points { grid-template-columns: 1fr; margin-top: 26px; }
  .stable-chain-section--text .stable-chain-points { grid-template-columns: 1fr; margin-top: 32px; }
  .stable-chain-section--text .stable-chain-points > div { min-height: auto; padding: 20px 18px; }
  .stable-chain-points > div { min-height: auto; padding: 17px 18px; }
  .hero__art { width: calc(100% - 8px); justify-self: start; }
  .market-rail { width: 100%; min-height: 410px; padding-top: 14px; }
  .market-rail__top, .market-rail__bottom { font-size: 7px; letter-spacing: .08em; }
  .market-rail__scene { min-height: 340px; }
  .market-rail__rings { width: 148px; box-shadow: 0 0 0 32px rgba(157,255,208,.045), 0 0 0 33px rgba(157,255,208,.08), 0 0 0 66px rgba(99,255,117,.015), 0 0 0 67px rgba(99,255,117,.05); }
  .market-rail__line { left: 6%; right: 6%; }
  .market-rail__endpoint { width: 25%; }
  .market-rail__endpoint b { font-size: clamp(18px, 6vw, 25px); }
  .market-rail__endpoint small, .market-rail__endpoint span, .market-rail__core small, .market-rail__core span { font-size: 6px; letter-spacing: .08em; }
  .market-rail__core { width: 126px; }
  .market-rail__core b { font-size: 18px; }
  .market-rail__lock { bottom: 17px; font-size: 7px; padding: 6px 9px; }
  .tokenframe { padding: 12px; box-shadow: 6px 6px 0 var(--ink-2); }
  .tokenframe__head { padding-bottom: 10px; }
  .tokenframe__chart { margin-top: 10px; }
  .tokenframe__chart, .tokenframe__chart svg { min-height: 210px; }
  .tokenframe__chart svg { padding: 10px; }
  .tokenframe__locked { right: 8px; bottom: 8px; }
  .tokenframe__foot { grid-template-columns: 1fr auto; gap: 8px; }
  .tokenframe__foot > span { grid-column: 1 / -1; }
  .poolviz { min-height: 290px; grid-template-columns: 1fr 1fr; padding: 42px 12px 66px; gap: 10px; }
  .poolviz__core { grid-column: 1 / -1; grid-row: 1; width: 72%; justify-self: center; }
  .poolviz__node { grid-row: 2; padding: 14px 6px; }
  .poolviz__rail { left: 18%; right: 18%; top: 48%; transform: rotate(90deg); }

  /* eyebrow wraps cleanly */
  .eyebrow { font-size: 11px; letter-spacing: 0.1em; }

  /* buttons a touch smaller, shadows lighter so they don't crowd */
  .btn { padding: 14px 18px; font-size: 13px; box-shadow: 4px 4px 0 var(--ink-2); }

  /* versus middle "VS" becomes a divider row */
  .vs-mid { font-size: 20px; padding: 4px; }

  /* stat tiles a bit tighter */
  .stat { padding: 18px; }
  .stat b { font-size: clamp(30px, 11vw, 44px); }

}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .stable-visual::before, .stable-visual::after, .stable-visual__beam, .hero-term, .hero-term__logo, .hero-term__gem, .hero-term__spark, .hero-term__prompt i,
  .market-rail__mesh, .market-rail__rings, .market-rail__line i,
  .stable-chain-visual__mesh, .stable-chain-visual__orbit, .stable-chain-visual__flow i { animation: none; }
  .stable-chain-visual__status i { animation: none; }
  .market-rail__line i { display: none; }
}

/* Mobile usability pass — intentionally isolated from desktop. */
@media (max-width: 560px) {
  html { scroll-behavior: smooth; }
  body { min-width: 0; }
  .wrap { width: 100%; max-width: none; padding-inline: 18px; }

  .nav { position: sticky; top: 0; }
  .nav__inner { height: 62px; gap: 10px; }
  .brand { gap: 7px; font-size: 15px; flex: 0 1 auto; min-width: 0; }
  .brand__mark { width: 24px; height: 30px; }
  .nav__spacer { min-width: 0; }
  .nav__wallet { gap: 6px; min-width: 0; flex: 0 1 auto; }
  .nav__wallet .btn { width: 96px; max-width: 96px; min-width: 0; padding: 9px 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 8px; box-shadow: none; }
  .wallet-account__menu { min-width: 128px; }
  .nav__toggle { width: 42px; height: 40px; flex: 0 0 42px; }
  .nav__mobile { position: fixed; z-index: 49; top: 62px; left: 0; right: 0; max-height: calc(100dvh - 62px); overflow-y: auto; box-shadow: 0 16px 36px rgba(0,0,0,.35); }
  .nav__mobile a { min-height: 52px; display: flex; align-items: center; padding-inline: 18px; }

  .hero__grid { display: flex; flex-direction: column; min-height: auto; padding: 34px 0 38px; }
  .hero__grid > div:first-child { width: 100%; }
  .hero__title { font-size: clamp(42px, 14vw, 58px); line-height: .94; letter-spacing: -.035em; }
  .hero .lead { max-width: 34ch; font-size: 16px; line-height: 1.58; }
  .hero__cta { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .hero__cta .btn { grid-column: auto; min-height: 52px; justify-content: center; }
  .hero__stats { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; width: 100%; max-width: calc(100vw - 36px); margin-top: 26px; }
  .hero__stat { min-height: 82px; padding: 10px 5px; }
  .hero__stat b { font-size: clamp(15px, 4.8vw, 22px); }
  .hero__stat span { font-size: 7px; letter-spacing: .035em; }
  /* The terminal is the brand mark here, not a background wash: give it real
     space in the flow and drop the fade that used to hide the old flame. */
  .stable-visual { position: relative; inset: auto; order: 2; display: grid; place-items: center; width: 100%; height: auto; padding: 14px 0; margin: 26px 0 0; overflow: visible; opacity: 1; -webkit-mask-image: none; mask-image: none; }
  .hero-term { --hero-brand-scale: .82; position: relative; left: auto; top: auto; transform: scale(var(--hero-brand-scale)); animation: heroTermFloat 7s ease-in-out infinite; }
  .hero-term strong { font-size: 26px; }
  .hero-term small { font-size: 8px; }

  .marquee__track { padding-block: 12px; font-size: 9px; }
  .section { padding-block: 42px; }
  .h-lg { font-size: clamp(34px, 11vw, 47px); }
  .lead { font-size: 16px; line-height: 1.55; }
  .card--pad { padding: 18px; }
  .feature-rails__item { min-height: 0; }

  .foot__shell { padding-inline: 18px; }
  .foot__main { padding-block: 38px 32px; }
  .foot__brand { font-size: clamp(38px, 14vw, 56px); }
  .foot__identity p { max-width: 32ch; line-height: 1.55; }
  .foot__actions { gap: 8px; }
  .foot__action, .foot__action + .foot__action, .foot__action:nth-child(3) { min-height: 52px; border: 1px solid var(--line); }
  .foot__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
  .foot__bottom { font-size: 7px; line-height: 1.65; }
  .foot__bottom b { justify-self: start; }

  button, a, input, select, textarea { touch-action: manipulation; }
  input, select, textarea { font-size: 16px !important; }
}

/* ---------- client-side navigation ---------- */
/* Thin progress bar while the next view is being fetched. */
body.is-navigating::after { content: ""; position: fixed; z-index: 999; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, transparent, var(--gold), transparent); transform-origin: 0 50%; animation: routeProgress 1.1s ease-in-out infinite; }
body.is-navigating { cursor: progress; }
@keyframes routeProgress { 0% { transform: scaleX(0); opacity: .4; } 55% { transform: scaleX(.75); opacity: 1; } 100% { transform: scaleX(1); opacity: .25; } }
@media (prefers-reduced-motion: reduce) { body.is-navigating::after { animation: none; opacity: .8; } }

/* ---------- first-100 launch promotion popup ---------- */
.promo-overlay { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; background: rgba(2,14,11,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .26s ease; overflow-y: auto; }
.promo-overlay.is-open { opacity: 1; }
body.promo-open { overflow: hidden; }

.promo { position: relative; width: min(480px, 100%); background: linear-gradient(180deg, rgba(7,58,49,.97), rgba(2,22,18,.99)); border: 2px solid var(--line-strong); box-shadow: 0 30px 80px rgba(0,18,14,.6), 0 0 90px rgba(99,255,117,.12); transform: translateY(14px) scale(.98); opacity: .6; transition: transform .3s cubic-bezier(.2,.9,.3,1), opacity .3s ease; }
.promo-overlay.is-open .promo { transform: translateY(0) scale(1); opacity: 1; }
/* Corner ticks, matching the hero terminal. */
.promo::before, .promo::after { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid var(--gold); opacity: .55; pointer-events: none; }
.promo::before { left: -7px; top: -7px; border-right: 0; border-bottom: 0; }
.promo::after { right: -7px; bottom: -7px; border-left: 0; border-top: 0; }

.promo__bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(2,18,15,.85); border-bottom: 2px solid var(--line-strong); }
.promo__dots { display: flex; gap: 5px; }
.promo__dots i { width: 9px; height: 9px; background: var(--hot); }
.promo__dots i:nth-child(2) { background: var(--gold-2); }
.promo__dots i:nth-child(3) { background: var(--gold); }
.promo__path { flex: 1; color: var(--text-mute); font: 700 10px/1 var(--font-mono); letter-spacing: .08em; }
.promo__close { display: grid; place-items: center; width: 26px; height: 26px; color: var(--text-dim); background: transparent; border: 1px solid var(--line); font-size: 12px; cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.promo__close:hover { color: var(--ink); background: var(--gold); border-color: var(--gold); }

.promo__body { position: relative; padding: 28px 26px 24px; text-align: center; overflow: hidden; }
/* Faint scanlines + phosphor bloom, same language as the hero screen. */
.promo__body::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(99,255,117,.045) 0 1px, transparent 1px 3px); pointer-events: none; }
.promo__body::after { content: ""; position: absolute; left: 50%; top: 18%; width: 80%; height: 55%; transform: translateX(-50%); background: radial-gradient(ellipse at center, rgba(99,255,117,.16), transparent 70%); filter: blur(30px); pointer-events: none; }
.promo__body > * { position: relative; z-index: 1; }

.promo__tag { display: inline-block; padding: 6px 10px; color: var(--gold); border: 1px solid var(--line-strong); font: 700 9px/1 var(--font-mono); letter-spacing: .14em; }
.promo__title { margin-top: 18px; color: var(--cream); font: 400 clamp(38px, 8.5vw, 54px)/.94 var(--font-head); letter-spacing: -.01em; text-shadow: 0 0 30px rgba(99,255,117,.35); }
.promo__lead { margin-top: 16px; color: var(--gold); font: 700 clamp(15px, 2.4vw, 17px)/1.4 var(--font-head); }
.promo__copy { margin-top: 12px; color: var(--text-dim); font-size: 14px; line-height: 1.6; }
.promo__stats { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; color: var(--cream); font: 700 11px/1 var(--font-mono); letter-spacing: .1em; }
.promo__stats i { color: var(--text-mute); font-style: normal; }
.promo__cta { margin-top: 22px; }
.promo__later { display: block; width: 100%; margin-top: 12px; padding: 8px; color: var(--text-mute); background: transparent; border: 0; font: 700 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: color .15s; }
.promo__later:hover { color: var(--text-dim); }
.promo__fine { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); color: var(--text-mute); font: 700 9px/1.5 var(--font-mono); letter-spacing: .04em; }

@media (max-width: 480px) {
  .promo__body { padding: 24px 18px 20px; }
  .promo__stats { gap: 7px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .promo-overlay, .promo { transition: opacity .2s ease; }
  .promo { transform: none; }
}
