/* ============================================================
   0G Arena — landing page styles
   Dark, technical, proof-driven. Violet on near-black.
   ============================================================ */

/* ---------- Fonts (self-hosted, latin subsets) ---------- */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./fonts/space-grotesk-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/jetbrains-mono-latin-600-normal.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --bg: #07060c;
  --bg-alt: #0a0813;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: #120e1d;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f2effa;
  --text-2: #a89fc0;
  --text-3: #8a80a6; /* ≥4.5:1 on every dark surface used for small text */
  --violet: #8b5cf6;
  --violet-2: #a78bfa;
  --violet-3: #c4b5fd;
  --violet-deep: #4c1d95;
  --green: #34d399;
  --red: #f87171;
  --amber: #fbbf24;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1120px;
  --nav-h: 68px;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--violet-2);
  text-decoration: none;
}
a:hover {
  color: var(--violet-3);
}

::selection {
  background: rgba(139, 92, 246, 0.35);
  color: #fff;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.mono {
  font-family: var(--font-mono);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--violet-2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 200;
  background: var(--violet);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.nav.scrolled {
  background: rgba(7, 6, 12, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.brand:hover {
  color: var(--text);
}
.brand .zg {
  background: linear-gradient(120deg, var(--violet-3), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--text-3);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 3px 9px;
  margin-left: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-gh {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-gh:hover {
  color: var(--text);
  border-color: var(--border-strong);
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  width: 40px;
  height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #9d6bff 0%, var(--violet) 55%, #6d3df0 100%);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.35) inset,
    0 8px 32px -8px rgba(139, 92, 246, 0.55);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(196, 181, 253, 0.5) inset,
    0 12px 40px -8px rgba(139, 92, 246, 0.7);
}
.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
}
.btn-sm {
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 10px;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 84px) 0 72px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  user-select: none;
}
.hero-bg .glow {
  position: absolute;
  top: -340px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 800px;
  background: radial-gradient(
    ellipse at center,
    rgba(139, 92, 246, 0.28) 0%,
    rgba(109, 61, 240, 0.1) 40%,
    transparent 70%
  );
}
.hero-bg .grid-lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(167, 139, 250, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167, 139, 250, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, #000 30%, transparent 78%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet-2);
  border: 1px solid rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.08);
  padding: 7px 14px;
  border-radius: 99px;
  margin-bottom: 26px;
}
.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5.4vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero h1 .accent {
  background: linear-gradient(115deg, var(--violet-3) 0%, var(--violet) 60%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 54ch;
  margin-bottom: 34px;
}
.hero-sub strong {
  color: var(--text);
  font-weight: 600;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}
.hero-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.hero-note a {
  color: var(--text-2);
  border-bottom: 1px dotted var(--text-3);
}
.hero-note a:hover {
  color: var(--violet-2);
}

/* --- Proof terminal --- */
.terminal {
  position: relative;
  background: linear-gradient(180deg, #0e0b17 0%, #0a0812 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 24px 80px -24px rgba(0, 0, 0, 0.8),
    0 0 60px -20px rgba(139, 92, 246, 0.35);
  overflow: hidden;
}
.terminal::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(196, 181, 253, 0.35), transparent 30%, transparent 70%, rgba(139, 92, 246, 0.25));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.terminal-bar .tdot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.terminal-bar .tdot:nth-child(1) { background: rgba(248, 113, 113, 0.55); }
.terminal-bar .tdot:nth-child(2) { background: rgba(251, 191, 36, 0.55); }
.terminal-bar .tdot:nth-child(3) { background: rgba(52, 211, 153, 0.55); }
.terminal-title {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-3);
}
.terminal-body {
  padding: 20px 22px 22px;
  font-family: var(--font-mono);
  font-size: 12.75px;
  line-height: 1.75;
}
.tline {
  white-space: pre-wrap;
  word-break: break-word;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.tline.visible {
  opacity: 1;
  transform: none;
}
.tline .prompt { color: var(--violet-2); }
.tline .cmd { color: var(--text); }
.tline .tag-compute { color: #67e8f9; }
.tline .tag-storage { color: var(--violet-2); }
.tline .tag-chain { color: var(--amber); }
.tline .tag-settle { color: var(--green); }
.tline .dim { color: var(--text-3); }
.tline .ok { color: var(--green); font-weight: 600; white-space: nowrap; }
.tline .val { color: var(--text); }
.tline.pnl {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}
.tline .pnl-pos {
  color: var(--green);
  font-weight: 600;
}
.caret {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--violet-2);
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

/* ============================================================
   Ticker
   ============================================================ */
.ticker {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  overflow: hidden;
  padding: 13px 0;
  position: relative;
}
.ticker::before,
.ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}
.ticker::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-alt), transparent);
}
.ticker::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-alt), transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 46s linear infinite;
}
.ticker-track:hover {
  animation-play-state: paused;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.ticker-item {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text-2);
  padding: 0 14px;
  white-space: nowrap;
}
.ticker-sep {
  color: var(--violet);
  font-size: 10px;
}

