:root {
  --bg: #04050d;
  --panel: rgba(14, 18, 42, 0.72);
  --line: rgba(90, 160, 255, 0.2);
  --accent: #38d9ff;
  --accent-2: #3b6bff;
  --violet: #9b5cff;
  --grad: linear-gradient(90deg, var(--accent), var(--accent-2) 55%, var(--violet));
  --text: #eaf2ff;
  --muted: #8892b8;
  --display: "Orbitron", system-ui, sans-serif;
  --body: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 700px at 75% -10%, rgba(59, 107, 255, 0.2), transparent 60%), radial-gradient(900px 600px at 0% 30%, rgba(155, 92, 255, 0.12), transparent 60%), var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.55;
  overflow-x: hidden;
}
.stars {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 20%, #cfe6ff 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 12%, #cfe6ff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 40% 70%, #b9a2ff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 60%, #cfe6ff 50%, transparent 51%),
    radial-gradient(1px 1px at 25% 88%, #cfe6ff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 60% 40%, #b9a2ff 50%, transparent 51%);
  opacity: 0.6;
}
a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--accent); background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: 0.01em; text-transform: uppercase; line-height: 1.02; margin: 0 0 0.4em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.4rem); }
h3 { margin: 0.2em 0 0.4em; font-size: 1.2rem; }

.label, .kicker, .step, .ph, .badge, nav .link, .btn, th, .kv, .empty {
  font-family: var(--mono);
  text-transform: lowercase;
}
.label { display: block; font-size: 0.72rem; letter-spacing: 0.06em; color: var(--muted); }
.kicker { color: var(--accent); font-size: 0.82rem; margin: 0 0 1rem; }
.muted { color: var(--muted); font-size: 0.85rem; }
.sub { color: var(--muted); max-width: 60ch; font-size: 1.05rem; margin: 0 0 2rem; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.8rem clamp(1rem, 4vw, 3rem);
  background: rgba(4, 5, 13, 0.75); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--display); font-size: 1.1rem; }
.brand img { border-radius: 10px; }
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.68rem;
  border: 1px solid var(--line); border-radius: 999px; padding: 0.15rem 0.55rem; color: var(--accent);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }
nav { display: flex; align-items: center; gap: 1.2rem; }
nav .link { font-size: 0.85rem; color: var(--muted); transition: color 0.2s; }
nav .link:hover { color: var(--accent); }

.btn {
  display: inline-block; padding: 0.85rem 1.4rem; border-radius: 10px; font-weight: 600; font-size: 0.92rem;
  background: var(--grad); color: #030616; box-shadow: 0 0 24px rgba(56, 217, 255, 0.35);
  transition: transform 0.15s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 36px rgba(56, 217, 255, 0.6); }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.8rem; }
.btn-ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); box-shadow: none; }

main, footer { max-width: 1180px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: center; padding: 4.5rem 0 3rem; }
.lede { font-size: 1.15rem; max-width: 52ch; color: #c6d3f2; }
.lede strong { color: var(--text); }
.cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.8rem 0; }
.counter { display: grid; gap: 0.2rem; border-left: 2px solid var(--accent); padding-left: 1rem; }
.counter .big { font-family: var(--display); font-size: 2.4rem; color: var(--accent); text-shadow: 0 0 20px rgba(56, 217, 255, 0.5); }
.counter small { font-size: 1.4rem; }
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art img { width: 100%; max-width: 520px; height: auto; border-radius: 28px; position: relative; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 0 40px rgba(59, 107, 255, 0.45)); }
.glow { position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(circle, rgba(59, 107, 255, 0.4), rgba(155, 92, 255, 0.18) 45%, transparent 68%); filter: blur(30px); }
@keyframes float { 50% { transform: translateY(-14px) rotate(-1.5deg); } }

/* stats */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: 16px; background: var(--panel); overflow: hidden;
}
.stats > div { padding: 1.3rem 1.4rem; border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }
.val { display: block; font-family: var(--display); font-size: 1.6rem; margin-top: 0.3rem; }
.val.hl { color: var(--accent); }

.section { padding: 6rem 0 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem; }

/* stages */
.stages { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: s; }
.stages li {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}
.stages li:hover { border-color: var(--accent); transform: translateY(-4px); }
.stages li::before {
  counter-increment: s; content: "0" counter(s);
  position: absolute; top: 1rem; right: 1.2rem; font-family: var(--display); font-size: 2.4rem; color: rgba(56, 217, 255, 0.12);
}
.stages li.active { border-color: var(--accent); box-shadow: 0 0 30px rgba(56, 217, 255, 0.18); }
.step { font-size: 0.72rem; color: var(--accent); }
.stages p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* flywheel */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.ticks li::before { content: "▸ "; color: var(--accent); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.wide { grid-column: span 2; }
.bar { height: 8px; border-radius: 99px; background: rgba(56, 217, 255, 0.1); margin-top: 0.7rem; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--grad); }

