:root {
  --bg: #070b16; --bg2: #0b1122; --panel: rgba(17, 24, 44, .72); --line: #212a47; --line2: #2d3860;
  --text: #eef2ff; --muted: #8d97b8; --dim: #5d6789;
  --sol: #14f195; --sell: #ff4d8d; --fee: #ffb020; --creator: #a78bfa; --amm: #38bdf8;
  --donate: #f472b6; --mayhem: #ff5a1f; --buyback: #fb7185; --usdc: #2775ca;
  --r: 22px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { background: var(--bg); color: var(--text); font: 400 17px/1.5 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { font-family: 'Space Grotesk', Inter, sans-serif; letter-spacing: -.02em; }
.num { font-family: 'JetBrains Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }

/* nav */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; gap: 8px;
  padding: 12px 24px; background: rgba(7, 11, 22, .72); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent; transition: border-color .3s; }
nav.stuck { border-bottom-color: var(--line); }
nav .logo { font: 700 19px 'Space Grotesk'; text-decoration: none; margin-right: auto; display: flex; gap: 10px; align-items: center; }
nav .logo i { width: 12px; height: 12px; border-radius: 50%; background: conic-gradient(var(--sol), var(--amm), var(--fee), var(--donate), var(--mayhem), var(--sol)); }
nav .links { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
nav .links a { --c: var(--muted); text-decoration: none; padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 14px;
  color: var(--muted); border: 1px solid var(--line); white-space: nowrap; display: flex; gap: 8px; align-items: center; transition: .25s; }
nav .links a::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
nav .links a.on, nav .links a:hover { color: var(--text); border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* hero */
.hero { position: relative; min-height: 100vh; display: grid; align-content: center; padding: 110px 0 60px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -20%; z-index: -1;
  background: radial-gradient(40% 35% at 20% 25%, rgba(20, 241, 149, .16), transparent 70%),
              radial-gradient(35% 35% at 85% 20%, rgba(56, 189, 248, .14), transparent 70%),
              radial-gradient(35% 40% at 70% 90%, rgba(255, 90, 31, .12), transparent 70%),
              radial-gradient(30% 30% at 10% 90%, rgba(244, 114, 182, .10), transparent 70%); animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(3%, -2%) rotate(3deg); } }
.hero .grid-bg { position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%); }
.hero > .wrap { width: 100%; }
.hero h1 { font-size: clamp(52px, 9vw, 120px); line-height: .95; font-weight: 700; }
.hero h1 span { background: linear-gradient(90deg, var(--sol), var(--amm) 35%, var(--fee) 60%, var(--donate) 80%, var(--mayhem));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%; animation: shimmer 6s ease-in-out infinite alternate; }
@keyframes shimmer { to { background-position: 100% 0; } }
.hero .lede { font-size: clamp(18px, 2.2vw, 24px); color: var(--muted); margin: 18px 0 8px; max-width: 640px; }
.hero-map { margin-top: 26px; width: 100%; }
.hero-map svg { width: 100%; height: auto; display: block; overflow: visible; }
.hero-map .node { cursor: pointer; }
.hero-map .node rect { transition: .25s; }
.hero-map .node:hover rect { stroke-width: 3; filter: brightness(1.25); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 26px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.stat b { display: block; font: 700 clamp(24px, 3.4vw, 36px) 'Space Grotesk'; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: 14px; }

/* sections */
section.prog { --c: var(--sol); position: relative; padding: 110px 0 40px; }
section.prog::before { content: ''; position: absolute; left: 50%; top: 40px; width: min(1100px, 90vw); height: 520px; transform: translateX(-50%); z-index: -1;
  background: radial-gradient(50% 50% at 50% 0%, color-mix(in srgb, var(--c) 13%, transparent), transparent 70%); }
.sec-head { display: flex; align-items: flex-end; gap: 22px; flex-wrap: wrap; margin-bottom: 26px; }
.sec-head h2 { font-size: clamp(44px, 7vw, 84px); line-height: .95; display: flex; align-items: center; gap: 18px; }
.sec-head h2 .badge { width: clamp(46px, 6vw, 70px); height: clamp(46px, 6vw, 70px); border-radius: 22px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 18%, transparent); border: 2px solid var(--c); box-shadow: 0 0 40px color-mix(in srgb, var(--c) 35%, transparent); }
.sec-head h2 .badge svg { width: 60%; height: 60%; }
.sec-head p { font-size: clamp(18px, 2.2vw, 24px); color: var(--muted); padding-bottom: 8px; }
.sec-head p b { color: var(--c); font-weight: 600; }

.video { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line2); background: #000;
  box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--c) 45%, transparent); aspect-ratio: 16 / 9; }
