:root {
  --bg: #03050a; --bg2: #0b1424; --ink: #e8ecf5; --dim: #8a93a8; --line: #1b2232; --panel: rgba(10, 14, 24, .78);
  --accent: #14f195; --accent2: #9945ff; --warn: #ffb547;
  --mono: 'JetBrains Mono', ui-monospace, monospace; --sans: 'Space Grotesk', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(1200px 700px at 70% 10%, #0b1830 0%, var(--bg) 60%) fixed, var(--bg); color: var(--ink); font-family: var(--sans); overflow-x: hidden; }
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; }
a { color: inherit; }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }

.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px; padding: 14px clamp(16px, 4vw, 48px);
  background: linear-gradient(#03050af0, #03050a99); backdrop-filter: blur(12px); border-bottom: 1px solid #ffffff08; }
.brand { font-weight: 700; font-size: 20px; text-decoration: none; display: flex; gap: 8px; align-items: center; }
.top nav { display: flex; gap: 20px; margin-left: auto; font-size: 14px; }
.top nav a { text-decoration: none; color: var(--dim); transition: color .2s; }
.top nav a:hover { color: var(--accent); }

.cta { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 12px; background: var(--accent); color: #04140c; font-weight: 700;
  text-decoration: none; box-shadow: 0 0 0 0 #14f19566; transition: transform .15s, box-shadow .3s; }
.cta:hover { transform: translateY(-2px); box-shadow: 0 10px 30px #14f19555; }
.cta.ghost { background: none; color: var(--ink); border: 1px solid #ffffff22; box-shadow: none; }
.cta.ghost:hover { border-color: var(--accent); }
.cta.small { padding: 9px 14px; font-size: 13px; }
.cta.big { padding: 18px 30px; font-size: 18px; }

.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: center; min-height: calc(100vh - 66px);
  padding: 32px clamp(16px, 5vw, 72px); max-width: 1400px; margin: 0 auto; }
.eyebrow { font: 12px var(--mono); color: var(--accent); letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 #14f19599; } 100% { box-shadow: 0 0 0 10px #14f19500; } }
h1 { font-size: clamp(40px, 6vw, 78px); line-height: 1.02; letter-spacing: -.035em; margin: 18px 0; }
.grad { background: linear-gradient(90deg, var(--accent), #6be7ff 45%, var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% auto; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }
.lead { font-size: 18px; line-height: 1.6; color: #c3c9d6; max-width: 600px; }
.ctas { display: flex; gap: 12px; margin: 28px 0 36px; flex-wrap: wrap; }
.counters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 620px; }
.counters div { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--panel); }
.counters b { display: block; font: 600 26px var(--mono); }
.counters span { font-size: 12px; color: var(--dim); }

.hero-globe { position: relative; aspect-ratio: 1; width: 100%; max-width: 640px; justify-self: center; }
#globe { width: 100%; height: 100%; cursor: grab; display: block; }
#globe:active { cursor: grabbing; }
.globe-note { position: absolute; bottom: 4%; left: 0; right: 0; text-align: center; font: 11px var(--mono); color: var(--dim); }
.globe-tip { position: absolute; pointer-events: none; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px;
  font-size: 12px; backdrop-filter: blur(10px); white-space: nowrap; }
.globe-tip small { display: block; color: var(--dim); font: 10px var(--mono); }

.ticker { display: flex; align-items: center; border-block: 1px solid var(--line); background: #03050acc; overflow: hidden; }
.ticker-label { flex: none; padding: 12px 18px; font: 600 11px var(--mono); color: #04140c; background: var(--accent); letter-spacing: .1em; }
.ticker-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.ticker-inner { display: flex; gap: 34px; width: max-content; animation: scroll 60s linear infinite; padding: 12px 0; }
.ticker:hover .ticker-inner { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.tick { display: flex; gap: 8px; align-items: baseline; font-size: 14px; white-space: nowrap; text-decoration: none; }
.tick i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.tick b { font: 600 13px var(--mono); color: var(--accent); }
.tick small { color: var(--dim); font: 11px var(--mono); }

.block { max-width: 1180px; margin: 0 auto; padding: 96px clamp(16px, 4vw, 40px) 24px; }
h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.025em; margin: 0 0 8px; }
.sub { color: var(--dim); font-size: 17px; margin: 0 0 32px; max-width: 760px; line-height: 1.55; }
.h3 { font-size: 22px; margin: 56px 0 16px; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s, transform .8s; }
.reveal.in { opacity: 1; transform: none; }

.sources { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.src { border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: var(--panel); position: relative; overflow: hidden; transition: transform .25s, border-color .25s; min-height: 170px; }
.src::before { content: ''; position: absolute; inset: -40% -40% auto auto; width: 140px; height: 140px; border-radius: 50%; background: var(--c); opacity: .12; filter: blur(30px); transition: opacity .3s; }
.src:hover { transform: translateY(-4px); border-color: var(--c); }
.src:hover::before { opacity: .35; }
.src b { display: block; font: 600 30px var(--mono); color: var(--c); margin: 8px 0 2px; }
.src h4 { margin: 0; font-size: 15px; }
.src p { margin: 8px 0 0; font-size: 12px; color: var(--dim); line-height: 1.5; max-height: 0; overflow: hidden; transition: max-height .35s; }
.src:hover p, .src:focus-within p { max-height: 120px; }

.steps { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; }
.step-tabs { display: grid; gap: 8px; align-content: start; }
.step-tabs button { text-align: left; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); color: var(--dim); font: 500 16px var(--sans);
  cursor: pointer; display: flex; gap: 12px; align-items: center; transition: all .2s; position: relative; overflow: hidden; }
.step-tabs button i { font-style: normal; font: 600 13px var(--mono); width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #ffffff0c; }
.step-tabs button.on { color: var(--ink); border-color: var(--accent); background: #14f19510; }
.step-tabs button.on i { background: var(--accent); color: #04140c; }
.step-tabs button .bar { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--accent); width: 0; }
.step-tabs button.on .bar { animation: fill 7s linear forwards; }
@keyframes fill { to { width: 100%; } }
.step-body { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); padding: 28px; min-height: 340px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.step-body h3 { font-size: 26px; margin: 0 0 10px; }
.step-body p { color: #c3c9d6; line-height: 1.65; margin: 0 0 10px; }
.step-body ul { margin: 0; padding-left: 18px; color: #c3c9d6; line-height: 1.8; }
.step-vis { aspect-ratio: 4 / 3; border-radius: 14px; background: #050a16; border: 1px solid var(--line); position: relative; overflow: hidden; }
.anim-in > * { animation: up .5s both; }
.anim-in > *:nth-child(2) { animation-delay: .08s; } .anim-in > *:nth-child(3) { animation-delay: .16s; }
@keyframes up { from { opacity: 0; transform: translateY(14px); } }

/* mini mock UI pieces used in the step visuals */
.mock-card { position: absolute; inset: 14% 14%; background: #0a0e18; border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-size: 12px; animation: up .6s both .2s; }
.mock-card h5 { margin: 0 0 4px; font-size: 16px; }
.mock-card .pill { display: inline-block; font: 10px var(--mono); padding: 2px 7px; border-radius: 5px; background: #ffffff10; margin: 6px 4px 0 0; }
.mock-btn { margin-top: 12px; background: var(--accent); color: #04140c; font-weight: 700; text-align: center; padding: 8px; border-radius: 8px; animation: glow 1.8s infinite; }
@keyframes glow { 50% { box-shadow: 0 0 22px #14f19599; } }
.fee-flow { position: absolute; inset: 0; display: grid; place-items: center; }
.coin { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #b8ffe2, var(--accent)); position: absolute; animation: flow 2.4s linear infinite; }
@keyframes flow { from { left: 18%; top: 50%; opacity: 0; } 15% { opacity: 1; } to { left: 78%; top: 50%; opacity: 0; } }
.node { position: absolute; top: 50%; transform: translateY(-50%); padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #0a0e18; font-size: 12px; text-align: center; }

.pairs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.prov { display: flex; flex-wrap: wrap; gap: 10px; align-content: start; }
.prov button { border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 999px; padding: 10px 16px; font: 500 14px var(--sans); cursor: pointer; transition: all .2s; }
.prov button:hover { border-color: #ffffff44; }
.prov button.on { border-color: var(--accent); background: #14f19514; box-shadow: 0 0 18px #14f19533; }
.pair-card { border: 1px solid var(--line); border-radius: 18px; padding: 26px; background: linear-gradient(135deg, #14f19514, #9945ff14), var(--panel); min-height: 220px; }
.pair-card .big { font: 700 54px var(--sans); letter-spacing: -.03em; margin: 6px 0; }
.pair-card .big span { color: var(--accent); }
.pair-card p { color: #c3c9d6; line-height: 1.6; margin: 6px 0; }
.pair-card .why { font-size: 13px; color: var(--dim); }

.modes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.mode { border: 1px solid var(--line); border-radius: 18px; padding: 24px; background: var(--panel); transition: transform .25s; }
.mode:hover { transform: translateY(-4px); }
.mode.hot { border-color: #14f19566; background: linear-gradient(160deg, #14f19514, transparent 60%), var(--panel); }
.mode-tag { display: inline-block; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.mode h4 { font-size: 22px; margin: 6px 0 12px; }
.mode ul { margin: 0; padding-left: 18px; line-height: 1.9; color: #c3c9d6; }
.mode-status { margin-top: 14px; font: 12px var(--mono); color: var(--dim); }

.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 20px; border: 1px solid var(--line); border-radius: 18px; padding: 24px; background: var(--panel); align-items: center; }
.calc label { display: grid; gap: 10px; font-size: 14px; color: var(--dim); }
.calc output { color: var(--ink); font: 600 18px var(--mono); }
.calc input[type=range] { width: 100%; accent-color: var(--accent); }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc-out div span { display: block; font-size: 12px; color: var(--dim); }
.calc-out b { font: 600 26px var(--mono); color: var(--accent); }
.calc-note { grid-column: 1 / -1; font-size: 12px; color: var(--dim); }
.fine { font-size: 12px; color: var(--dim); margin-top: 10px; }

.video-wrap { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #050a16; aspect-ratio: 16 / 9;
  box-shadow: 0 30px 80px #000a, 0 0 60px #14f19514; }
.video-wrap video { width: 100%; height: 100%; display: block; background: #050a16; }
.video-missing { position: absolute; inset: 0; display: grid; place-items: center; color: var(--dim); font-size: 16px; }
.chapters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chapters button { border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 999px; padding: 7px 14px; font: 13px var(--sans); cursor: pointer; }
.chapters button:hover, .chapters button.on { border-color: var(--accent); color: var(--accent); }
.chapters button b { font: 11px var(--mono); color: var(--dim); margin-right: 6px; }

.rules { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; counter-reset: r; }
.rules li { counter-increment: r; border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 18px 64px; background: var(--panel); position: relative; line-height: 1.55; color: #c3c9d6; font-size: 15px; }
.rules li::before { content: counter(r, decimal-leading-zero); position: absolute; left: 18px; top: 16px; font: 600 18px var(--mono); color: var(--accent); }
.rules li b { color: var(--ink); display: block; margin-bottom: 2px; }

.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 0 20px; transition: border-color .2s; }
.faq details[open] { border-color: #14f19566; }
.faq summary { cursor: pointer; padding: 18px 0; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; color: var(--accent); font: 20px var(--mono); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: #c3c9d6; line-height: 1.65; margin: 0 0 18px; }

.final { text-align: center; padding: 120px 16px; }
.final h2 { margin-bottom: 26px; }
footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px clamp(16px, 4vw, 48px); border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
footer > span:first-child { display: flex; gap: 8px; align-items: center; color: var(--ink); font-weight: 700; }

@media (max-width: 900px) {
  .top nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-globe { max-width: 420px; order: -1; }
  .counters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sources { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps, .step-body, .pairs, .modes, .rules, .calc { grid-template-columns: minmax(0, 1fr); }
  .step-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .src p { max-height: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* hero: floating agent cards around a glowing orb — CSS only */
.hero-vis { position: relative; aspect-ratio: 1; width: 100%; max-width: 600px; justify-self: center; }
.orb { position: absolute; inset: 30%; border-radius: 50%; background: radial-gradient(circle at 38% 32%, #2fffb3 0%, #14f195 18%, #0b5c47 45%, #06121f 72%);
  box-shadow: 0 0 80px #14f19555, inset 0 0 60px #000a; animation: breathe 6s ease-in-out infinite; }
.orb::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(#ffffff26 1px, transparent 1.6px) 0 0 / 10px 10px; mask-image: radial-gradient(circle, #000 55%, transparent 72%); }
@keyframes breathe { 50% { transform: scale(1.04); box-shadow: 0 0 120px #14f19577, inset 0 0 60px #000a; } }
.ring { position: absolute; border: 1px dashed #14f19533; border-radius: 50%; animation: spin 60s linear infinite; }
.ring.r1 { inset: 16%; } .ring.r2 { inset: 2%; animation-duration: 90s; animation-direction: reverse; border-color: #9945ff33; }
@keyframes spin { to { transform: rotate(360deg); } }
.fcard { position: absolute; width: 190px; padding: 10px 12px 10px 26px; border-radius: 12px; text-decoration: none; background: #0a0e18e6; border: 1px solid var(--line);
  backdrop-filter: blur(8px); box-shadow: 0 10px 30px #0009; font-size: 12px; display: grid; gap: 1px; transition: border-color .2s, transform .2s;
  left: calc(50% + 40% * cos(calc(var(--i) * 45deg)) - 95px); top: calc(50% + 40% * sin(calc(var(--i) * 45deg)) - 30px);
  animation: float 6s ease-in-out infinite; animation-delay: calc(var(--i) * -.75s); }
.fcard:hover { border-color: var(--c); z-index: 2; transform: scale(1.06); }
.fcard i { position: absolute; left: 10px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.fcard b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcard small { color: var(--dim); }
.fcard em { font-style: normal; font: 11px var(--mono); color: var(--accent); }
@keyframes float { 50% { translate: 0 -10px; } }
.step-vis.dots { background: radial-gradient(#7fb0d24d 1.2px, transparent 1.8px) 0 0 / 12px 12px, #050a16; display: grid; place-items: end center; }
.ping { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.ping::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--accent); animation: ripple 2.4s ease-out infinite; animation-delay: inherit; }
@keyframes ripple { from { transform: scale(.6); opacity: 1; } to { transform: scale(4); opacity: 0; } }
.vis-cta { margin-bottom: 16px; font: 600 13px var(--mono); color: var(--accent); background: #03050acc; padding: 6px 12px; border-radius: 8px; }
@media (max-width: 900px) { .hero-vis { max-width: 360px; } .fcard { width: 150px; font-size: 11px; left: calc(50% + 38% * cos(calc(var(--i) * 45deg)) - 75px); } .fcard:nth-child(n+8) { display: none; } }

.brand .logo { width: 30px; height: 30px; border-radius: 8px; filter: drop-shadow(0 0 10px #14f19566); }

.video-missing[hidden], .bigplay[hidden] { display: none !important; }
.bigplay { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; padding-left: 6px; color: #04140c; background: var(--accent);
  box-shadow: 0 0 0 10px #14f19533, 0 0 60px #14f19588, 0 12px 30px #000a; transition: transform .2s, box-shadow .2s; animation: playPulse 2.2s ease-in-out infinite; }
.bigplay:hover { transform: scale(1.08); box-shadow: 0 0 0 14px #14f19544, 0 0 80px #14f195aa, 0 12px 30px #000a; }
@keyframes playPulse { 50% { box-shadow: 0 0 0 18px #14f19511, 0 0 60px #14f19566, 0 12px 30px #000a; } }
@media (max-width: 600px) { .bigplay { width: 68px; height: 68px; margin: -34px 0 0 -34px; } }

/* our coin (only rendered once a CA is set) */
.ca-pill { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border-radius: 10px; border: 1px solid #14f19566; background: #14f19512; font-size: 12px; white-space: nowrap; animation: caIn .5s ease both; }
.ca-pill b { color: var(--accent); }
.ca-pill code { font-family: var(--mono); }
.ca-pill button, .ca-pill a { border: 0; background: #ffffff10; color: var(--ink); border-radius: 7px; padding: 5px 8px; font: 600 11px var(--sans); text-decoration: none; cursor: pointer; }
.ca-pill a { background: var(--accent); color: #04140c; }
.ca-hero { margin: -14px 0 30px; max-width: 620px; border: 1px solid #14f19566; border-radius: 14px; padding: 14px 16px; background: linear-gradient(135deg, #14f19514, #9945ff10); animation: caIn .6s ease both; }
.ca-hero .lbl { font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.ca-hero code { display: block; font: 600 15px var(--mono); margin: 6px 0 10px; word-break: break-all; }
.ca-hero .row { display: flex; gap: 8px; flex-wrap: wrap; }
.ca-hero button, .ca-hero a { border: 1px solid #ffffff22; background: none; color: var(--ink); border-radius: 9px; padding: 8px 14px; font: 600 13px var(--sans); text-decoration: none; cursor: pointer; }
.ca-hero a { background: var(--accent); border-color: var(--accent); color: #04140c; }
@keyframes caIn { from { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 760px) { .ca-pill code { display: none; } .top .ca-pill { margin-left: auto; } }