/* estimator */
.estimator { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.estimator label { display: grid; gap: 0.5rem; }
.estimator input[type="number"] {
  width: 100%; background: #03040c; border: 1px solid var(--line); color: var(--text); border-radius: 10px;
  padding: 0.7rem 0.8rem; font-family: var(--mono); font-size: 0.95rem;
}
.estimator input:focus { outline: none; border-color: var(--accent); }
.estimator input[type="range"] { accent-color: var(--accent); margin-top: 0.8rem; }
.estimator output { color: var(--accent); }
.results { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; border-top: 1px solid var(--line); padding-top: 1.2rem; }

/* ledger */
.ph { font-size: 0.8rem; color: var(--accent); margin: 0 0 1rem; font-weight: 600; }
.kv { display: flex; justify-content: space-between; padding: 0.6rem 0; border-bottom: 1px dashed var(--line); font-size: 0.85rem; }
.kv span:first-child { color: var(--muted); }
.empty { color: var(--muted); font-size: 0.8rem; text-align: center; padding: 1rem 0 0.2rem; margin: 0; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 0.72rem; color: var(--muted); font-weight: 400; padding-bottom: 0.6rem; border-bottom: 1px solid var(--line); }
td.empty { padding: 2rem 0; }
.payroll { margin-top: 2rem; }

.final { text-align: center; padding-bottom: 5rem; }
.final img { border-radius: 22px; filter: drop-shadow(0 0 30px rgba(56, 217, 255, 0.4)); }
.final .sub { margin: 0 auto; }
.final .cta { justify-content: center; }

/* contract address + buy card */
.ca {
  display: inline-flex; align-items: center; gap: 0.8rem; max-width: 100%;
  background: #03040c; border: 1px solid var(--line); border-radius: 10px; padding: 0.6rem 0.8rem;
  color: var(--text); font: inherit; cursor: pointer; transition: border-color 0.2s;
}
.ca:hover { border-color: var(--accent); }
.ca .label { display: inline; }
.ca code { font-family: var(--mono); font-size: 0.85rem; overflow-wrap: anywhere; text-align: left; }
.ca-act { font-family: var(--mono); font-size: 0.72rem; color: var(--accent); margin-left: auto; white-space: nowrap; }
.ca-wide { display: flex; width: 100%; margin: 0.4rem 0 1rem; }
.final .kicker { display: inline-flex; align-items: center; gap: 0.5rem; }
.buy-card { max-width: 480px; margin: 2rem auto 0; text-align: left; box-shadow: 0 0 60px rgba(56, 217, 255, 0.12); border-color: rgba(56, 217, 255, 0.4); }
.buy-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.2rem; }
.buy-head img { border-radius: 50%; filter: none; }
.buy-head strong { font-family: var(--display); font-weight: 400; font-size: 1.2rem; display: block; }
.buy-head .badge { margin-left: auto; }
.btn-block { display: block; text-align: center; }
.verify { display: block; text-align: center; margin-top: 0.8rem; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.verify:hover, .addr:hover { color: var(--accent); }
.addr { overflow-wrap: anywhere; text-align: right; }
.how { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; text-align: left; }
.how li { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem; }
.how p { color: var(--muted); margin: 0; font-size: 0.92rem; }
.how code { font-family: var(--mono); color: var(--accent); font-size: 0.82rem; overflow-wrap: anywhere; }

footer { border-top: 1px solid var(--line); padding-top: 3rem; padding-bottom: 3rem; display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; }
.foot-links { display: grid; gap: 0.6rem; align-content: start; font-family: var(--mono); font-size: 0.85rem; }
.foot-links a:hover { color: var(--accent); }
.disclaimer { grid-column: 1 / -1; color: var(--muted); font-size: 0.78rem; margin: 0; }

@media (max-width: 900px) {
  .hero, .split, footer { grid-template-columns: 1fr; }
  .hero { padding-top: 2.5rem; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 320px; }
  .stats, .stages, .estimator { grid-template-columns: 1fr 1fr; }
  .how { grid-template-columns: 1fr; }
  .stats > div:nth-child(2) { border-right: 0; }
  .stats > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  nav .link { display: none; }
}
@media (max-width: 540px) {
  .stages, .estimator, .results { grid-template-columns: 1fr; }
  .badge { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