/* ============================================================
   Sections — shared
   ============================================================ */
.section {
  padding: 104px 0;
  position: relative;
}
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--violet-2);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-head.centered .kicker {
  justify-content: center;
}
.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--violet);
}
.section-head.centered .kicker::before {
  display: none;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}
.section-lede {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.65;
}
.section-lede a {
  border-bottom: 1px dotted var(--violet);
}

/* Reveal on scroll — hidden state only applies once JS has booted,
   so the page renders fully with JS disabled or broken */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Problem cards
   ============================================================ */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.04);
  transform: translateY(-3px);
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  margin-bottom: 20px;
  color: var(--violet-2);
}
.card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.card p {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.65;
}
.card p .mono {
  font-size: 13px;
  color: var(--text);
}
.punchline {
  margin-top: 48px;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.punchline .accent {
  background: linear-gradient(115deg, var(--violet-3), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   Proof of Forecast steps
   ============================================================ */
.pof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
}
.pof-line {
  position: absolute;
  top: 36px; /* threads through the .pof-num::before dot centers */
  left: 6%;
  right: 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5) 12%, rgba(139, 92, 246, 0.5) 88%, transparent);
  z-index: 0;
}
.pof-step {
  position: relative;
  z-index: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px 20px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.pof-step:hover {
  border-color: rgba(139, 92, 246, 0.45);
  transform: translateY(-3px);
}
.pof-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--violet-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.pof-num::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.9);
}
.pof-step h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.pof-layer {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}
.pof-step p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  flex-grow: 1;
}
.pof-artifact {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-2);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 11px;
  overflow-x: auto;
  white-space: nowrap;
}
.pof-artifact .ok { color: var(--green); }
.pof-footer {
  margin-top: 44px;
  text-align: center;
  color: var(--text-2);
  font-size: 16px;
}
.pof-footer strong {
  color: var(--text);
}

/* ============================================================
   Vault section
   ============================================================ */
.vault-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: start;
}
.vault-copy p {
  color: var(--text-2);
  margin-bottom: 18px;
  font-size: 15.5px;
}
.vault-copy p strong {
  color: var(--text);
}
.vault-copy .sig {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--violet-3);
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: 8px;
  padding: 12px 16px;
  display: inline-block;
  margin: 4px 0 22px;
  overflow-x: auto;
  max-width: 100%;
  white-space: nowrap;
}
.rules {
  list-style: none;
  margin: 6px 0 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rules li {
  display: flex;
  gap: 14px;
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.6;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.rules li .rule-n {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--violet-2);
  flex-shrink: 0;
  padding-top: 2px;
}
.rules li strong {
  color: var(--text);
}
.guarantees {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 7px 11px;
  background: var(--surface);
}
.chip svg {
  color: var(--green);
  flex-shrink: 0;
}

/* Receipt card */
.receipt {
  background: linear-gradient(180deg, #110d1c 0%, #0c0a14 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 64px -24px rgba(0, 0, 0, 0.7),
    0 0 48px -20px rgba(139, 92, 246, 0.28);
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.receipt-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.receipt-head .rh-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
}
.receipt-head .rh-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green);
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.08);
  border-radius: 99px;
  padding: 4px 10px;
  white-space: nowrap;
}
.receipt-body {
  padding: 10px 22px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.rrow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.rrow:last-child {
  border-bottom: none;
}
.rrow .rl {
  color: var(--text-3);
  font-size: 12px;
}
.rrow .rv {
  color: var(--text);
  text-align: right;
}
.rrow .rv .yes { color: var(--green); }
.rrow .rv .no { color: var(--red); }
.rrow.result .rv {
  color: var(--green);
  font-weight: 600;
  font-size: 15px;
}
.receipt-note {
  padding: 16px 22px 20px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.6;
}
.receipt-note a {
  border-bottom: 1px dotted var(--violet);
}

/* ============================================================
   Build an agent
   ============================================================ */
.build-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}
.build-copy p {
  color: var(--text-2);
  font-size: 15.5px;
  margin-bottom: 18px;
}
.build-copy p strong {
  color: var(--text);
}
.build-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.codeblock {
  background: #0d0a16;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 56px -24px rgba(0, 0, 0, 0.7);
}
.codeblock-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.codeblock-bar span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-3);
}
.copy-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
  background: none;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 5px 11px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.copy-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}
.codeblock pre {
  padding: 20px 22px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
}
.codeblock code .c { color: var(--text-3); }
.codeblock code .p { color: var(--violet-2); }
.codeblock code .t { color: var(--text); }

/* ============================================================
   0G network
   ============================================================ */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 26px;
}
.net-facts {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.net-facts table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.net-facts th,
.net-facts td {
  text-align: left;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
}
.net-facts tr:last-child th,
.net-facts tr:last-child td {
  border-bottom: none;
}
.net-facts th {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  width: 220px;
  white-space: nowrap;
}
.net-facts td {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text);
  word-break: normal;
  overflow-wrap: anywhere;
}
.net-facts td a {
  border-bottom: 1px dotted var(--violet);
}
.net-facts .facts-scroll {
  overflow-x: auto;
}

