:root {
  --bg: #0b0a09;
  --bg-2: #12100e;
  --card: #161412;
  --card-2: #1c1916;
  --line: rgba(236, 230, 218, 0.08);
  --line-2: rgba(236, 230, 218, 0.16);
  --text: #ece6da;
  --muted: #9b948a;
  --dim: #5f5952;
  --accent: #ff4d2e;
  --accent-2: #ff8a4c;
  --accent-soft: rgba(255, 77, 46, 0.14);
  --ok: #8be28f;
  --bad: #ff6a5b;
  --radius: 22px;
  --radius-sm: 12px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --display: 'Martian Mono', var(--mono);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
code, pre { font-family: var(--mono); }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }
::selection { background: var(--accent); color: #140806; }

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

.muted { color: var(--muted); }

/* ---------- background layers ---------- */

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%);
  animation: grid-drift 40s linear infinite;
}

@keyframes grid-drift { to { background-position: 88px 88px; } }

.bg-noise {
  position: fixed;
  inset: -50%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle, rgba(255, 77, 46, 0.09), transparent 60%);
  transform: translate3d(var(--gx, -999px), var(--gy, -999px), 0);
  transition: opacity 0.4s;
}

/* ---------- intro ---------- */

.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  background: var(--bg);
  pointer-events: none;
  animation: intro-out 0.6s 1.1s var(--ease) forwards;
}

@keyframes intro-out { to { opacity: 0; visibility: hidden; } }

.intro-mark { width: 92px; height: 92px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.intro-ring { stroke: var(--accent); stroke-width: 3; stroke-dasharray: 277; stroke-dashoffset: 277; animation: draw 0.7s var(--ease) forwards; }
.intro-crack { stroke: var(--text); stroke-width: 3; stroke-dasharray: 110; stroke-dashoffset: 110; animation: draw 0.35s 0.55s var(--ease) forwards; }
.intro-word { font-size: 11px; letter-spacing: 0.5em; color: var(--muted); animation: blink-in 0.9s steps(4) both; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes blink-in { 0% { opacity: 0; } 100% { opacity: 1; } }

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

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s var(--ease-spring), border-color 0.2s, color 0.2s, background-color 0.2s;
}

.btn > span { position: relative; z-index: 1; }

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  transform: translateY(102%);
  transition: transform 0.35s var(--ease);
}

.btn:hover::before { transform: translateY(0); }
.btn:active { transform: scale(0.97); }

.btn-accent { background: var(--accent); color: #160704; }
.btn-accent::before { background: var(--text); }

.btn-ghost { background: rgba(236, 230, 218, 0.04); border-color: var(--line-2); color: var(--text); }
.btn-ghost::before { background: var(--text); }
.btn-ghost:hover { color: var(--bg); }

.btn-light { background: var(--text); color: var(--bg); }
.btn-light::before { background: var(--accent); }

.btn-sm { min-height: 38px; padding: 0 16px; font-size: 13px; }
.btn-block { width: 100%; }

.btn[disabled] { opacity: 0.55; pointer-events: none; }

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-2);
  font-weight: 700;
  font-size: 14px;
}

.link-btn span { transition: transform 0.3s var(--ease-spring); }
.link-btn:hover span { transform: translateX(6px); }

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  transition: background-color 0.2s, transform 0.25s var(--ease-spring);
}

.icon-btn svg { width: 16px; height: 16px; fill: currentColor; }
.icon-btn:hover { background: var(--text); color: var(--bg); transform: rotate(-8deg) scale(1.06); }

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

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter);
  transition: transform 0.4s var(--ease), background-color 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(11, 10, 9, 0.72);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-color: var(--line);
}

.nav.is-hidden { transform: translateY(-110%); }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; letter-spacing: 0.08em; font-size: 15px; }
.brand-mark { width: 28px; height: 28px; fill: var(--accent); transition: transform 0.4s var(--ease-spring); }
.brand-mark path:first-child { transition: transform 0.4s var(--ease-spring); transform-origin: 50% 50%; }
.brand-mark path:last-child { transition: transform 0.4s var(--ease-spring); transform-origin: 50% 50%; }
.brand:hover .brand-mark path:first-child { transform: translate(-1.5px, 0) rotate(-6deg); }
.brand:hover .brand-mark path:last-child { transform: translate(1.5px, 0) rotate(6deg); }

