/* MILESTONE BURN — spacecraft control panel */
:root {
  --bg: #121212;
  --panel: #1a1a1a;
  --panel-2: #202020;
  --edge: #2a2a2a;
  --edge-hi: #3a3a3a;
  --orange: #ff5500;
  --orange-dim: #ff550033;
  --orange-glow: 0 0 24px #ff550066;
  --text: #f4f4f4;
  --dim: #f4f4f499;
  --faint: #f4f4f440;
  --ok: #5cff9d;
  --warn: #ffc400;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --r: 4px;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background:
    radial-gradient(1200px 500px at 70% -10%, #ff55000f, transparent 60%),
    repeating-linear-gradient(90deg, transparent 0 79px, #ffffff05 79px 80px),
    repeating-linear-gradient(0deg, transparent 0 79px, #ffffff05 79px 80px),
    var(--bg);
  color: var(--text); font-family: var(--body); font-size: 15px; line-height: 1.5;
  overflow-x: hidden;
}
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
.mono { font-family: var(--mono); }
.dim { color: var(--dim); }
.faint { color: var(--faint); }
.or { color: var(--orange); }
h1, h2, h3, h4 { font-family: var(--head); text-transform: uppercase; letter-spacing: .12em; margin: 0; font-weight: 700; }
button, input, textarea { font: inherit; color: inherit; }

/* scanlines */
.scan {
  position: fixed; inset: 0; pointer-events: none; z-index: 50;
  background: repeating-linear-gradient(0deg, #00000000 0 2px, #0000002e 2px 3px);
  mix-blend-mode: multiply;
}
.scan::after {
  content: ""; position: absolute; left: 0; right: 0; height: 120px; top: -120px;
  background: linear-gradient(180deg, transparent, #ff550008, transparent);
  animation: sweep 9s linear infinite;
}
@keyframes sweep { to { transform: translateY(calc(100vh + 240px)); } }

/* header */
.bar {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 24px;
  padding: 12px 24px; background: #121212ee; backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--edge);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--head); font-size: 22px; letter-spacing: .14em; font-weight: 600; }
.brand:hover { text-decoration: none; }
.brand b { color: var(--orange); font-weight: 800; margin-left: 4px; }
.brand-mark { width: 34px; height: 34px; color: var(--text); animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.nav { display: flex; gap: 6px; margin-right: auto; }
.nav a {
  color: var(--dim); font-family: var(--head); text-transform: uppercase; letter-spacing: .14em; font-size: 15px;
  padding: 6px 12px; border: 1px solid transparent; border-radius: var(--r);
}
.nav a:hover, .nav a.on { color: var(--text); border-color: var(--edge-hi); text-decoration: none; }
.nav a.on { box-shadow: inset 0 -2px 0 var(--orange); }

.btn {
  cursor: pointer; border: 1px solid var(--edge-hi); background: var(--panel-2); border-radius: var(--r);
  padding: 9px 16px; font-family: var(--head); text-transform: uppercase; letter-spacing: .14em; font-weight: 600; font-size: 15px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.btn:hover { border-color: var(--orange); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-hot {
  background: linear-gradient(180deg, #ff6a1f, #e64a00); border-color: #ff7a33; color: #121212; font-weight: 800;
  box-shadow: var(--orange-glow);
}
.btn-hot:hover { background: linear-gradient(180deg, #ff7f3d, #ff5500); }
.btn-wallet { font-family: var(--mono); text-transform: none; letter-spacing: 0; font-size: 13px; }
.btn-ghost { background: transparent; }
.btn-danger { border-color: #7a2a1a; color: #ff9b7a; }

/* ticker */
.ticker { border-bottom: 1px solid var(--edge); overflow: hidden; white-space: nowrap; background: #0e0e0e; height: 30px; }
.ticker-track { display: inline-flex; gap: 48px; padding: 5px 0; font-family: var(--mono); font-size: 12px; color: var(--dim); animation: tick 60s linear infinite; padding-left: 100%; }
.ticker-track b { color: var(--orange); font-weight: 500; }
@keyframes tick { to { transform: translateX(-100%); } }

main { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 28px 24px 64px; }
.boot { font-family: var(--mono); color: var(--dim); padding: 80px 0; text-align: center; letter-spacing: .1em; }
.boot-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: var(--orange-glow); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .15; } }

/* panels */
.panel {
  position: relative; background: linear-gradient(180deg, var(--panel), #171717); border: 1px solid var(--edge);
  border-radius: var(--r); padding: 20px;
}
.panel::before, .panel::after {
  content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #555, #222 70%); top: 8px; left: 8px; box-shadow: inset 0 0 0 1px #0007;
}
.panel::after { left: auto; right: 8px; }
.panel-title { display: flex; align-items: center; gap: 10px; font-family: var(--head); text-transform: uppercase; letter-spacing: .16em; font-size: 14px; color: var(--dim); margin: 0 0 14px 10px; }
.panel-title .led { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: var(--orange-glow); animation: pulse 2.2s ease-in-out infinite; }
.panel-title .led.ok { background: var(--ok); box-shadow: 0 0 10px #5cff9d88; }
@keyframes pulse { 50% { opacity: .35; } }
.hazard { height: 10px; background: repeating-linear-gradient(-45deg, var(--orange) 0 12px, #121212 12px 24px); opacity: .85; }
.hazard.thin { height: 5px; opacity: .6; border-radius: 2px; }

.grid { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 960px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3, .split, .g2 { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  main { padding: 18px 16px 48px; } .bar { padding: 10px 16px; gap: 10px; flex-wrap: wrap; }
  .brand { font-size: 18px; } .nav { order: 3; width: 100%; } .g4 { grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* hero */
.hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 22px; flex-wrap: wrap; }
.hero h1 { font-size: clamp(34px, 6vw, 64px); line-height: .95; letter-spacing: .06em; }
.hero h1 em { font-style: normal; color: var(--orange); text-shadow: 0 0 28px #ff550080; }
.status-line { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; color: var(--dim); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.status-line .led { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px #5cff9d; animation: pulse 1.6s infinite; }
.status-line .led.off { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.hero p { max-width: 560px; color: var(--dim); margin: 10px 0 0; }

/* readouts */
.readout { padding: 16px 18px 14px; }
.readout .k { font-family: var(--head); text-transform: uppercase; letter-spacing: .16em; font-size: 13px; color: var(--dim); margin-left: 10px; }
.readout .v { font-family: var(--mono); font-size: clamp(22px, 3vw, 30px); font-weight: 700; margin-top: 6px; letter-spacing: -.01em; }
.readout .s { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.readout.hot .v { color: var(--orange); text-shadow: 0 0 18px #ff550055; }

/* token cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.card { display: block; color: var(--text); transition: border-color .15s, transform .15s; }
.card:hover { text-decoration: none; border-color: var(--orange); transform: translateY(-2px); }
.card-head { display: flex; gap: 12px; align-items: center; margin: 6px 0 14px; }
.avatar { width: 48px; height: 48px; border-radius: var(--r); object-fit: cover; background: #222; border: 1px solid var(--edge-hi); flex: none; }
.avatar.lg { width: 84px; height: 84px; }
.card-name { font-family: var(--head); font-size: 20px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-sym { font-family: var(--mono); font-size: 12px; color: var(--orange); }
.card-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-family: var(--mono); font-size: 12px; margin-top: 12px; }
.card-stats span:nth-child(odd) { color: var(--dim); }
.tag { display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; padding: 2px 7px; border: 1px solid var(--edge-hi); border-radius: 2px; color: var(--dim); text-transform: uppercase; }
.tag.main { border-color: var(--orange); color: var(--orange); box-shadow: 0 0 10px #ff550044; }
.tag.mig { border-color: #5cff9d66; color: var(--ok); }
.tag.sim { border-color: #ffc40088; color: var(--warn); }
.card.demo { cursor: default; border-style: dashed; }
.card.demo:hover { transform: none; border-color: #ffc40066; }
.term.sim { border-style: dashed; }

.flagship { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; border-color: #ff550066; box-shadow: 0 0 0 1px #ff550022, 0 20px 60px -30px #ff550066; }
.flagship:hover { text-decoration: none; }
@media (max-width: 760px) { .flagship { grid-template-columns: 1fr; } }

/* milestone pipe */
.pipe-wrap { position: relative; }
.pipe-label { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 13px; margin-bottom: 8px; gap: 10px; flex-wrap: wrap; }
.pipe-label b { color: var(--orange); }
.pipe {
  position: relative; height: 30px; border-radius: 15px; background: #0b0b0b; overflow: hidden;
  border: 1px solid var(--edge-hi); box-shadow: inset 0 3px 8px #000c, inset 0 -1px 0 #ffffff0d;
}
.pipe.sm { height: 12px; border-radius: 6px; }
.pipe-fill {
  position: absolute; inset: 0 auto 0 0; width: 0%; border-radius: inherit;
  background:
    repeating-linear-gradient(115deg, #ffffff22 0 6px, transparent 6px 18px),
    linear-gradient(90deg, #8a1f00, #ff3d00 55%, #ffb36b);
  background-size: 36px 100%, 100% 100%;
  box-shadow: 0 0 20px #ff5500aa, inset 0 2px 0 #ffd2b055;
  transition: width 1.2s cubic-bezier(.2, .8, .2, 1);
  animation: flow 1.1s linear infinite;
}
@keyframes flow { to { background-position: 36px 0, 0 0; } }
.pipe-fill::after { content: ""; position: absolute; right: -2px; top: 0; bottom: 0; width: 10px; background: #fff3e0; filter: blur(5px); opacity: .7; }
.pipe-ticks { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), #ffffff1a calc(10% - 1px) 10%); pointer-events: none; }
.pipe.flash { animation: flash .9s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 #ff5500, inset 0 0 40px #fff; } 100% { box-shadow: 0 0 0 26px #ff550000, inset 0 3px 8px #000c; } }
.spark { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #ffd29a; box-shadow: 0 0 8px #ff7a1a; pointer-events: none; animation: spark .9s ease-out forwards; }
@keyframes spark { to { transform: translate(var(--dx), var(--dy)); opacity: 0; } }

/* gauges */
.meter { text-align: center; padding: 18px 12px 14px; }
.meter svg { width: 100%; max-width: 170px; display: block; margin: 0 auto; overflow: visible; }
.meter .track { stroke: #262626; }
.meter .arc { stroke: var(--orange); filter: drop-shadow(0 0 6px #ff5500aa); transition: stroke-dashoffset 1.2s cubic-bezier(.2, .8, .2, 1); }
.meter .needle { transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); transform-origin: 60px 60px; }
.meter .val { font-family: var(--mono); font-weight: 700; font-size: 15px; fill: var(--text); }
.meter .unit { font-family: var(--mono); font-size: 7.5px; fill: #f4f4f480; letter-spacing: .1em; }
.meter .name { font-family: var(--head); letter-spacing: .2em; font-size: 15px; text-transform: uppercase; margin-top: 4px; }
.meter .sub { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.meter.live .arc { animation: hum 2.4s ease-in-out infinite; }
@keyframes hum { 50% { filter: drop-shadow(0 0 14px #ff5500); } }

/* terminal feed */
.term { background: #0a0a0a; border: 1px solid var(--edge); border-radius: var(--r); padding: 14px 16px; font-family: var(--mono); font-size: 12.5px; min-height: 180px; max-height: 420px; overflow: auto; }
.term .ln { white-space: pre-wrap; word-break: break-word; color: #f4f4f4cc; padding: 2px 0; }
.term .ln .t { color: var(--faint); }
.term .ln .h { color: var(--orange); }
.term .ln a { color: var(--dim); }
.term .cursor { display: inline-block; width: 8px; height: 14px; background: var(--orange); vertical-align: -2px; animation: blink 1s steps(2) infinite; }
.term .ln.typing { overflow: hidden; }

/* forms */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-family: var(--head); text-transform: uppercase; letter-spacing: .16em; font-size: 13px; color: var(--dim); }
.field input, .field textarea {
  background: #0d0d0d; border: 1px solid var(--edge-hi); border-radius: var(--r); padding: 10px 12px; width: 100%;
  font-family: var(--mono); font-size: 14px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 84px; resize: vertical; font-family: var(--body); }
.field input:focus, .field textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px #ff55001f; }
.field .hint { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.drop { display: flex; align-items: center; gap: 14px; border: 1px dashed var(--edge-hi); border-radius: var(--r); padding: 12px; cursor: pointer; }
.drop:hover { border-color: var(--orange); }
.drop img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--r); background: #222; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--edge-hi); border-radius: var(--r); overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 8px 18px; cursor: pointer; font-family: var(--head); letter-spacing: .14em; text-transform: uppercase; }
.seg button.on { background: var(--orange); color: #121212; font-weight: 700; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-family: var(--mono); font-size: 13px; }
.kv span:nth-child(odd) { color: var(--dim); }
.kv span:nth-child(even) { text-align: right; overflow-wrap: anywhere; }

.steps { counter-reset: s; }
.step { position: relative; padding-left: 52px; }
.step::before { counter-increment: s; content: "0" counter(s); position: absolute; left: 0; top: -4px; font-family: var(--head); font-size: 34px; font-weight: 800; color: var(--orange); text-shadow: 0 0 18px #ff550066; }
.step h4 { font-size: 17px; margin-bottom: 4px; }
.step p { margin: 0; color: var(--dim); }
table.fees { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 13px; }
table.fees td, table.fees th { padding: 9px 8px; border-bottom: 1px solid var(--edge); text-align: left; }
table.fees th { font-family: var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
table.fees td:last-child, table.fees th:last-child { text-align: right; }
table.fees tr.hot td { color: var(--orange); }
details { border-bottom: 1px solid var(--edge); padding: 12px 0; }
details summary { cursor: pointer; font-family: var(--head); letter-spacing: .1em; text-transform: uppercase; font-size: 16px; list-style: none; }
details summary::before { content: "▸ "; color: var(--orange); }
details[open] summary::before { content: "▾ "; }
details p { color: var(--dim); margin: 8px 0 0; }
.section-h { display: flex; align-items: center; gap: 14px; margin: 34px 0 14px; }
.section-h h2 { font-size: 22px; }
.section-h::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--edge-hi), transparent); }
.empty { text-align: center; color: var(--dim); font-family: var(--mono); padding: 36px 12px; }
.note { font-family: var(--mono); font-size: 12px; color: var(--dim); border-left: 2px solid var(--orange); padding: 6px 10px; background: #ff550008; }
.warn { border-left-color: var(--warn); }
.copy { cursor: pointer; border-bottom: 1px dotted var(--faint); }

.toast {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; max-width: min(440px, calc(100vw - 36px));
  background: #191919; border: 1px solid var(--edge-hi); border-left: 3px solid var(--orange); border-radius: var(--r);
  padding: 12px 14px; font-family: var(--mono); font-size: 13px; transform: translateY(140%); transition: transform .25s; box-shadow: 0 12px 40px #000a;
}
.toast.on { transform: none; }
.toast.err { border-left-color: #ff3b3b; }
.toast.ok { border-left-color: var(--ok); }

.foot { margin-top: auto; }
.foot-in { display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; padding: 16px 24px; font-family: var(--mono); font-size: 12px; color: var(--dim); background: #0e0e0e; }

/* ═════════════ enrichment layer ═════════════ */

/* ember canvas sits behind everything */
.embers { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
main, .foot, .ticker { position: relative; z-index: 1; }

/* header polish */
.bar { box-shadow: 0 1px 0 #ff55000d, 0 10px 30px -20px #000; }
.bar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, #ff5500aa 50%, transparent); background-size: 40% 100%; background-repeat: no-repeat;
  animation: bar-scan 7s ease-in-out infinite; opacity: .7;
}
@keyframes bar-scan { 0% { background-position: -60% 0; } 100% { background-position: 160% 0; } }
.brand-mark { animation: none; overflow: visible; }
.brand-ring { transform-origin: 20px 20px; animation: spin 18s linear infinite; }
.brand-flame { transform-origin: 20px 30px; animation: flicker 2.4s ease-in-out infinite; filter: drop-shadow(0 0 4px #ff5500aa); }
@keyframes flicker { 0%, 100% { transform: scale(1, 1); } 30% { transform: scale(.94, 1.06); } 60% { transform: scale(1.04, .95); } }
.brand:hover .brand-ring { animation-duration: 3s; }
.nav a { position: relative; transition: color .15s, border-color .15s, background .15s; }
.nav a:hover { background: #ffffff06; }
.x-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 38px; height: 38px; flex: none;
  color: var(--dim); border: 1px solid var(--edge-hi); border-radius: var(--r); background: var(--panel-2);
  transition: color .15s, border-color .15s, box-shadow .15s, transform .15s;
}
.x-link svg { width: 16px; height: 16px; }
.x-link:hover { color: var(--text); border-color: var(--orange); box-shadow: 0 0 16px #ff550040; text-decoration: none; transform: translateY(-1px); }
.foot-x { width: auto; height: auto; padding: 5px 10px; font-family: var(--mono); font-size: 12px; background: transparent; }

/* buttons: press + shine */
.btn { position: relative; overflow: hidden; transition: border-color .15s, box-shadow .15s, background .15s, transform .12s; }
.btn:not(:disabled):active { transform: translateY(1px) scale(.985); }
.btn:hover:not(:disabled) { box-shadow: 0 0 0 1px #ff550033, 0 6px 22px -10px #ff5500aa; text-decoration: none; }
.btn-hot::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; pointer-events: none;
  background: linear-gradient(100deg, transparent, #fff6 50%, transparent); transform: skewX(-20deg);
}
.btn-hot:hover:not(:disabled)::after { animation: shine .75s ease-out; }
.btn-hot:hover:not(:disabled) { box-shadow: 0 0 34px #ff5500aa; }
@keyframes shine { to { left: 130%; } }
.btn:focus-visible, .nav a:focus-visible, .x-link:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* ticker: seamless loop + tag */
.ticker { display: flex; align-items: center; }
.ticker-tag {
  position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 7px; padding: 0 14px 0 16px;
  font-family: var(--head); font-size: 12px; letter-spacing: .2em; color: var(--orange); font-weight: 700;
  background: linear-gradient(90deg, #0e0e0e 80%, #0e0e0e00); padding-right: 28px;
}
.ticker-tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 8px var(--orange); animation: blink 1.2s steps(2) infinite; }
.ticker-track { padding-left: 0; gap: 0; animation: tick var(--tick-dur, 60s) linear infinite; will-change: transform; }
.ticker-track > span { padding-left: 140px; }
.ticker-half { display: inline-flex; gap: 48px; padding-right: 48px; flex: none; }
.ticker-half:first-child { padding-left: 140px; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }

/* hero with reactor */
.hero-home { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: center; gap: 28px; margin-bottom: 26px; }
.hero-home h1 { font-size: clamp(34px, 4.3vw, 58px); }
.hero-copy h1 { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
.hero-copy p { animation: rise .7s .08s cubic-bezier(.2, .8, .2, 1) both; }
.hero-cta { margin-top: 22px; animation: rise .7s .16s cubic-bezier(.2, .8, .2, 1) both; }
.hero-specs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; font-size: 11.5px; color: var(--dim); animation: rise .7s .24s cubic-bezier(.2, .8, .2, 1) both; }
.hero-specs span { border: 1px solid var(--edge); background: #161616cc; border-radius: 2px; padding: 4px 9px; letter-spacing: .04em; }
.hero-specs b { color: var(--orange); font-weight: 700; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.hero-visual { position: relative; justify-self: center; width: 100%; max-width: 420px; animation: rise .9s .1s cubic-bezier(.2, .8, .2, 1) both; }
.hero-visual::before {
  content: ""; position: absolute; inset: 8%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, #ff550040, transparent 65%); filter: blur(20px);
}
.hero-visual-tag { text-align: center; margin-top: 8px; font-size: 9.5px; letter-spacing: .14em; color: var(--faint); }
.reactor { display: block; width: 100%; height: auto; overflow: visible; }
.rx-num { font-family: var(--mono); font-size: 8.5px; fill: #f4f4f466; }
.rx-cap { font-family: var(--mono); font-size: 9px; letter-spacing: .18em; fill: #f4f4f480; }
.rx-spin-slow { transform-origin: 200px 200px; animation: spin 60s linear infinite; }
.rx-spin-rev { transform-origin: 200px 200px; animation: spin 26s linear infinite reverse; }
.rx-orbiter { filter: drop-shadow(0 0 5px #ff5500); }
.rx-fill { filter: drop-shadow(0 0 6px #ff5500aa); animation: rx-fill 10s cubic-bezier(.45, .1, .6, 1) infinite; }
.rx-fill, .rx-core, .rx-halo, .rx-shock { animation-delay: -3.5s !important; }
@keyframes rx-fill {
  0% { stroke-dashoffset: 804.25; stroke: #ff5500; }
  80% { stroke-dashoffset: 0; stroke: #ff5500; }
  84% { stroke-dashoffset: 0; stroke: #ffd2a0; }
  96% { stroke-dashoffset: 0; stroke: #ff5500; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
.rx-core { transform-origin: 200px 200px; animation: core 10s ease-in-out infinite; }
@keyframes core {
  0%, 100% { transform: scale(.96); filter: brightness(.95); }
  40% { transform: scale(1); }
  60% { transform: scale(.97); }
  80% { transform: scale(1.02); }
  84% { transform: scale(1.14); filter: brightness(1.35); }
  92% { transform: scale(.98); filter: brightness(1); }
}
.rx-halo { transform-origin: 200px 200px; animation: halo 10s ease-in-out infinite; }
@keyframes halo { 0%, 100% { opacity: .55; transform: scale(1); } 84% { opacity: 1; transform: scale(1.35); } 94% { opacity: .6; } }
.rx-shock { transform-origin: 200px 200px; opacity: 0; animation: shock 10s ease-out infinite; }
@keyframes shock { 0%, 82% { opacity: 0; transform: scale(1); } 84% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); } }
.rx-flame { transform-origin: 200px 215px; animation: flicker 1.8s ease-in-out infinite; }
.rx-wisp { stroke-dasharray: 40 140; animation: wisp 2.7s linear infinite; opacity: .8; }
@keyframes wisp { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -180; } }
.rx-wisps { mix-blend-mode: screen; }

/* readouts & cards: pointer glow + lift */
.readout, .card, .flagship, .step, .mflow-node {
  --mx: -400px; --my: -400px;
  background:
    radial-gradient(260px circle at var(--mx) var(--my), #ff55001c, transparent 60%),
    linear-gradient(180deg, var(--panel), #171717);
}
.readout { transition: border-color .2s, transform .2s; overflow: hidden; }
.readout:hover { border-color: #ff550066; }
.readout.hot { border-color: #ff550040; }
.readout .v { animation: rise .6s cubic-bezier(.2, .8, .2, 1) both; }
.card { transition: border-color .2s, transform .2s, box-shadow .2s; }
.card:hover { box-shadow: 0 18px 40px -24px #ff5500aa, 0 0 0 1px #ff550022; transform: translateY(-3px); }
.card:hover .avatar { border-color: #ff550088; box-shadow: 0 0 14px #ff550055; }
.avatar { transition: border-color .2s, box-shadow .2s; }
.card.demo { background: repeating-linear-gradient(-45deg, #ffc40005 0 10px, transparent 10px 20px), linear-gradient(180deg, var(--panel), #171717); }
.card.demo:hover { box-shadow: none; }
.flagship { transition: box-shadow .25s, border-color .25s; }
.flagship:hover { border-color: var(--orange); box-shadow: 0 0 0 1px #ff550044, 0 24px 70px -30px #ff5500aa; }
.step { transition: border-color .2s, transform .2s; }
.step:hover { border-color: #ff550066; transform: translateY(-2px); }
.section-h h2 { position: relative; padding-left: 14px; }
.section-h h2::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 4px; background: var(--orange); box-shadow: 0 0 10px #ff5500; border-radius: 1px; }

/* pipe: glowing head + heat haze */
.pipe-fill::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, #ffffff30, transparent 45%, #0000004d);
}
.pipe:not(.sm) .pipe-fill::after { width: 16px; animation: head 1.4s ease-in-out infinite; }
@keyframes head { 50% { opacity: .35; } }
.spark { width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px; animation-name: spark; animation-timing-function: cubic-bezier(.15, .7, .4, 1); animation-fill-mode: forwards; }
.spark.streak { width: 12px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, #ffe2b8); transform: rotate(var(--rot)); animation-name: streak; }
@keyframes spark { to { transform: translate(var(--dx), calc(var(--dy) + 30px)); opacity: 0; } }
@keyframes streak { from { transform: translate(0, 0) rotate(var(--rot)); } to { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; } }
.spark-ring {
  position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; pointer-events: none;
  border: 2px solid #ffcf9a; box-shadow: 0 0 18px #ff5500; animation: sring .8s ease-out forwards;
}
@keyframes sring { to { transform: scale(7); opacity: 0; } }

/* gauges */
.meter { overflow: hidden; transition: border-color .2s; }
.meter:hover { border-color: #ff550055; }
.meter .m-spin { transform-origin: 60px 60px; animation: spin 24s linear infinite; }
.meter.live .m-glow { animation: hum-glow 2.4s ease-in-out infinite; }
@keyframes hum-glow { 50% { opacity: 1; } }
.meter .name { color: var(--text); }
.meter.live .name::before { content: "● "; color: var(--orange); font-size: 10px; vertical-align: 2px; animation: pulse 1.6s infinite; }

/* terminal feed */
.term { position: relative; background: radial-gradient(120% 80% at 0% 0%, #ff55000a, transparent 60%), #0a0a0a; box-shadow: inset 0 0 0 1px #00000080, inset 0 10px 30px #00000066; }
.term .ln { animation: ln-in .35s ease-out both; }
.term .ln:first-child .h { text-shadow: 0 0 10px #ff5500aa; }
@keyframes ln-in { from { opacity: 0; transform: translateX(-6px); } }
.term::-webkit-scrollbar { width: 8px; }
.term::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 4px; }

/* milestone diagram */
.mflow { overflow: hidden; }
.mflow .panel-title { flex-wrap: wrap; }
.mflow-loop { margin-left: auto; font-size: 11px; letter-spacing: .06em; text-transform: none; color: var(--faint); }
.mflow-row { display: flex; align-items: stretch; gap: 0; }
.mflow-node {
  flex: 1 1 0; min-width: 0; position: relative; border: 1px solid var(--edge); border-radius: var(--r); padding: 14px 14px 12px;
  transition: border-color .2s;
}
.mflow-node:hover { border-color: #ff550066; }
.mflow-ic { width: 40px; height: 40px; color: var(--text); margin-bottom: 10px; }
.mflow-ic svg { width: 100%; height: 100%; overflow: visible; }
.mflow-k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: var(--orange); text-transform: uppercase; }
.mflow-t { font-family: var(--head); font-size: 19px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: 2px 0 4px; }
.mflow-d { font-size: 12.5px; color: var(--dim); line-height: 1.45; }
.mflow-link { position: relative; flex: 0 0 34px; align-self: center; height: 4px; }
.mflow-link i {
  position: absolute; inset: 0; border-radius: 2px;
  background: repeating-linear-gradient(90deg, #ff5500 0 6px, transparent 6px 12px); background-size: 12px 100%;
  opacity: .8; animation: flowx .6s linear infinite; box-shadow: 0 0 8px #ff550066;
}
@keyframes flowx { to { background-position: 12px 0; } }
.mflow-level { transform-box: fill-box; transform-origin: 50% 100%; animation: tank 8s ease-in infinite; }
@keyframes tank { 0% { transform: scaleY(.04); } 78% { transform: scaleY(1); } 86% { transform: scaleY(1); } 94%, 100% { transform: scaleY(.04); } }
.mflow-ring { stroke-dashoffset: 81.7; animation: ring 8s ease-in infinite; filter: drop-shadow(0 0 3px #ff5500); }
@keyframes ring { 0% { stroke-dashoffset: 81.7; } 78%, 90% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 81.7; } }
.mflow-flame { transform-box: fill-box; transform-origin: 50% 100%; animation: mflame 8s ease-in-out infinite; }
@keyframes mflame { 0%, 76% { transform: scale(.7); opacity: .55; filter: none; } 82% { transform: scale(1.25); opacity: 1; filter: drop-shadow(0 0 8px #ff5500); } 92% { transform: scale(.95); opacity: .9; } 100% { transform: scale(.7); opacity: .55; } }
.mflow-level, .mflow-ring, .mflow-flame { animation-delay: -3s; }
.mflow-node.n4 { animation: nodeflash 8s ease-in-out infinite; }
.mflow-node.n5 { animation: nodeflash 8s .3s ease-in-out infinite; }
@keyframes nodeflash { 0%, 76%, 100% { border-color: var(--edge); box-shadow: none; } 82% { border-color: var(--orange); box-shadow: 0 0 26px -6px #ff5500; } }

/* richer empty states */
.empty-rich { display: flex; align-items: center; gap: 18px; text-align: left; padding: 22px 26px; flex-wrap: wrap; }
.empty-rich > div:nth-child(2) { flex: 1; min-width: 220px; }
.empty-h { font-family: var(--head); text-transform: uppercase; letter-spacing: .12em; font-size: 18px; color: var(--text); margin-bottom: 4px; }
.empty-ic { width: 52px; height: 52px; color: #f4f4f455; flex: none; }
.empty-ic svg { width: 100%; height: 100%; }
.empty-ic circle { transform-origin: 24px 24px; animation: spin 14s linear infinite; }
.empty-ic path { animation: pulse 2.2s ease-in-out infinite; }
.await-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .14em; color: var(--warn); border: 1px solid #ffc40055; padding: 6px 10px; border-radius: 2px; }
.await-pill .boot-dot { width: 7px; height: 7px; background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.empty-slots { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 22px 16px; }
.slots { display: flex; gap: 10px; width: 100%; max-width: 420px; }
.slots i { flex: 1; height: 8px; border-radius: 4px; background: #1f1f1f; border: 1px solid var(--edge); position: relative; overflow: hidden; }
.slots i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, #ff550055, transparent); transform: translateX(-100%); animation: slot 2.8s ease-in-out infinite; }
.slots i:nth-child(2)::after { animation-delay: .2s; } .slots i:nth-child(3)::after { animation-delay: .4s; } .slots i:nth-child(4)::after { animation-delay: .6s; }
@keyframes slot { 60%, 100% { transform: translateX(100%); } }

/* forms */
.field input:hover, .field textarea:hover { border-color: #4a4a4a; }
.drop { transition: border-color .15s, background .15s; }
.drop:hover { background: #ff550008; }
details summary { transition: color .15s; }
details summary:hover { color: var(--orange); }
details[open] p { animation: rise .3s ease-out both; }
table.fees tr { transition: background .15s; }
table.fees tr:hover td { background: #ffffff05; }
.toast { backdrop-filter: blur(6px); visibility: hidden; transition: transform .25s, visibility .25s; }
.toast.on { visibility: visible; }

/* footer */
.foot-in { align-items: center; }
.hazard { background-size: 34px 100%; animation: hazard 3s linear infinite; background-image: repeating-linear-gradient(-45deg, var(--orange) 0 12px, #121212 12px 24px); background-repeat: repeat; }
@keyframes hazard { to { background-position: 34px 0; } }

/* responsive */
@media (max-width: 960px) {
  .hero-home { grid-template-columns: 1fr; }
  .hero-visual { max-width: 340px; order: -1; }
  .mflow-row { flex-direction: column; }
  .mflow-link { flex-basis: 22px; width: 4px; height: 22px; align-self: flex-start; margin-left: 32px; }
  .mflow-link i { background: repeating-linear-gradient(180deg, #ff5500 0 6px, transparent 6px 12px); background-size: 100% 12px; animation-name: flowy; }
  .mflow-node { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; }
  .mflow-ic { grid-row: span 3; margin: 0; }
}
@keyframes flowy { to { background-position: 0 12px; } }
@media (max-width: 520px) {
  body { font-size: 14.5px; }
  main { padding: 18px 16px 48px; }
  .bar { padding: 10px 16px; gap: 10px; row-gap: 8px; }
  .brand { margin-right: auto; font-size: 16px; letter-spacing: .1em; gap: 8px; }
  .brand-mark { width: 28px; height: 28px; }
  .bar { flex-wrap: wrap; }
  .btn-wallet { max-width: 132px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav { order: 3; width: 100%; margin-right: 0; }
  .nav a { flex: 1; text-align: center; }
  .x-link { width: 34px; height: 34px; }
  .foot-x { width: auto; height: auto; }
  .btn-wallet { padding: 8px 10px; font-size: 12px; }
  .ticker-tag { padding-left: 16px; letter-spacing: .14em; }
  .hero-visual { max-width: 260px; }
  .hero h1 { font-size: clamp(32px, 10vw, 44px); }
  .hero .row { flex-wrap: wrap !important; }
  .hero-cta .btn { flex: 1; text-align: center; }
  .readout { padding: 14px 12px 12px; }
  .readout .k { font-size: 11.5px; letter-spacing: .12em; margin-left: 8px; }
  .readout .v { font-size: 22px; }
  .flagship .kv { min-width: 0 !important; }
  .cards { grid-template-columns: 1fr; }
  .card-stats { font-size: 11.5px; }
  .pipe-label { font-size: 12px; }
  .mflow-loop { margin-left: 0; width: 100%; }
  .empty-rich { padding: 18px 16px; }
  .foot-in { padding: 16px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .term { font-size: 11.5px; padding: 12px; }
  .section-h h2 { font-size: 20px; }
  .toast { right: 16px; left: 16px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .embers { display: none; }
  .rx-shock { opacity: 0; }
  .mflow-level { transform: scaleY(.6); }
  .mflow-ring { stroke-dashoffset: 30; }
  .ticker { overflow-x: auto; }
}