/* ============================================================
   Status / roadmap
   ============================================================ */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 15px;
  /* anchored to the first and last dot centers (4 cols, 18px gap, 15px dots) */
  left: 8px;
  right: calc(25% - 21px);
  height: 1px;
  background: linear-gradient(90deg, var(--green) 0%, var(--green) 14%, rgba(139, 92, 246, 0.55) 30%, rgba(255, 255, 255, 0.12) 70%, rgba(255, 255, 255, 0.12));
}
.ms {
  position: relative;
  padding-top: 40px;
}
.ms::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: var(--bg);
}
.ms.shipped::before {
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.6);
}
.ms.next::before {
  border-color: var(--violet);
  background: var(--bg);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.6);
}
.ms-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--text-3);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ms.shipped .ms-tag { color: var(--green); }
.ms.next .ms-tag { color: var(--violet-2); }
.ms-state {
  font-size: 10px;
  font-weight: 400;
  border: 1px solid currentColor;
  border-radius: 99px;
  padding: 2px 8px;
  letter-spacing: 0.1em;
}
.ms h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}
.ms p {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.6;
}
.status-note {
  margin-top: 44px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text-2);
}
.status-note svg {
  flex-shrink: 0;
  color: var(--violet-2);
  margin-top: 2px;
}
.status-note a {
  border-bottom: 1px dotted var(--violet);
}

/* ============================================================
   Hunch band
   ============================================================ */
.hunch-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 120px 0;
}
.hunch-band .glow2 {
  position: absolute;
  bottom: -380px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 700px;
  background: radial-gradient(
    ellipse at center,
    rgba(139, 92, 246, 0.24) 0%,
    rgba(109, 61, 240, 0.08) 45%,
    transparent 72%
  );
  pointer-events: none;
}
.hunch-band .kicker {
  justify-content: center;
}
.hunch-band .kicker::before {
  display: none;
}
.hunch-band h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 22px;
}
.hunch-band h2 .accent {
  background: linear-gradient(115deg, var(--violet-3), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hunch-band p {
  max-width: 640px;
  margin: 0 auto 36px;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.65;
}
.hunch-band p strong {
  color: var(--text);
}
.hunch-ctas {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
.hunch-domain {
  margin-top: 34px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 0.08em;
}
.hunch-domain span {
  color: var(--violet-2);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 64px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 52px;
}
.footer-brand p {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--text-3);
  max-width: 30ch;
  line-height: 1.6;
}
.footer h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 18px;
}
.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer ul a {
  color: var(--text-2);
  font-size: 14px;
}
.footer ul a:hover {
  color: var(--text);
}
.footer ul a .ext {
  font-size: 11px;
  color: var(--text-3);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
}
.footer-bottom a {
  color: var(--text-2);
}
.footer-bottom a:hover {
  color: var(--violet-2);
}

/* ============================================================
   Responsive
   ============================================================ */
/* The full nav row (brand + pill + 5 links + GitHub + CTA) needs ~1100px,
   so the hamburger collapse happens well above tablet width */
@media (max-width: 1120px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(7, 6, 12, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 24px;
    gap: 18px;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    font-size: 16px;
  }
  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero {
    padding-top: calc(var(--nav-h) + 56px);
  }
  .pof-grid,
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }
  .pof-line,
  .timeline::before {
    display: none;
  }
  /* the connector rail is gone, so drop the orphaned node dots too */
  .ms {
    padding-top: 0;
  }
  .ms::before {
    display: none;
  }
  .vault-grid,
  .build-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .receipt {
    position: static;
  }
  .stack-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav-inner {
    padding: 0 16px;
    gap: 12px;
  }
  /* the hero and Hunch band repeat this CTA — keep the bar to brand + GitHub + menu */
  .nav-actions .btn {
    display: none;
  }
  .nav-gh span { display: none; }
  .nav-gh { padding: 9px; }
  .brand-sub { display: none; }
  .hero-eyebrow {
    font-size: 10px;
    letter-spacing: 0.09em;
    padding: 6px 12px;
    align-items: flex-start;
  }
  .hero-eyebrow .dot {
    margin-top: 4px;
  }
  .section {
    padding: 76px 0;
  }
  .cards-3,
  .pof-grid,
  .timeline {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: clamp(34px, 9.6vw, 44px);
  }
  .hero-ctas .btn {
    flex: 1 1 100%;
  }
  .net-facts th {
    width: 130px;
    white-space: normal;
  }
  .net-facts th,
  .net-facts td {
    padding: 12px 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .terminal-body {
    font-size: 11.5px;
    padding: 16px;
  }
  .hunch-band {
    padding: 88px 0;
  }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal,
  .tline {
    opacity: 1 !important;
    transform: none !important;
  }
  .ticker-track {
    animation: none;
    flex-wrap: wrap;
  }
  .caret {
    display: none;
  }
}