.nav-links { display: flex; gap: 6px; }

.nav-links a {
  position: relative;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.nav-links a:hover,
.nav-links a.is-current { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.is-current::after { transform: scaleX(1); transform-origin: left; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.burger { display: none; width: 38px; height: 38px; border: 1px solid var(--line-2); border-radius: 50%; background: none; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--text); transition: transform 0.3s var(--ease); }
.burger span:first-child { top: 15px; }
.burger span:last-child { top: 21px; }
.burger[aria-expanded='true'] span:first-child { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded='true'] span:last-child { transform: translateY(-3px) rotate(-45deg); }

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 110px var(--gutter) 90px;
  overflow: hidden;
}

.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.9; }

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 25% 50%, rgba(11, 10, 9, 0.92), rgba(11, 10, 9, 0.35) 70%, transparent),
    linear-gradient(to bottom, transparent 70%, var(--bg));
}

.hero-beam {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 160px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(255, 77, 46, 0.07) 60%, rgba(255, 138, 76, 0.18) 98%, transparent);
  animation: beam 7s var(--ease) infinite;
}

@keyframes beam {
  0% { transform: translateY(-160px); opacity: 0; }
  10% { opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translateY(110vh); opacity: 0; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(22, 20, 18, 0.6);
}

.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.pulse-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: ping 1.8s var(--ease) infinite; }

@keyframes ping { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(3); opacity: 0; } }

.headline {
  margin: 26px 0 24px;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 87%;
  font-size: clamp(42px, 7.4vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.headline .line { display: block; white-space: nowrap; }
.headline .line-accent { color: var(--accent); text-shadow: 0 0 40px rgba(255, 77, 46, 0.35); }
.js .headline .line { opacity: 0; }
.js .headline .line.is-on { opacity: 1; }

.lede { max-width: 560px; color: #c9c2b6; font-size: clamp(14px, 1.3vw, 16px); }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.js .fade-in { opacity: 0; transform: translateY(16px); }
.js .is-ready .fade-in,
.js .fade-in.is-in { opacity: 1; transform: none; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }

/* ---------- CA box ---------- */

.ca-box {
  --angle: 0deg;
  position: relative;
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px;
  max-width: 620px;
  border-radius: 18px;
  background: rgba(18, 16, 14, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  isolation: isolate;
}

.ca-box::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: 19px;
  padding: 1px;
  background: conic-gradient(from var(--angle), var(--line-2), var(--accent) 12%, var(--accent-2) 18%, var(--line-2) 30%, var(--line-2) 70%, var(--accent) 85%, var(--line-2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spin-angle 5s linear infinite;
}

@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes spin-angle { to { --angle: 360deg; } }

.ca-main {
  flex: 1 1 320px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 6px 6px 6px 12px;
  border-radius: 12px;
  background: rgba(236, 230, 218, 0.04);
}

.ca-ticker { font-weight: 700; color: var(--accent); white-space: nowrap; }
.ca-sep { width: 1px; height: 18px; background: var(--line-2); }
.ca-label { font-size: 11px; letter-spacing: 0.12em; color: var(--dim); }
.ca-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--text); }
.ca-box.is-pending .ca-value { color: var(--muted); }
.ca-box.is-pending .ca-value::after { content: '_'; animation: caret 1s steps(1) infinite; }
.ca-box.is-live .ca-value { animation: ca-drop 1.2s var(--ease); }

@keyframes caret { 50% { opacity: 0; } }
@keyframes ca-drop { 0% { color: var(--accent-2); text-shadow: 0 0 18px var(--accent); } 100% { color: var(--text); text-shadow: none; } }

.ca-copy {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: var(--card-2);
  font-size: 12px;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s var(--ease-spring);
}

.ca-copy svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ca-copy .i-check { display: none; stroke: var(--ok); stroke-dasharray: 24; stroke-dashoffset: 24; }
.ca-copy:hover { border-color: var(--accent); transform: translateY(-1px); }
.ca-copy.is-copied { border-color: var(--ok); }
.ca-copy.is-copied .i-copy { display: none; }
.ca-copy.is-copied .i-check { display: block; animation: draw 0.4s var(--ease) forwards; }
.ca-copy[disabled] { opacity: 0.45; cursor: not-allowed; }

.ca-links { display: flex; gap: 8px; flex-wrap: wrap; }

.ca-buy,
.ca-x {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-spring), background-color 0.2s, color 0.2s;
}

.ca-buy { background: var(--text); color: var(--bg); }
.ca-buy:hover { background: var(--accent); transform: translateY(-2px); }
.ca-buy[aria-disabled='true'] { opacity: 0.45; pointer-events: none; }
.ca-x { border: 1px solid var(--line-2); }
.ca-x svg { width: 14px; height: 14px; fill: currentColor; }
.ca-x:hover { background: var(--text); color: var(--bg); transform: translateY(-2px); }

/* ---------- seal ---------- */

.hero-seal { position: relative; display: grid; justify-items: center; gap: 14px; }

.seal { width: min(100%, 460px); height: auto; overflow: visible; }
.seal-orbit { transform-origin: 200px 200px; animation: spin 38s linear infinite; }
.seal-text { font-family: var(--mono); font-size: 13px; letter-spacing: 0.32em; fill: var(--muted); }
.seal-ticks { fill: none; stroke: var(--line-2); stroke-width: 6; stroke-dasharray: 1 8; transform-origin: 200px 200px; animation: spin 60s linear infinite reverse; }
.seal-core { transform-origin: 200px 200px; animation: core 3.2s ease-in-out infinite; }
.disc-edge { filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.6)); }
.disc-ring { fill: none; stroke: rgba(255, 220, 200, 0.28); stroke-width: 2; }
.disc-ring-thin { stroke-width: 1; stroke-dasharray: 3 5; }
.disc-glyph { font-family: var(--display); font-weight: 800; font-size: 52px; fill: rgba(70, 10, 2, 0.55); letter-spacing: -0.04em; }

