:root {
  --bg: #05070d;
  --bg-2: #0a0e18;
  --bg-3: #111827;
  --line: rgba(148, 178, 226, 0.12);
  --line-2: rgba(148, 178, 226, 0.22);
  --text: #e8eef8;
  --muted: #8a97ad;
  --dim: #56627a;
  --ice: #bfe9ff;
  --cyan: #5cc8ff;
  --blue: #6b7cff;
  --grad: linear-gradient(120deg, #e6f6ff 0%, var(--cyan) 45%, var(--blue) 100%);
  --radius: 18px;
  --display: "Inter Tight", Inter, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(92, 200, 255, 0.08), transparent 60%),
    radial-gradient(900px 500px at -10% 40%, rgba(107, 124, 255, 0.06), transparent 60%);
}
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
a { color: inherit; text-decoration: none; }
.link { color: var(--ice); border-bottom: 1px solid var(--line-2); }
.link:hover { border-color: var(--cyan); }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--cyan); color: var(--bg); }

.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 60; height: 2px; width: 100%;
  background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--sp, 0));
}

.glass {
  background: linear-gradient(180deg, rgba(20, 28, 46, 0.55), rgba(10, 14, 24, 0.55));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 20px 60px -30px rgba(0, 0, 0, 0.8);
}

/* nav */
.nav {
  position: fixed; top: 14px; left: 50%; z-index: 50; transform: translateX(-50%);
  width: min(1200px, calc(100% - 28px));
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 10px 9px 18px;
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(5, 7, 13, 0.6); backdrop-filter: blur(18px);
  transition: transform 0.45s var(--ease);
}
.nav.hidden { transform: translate(-50%, -150%); }
.logo { display: flex; align-items: center; gap: 10px; font: 700 16px var(--display); letter-spacing: 0.14em; }
.logo-mark { width: 22px; height: 22px; }
.logo-mark path { fill: none; stroke: var(--ice); stroke-width: 1.6; }
.logo-mark .logo-inner { fill: var(--cyan); stroke: none; opacity: 0.85; animation: logo 4s ease-in-out infinite; transform-origin: center; }
@keyframes logo { 50% { transform: rotate(60deg) scale(0.8); opacity: 0.5; } }
.nav-links { display: flex; gap: 26px; font-size: 14px; color: var(--muted); }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; transition: border-color 0.2s, background 0.2s; }
.icon-btn svg { width: 15px; height: 15px; fill: var(--text); }
.icon-btn:hover { border-color: var(--line-2); background: rgba(92, 200, 255, 0.08); }
.burger { display: none; width: 38px; height: 38px; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--text); transition: transform 0.3s; }
.burger span:first-child { top: 15px; } .burger span:last-child { top: 22px; }
body.menu-open .burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
body.menu-open .burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 45; padding: 110px 28px;
  display: flex; flex-direction: column; gap: 20px;
  background: rgba(5, 7, 13, 0.96); backdrop-filter: blur(20px);
  font: 600 26px var(--display);
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity 0.35s, transform 0.35s var(--ease), visibility 0s 0.35s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mobile-menu .btn { font-size: 16px; margin-top: 12px; }

/* buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 12px;
  background: var(--grad); color: #04101c; font-weight: 600; font-size: 15px;
  overflow: hidden; isolation: isolate; will-change: transform;
  box-shadow: 0 0 0 1px rgba(191, 233, 255, 0.3) inset, 0 10px 30px -10px rgba(92, 200, 255, 0.5);
  transition: box-shadow 0.3s;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.7s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { box-shadow: 0 0 0 1px rgba(191, 233, 255, 0.5) inset, 0 14px 40px -10px rgba(92, 200, 255, 0.7); }
.btn-small { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn-ghost { background: rgba(255, 255, 255, 0.03); color: var(--text); box-shadow: 0 0 0 1px var(--line-2) inset; }
.btn-ghost::after { background: linear-gradient(110deg, transparent 30%, rgba(191, 233, 255, 0.12) 50%, transparent 70%); }
.btn-ghost:hover { box-shadow: 0 0 0 1px rgba(191, 233, 255, 0.4) inset; }
.btn-full { width: 100%; }
.btn svg { width: 14px; height: 14px; fill: currentColor; }

/* hero */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 110px 0 40px; }
#core { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-fallback { position: absolute; right: 8%; top: 22%; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #e6f6ff, var(--cyan) 30%, var(--blue) 60%, transparent 72%); filter: blur(2px); opacity: 0; }
body.no-webgl .hero-fallback { opacity: 0.6; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(5, 7, 13, 0.92) 0%, rgba(5, 7, 13, 0.6) 38%, transparent 62%); }
@media (max-width: 1050px) { .hero::before { background: linear-gradient(180deg, transparent 20%, rgba(5, 7, 13, 0.85) 55%); } }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 200px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hero-inner { position: relative; z-index: 2; width: min(1200px, 100%); margin: 0 auto; padding: 0 28px; pointer-events: none; }
.hero-text { max-width: 680px; }
.hero-text a, .hero-text button { pointer-events: auto; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ice); letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 12px 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(10, 14, 24, 0.5); margin-bottom: 26px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: ping 2s infinite; }
@keyframes ping { 50% { opacity: 0.35; } }
h1 { font: 700 clamp(40px, 5.6vw, 76px)/1.02 var(--display); letter-spacing: -0.04em; }
.hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin: 26px 0 34px; font-size: 18.5px; color: var(--muted); max-width: 560px; }
.lead b { color: var(--text); font-weight: 500; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.ca-bar { margin-top: 28px; display: inline-flex; align-items: center; gap: 12px; padding: 7px 14px 7px 7px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; color: var(--muted); background: rgba(10, 14, 24, 0.5); transition: border-color 0.2s, color 0.2s; }
.ca-bar:hover { border-color: var(--line-2); color: var(--text); }
.ca-label { background: rgba(92, 200, 255, 0.12); color: var(--ice); padding: 2px 8px; border-radius: 6px; }
.ca-bar svg { width: 14px; height: 14px; fill: currentColor; }

.hero-steps { position: relative; z-index: 2; width: min(1200px, calc(100% - 56px)); margin: 70px auto 0; display: grid; grid-template-columns: 1fr 40px 1fr 40px 1fr; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(10, 14, 24, 0.55); backdrop-filter: blur(16px); }
.hs { display: flex; gap: 14px; align-items: flex-start; padding: 6px 8px; }
.hs-n { font-size: 12px; color: var(--cyan); padding: 4px 8px; border: 1px solid var(--line-2); border-radius: 8px; }
.hs b { display: block; font: 600 16px var(--display); margin-bottom: 2px; }
.hs small { color: var(--muted); font-size: 13.5px; line-height: 1.5; display: block; }
.hs-arrow { height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); position: relative; overflow: hidden; }
.hs-arrow::after { content: ""; position: absolute; top: -1px; left: -30%; width: 30%; height: 3px; background: var(--ice); filter: blur(1px); animation: flow 2.2s linear infinite; }
@keyframes flow { to { left: 130%; } }

.stats-band { width: min(1200px, calc(100% - 56px)); margin: 30px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 26px 20px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; }
.stat span { font-size: 26px; color: var(--text); }
.stat small { font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; }

/* sections */
.section { position: relative; max-width: 1200px; margin: 0 auto; padding: 140px 28px 0; }
.section.narrow { max-width: 820px; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ice); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 18px; }
.chip::before { content: ""; width: 18px; height: 1px; background: var(--cyan); }
h2 { font: 600 clamp(30px, 4vw, 50px)/1.08 var(--display); letter-spacing: -0.035em; }
h3 { font: 600 19px var(--display); letter-spacing: -0.01em; }
.sub { color: var(--muted); font-size: 17px; margin-top: 18px; }
.fine { font-size: 12px; color: var(--dim); }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* how: 3D stack */
.how { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.how-list { list-style: none; margin-top: 36px; display: grid; gap: 4px; counter-reset: how; }
.how-list li { counter-increment: how; display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.how-list b { font: 600 15px var(--display); display: flex; gap: 10px; }
.how-list b::before { content: "0" counter(how); font: 400 12px "JetBrains Mono", monospace; color: var(--cyan); padding-top: 2px; }
.how-list span { color: var(--muted); font-size: 15px; }
.stack-scene { perspective: 1400px; height: 520px; display: grid; place-items: center; }
.stack { position: relative; width: 340px; height: 340px; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(var(--rz, -38deg)); transition: transform 0.2s linear; }
.plate {
  position: absolute; inset: 0; border-radius: 22px; transform-style: preserve-3d;
  border: 1px solid rgba(191, 233, 255, 0.28);
  background: linear-gradient(135deg, rgba(92, 200, 255, 0.16), rgba(107, 124, 255, 0.06));
  box-shadow: inset 0 0 40px rgba(92, 200, 255, 0.1), 0 0 60px rgba(92, 200, 255, 0.08);
  display: flex; align-items: flex-end; padding: 18px;
  transform: translateZ(calc(var(--z) * var(--spread, 1)));
  transition: transform 0.6s var(--ease);
}
.plate span { font-size: 12px; color: var(--ice); transform: translateZ(1px); }
.plate::before { content: ""; position: absolute; inset: 24px; border-radius: 14px; border: 1px dashed rgba(191, 233, 255, 0.15); }
.p1 { --z: 210px; background: linear-gradient(135deg, rgba(191, 233, 255, 0.35), rgba(92, 200, 255, 0.12)); border-color: rgba(230, 246, 255, 0.5); }
.p1::after { content: ""; position: absolute; left: 50%; top: 50%; width: 90px; height: 90px; margin: -45px 0 0 -45px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--cyan) 40%, var(--blue) 80%); box-shadow: 0 0 60px var(--cyan); animation: hover-orb 4s ease-in-out infinite; }
@keyframes hover-orb { 50% { transform: translateZ(30px) scale(1.06); } }
.p2 { --z: 140px; }
.p3 { --z: 70px; }
.p4 { --z: 0px; background: linear-gradient(135deg, rgba(107, 124, 255, 0.18), rgba(10, 14, 24, 0.4)); }
.stack-scene:hover .stack { --spread: 1.35; }