.video video { width: 100%; height: 100%; display: block; object-fit: cover; }
.video .play { position: absolute; inset: 0; display: grid; place-items: center; background: none; border: 0; }
.video .play span { width: 92px; height: 92px; border-radius: 50%; background: var(--c); display: grid; place-items: center;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 60%, transparent); animation: ping 2.2s infinite; transition: transform .2s; }
.video .play:hover span { transform: scale(1.08); }
.video .play svg { width: 34px; height: 34px; margin-left: 6px; }
@keyframes ping { 70% { box-shadow: 0 0 0 26px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.video.playing .play { display: none; }
.video::after { content: attr(data-dur); position: absolute; right: 16px; bottom: 16px; padding: 5px 12px; border-radius: 999px; pointer-events: none;
  background: rgba(6, 9, 18, .78); border: 1px solid var(--line2); font: 600 14px 'JetBrains Mono'; color: var(--text); }
.video.playing::after { display: none; }

.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; margin-top: 18px; }
.card { grid-column: span 6; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; position: relative; overflow: hidden; min-width: 0; }
.card.w12 { grid-column: span 12; } .card.w8 { grid-column: span 8; } .card.w7 { grid-column: span 7; }
.card.w5 { grid-column: span 5; } .card.w4 { grid-column: span 4; }
.card { transition: border-color .3s, box-shadow .3s, transform .3s; }
.card:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--line)); box-shadow: 0 18px 60px -30px color-mix(in srgb, var(--c) 60%, transparent); }
.card h3 { font-size: 22px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.card h3 .k { color: var(--c); }
.card svg { display: block; width: 100%; height: auto; overflow: visible; }
.muted { color: var(--muted); } .c { color: var(--c); }

/* readouts */
.readouts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.ro { background: rgba(0, 0, 0, .25); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; min-width: 0; }
.ro span { display: block; font-size: 12.5px; color: var(--muted); }
.ro b { font: 700 clamp(17px, 2.2vw, 22px) 'JetBrains Mono'; white-space: nowrap; }

/* slider */
.slider { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.slider label { font-weight: 600; color: var(--muted); font-size: 14px; white-space: nowrap; }
input[type=range] { -webkit-appearance: none; appearance: none; flex: 1; height: 10px; border-radius: 99px; outline: none; cursor: pointer;
  background: linear-gradient(90deg, var(--c) var(--p, 0%), var(--line) var(--p, 0%)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff;
  border: 5px solid var(--c); box-shadow: 0 0 18px color-mix(in srgb, var(--c) 70%, transparent); }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 5px solid var(--c); }

.btn { padding: 9px 16px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .04); font-weight: 600; font-size: 14px; transition: .2s; }
.btn:hover { border-color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); }
.btn.solid { background: var(--c); color: #061018; border-color: var(--c); }
.btns { display: flex; gap: 8px; flex-wrap: wrap; }

.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; font-size: 14px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 7px; vertical-align: -1px; }

/* split bars */
.bar { display: flex; height: 54px; border-radius: 14px; overflow: hidden; gap: 3px; }
.bar > div { display: flex; align-items: center; padding: 0 14px; font-weight: 700; color: #061018; white-space: nowrap; overflow: hidden;
  width: 0; transition: width 1.4s cubic-bezier(.2, .8, .2, 1); font-size: 15px; }
.in .bar > div { width: var(--w); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: s; }
.step { text-align: center; padding: 16px 10px 14px; border-radius: 18px; background: rgba(0, 0, 0, .22); border: 1px solid var(--line);
  opacity: 0; transform: translateY(18px); transition: .6s; }
.in .step { opacity: 1; transform: none; }
.in .step:nth-child(2) { transition-delay: .25s; } .in .step:nth-child(3) { transition-delay: .5s; } .in .step:nth-child(4) { transition-delay: .75s; } .in .step:nth-child(5) { transition-delay: 1s; }
.step svg { width: 76px; height: 76px; margin: 0 auto 10px; }
.step b { display: block; font: 700 18px 'Space Grotesk'; }
.step span { color: var(--muted); font-size: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line2);
  background: rgba(0, 0, 0, .2); font-weight: 600; font-size: 14.5px; }
.chip.no { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--sell); }
.chip .ok { color: var(--sol); } .chip .x { color: var(--sell); }

.big { font: 700 clamp(38px, 5vw, 60px)/1 'Space Grotesk'; letter-spacing: -.03em; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.tile { border-radius: 18px; padding: 14px; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); text-align: center; }
.tile svg { height: 70px; margin-bottom: 8px; }
.tile b { display: block; font: 700 16px 'Space Grotesk'; }

footer { padding: 90px 0 70px; }
footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 34px; }
.foot-dots { display: flex; gap: 8px; flex-wrap: wrap; }
.foot-dots a { text-decoration: none; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: #061018; background: var(--c); transition: transform .2s; }
.foot-dots a:hover { transform: translateY(-3px); }
.foot-top { font: 700 20px 'Space Grotesk'; text-decoration: none; color: var(--muted); }
.foot-top:hover { color: var(--text); }

/* reveal */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s, transform .8s cubic-bezier(.2, .8, .2, 1); }
.rv.in { opacity: 1; transform: none; }

/* svg anim helpers */
.dash { stroke-dasharray: 6 10; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -32; } }
.spin { animation: spin 8s linear infinite; transform-origin: center; transform-box: fill-box; }
@keyframes spin { to { transform: rotate(360deg); } }
.pulse { animation: pulse 1.6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pulse { 50% { transform: scale(1.12); opacity: .75; } }
.flame { animation: flame .5s ease-in-out infinite alternate; transform-origin: 50% 100%; transform-box: fill-box; }
@keyframes flame { to { transform: scaleY(1.15) skewX(-4deg); } }
.bob { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }

@media (max-width: 900px) {
  .card, .card.w8, .card.w7, .card.w5, .card.w4 { grid-column: span 12; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .readouts { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  nav .logo span { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  nav { padding: 10px 12px; }
  .card { padding: 16px; }
  .pair { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } .rv, .step { opacity: 1; transform: none; } }