.seal-half { transition: transform 0.9s var(--ease-spring); }
.seal-left { animation: crack-l 4.5s var(--ease) infinite; }
.seal-right { animation: crack-r 4.5s var(--ease) infinite; }
.hero-seal:hover .seal-left { animation: none; transform: translate(-26px, 4px) rotate(-7deg); }
.hero-seal:hover .seal-right { animation: none; transform: translate(26px, -4px) rotate(7deg); }
.seal-left,
.seal-right { transform-origin: 200px 200px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes core { 0%, 100% { opacity: 0.55; transform: scale(0.9); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes crack-l { 0%, 30%, 100% { transform: none; } 55%, 75% { transform: translate(-9px, 2px) rotate(-2.5deg); } }
@keyframes crack-r { 0%, 30%, 100% { transform: none; } 55%, 75% { transform: translate(9px, -2px) rotate(2.5deg); } }

.seal-readout { display: inline-flex; gap: 10px; font-size: 11px; color: var(--dim); letter-spacing: 0.1em; text-transform: uppercase; }
.seal-readout code { color: var(--muted); letter-spacing: 0.04em; text-transform: none; }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; z-index: 2; width: 24px; height: 40px; margin-left: -12px; border: 1px solid var(--line-2); border-radius: 12px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--accent); animation: cue 1.8s var(--ease) infinite; }

@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- ticker ---------- */

.ticker {
  position: relative;
  display: flex;
  align-items: center;
  border-block: 1px solid var(--line);
  background: rgba(18, 16, 14, 0.7);
  overflow: hidden;
}

.ticker-tag {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px 14px var(--gutter);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  background: var(--bg-2);
  box-shadow: 20px 0 30px var(--bg-2);
}

.ticker-viewport { flex: 1; overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); }
.ticker-track { display: flex; width: max-content; animation: marquee var(--dur, 60s) linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.ticker-item b { font-weight: 500; color: var(--text); }
.ticker-item i { font-style: normal; font-size: 10px; letter-spacing: 0.14em; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--dim); text-transform: uppercase; }
.ticker-item i.t-proof { color: var(--ok); border-color: rgba(139, 226, 143, 0.35); }
.ticker-item i.t-bounty { color: var(--accent-2); border-color: rgba(255, 138, 76, 0.35); }

@keyframes marquee { to { transform: translateX(-50%); } }

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