/* conceive */
.conceive { display: grid; grid-template-columns: 400px 1fr; gap: 28px; padding: 26px; }
.seed-wrap { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: radial-gradient(circle at 50% 45%, #0f1a2e, var(--bg) 75%); border: 1px solid var(--line); }
#seed { width: 100%; height: 100%; display: block; }
.seed-label { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; }
.seed-name { font: 600 22px var(--display); }
.seed-ticker { font-size: 13px; color: var(--cyan); }
.conceive-panel { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.round-row { display: grid; grid-template-columns: 170px 1fr; gap: 12px; }
.round-row > div { background: rgba(5, 7, 13, 0.6); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; min-width: 0; }
.round-row small { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; }
.round-row span { font-size: 15px; }
.trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.traits { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; }
.trait-head { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 7px; }
.trait-head span { color: var(--muted); font-family: "JetBrains Mono", monospace; font-size: 12px; }
.trait-head .trait-label { color: var(--text); font-family: Inter, sans-serif; }
.trait-bar { height: 4px; border-radius: 99px; background: var(--bg-3); overflow: hidden; }
.trait-bar div { height: 100%; width: 0; border-radius: inherit; background: var(--grad); box-shadow: 0 0 10px var(--cyan); transition: width 1.2s var(--ease); }
.conceive-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.btn.loading { pointer-events: none; opacity: 0.6; }

/* stages */
.stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stage { padding: 26px 22px 28px; transform-style: preserve-3d; transition: transform 0.25s, border-color 0.3s; }
.stage:hover { border-color: var(--line-2); }
.stage p { color: var(--muted); font-size: 14.5px; margin-top: 8px; }
.stage-req { font-size: 12px; color: var(--cyan); display: block; margin-bottom: 6px; }
.stage-gem { width: 64px; height: 64px; margin-bottom: 34px; transform: translateZ(40px); position: relative; }
.stage-gem::before { content: ""; position: absolute; inset: 0; clip-path: polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%); background: linear-gradient(160deg, #fff, var(--cyan) 40%, var(--blue)); animation: gem 6s ease-in-out infinite; }
.stage-gem::after { content: ""; position: absolute; inset: 20% 25% 30%; clip-path: polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%); background: rgba(255, 255, 255, 0.35); }
@keyframes gem { 50% { transform: rotateY(180deg); } }
.g0 { transform: translateZ(40px) scale(0.45); opacity: 0.5; }
.g1 { transform: translateZ(40px) scale(0.65); }
.g2 { transform: translateZ(40px) scale(0.85); filter: drop-shadow(0 0 14px rgba(92, 200, 255, 0.5)); }
.g3 { filter: drop-shadow(0 0 24px rgba(92, 200, 255, 0.8)); }

/* calc */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 44px; overflow: hidden; }
.slider-wrap { display: block; margin-top: 36px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 99px; background: linear-gradient(90deg, var(--cyan), var(--blue)) 0 / var(--fill, 2.5%) 100% no-repeat, var(--bg-3); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 5px solid var(--cyan); cursor: grab; box-shadow: 0 0 20px var(--cyan); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 5px solid var(--cyan); cursor: grab; }
.slider-val { margin-top: 16px; font-size: 14px; color: var(--muted); }
.slider-val span { font-size: 28px; color: var(--text); }
.calc-right { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.calc-stat { background: rgba(5, 7, 13, 0.6); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.calc-stat.wide { grid-column: span 2; }
.calc-stat small { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; }
.calc-stat span { font: 600 30px var(--display); letter-spacing: -0.02em; }
#calc-stage { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stage-bar { height: 6px; background: var(--bg-3); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.stage-bar div { height: 100%; width: 0; background: var(--grad); box-shadow: 0 0 12px var(--cyan); border-radius: inherit; transition: width 0.4s; }
.calc-right .fine { grid-column: span 2; }

/* catalog */
.catalog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.job { position: relative; overflow: hidden; padding: 26px; transition: border-color 0.3s; }
.job::before { content: ""; position: absolute; inset: 0; background: radial-gradient(280px circle at var(--x, 50%) var(--y, 50%), rgba(92, 200, 255, 0.12), transparent 60%); opacity: 0; transition: opacity 0.3s; }
.job:hover::before { opacity: 1; }
.job:hover { border-color: var(--line-2); }
.job > * { position: relative; }
.job-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.job p { color: var(--muted); font-size: 14.5px; }
.cost { font-size: 12px; color: var(--cyan); }
.cost.free { color: var(--ice); }

/* lab */
.lab { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; }
.terminal, .chat { overflow: hidden; display: flex; flex-direction: column; height: 440px; }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.term-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--bg-3); border: 1px solid var(--line-2); }
.term-bar span { margin-left: 10px; font-size: 12px; color: var(--dim); }
.term-body { flex: 1; padding: 16px 18px; font-size: 12.5px; line-height: 1.8; color: var(--muted); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.t-time { color: var(--dim); }
.t-ok { color: var(--ice); }
.t-warn { color: #9fb4ff; }
.t-hash { color: var(--cyan); }
.caret { display: inline-block; width: 7px; height: 14px; background: var(--cyan); vertical-align: middle; margin-left: 2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.chat-head small { display: block; font-size: 11px; color: var(--dim); }
.chat-avatar { width: 34px; height: 34px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--grad); animation: logo 6s ease-in-out infinite; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; }
.msg { max-width: 80%; padding: 10px 14px; border-radius: 14px; font-size: 14px; animation: pop 0.35s var(--ease); }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }
.msg.me { align-self: flex-end; background: var(--grad); color: #04101c; border-bottom-right-radius: 4px; }
.msg.it { align-self: flex-start; background: rgba(148, 178, 226, 0.08); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.typing span { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); margin: 0 2px; animation: dots 1.2s infinite; }
.msg.typing span:nth-child(2) { animation-delay: 0.15s; } .msg.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dots { 30% { transform: translateY(-4px); opacity: 1; } 0%, 60%, 100% { opacity: 0.4; } }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; background: rgba(5, 7, 13, 0.6); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; color: var(--text); font: 14px Inter, sans-serif; outline: none; }
.chat-form input:focus { border-color: var(--cyan); }

/* nursery */
.nursery-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.ntab { padding: 8px 14px; border-radius: 10px; font-size: 14px; color: var(--muted); border: 1px solid transparent; transition: all 0.2s; }
.ntab:hover { color: var(--text); }
.ntab.active { border-color: var(--line); background: var(--bg-2); color: var(--text); }
.nursery-empty { padding: 70px 24px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 22px; border-style: dashed; }
.nursery-empty b { color: var(--text); }
.nursery-empty[hidden], .nursery-grid[hidden] { display: none; }
.nursery-tabs { align-items: center; }
.nursery-count { margin-left: auto; font-size: 12px; color: var(--dim); }
.nursery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.ncard { color: inherit; transition: border-color 0.25s, transform 0.25s var(--ease); }
.ncard:hover { border-color: var(--line-2); transform: translateY(-3px); }
.ncard:hover .coin-title b { color: var(--ice); }
.ncard-foot { margin-top: 8px; }
.empty-gem { width: 56px; height: 64px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: linear-gradient(160deg, rgba(191, 233, 255, 0.5), rgba(107, 124, 255, 0.15)); animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px) rotate(8deg); } }

/* $SPAWN model */
.flagship { display: grid; grid-template-columns: 1fr 1.25fr; gap: 16px; align-items: stretch; }
.flagship-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fact { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.fact b { font-size: 26px; font-weight: 500; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fact span { color: var(--muted); font-size: 13px; line-height: 1.5; }
.fact-ca { grid-column: 1 / -1; }
.fact-ca span { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; }
.fact-ca b { font-size: 14px; word-break: break-all; }
.flagship-chat { position: relative; height: 460px; }
.fs-gate { position: absolute; inset: 61px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 30px; text-align: center; background: linear-gradient(180deg, rgba(5, 7, 13, 0.55), rgba(5, 7, 13, 0.92)); backdrop-filter: blur(3px); }
.fs-gate[hidden] { display: none; }
.fs-gate p { color: var(--muted); max-width: 340px; margin: 0; }
.chat-form[hidden] { display: none; }
.msg.err { align-self: center; color: #ff8a9a; background: none; border: none; font-size: 12px; }

/* launch */
.launch-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: start; }
.launch { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.launch .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.launch label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: var(--muted); position: relative; }
.count { position: absolute; right: 0; top: 0; font-size: 11px; color: var(--dim); }
.launch input, .launch textarea { background: rgba(5, 7, 13, 0.6); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--text); font: 15px Inter, sans-serif; resize: vertical; transition: border-color 0.2s, box-shadow 0.2s; }
.launch input:focus, .launch textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(92, 200, 255, 0.1); }
.file input { position: absolute; opacity: 0; inset: 22px 0 0; cursor: pointer; }
.file-btn { background: rgba(5, 7, 13, 0.6); border: 1px dashed var(--line-2); border-radius: 10px; padding: 12px 14px; font-size: 13px; color: var(--muted); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file:hover .file-btn { border-color: var(--cyan); color: var(--text); }
.advanced summary { cursor: pointer; font-size: 13px; color: var(--muted); list-style: none; }
.advanced summary::before { content: "+ "; color: var(--cyan); }
.advanced[open] summary::before { content: "− "; }
.advanced[open] { display: flex; flex-direction: column; gap: 14px; }
.preview { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 14px; }
.preview-label { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.1em; }
.coin-card { display: flex; gap: 16px; padding: 18px; }
.coin-img { flex: 0 0 92px; height: 92px; border-radius: 12px; background: var(--bg-3) center / cover; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); }
.coin-img.has-img .coin-img-gem { display: none; }
.coin-img-gem { width: 40px; height: 46px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--grad); animation: float 4s ease-in-out infinite; }
.coin-info { flex: 1; min-width: 0; }
.coin-title { display: flex; align-items: baseline; gap: 8px; }
.coin-title b { font: 600 17px var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin-title span { color: var(--cyan); font-size: 13px; }
.coin-info p { color: var(--muted); font-size: 13px; margin: 4px 0 10px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.coin-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--dim); }
.stage-pill { color: var(--ice); }
.wake-bar { height: 3px; background: var(--bg-3); border-radius: 99px; margin-top: 8px; overflow: hidden; }
.wake-bar div { width: 4%; height: 100%; background: var(--grad); }
.cost-box { padding: 18px; font-size: 13px; display: flex; flex-direction: column; gap: 10px; }
.cost-box div { display: flex; justify-content: space-between; color: var(--muted); }
.cost-box b { color: var(--text); font-weight: 500; }
.cost-box .total { border-top: 1px solid var(--line); padding-top: 10px; }
.cost-box .total b { color: var(--cyan); }
.split { gap: 10px !important; }
.split-head { display: flex; justify-content: space-between; align-items: baseline; }
.split-head b { color: var(--cyan); font-size: 15px; font-weight: 500; }
.split input[type="range"] { -webkit-appearance: none; appearance: none; height: 4px; padding: 0; border: none; border-radius: 99px; background: linear-gradient(90deg, var(--cyan) var(--p, 50%), var(--bg-3) var(--p, 50%)); cursor: pointer; }
.split input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 0 4px rgba(92, 200, 255, 0.2), 0 0 16px rgba(92, 200, 255, 0.6); }
.split input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border: none; border-radius: 50%; background: var(--ice); }
.split input[type="range"]:focus { box-shadow: none; }
.split-legend { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); }
.split-legend b { color: var(--text); font-weight: 500; }
.split-note { font-size: 12px; color: var(--dim); line-height: 1.5; }
.wallet-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.wallet-row[hidden] { display: none; }
.wallet-dot { width: 7px; height: 7px; border-radius: 50%; background: #5cffb0; box-shadow: 0 0 10px #5cffb0; }
.wallet-row .link { margin-left: auto; font-size: 12px; }
.wallet-row .link + .link { margin-left: 0; }

.launch { position: relative; }
.locked-tag { position: absolute; right: 0; top: 0; font-size: 10px; color: var(--ice); text-transform: uppercase; letter-spacing: 0.08em; }
.launch input[readonly] { color: var(--dim); cursor: default; border-style: dashed; }
.launch input[readonly]:focus { border-color: var(--line); box-shadow: none; }

/* coin page */
.coin-main { padding-top: 120px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 18px; min-height: 70vh; }
.back-link { font-size: 12px; color: var(--muted); align-self: flex-start; }
.back-link:hover { color: var(--text); }
#coin-root { display: flex; flex-direction: column; gap: 18px; }
#coin-root[hidden] { display: none; }
.coin-hero { display: flex; gap: 28px; padding: 28px; align-items: center; }
.coin-hero-img { flex: 0 0 160px; height: 160px; border-radius: 20px; }
.coin-hero-img .coin-img-gem { width: 64px; height: 74px; }
.coin-hero-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.coin-hero-title { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.coin-hero-title h1 { font-size: clamp(34px, 4.5vw, 56px); overflow-wrap: anywhere; }
.coin-hero-ticker { color: var(--cyan); font-size: 18px; }
.coin-hero-tags { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }
.coin-hero-desc { color: var(--muted); font-size: 16px; margin: 0; max-width: 640px; }
.coin-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.ca-btn { display: inline-flex; gap: 10px; align-items: center; }
.ca-copy { font-size: 11px; color: var(--dim); }
.icon-btn[hidden] { display: none; }
.coin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.coin-stat { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.coin-stat small { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; }
.coin-stat b { font: 600 24px var(--display); letter-spacing: -0.02em; }
.coin-stat span { font-size: 11px; color: var(--muted); }
.coin-stat .stage-bar { margin-top: 4px; }
.coin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.coin-chat { margin-top: 14px; }
.coin-chat .chat-avatar { background-size: cover; background-position: center; }
.coin-panel { padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.panel-head .mono { font-size: 11px; color: var(--dim); }
.wake { display: flex; flex-direction: column; gap: 8px; }
.wake-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.wake-note { margin: 0; font-size: 13px; color: var(--muted); }
.lesson small { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; }
.lesson blockquote { margin: 8px 0 0; padding: 12px 16px; border-left: 2px solid var(--cyan); background: rgba(92, 200, 255, 0.05); border-radius: 0 10px 10px 0; color: var(--text); font-size: 14px; white-space: pre-wrap; }
.cert { display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
.cert .lm-row b { max-width: 62%; }
.cert a { color: var(--ice); }
.cert a:hover { color: var(--cyan); }
@media (max-width: 900px) {
  .coin-stats { grid-template-columns: 1fr 1fr; }
  .coin-cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .coin-hero { flex-direction: column; align-items: flex-start; padding: 22px; }
  .coin-hero-img { flex-basis: auto; width: 120px; height: 120px; }
  .nursery-grid { grid-template-columns: 1fr; }
}
.launch-fields { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; transition: opacity 0.3s, filter 0.3s; }
.launch.locked .launch-fields { opacity: 0.3; filter: blur(2px); pointer-events: none; user-select: none; }
.launch-gate { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 32px; text-align: center; border-radius: inherit; background: radial-gradient(ellipse at center, rgba(5, 7, 13, 0.82), rgba(5, 7, 13, 0.55)); }
.launch-gate[hidden] { display: none; }
.launch-gate b { font: 600 22px var(--display); }
.launch-gate p { color: var(--muted); max-width: 360px; margin: 0; font-size: 14px; }

.nav-wallet { display: inline-flex; align-items: center; gap: 8px; font-family: "JetBrains Mono", monospace; }
.nav-wallet:not(.signed-in) { font-family: inherit; }

.profile-card { width: min(520px, 100%); }
.pf-id { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); min-width: 0; }
.pf-id b { font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pf-stats div { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(5, 7, 13, 0.5); }
.pf-stats b { font-size: 20px; }
.pf-stats span { font-size: 12px; color: var(--muted); }
.pf-coins { display: flex; flex-direction: column; gap: 8px; max-height: 280px; overflow-y: auto; }
.pf-coin { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); }
.pf-coin-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pf-coin-main a { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-coin-main a:hover b { color: var(--cyan); }
.pf-coin-main .mono { font-size: 11px; color: var(--dim); }
.pf-tag { font-size: 11px; color: #5cffb0; white-space: nowrap; }
.pf-empty, .pf-soon { margin: 0; font-size: 13px; color: var(--muted); }
.pf-soon { color: var(--dim); font-size: 12px; }
.net-pill { font-size: 11px; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--ice); text-transform: uppercase; letter-spacing: 0.06em; }
.net-pill.devnet { color: #ffd27a; border-color: rgba(255, 210, 122, 0.35); }
.launch-note { font-size: 11px; color: var(--dim); text-align: center; margin: -4px 0 0; }

/* modals */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(3, 5, 10, 0.7); backdrop-filter: blur(8px); animation: fade 0.25s ease both; }
.modal[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.modal-card { width: min(440px, 100%); padding: 24px; display: flex; flex-direction: column; gap: 18px; animation: swap 0.4s var(--ease) both; }
.modal-head { display: flex; justify-content: space-between; align-items: center; font: 600 18px var(--display); }
.modal-x { font-size: 24px; line-height: 1; color: var(--muted); padding: 0 4px; }
.modal-x:hover { color: var(--text); }
.wallet-list { display: flex; flex-direction: column; gap: 8px; }
.wallet-opt { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(5, 7, 13, 0.5); font-size: 15px; text-align: left; transition: border-color 0.2s, background 0.2s; }
.wallet-opt:hover { border-color: var(--cyan); background: rgba(92, 200, 255, 0.06); }
.wallet-opt img { width: 26px; height: 26px; border-radius: 7px; }
.wallet-opt .mono { margin-left: auto; font-size: 11px; color: var(--dim); }
.wallet-empty { color: var(--muted); font-size: 14px; }
.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; font-size: 13px; color: var(--dim); }
.steps li { display: flex; align-items: center; gap: 12px; transition: color 0.3s; }
.steps li::before { content: ""; flex: 0 0 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-2); box-sizing: border-box; }
.steps li.active { color: var(--text); }
.steps li.active::before { border-color: var(--cyan); border-top-color: transparent; animation: spin 0.8s linear infinite; }
.steps li.done { color: var(--muted); }
.steps li.done::before { border: none; background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%2304101c' stroke-width='2'/%3E%3C/svg%3E") center / 100%; }
.steps li.failed { color: #ff8a9a; }
.steps li.failed::before { border-color: #ff8a9a; }
@keyframes spin { to { transform: rotate(360deg); } }
.lm-msg { font-size: 13px; color: var(--muted); min-height: 1em; margin: 0; }
.lm-msg.error { color: #ff8a9a; }
.lm-result { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.lm-result[hidden] { display: none; }
.lm-row { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.lm-row b { color: var(--text); font-weight: 500; font-family: "JetBrains Mono", monospace; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lm-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }

/* socials */
.socials { padding: 8px; }
.tabs { position: relative; display: flex; gap: 4px; padding: 4px; background: rgba(5, 7, 13, 0.6); border-radius: 12px; overflow-x: auto; }
.tab { position: relative; z-index: 1; flex: 1; padding: 11px 16px; border-radius: 9px; font-size: 14px; color: var(--muted); white-space: nowrap; transition: color 0.3s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.tab svg { width: 12px; height: 12px; fill: currentColor; }
.tab.active { color: #04101c; font-weight: 600; }
.tab-indicator { position: absolute; z-index: 0; top: 4px; bottom: 4px; border-radius: 9px; background: var(--grad); transition: left 0.45s var(--ease), width 0.45s var(--ease); }
.tab-panel { padding: 38px 30px 30px; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.tab-panel.swap > * { animation: swap 0.5s var(--ease) both; }
.tab-panel.swap > *:nth-child(2) { animation-delay: 0.08s; }
@keyframes swap { from { opacity: 0; transform: translateY(12px); } }
.tp-handle { font-size: 13px; color: var(--cyan); }
.tp-title { font: 600 clamp(24px, 3vw, 34px) var(--display); letter-spacing: -0.02em; margin: 6px 0 10px; }
.tp-text { color: var(--muted); max-width: 560px; }
.tp-cta { display: flex; flex-direction: column; gap: 10px; }

/* faq */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 17px; font-weight: 500; }
.faq summary::after { content: ""; flex: 0 0 12px; height: 12px; background: linear-gradient(var(--cyan), var(--cyan)) center / 100% 1.5px no-repeat, linear-gradient(var(--cyan), var(--cyan)) center / 1.5px 100% no-repeat; transition: transform 0.4s var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details > div { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.faq details[open] > div { grid-template-rows: 1fr; }
.faq details > div > p { overflow: hidden; color: var(--muted); }
.faq details[open] > div > p { padding-bottom: 22px; }

/* footer */
.footer { max-width: 1200px; margin: 140px auto 0; padding: 40px 28px 50px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; color: var(--dim); font-size: 13px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin-bottom: 12px; color: var(--text); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--ice); }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 80; transform: translate(-50%, calc(100% + 40px)); padding: 12px 18px; border-radius: 12px; background: rgba(20, 28, 46, 0.95); border: 1px solid var(--line-2); color: var(--text); font-size: 13px; backdrop-filter: blur(12px); transition: transform 0.45s var(--ease); }
.toast.show { transform: translate(-50%, 0); }

@media (max-width: 1050px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .nav-actions .nav-launch { display: none; }
  .hero-steps { grid-template-columns: 1fr; gap: 6px; }
  .hs-arrow { display: none; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: none; }
  .how, .conceive, .calc, .lab, .launch-grid, .flagship { grid-template-columns: 1fr; }
  .stack-scene { height: 420px; }
  .seed-wrap { max-width: 400px; width: 100%; margin: 0 auto; }
  .stages, .catalog { grid-template-columns: 1fr 1fr; }
  .preview { position: static; }
  .tab-panel { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .stages, .catalog, .launch .row, .round-row, .traits { grid-template-columns: 1fr; }
  .calc { padding: 26px; }
  .how-list li { grid-template-columns: 1fr; gap: 4px; }
  .stack { width: 240px; height: 240px; }
  .section { padding-top: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- docs ---------- */
.docs { display: grid; grid-template-columns: 250px minmax(0, 1fr) 200px; gap: 48px; max-width: 1280px; margin: 0 auto; padding: 110px 28px 0; }
.docs-side { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; scrollbar-width: thin; padding-right: 6px; }
.docs-search { position: relative; display: block; margin-bottom: 22px; }
.docs-search input { width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 10px 34px; color: var(--text); font: 14px Inter, sans-serif; outline: none; }
.docs-search input:focus { border-color: var(--cyan); }
.docs-search svg { position: absolute; left: 11px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); fill: var(--dim); }
.docs-search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 11px "JetBrains Mono", monospace; color: var(--dim); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
.docs-group { margin-bottom: 22px; }
.docs-group h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); margin-bottom: 8px; font-weight: 500; }
.docs-group a { display: block; padding: 6px 10px; border-radius: 8px; font-size: 14px; color: var(--muted); border-left: 1px solid var(--line); border-radius: 0 8px 8px 0; transition: color 0.2s, background 0.2s, border-color 0.2s; }
.docs-group a:hover { color: var(--text); }
.docs-group a.active { color: var(--ice); background: rgba(92, 200, 255, 0.07); border-left-color: var(--cyan); }
.docs-group a.hidden { display: none; }
.docs-main { min-width: 0; padding-bottom: 60px; }
.docs-main article { padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.docs-main article.hidden { display: none; }
.docs-main .eyebrow { font-size: 12px; color: var(--cyan); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }
.docs-main h1 { font-size: clamp(34px, 4.5vw, 52px); margin-bottom: 18px; }
.docs-main h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 16px; }
.docs-main h3 { font-size: 18px; margin: 28px 0 10px; scroll-margin-top: 100px; }
.docs-main p, .docs-main li { color: #b4c0d4; font-size: 16px; line-height: 1.75; }
.docs-main p + p { margin-top: 14px; }
.docs-main ul, .docs-main ol { padding-left: 22px; margin: 14px 0; display: grid; gap: 6px; }
.docs-main strong { color: var(--text); font-weight: 600; }
.docs-main code { font: 13.5px "JetBrains Mono", monospace; background: rgba(92, 200, 255, 0.08); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--ice); }
.docs-main .lead { font-size: 18px; margin: 0 0 24px; }
.code { position: relative; margin: 18px 0; border: 1px solid var(--line); border-radius: 12px; background: #070a12; overflow: hidden; }
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; border-bottom: 1px solid var(--line); font: 12px "JetBrains Mono", monospace; color: var(--dim); }
.code-copy { font-size: 12px; color: var(--muted); padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; }
.code-copy:hover { color: var(--text); border-color: var(--line-2); }
.code pre { margin: 0; padding: 16px; overflow-x: auto; font: 13px/1.7 "JetBrains Mono", monospace; color: #c9d6ea; }
.code .c { color: var(--dim); } .code .k { color: #9fb4ff; } .code .s { color: var(--ice); } .code .n { color: var(--cyan); }
.callout { display: flex; gap: 14px; padding: 16px 18px; margin: 20px 0; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(92, 200, 255, 0.05); }
.callout.warn { border-color: rgba(159, 180, 255, 0.35); background: rgba(107, 124, 255, 0.07); }
.callout b { color: var(--ice); font-size: 14px; display: block; margin-bottom: 2px; }
.callout p { font-size: 14.5px !important; margin: 0 !important; }
.callout-icon { flex: 0 0 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: rgba(92, 200, 255, 0.15); color: var(--cyan); font: 600 13px "JetBrains Mono", monospace; }
.doc-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
.doc-table th, .doc-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.doc-table th { font: 500 12px "JetBrains Mono", monospace; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; }
.doc-table td { color: #b4c0d4; }
.doc-table td:first-child { color: var(--text); font-weight: 500; }
.doc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0; }
.doc-card { padding: 18px; transition: border-color 0.2s, transform 0.2s; }
.doc-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.doc-card b { display: block; font: 600 15px var(--display); margin-bottom: 4px; }
.doc-card span { color: var(--muted); font-size: 14px; }
.flow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 20px 0; font: 13px "JetBrains Mono", monospace; }
.flow span { padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg-2); color: var(--ice); }
.flow i { color: var(--cyan); font-style: normal; }
.docs-toc { position: sticky; top: 96px; align-self: start; font-size: 13px; }
.docs-toc h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); margin-bottom: 10px; font-weight: 500; }
.docs-toc a { display: block; padding: 4px 0; color: var(--muted); transition: color 0.2s; }
.docs-toc a:hover, .docs-toc a.active { color: var(--ice); }
.docs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.docs-pager a { padding: 16px 18px; }
.docs-pager small { display: block; font-size: 12px; color: var(--dim); }
.docs-pager b { font: 600 15px var(--display); }
.docs-pager .next { text-align: right; }
.docs-empty { display: none; color: var(--muted); padding: 40px 0; }
.docs-menu-btn { display: none; }
@media (max-width: 1150px) {
  .docs { grid-template-columns: 230px minmax(0, 1fr); }
  .docs-toc { display: none; }
}
@media (max-width: 820px) {
  .docs { grid-template-columns: 1fr; padding-top: 96px; }
  .docs-side { position: fixed; inset: 0; z-index: 44; top: 0; max-height: none; padding: 96px 24px 24px; background: rgba(5, 7, 13, 0.97); transform: translateX(-100%); transition: transform 0.4s var(--ease); }
  body.docs-nav-open .docs-side { transform: none; }
  .docs-menu-btn { display: inline-flex; position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 46; }
  .doc-cards, .docs-pager { grid-template-columns: 1fr; }
}
