/* ============================================================ header: live block ticker + nav */
.hdr { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.ticker { height: 34px; border-bottom: 1px solid var(--line); overflow: hidden; }
.tk-in { height: 100%; display: flex; align-items: center; gap: 0; white-space: nowrap; font-family: var(--f-mono); font-size: 12px; }
.tk-state { display: inline-flex; align-items: center; gap: 7px; padding-right: 14px; margin-right: 4px; color: var(--ink); font-weight: 700; letter-spacing: .12em; font-size: 11px; border-right: 1px solid var(--line-2); }
.tk-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); animation: pulse 1.6s ease-in-out infinite; }
.tk-state i.off { background: var(--warn); animation: none; }
.tk-item { display: inline-flex; align-items: baseline; gap: 7px; padding: 0 14px; border-right: 1px solid var(--line); }
.tk-item:last-child { border-right: 0; }
.tk-item b { font-family: var(--f-body); font-weight: 500; font-size: 12px; color: var(--ink-3); }
.tk-item em { font-style: normal; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.tk-item em .pre { font-family: var(--f-body); font-weight: 500; color: var(--ink-3); }
.tk-item small { font-family: var(--f-body); color: var(--ink-3); font-size: 11.5px; }
.tk-z b { color: var(--z); }
.tk-z b::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--z); vertical-align: 1px; }
.tk-clock.late em { color: var(--bad); }
.nav { height: 62px; }
.nav-in { height: 100%; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-mark svg { width: 34px; height: 34px; border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-family: var(--f-display); font-size: 17px; font-weight: 700; letter-spacing: .04em; }
.brand-text small { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.nav-links { display: flex; gap: 2px; margin-left: 10px; }
.nav-links a { text-decoration: none; padding: 8px 12px; font-size: 14px; font-weight: 600; color: var(--ink-2); border-radius: var(--r-s); }
.nav-links a:hover { color: #fff; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.btn-wallet { gap: 8px; }
.wb-dot { width: 8px; height: 8px; border-radius: 50%; display: none; }
.btn-wallet.on .wb-dot { display: block; background: var(--good); }
.btn-wallet.wrong .wb-dot { display: block; background: var(--warn); }
@media (max-width: 1120px) { .tk-hide-m { display: none; } }
@media (max-width: 1020px) { .nav-links { display: none; } }
@media (max-width: 560px) {
  :root { --hdr: 90px; }
  .ticker { height: 30px; }
  .tk-in { font-size: 11px; }
  .tk-state { padding-right: 10px; letter-spacing: .06em; font-size: 10px; }
  .tk-item { padding: 0 9px; gap: 5px; }
  .tk-item b { font-size: 11px; }
  .tk-hide-s { display: none; }
  .nav { height: 58px; }
  .nav-in { gap: 10px; }
  .brand-text small { display: none; }
  .brand-mark svg { width: 30px; height: 30px; }
  .nav-actions { gap: 6px; }
  .btn-wallet { padding: 0 12px; font-size: 13px; }
}
@media (max-width: 380px) { .tk-item:nth-of-type(4) { display: none; } }

/* ============================================================ hero: the core */
.hero { position: relative; padding: 26px 0 30px; }
.hero-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.hero-title { font-family: var(--f-display); font-weight: 600; font-size: clamp(30px, 4vw, 58px); line-height: 1.06; letter-spacing: -.015em; color: #fff; }
.hero-alt { display: flex; align-items: center; gap: 12px; margin-top: -2px; }
.ticker-pill { font-family: var(--f-mono); font-size: 13px; font-weight: 700; padding: 3px 9px; border-radius: 6px; color: var(--eth-2); border: 1px solid var(--line-2); }
.hero-pitch { font-size: 18px; line-height: 1.5; font-weight: 500; color: var(--ink-2); max-width: 40em; }

.core-stage { position: relative; height: 516px; margin-top: 2px; }
.core-gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; display: block; }
.core-gl, .core-fx { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16px, #000 calc(100% - 10px), transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 16px, #000 calc(100% - 10px), transparent 100%); }
.core-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; display: block; }
.core-links { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; overflow: visible; pointer-events: none; }
.core-links .lk { fill: none; stroke: var(--z); stroke-width: 1.4; stroke-dasharray: 2 7; stroke-linecap: round; opacity: .75; }
.core-links .lk-glow { fill: none; stroke: var(--z); stroke-width: 6; opacity: .07; }
.core-links .pk path { fill: #eaf6ff; }
.core-links .pk.z0 path { fill: #e6dcff; } .core-links .pk.z1 path { fill: #c8fff3; } .core-links .pk.z2 path { fill: #ffe9c4; }
.core-anchor { position: absolute; left: 50%; top: 39%; width: 220px; height: 330px; transform: translate(-50%, -50%); z-index: 1; pointer-events: none; }
.core-fallback { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .6s; }
.core-fallback svg { height: 82%; width: auto; }
.core-stage.gl-on .core-fallback { opacity: 0; }

/* satellites */
.sat { position: absolute; z-index: 5; width: 244px; padding: 11px 14px 11px; border-radius: var(--r); cursor: pointer; text-align: left;
  background: #0a1428; border: 1px solid color-mix(in srgb, var(--z) 35%, transparent); transition: border-color .2s; }
.sat:hover, .sat.open, .sat:focus-visible { border-color: var(--z); }
.sat.z0 { left: 4%; top: 1.5%; } .sat.z1 { right: 4%; top: 1.5%; } .sat.z2 { left: 50%; bottom: 0; transform: translateX(-50%); }
.sat-dot { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--z); box-shadow: 0 0 0 4px color-mix(in srgb, var(--z) 22%, transparent), 0 0 14px var(--z); }
.sat.z0 .sat-dot { right: -6px; top: 50%; margin-top: -6px; } .sat.z1 .sat-dot { left: -6px; top: 50%; margin-top: -6px; } .sat.z2 .sat-dot { top: -6px; left: 50%; margin-left: -6px; }
.sat-h { display: flex; align-items: center; gap: 8px; }
.sat-h::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--z); flex: none; }
.sat-h b { font-size: 15.5px; font-weight: 700; color: #fff; }
.sat-tag { margin-top: 7px; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
.sat-kv { margin: 9px 0 0; display: grid; gap: 4px; }
.sat-kv div { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.sat-kv dt { font-size: 12px; color: var(--ink-3); }
.sat-kv dd { margin: 0; font-family: var(--f-mono); font-size: 13.5px; font-weight: 700; color: #fff; text-align: right; }
.sat-kv dd .pre { font-family: var(--f-body); font-size: 12.5px; font-weight: 600; }
.sat-kv div:first-child dd { font-size: 16px; color: #fff; }
.sat .more { display: none; }
.sat.open .more { display: flex; }
.sat-go { margin-top: 9px; align-items: center; justify-content: center; height: 34px; border-radius: var(--r-s); font-size: 13.5px; font-weight: 700; text-decoration: none; color: #04101f; background: var(--z); }
.sat-go:hover { filter: brightness(1.08); }
.sat.ping { animation: satPing .9s ease-out 1; }
@keyframes satPing { 0% { box-shadow: 0 0 0 0 var(--z); } 35% { box-shadow: 0 0 0 2px var(--z), 0 0 34px -4px var(--z); } 100% { box-shadow: 0 0 0 0 transparent; } }
.sat.hit { animation: satHit 1.2s ease-out 1; }
@keyframes satHit { 0% { box-shadow: inset 0 0 0 999px color-mix(in srgb, var(--z) 42%, transparent), 0 0 50px -6px var(--z); } 100% { box-shadow: inset 0 0 0 999px transparent, 0 0 0 0 transparent; } }

/* toon architect at the console */
.console { position: absolute; left: 0; bottom: 0; z-index: 2; width: 286px; display: flex; flex-direction: column; gap: 8px; }
.bubble { position: relative; margin: 0; padding: 11px 13px 9px; border-radius: var(--r); background: #0a1428; color: var(--ink); border: 1px solid var(--line-2); }
.bubble::after { content: ""; position: absolute; left: 172px; bottom: -7px; width: 12px; height: 12px; background: #0a1428; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); transform: rotate(45deg); }
.bubble-q { position: relative; z-index: 1; font-family: var(--f-body); font-size: 13px; font-weight: 500; line-height: 1.45; min-height: 3.75em; color: #e9f2ff; }
.bubble-q::before { content: "“"; color: var(--eth); font-size: 1.3em; line-height: 0; margin-right: 1px; }
.console.typing .caret, .caret { display: inline-block; width: 6px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--eth); animation: pulse 1s steps(2) infinite; }
.bubble-src { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 2px 8px; margin-top: 5px; font-size: 11px; color: var(--ink-3); }
.bubble-src a { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--eth); text-decoration: none; }
.bubble-src a:hover { text-decoration: underline; }
.bubble-nav { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.bn { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: transparent; color: var(--ink); }
.bn:hover { border-color: var(--eth); }
.bn[data-d="-1"] .ico { transform: rotate(180deg); }
.bubble-dots { display: flex; gap: 5px; }
.bubble-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(159, 214, 255, .28); cursor: pointer; }
.bubble-dots i.on { width: 16px; border-radius: 4px; background: var(--eth); }
.console-art { position: relative; margin: 6px 0 0; width: 252px; max-width: 100%; }
.console-art .vk-gl { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.console-disc { font-size: 11px; line-height: 1.4; color: var(--ink-3); }
.console-art svg { position: relative; display: block; width: 100%; height: auto; }
.steam path { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; animation: steam 3.6s ease-out infinite; }
.steam .w2 { animation-delay: 1.2s; }
.steam .w3 { animation-delay: 2.4s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(14px) scaleX(.8); } 30% { opacity: .2; } 70% { opacity: .1; } 100% { opacity: 0; transform: translateY(-46px) scaleX(1.25); } }
.scr-glow { opacity: .03; animation: scrflicker 5.3s steps(1, end) infinite; pointer-events: none; }
@keyframes scrflicker { 0% { opacity: .03; } 9% { opacity: .055; } 11% { opacity: .025; } 37% { opacity: .045; } 39% { opacity: .03; } 62% { opacity: .06; } 63% { opacity: .035; } 88% { opacity: .05; } 90% { opacity: .03; } }
@media (prefers-reduced-motion: reduce) { .steam { display: none; } .scr-glow { animation: none; } }
.vk-bob { animation: vkbob 3.4s ease-in-out infinite; }
.vk-lid { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); animation: vkblink 5.2s infinite; }
.vk-hand-l { animation: vktype .34s steps(2, jump-none) infinite; }
.vk-hand-r { animation: vktype .34s steps(2, jump-none) infinite .17s; }
.term-cursor { animation: pulse 1s steps(2) infinite; }
.vk-pupils { animation: vklook 9s ease-in-out infinite; }
@keyframes vkbob { 50% { transform: translateY(-3px); } }
@keyframes vkblink { 0%, 93%, 100% { transform: scaleY(0); } 95.5% { transform: scaleY(1); } }
@keyframes vktype { 0% { transform: translateY(0); } 100% { transform: translateY(-3px); } }
@keyframes vklook { 0%, 40%, 100% { transform: translateX(0); } 50%, 78% { transform: translateX(5px); } }
.core-note { position: absolute; right: 0; bottom: 4px; z-index: 4; margin: 0; width: 250px; font-size: 12px; line-height: 1.45; color: var(--ink-3); text-align: right; }

/* CTA row (under the subline) + stat strip (under the core) */
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 12px; margin-top: 4px; }
.hero-foot { display: flex; flex-direction: column; align-items: center; margin-top: 10px; }
.ca-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; min-height: 46px; padding: 6px 8px 6px 14px; border-radius: var(--r-s); background: #0a1428; border: 1px solid var(--line-2); max-width: 100%; }
.ca-label { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.ca-val { font-size: 13px; word-break: break-all; min-width: 0; color: var(--ink); }
.ca-val.pre { color: var(--ink-3); font-family: var(--f-body); min-width: min(42ch, 60vw); min-height: 1.2em; }
.ca-copy { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); border-radius: 6px; background: transparent; padding: 6px 11px; font-size: 13px; font-weight: 600; }
.ca-copy:not([disabled]):hover { border-color: var(--eth); color: var(--eth-2); }
.ca-copy[disabled] { opacity: .45; cursor: not-allowed; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.btn-icon { min-width: 48px; padding: 0 18px; }
.hero-soon { display: none !important; }
.strip { width: 100%; margin: 6px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-radius: var(--r); background: #0a1428; border: 1px solid var(--line); overflow: hidden; }
.strip > div { padding: 15px 20px; border-left: 1px solid var(--line); min-width: 0; }
.strip > div:first-child { border-left: 0; }
.strip dt { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.strip dd { margin: 4px 0 0; font-size: 19px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip dd .u, .u { font-size: 12px; color: var(--ink-3); font-weight: 600; margin-left: 5px; font-family: var(--f-body); }
.strip dd .pre { font-size: 15px; }

/* ---- tablet / phone: core on top, satellites as a row of chips, console below ---- */
@media (max-width: 899px) {
  .hero { padding-top: 26px; }
  .core-stage { height: auto; display: flex; flex-direction: column; gap: 14px; }
  .core-gl, .core-fx { position: absolute; left: 0; right: 0; top: 0; height: 318px; inset: 0 0 auto 0; }
  .core-links { display: none; }
  .core-anchor { position: relative; left: auto; top: auto; transform: none; margin: 0 auto; width: 200px; height: 318px; }
  .sats-row { display: contents; }
  .sat { position: relative; left: auto !important; right: auto !important; top: auto !important; bottom: auto !important; transform: none !important; width: auto; }
  .core-stage > .sat { display: none; }
  .chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .chips .sat { display: block; padding: 10px; border-radius: var(--r); }
  .chips .sat.open { grid-column: 1 / -1; order: -1; }
  .chips .sat-dot { display: none; }
  .chips .sat-h { gap: 6px; }
  .chips .sat-h b { font-size: 13.5px; }
  .chips .sat-tag { display: none; }
  .chips .sat.open .sat-tag { display: block; }
  .chips .sat-kv div:first-child { flex-direction: column; align-items: flex-start; gap: 1px; }
  .chips .sat-kv div:first-child dd { text-align: left; font-size: 14px; }
  .chips .sat.open .sat-kv div:first-child { flex-direction: row; justify-content: space-between; }
  .console { position: relative; width: 100%; max-width: 440px; margin: 6px auto 0; }
  .bubble::after { left: 46%; }
  .core-note { position: relative; left: auto; top: auto; transform: none; white-space: normal; max-width: none; background: none; padding: 0; margin: -4px auto 0; }
}
@media (min-width: 900px) { .chips { display: none; } }
@media (max-width: 720px) {
  .hero-pitch { font-size: 16.5px; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip > div { border-left: 0; border-top: 1px solid var(--line); padding: 13px 14px; }
  .strip > div:nth-child(-n+2) { border-top: 0; }
  .strip > div:nth-child(2n) { border-left: 1px solid var(--line); }
  .strip > div:last-child { grid-column: 1 / -1; border-left: 0; }
  .strip dd { font-size: 17px; }
  .hero-ctas { width: 100%; }
  .hero-cta { width: 100%; }
  .ca-row { width: 100%; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .hero-ctas .btn-icon { flex: 0 0 auto; }
}