.section { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(80px, 11vw, 150px) var(--gutter) 0; }

.sec-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-num { font-size: 12px; color: var(--accent); letter-spacing: 0.2em; }
.sec-num::before { content: '/ '; color: var(--dim); }
.sec-title { font-family: var(--display); font-weight: 700; font-stretch: 87%; font-size: clamp(28px, 4.2vw, 52px); line-height: 1.05; letter-spacing: -0.03em; }
.sec-sub { color: var(--muted); max-width: 640px; }

.card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card), var(--bg-2));
  overflow: hidden;
  isolation: isolate;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 77, 46, 0.12), transparent 45%);
}

.card:hover::before { opacity: 1; }

.js .reveal { opacity: 0; transform: translateY(34px) scale(0.985); }
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}

/* Once revealed, cards go back to their own fast hover transitions. */
.js .step.reveal.is-in { transition: opacity 0.9s var(--ease) var(--d, 0s), transform 0.5s var(--ease), border-color 0.3s; }
.js .vault-card.reveal.is-in { transition: opacity 0.9s var(--ease) var(--d, 0s), transform 0.2s ease-out, border-color 0.3s; }

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

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.step { display: flex; flex-direction: column; gap: 16px; padding: 28px; min-height: 340px; transition: transform 0.5s var(--ease), border-color 0.3s; }
.step:hover { transform: translateY(-6px); border-color: var(--line-2); }
.step-top { display: flex; justify-content: space-between; align-items: flex-start; }
.step-k { font-family: var(--display); font-size: 56px; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--line-2); transition: color 0.4s, -webkit-text-stroke-color 0.4s; }
.step:hover .step-k { color: var(--accent-soft); -webkit-text-stroke-color: var(--accent); }
.step-icon { width: 46px; height: 46px; fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.step-icon .draw { stroke: var(--accent); stroke-dasharray: 60; stroke-dashoffset: 60; transition: stroke-dashoffset 0.9s var(--ease); }
.step.is-in .step-icon .draw { stroke-dashoffset: 0; transition-delay: calc(var(--d, 0s) + 0.4s); }
.step h3 { font-family: var(--display); font-stretch: 87%; font-size: 22px; letter-spacing: -0.02em; }
.step p { color: var(--muted); flex: 1; }

/* ---------- tech marquee ---------- */

.stack { margin-top: clamp(70px, 9vw, 120px); padding: 22px 0; border-block: 1px solid var(--line); overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); }
.stack-track { display: flex; width: max-content; gap: 64px; padding-right: 64px; animation: marquee 32s linear infinite; }
.stack-track span { font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--dim); letter-spacing: -0.01em; transition: color 0.3s; }
.stack-track span:hover { color: var(--text); }

/* ---------- numbers ---------- */

.num-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.num { padding: 28px; display: grid; gap: 10px; align-content: start; }
.num-v { font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: clamp(56px, 7vw, 92px); line-height: 1; letter-spacing: -0.05em; }
.num-v small { font-size: 0.32em; letter-spacing: 0; margin-left: 6px; color: var(--accent); font-weight: 600; }
.num-l { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-2); }
.num p { color: var(--muted); font-size: 14px; }
.num-bar { height: 3px; margin-top: 8px; border-radius: 3px; background: var(--line); overflow: hidden; }
.num-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 1.6s var(--ease) 0.3s; }

.live-stats { margin-top: 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.live-stats > div { display: grid; gap: 2px; padding: 20px 24px; border-right: 1px solid var(--line); }
.live-stats > div:last-child { border-right: 0; }
.ls-v { font-family: var(--display); font-weight: 700; font-size: 26px; }
.ls-l { font-size: 12px; color: var(--muted); }

/* ---------- referee ---------- */

.ref-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 24px 0; }
.tag { display: inline-block; font-size: 11px; letter-spacing: 0.18em; color: var(--accent); padding: 4px 9px; border: 1px solid rgba(255, 77, 46, 0.35); border-radius: 7px; background: var(--accent-soft); }
.replay-count { font-size: 12px; color: var(--muted); }
.replay-count b { color: var(--ok); font-weight: 500; }
.card-foot { padding: 0 24px 24px; color: var(--muted); font-size: 14px; }

.replay-stage { display: grid; grid-template-columns: 74px 1fr 64px; align-items: center; gap: 14px; padding: 34px 24px; }
.corpus { display: grid; place-items: center; height: 120px; border: 1px dashed var(--line-2); border-radius: 14px; font-size: 10px; text-align: center; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.lanes { display: grid; gap: 22px; min-width: 0; }
.lane { position: relative; display: grid; gap: 6px; }
.lane-label { font-size: 11px; color: var(--dim); }
.lane-track { position: relative; height: 34px; border-radius: 10px; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 24px), rgba(236, 230, 218, 0.025); border: 1px solid var(--line); overflow: hidden; }
.chip { position: absolute; left: 0; top: 50%; margin-top: -11px; height: 22px; padding: 0 8px; display: inline-flex; align-items: center; border-radius: 6px; font-size: 11px; white-space: nowrap; color: var(--text); background: var(--card-2); border: 1px solid var(--line-2); will-change: transform; }
.chip.is-fuzz { color: var(--accent-2); border-color: rgba(255, 138, 76, 0.4); }
.diff { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line-2); font-family: var(--display); font-size: 26px; font-weight: 800; color: var(--ok); background: var(--bg-2); }
.diff.is-hit { animation: hit 0.5s var(--ease); }

@keyframes hit { 0% { box-shadow: 0 0 0 0 rgba(139, 226, 143, 0.6); transform: scale(1.12); } 100% { box-shadow: 0 0 0 18px rgba(139, 226, 143, 0); transform: scale(1); } }

.terminal { display: flex; flex-direction: column; background: #0d0c0b; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--dim); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.term-bar i:first-child { background: var(--accent); }
.term-bar span { margin-left: 8px; }
.term-body { flex: 1; margin: 0; padding: 20px 22px 24px; min-height: 330px; font-size: 13px; line-height: 1.85; color: var(--muted); white-space: pre-wrap; word-break: break-all; }
.term-body .k { color: var(--dim); }
.term-body .v { color: var(--text); }
.term-body .pass { color: var(--ok); font-weight: 700; }
.term-body .fail { color: var(--bad); font-weight: 700; }
.term-body .cursor { display: inline-block; width: 8px; height: 15px; vertical-align: -2px; background: var(--accent); animation: caret 1s steps(1) infinite; }

.rules { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rules li { display: grid; gap: 12px; align-content: start; padding: 20px; border-top: 1px solid var(--line-2); color: var(--muted); font-size: 14px; }
.rules li span { font-family: var(--display); color: var(--accent); font-weight: 700; }

/* ---------- vault ---------- */

.vault-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; perspective: 1200px; }

.vault-card { padding: 22px; display: grid; gap: 16px; transform-style: preserve-3d; transition: transform 0.2s ease-out, border-color 0.3s; }
.vault-card:hover { border-color: rgba(255, 77, 46, 0.35); }
.vault-card.skeleton { min-height: 360px; background: linear-gradient(100deg, var(--card) 30%, var(--card-2) 50%, var(--card) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }

@keyframes shimmer { to { background-position: -150% 0; } }

.vc-head { display: flex; justify-content: space-between; align-items: center; }
.vc-num { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.vc-badge { font-size: 10px; letter-spacing: 0.16em; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); }
.vc-badge.is-cal { color: var(--accent-2); border-color: rgba(255, 138, 76, 0.4); }
.vc-badge.is-sim { color: #c9b8ff; border-color: rgba(201, 184, 255, 0.35); }
.vc-rows { display: grid; gap: 8px; margin: 0; }
.vc-rows div { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.vc-rows dt { color: var(--dim); letter-spacing: 0.1em; text-transform: uppercase; }
.vc-rows dd { margin: 0; color: var(--text); text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-rows .ok { color: var(--ok); }
/* A big faint stamp behind the rows, so it never covers the numbers. */
.vc-stamp {
  position: absolute;
  left: 50%;
  top: 52%;
  z-index: -1;
  padding: 8px 18px;
  border: 3px solid var(--accent);
  border-radius: 12px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 34px;
  letter-spacing: 0.14em;
  color: var(--accent);
  transform: translate(-50%, -50%) rotate(-14deg);
  opacity: 0.14;
  pointer-events: none;
}
.vc-stamp.is-public { border-color: var(--ok); color: var(--ok); }
.vault-card.is-in .vc-stamp { animation: stamp 0.7s var(--ease-spring) both; animation-delay: calc(var(--d, 0s) + 0.5s); }
.vault-card:hover .vc-stamp { opacity: 0.22; }

@keyframes stamp {
  0% { transform: translate(-50%, -50%) rotate(-14deg) scale(2.2); opacity: 0; }
  100% { transform: translate(-50%, -50%) rotate(-14deg) scale(1); opacity: 0.14; }
}

.vc-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.vc-price { font-family: var(--display); font-weight: 700; font-size: 18px; }
.vc-price small { font-size: 11px; color: var(--muted); font-weight: 400; }

.empty { display: grid; justify-items: start; gap: 14px; padding: 36px 28px; color: var(--muted); }

/* ---------- board ---------- */

.board-card { padding: 8px; }
.tabs { position: relative; display: inline-flex; gap: 4px; padding: 4px; margin: 10px; border-radius: 999px; background: rgba(236, 230, 218, 0.04); border: 1px solid var(--line); }
.tab { position: relative; z-index: 1; padding: 8px 18px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-size: 13px; transition: color 0.25s; }
.tab.is-active { color: var(--bg); }
.tab-ink { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: var(--text); transition: transform 0.45s var(--ease-spring), width 0.45s var(--ease-spring); }
.tab-panel { padding: 6px 10px 12px; }
.tab-panel.is-active { animation: panel-in 0.5s var(--ease); }

@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-weight: 500; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table tbody tr { transition: background-color 0.2s; animation: row-in 0.5s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
.table tbody tr:hover { background: rgba(236, 230, 218, 0.03); }
.table .num-cell { text-align: right; font-variant-numeric: tabular-nums; }
.table .pass { color: var(--ok); font-weight: 700; }
.table .fail { color: var(--bad); font-weight: 700; }
.table .run { color: var(--accent-2); }
.addr { color: var(--text); }
.pill-sm { font-size: 10px; letter-spacing: 0.12em; padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--muted); margin-left: 6px; }

@keyframes row-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

/* ---------- CTA + footer ---------- */

.cta { position: relative; margin-top: clamp(90px, 12vw, 160px); padding: clamp(70px, 10vw, 130px) var(--gutter); border-top: 1px solid var(--line); overflow: hidden; }
.cta::before { content: ''; position: absolute; left: 50%; top: 0; width: 900px; height: 500px; margin-left: -450px; background: radial-gradient(ellipse at 50% 0%, rgba(255, 77, 46, 0.16), transparent 65%); pointer-events: none; }
.cta-inner { position: relative; max-width: var(--max); margin: 0 auto; }
.cta-title { font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: clamp(32px, 6.4vw, 88px); line-height: 1; letter-spacing: -0.04em; max-width: 1000px; }
.cta-links { margin-top: 48px; display: grid; border-top: 1px solid var(--line); }
.cta-link {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  text-align: left;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(20px, 2.8vw, 34px);
  letter-spacing: -0.02em;
  overflow: hidden;
  isolation: isolate;
}
.cta-link::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--accent); transform: scaleY(0); transform-origin: bottom; transition: transform 0.45s var(--ease); }
.cta-link b { transition: transform 0.45s var(--ease-spring); }
.cta-link span { transition: transform 0.45s var(--ease); }
.cta-link:hover { color: #160704; }
.cta-link:hover::before { transform: scaleY(1); }
.cta-link:hover span { transform: translateX(18px); }
.cta-link:hover b { transform: translateX(-18px) rotate(-45deg); }

.footer { max-width: var(--max); margin: 0 auto; padding: 36px var(--gutter) 48px; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; font-size: 12px; border-top: 1px solid var(--line); }
.footer-brand { font-family: var(--display); font-weight: 800; letter-spacing: 0.06em; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }

/* ---------- modal ---------- */

.modal { padding: 0; border: 0; background: transparent; color: var(--text); max-width: calc(100vw - 32px); width: 520px; overflow: visible; }
.modal::backdrop { background: rgba(6, 5, 4, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal[open] .modal-card { animation: modal-in 0.45s var(--ease-spring); }
.modal[open]::backdrop { animation: fade 0.3s ease; }

@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }

.modal-card { position: relative; display: grid; gap: 14px; padding: 28px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--card); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5); max-height: calc(100svh - 40px); overflow-y: auto; }
.modal-card h3 { font-family: var(--display); font-stretch: 87%; font-size: 26px; letter-spacing: -0.02em; }
.modal-card .tag { justify-self: start; }
.modal-card > .muted { font-size: 13px; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: none; font-size: 20px; line-height: 1; transition: transform 0.3s var(--ease-spring), background-color 0.2s; }
.modal-x:hover { transform: rotate(90deg); background: var(--card-2); }

.field { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.field em { font-style: normal; color: var(--dim); }
.field input { width: 100%; min-height: 46px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: inherit; font-size: 14px; transition: border-color 0.2s, box-shadow 0.2s; }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field input.is-bad { border-color: var(--bad); animation: shake 0.35s; }

@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

.drop { position: relative; }
.drop input[type='file'] { position: absolute; inset: 22px 0 0; opacity: 0; cursor: pointer; min-height: 0; height: calc(100% - 22px); }
.drop-hint { display: grid; place-items: center; min-height: 86px; padding: 12px; border: 1px dashed var(--line-2); border-radius: var(--radius-sm); text-align: center; color: var(--muted); transition: border-color 0.2s, background-color 0.2s; }
.drop.is-over .drop-hint,
.drop:hover .drop-hint { border-color: var(--accent); background: var(--accent-soft); }
.drop.has-file .drop-hint { color: var(--text); border-style: solid; }

.wallet-line { font-size: 12px; color: var(--muted); padding: 10px 12px; border-radius: 10px; background: rgba(236, 230, 218, 0.04); }
.wallet-line b { color: var(--ok); font-weight: 500; }
.form-msg { min-height: 1em; font-size: 13px; color: var(--bad); }
.form-msg.is-ok { color: var(--ok); }

.run { display: grid; gap: 12px; padding: 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-2); animation: panel-in 0.4s var(--ease); }
.run-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--dim); }
.run-row { display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.run-row code { color: var(--text); font-variant-numeric: tabular-nums; }
.bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 0.3s linear; }
.run-result { font-family: var(--display); font-weight: 700; font-size: 18px; }
.run-result.pass { color: var(--ok); }
.run-result.fail { color: var(--bad); }

/* ---------- toast ---------- */

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card-2); font-size: 13px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45); transform: translate(-50%, calc(100% + 40px)); opacity: 0; visibility: hidden; transition: transform 0.45s var(--ease-spring), opacity 0.3s, visibility 0.45s; pointer-events: none; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.toast.is-ok { border-color: rgba(139, 226, 143, 0.45); }
.toast.is-bad { border-color: rgba(255, 106, 91, 0.5); }

.noscript { position: fixed; bottom: 0; left: 0; right: 0; padding: 12px; text-align: center; background: var(--accent); color: #160704; }

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-seal { order: -1; max-width: 300px; margin: 0 auto; }
  .seal-readout { display: none; }
  .steps,
  .num-grid { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .ref-grid { grid-template-columns: 1fr; }
  .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live-stats > div:nth-child(2) { border-right: 0; }
  .live-stats > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 760px) {
  body { font-size: 14px; }
  .nav-links {
    position: fixed;
    top: 66px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line-2);
    border-radius: 18px;
    background: rgba(18, 16, 14, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 14px 12px; font-size: 15px; }
  .nav-links a::after { display: none; }
  .burger { display: block; }
  .nav-actions .btn-sm { display: none; }
  .hero { padding-top: 96px; }
  .hero-seal { max-width: 220px; }
  .headline { margin: 20px 0 18px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .ca-main { flex-basis: 100%; }
  .ca-links { width: 100%; }
  .ca-buy,
  .ca-x { flex: 1; justify-content: center; }
  .replay-stage { grid-template-columns: 1fr; }
  .corpus { height: 44px; }
  .corpus br { display: none; }
  .diff { justify-self: center; }
  .rules { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }
  .tabs { display: flex; margin: 6px; }
  .tab { flex: 1; padding: 8px 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js .reveal,
  .js .fade-in { opacity: 1; transform: none; }
  .hero-beam,
  .bg-noise { display: none; }
}
