:root {
  --bg: #0a0b0e;
  --panel: #101218;
  --panel-2: #161a21;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f1f2f4;
  --body: #c9ced6;
  --muted: #8f96a1;
  --dim: #5d636d;
  --green: #34d399;
  --red: #f43f5e;
  --yellow: #facc15;
  --cyan: #22d3ee;
  --violet: #a78bfa;
  --spectrum: linear-gradient(90deg, #22d3ee, #34d399 30%, #facc15 55%, #fb923c 72%, #f43f5e 86%, #a78bfa);
  --sans: "Space Grotesk", system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --nav-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px;
  line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
code { font-family: var(--mono); font-size: 0.9em; color: var(--green); }
.mono { font-family: var(--mono); letter-spacing: 0.02em; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.grid-lines { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.grid-lines span { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.grid-lines span:nth-child(1) { left: 20%; } .grid-lines span:nth-child(2) { left: 50%; } .grid-lines span:nth-child(3) { left: 80%; }

/* ---- chrome --------------------------------------------------------------------------- */
.announce {
  position: relative; z-index: 5; display: flex; gap: 14px; align-items: center; padding: 10px var(--gutter);
  border-bottom: 1px solid var(--line); font-size: 14px; color: var(--body); background: var(--bg);
}
.announce b { color: var(--text); font-weight: 600; }
.announce-cta { color: var(--green); margin-left: auto; }
.announce-x { margin-left: 4px !important; }
.announce-x { margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 20px; cursor: pointer; }

.nav {
  position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 20% 1fr auto; align-items: center;
  height: var(--nav-h); border-bottom: 1px solid var(--line); background: rgba(10, 11, 14, 0.86); backdrop-filter: blur(12px);
  padding-right: var(--gutter);
}
.brand { display: flex; align-items: center; gap: 10px; padding-left: var(--gutter); font-size: 21px; font-weight: 600; }
.brand-mark { width: 30px; height: 30px; }
.nav-links { display: flex; height: 100%; border-left: 1px solid var(--line); }
.nav-links a { display: flex; align-items: center; padding: 0 clamp(12px, 1.8vw, 26px); font-family: var(--mono); font-size: 13px; color: #cfd3d9; }
.nav-links a:hover { color: #fff; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line-2); border-radius: 8px; }
.icon-btn svg { width: 16px; height: 16px; fill: var(--text); }
.icon-btn:hover { background: var(--panel-2); }

.btn-launch {
  position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; font-family: var(--mono);
  font-size: 12.5px; letter-spacing: 0.06em; border-radius: 8px; background: var(--panel); white-space: nowrap; cursor: pointer; border: 0;
}
.btn-launch::before {
  content: ""; position: absolute; inset: 0; border-radius: 8px; padding: 1px; background: var(--spectrum);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.btn-launch:hover { background: var(--panel-2); }
.btn-launch .dots { letter-spacing: -1px; }
.btn-primary { display: inline-block; padding: 13px 22px; border-radius: 10px; background: var(--text); color: #0a0b0e; font-weight: 600; }
.btn-primary:hover { background: #fff; }
.btn-text { color: var(--body); font-weight: 500; }
.btn-text:hover { color: var(--text); }
.btn-ghost { background: none; border: 1px solid var(--line-2); color: var(--body); padding: 9px 14px; cursor: pointer; border-radius: 8px; font-size: 13px; }
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }
.btn-ghost-link { color: var(--body); font-size: 13px; }

/* ---- mascot: full-screen transparent canvas + floating UI ----------------------------- */
#mascot { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 15; pointer-events: none; display: block; touch-action: pan-y; }
#m-anchor { position: absolute; left: 0; right: 0; top: 0; height: 56vh; pointer-events: none; display: none; }
.bubble {
  position: fixed; left: 0; top: 0; z-index: 40; max-width: 280px; width: max-content; padding: 10px 14px; border-radius: 14px;
  background: #f1f2f4; color: #0a0b0e; font-size: 14.5px; line-height: 1.45; font-weight: 500; box-shadow: 0 12px 34px rgba(0,0,0,0.4);
  opacity: 0; pointer-events: none; transition: opacity .25s; will-change: transform;
}
.bubble::after { content: ""; position: absolute; bottom: -7px; width: 14px; height: 14px; background: #f1f2f4; transform: rotate(45deg); border-radius: 2px; left: var(--tail, 80%); }
.bubble.show { opacity: 1; }
.buddy-hide, .buddy-show {
  position: fixed; z-index: 41; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2);
  background: var(--panel); color: var(--muted); cursor: pointer; font-size: 14px; line-height: 1; display: none;
}
.buddy-hide.on { display: block; }
.buddy-show { right: 22px; bottom: 22px; width: 46px; height: 46px; font-size: 18px; color: var(--green); }
.buddy-show:not([hidden]) { display: block; }

.rail { position: fixed; z-index: 12; left: var(--gutter); top: 36%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 12px; transition: opacity .3s; }
.rail a { font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--dim); }
.rail a::before { content: "•"; margin-right: 8px; }
.rail a:hover { color: var(--body); }
.rail a.on { color: var(--text); }
body.buddy-mode .rail { opacity: 0; pointer-events: none; }

/* ---- sections ------------------------------------------------------------------------- */
main { position: relative; } /* no stacking context: hero/meet text (z 16) must rise above the fixed mascot (z 15) */
.section { position: relative; padding: 120px var(--gutter); }
.section.solid { background: var(--bg); }
.container { max-width: 1120px; margin: 0 auto; }
.eyebrow { text-transform: uppercase; font-size: 13px; color: var(--green); margin: 0 0 14px; letter-spacing: 0.1em; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; font-weight: 500; }
h2 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.05; }
h3 { font-size: 28px; line-height: 1.15; }
.sec-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.sec-head.left { margin: 0 0 32px; text-align: left; }
.lede { font-size: 19px; color: var(--body); margin: 18px 0 0; }

/* hero */
.hero { display: grid; grid-template-columns: 20% 30% 30% 20%; grid-template-rows: auto 1fr auto; min-height: calc(100vh - var(--nav-h) - 43px); padding-top: 56px; padding-bottom: 40px; }
.prompt-card { grid-column: 2; grid-row: 1; position: relative; max-width: 290px; margin-left: -70px; margin-top: 40px; border: 1px solid var(--line-2); background: var(--bg); padding: 18px 20px 16px; z-index: 16; }
.prompt-card .q { position: absolute; top: -42px; left: -1px; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line-2); border-bottom: 0; font-size: 26px; background: var(--bg); }
.corner { position: absolute; width: 10px; height: 10px; border-color: var(--muted); border-style: solid; }
.corner.tl { top: -50px; left: -14px; border-width: 1px 0 0 1px; } .corner.bl { bottom: -10px; left: -14px; border-width: 0 0 1px 1px; }
.typed { margin: 0; font-size: 13.5px; line-height: 1.65; min-height: 3.3em; color: var(--text); }
.typed::after { content: "▍"; animation: blink 1s steps(1) infinite; color: var(--green); }
.ghost { margin: 14px 0 0; font-size: 12px; color: var(--muted); }
@keyframes blink { 50% { opacity: 0; } }
.hero-list { position: relative; grid-column: 3 / 5; grid-row: 1; justify-self: end; list-style: none; margin: 70px 0 0; padding: 0; width: min(100%, 330px); font-size: 12.5px; text-transform: uppercase; color: #d6dae0; }
.hero-list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hero-list li::before { content: "•"; color: var(--dim); }
.hero-title { grid-column: 1 / 3; grid-row: 3; align-self: end; position: relative; z-index: 16; }
.hero-list, .scroll { z-index: 16; }
.hero-title .eyebrow { color: #d6dae0; }
.hero-title h1 { font-size: clamp(54px, 7.2vw, 108px); line-height: 1.02; font-weight: 400; }
.boxed { position: relative; display: inline-block; padding: 0 0.14em; }
.boxed::before {
  content: ""; position: absolute; inset: 0.06em -0.02em 0.02em; border-radius: 6px; padding: 2px; background: var(--spectrum);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  clip-path: polygon(0 0, 100% 0, 100% 62%, 92% 100%, 0 100%);
}
.boxed.short::before { clip-path: none; }
.hero-sub { grid-column: 3 / 5; grid-row: 3; align-self: end; justify-self: end; max-width: 360px; position: relative; z-index: 16; margin-bottom: 40px; }
.hero-sub p { margin: 0 0 18px; font-size: 18px; color: #e3e6ea; }
.hero-ctas { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.scroll { position: absolute; right: var(--gutter); bottom: 12px; font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 10px; text-transform: uppercase; }
.scroll span { font-size: 22px; color: var(--text); }

/* meet (close-up) */
.meet { min-height: calc(100vh - var(--nav-h)); display: grid; grid-template-columns: 20% 30% 30% 20%; grid-template-rows: auto 1fr auto; padding-top: 40px; padding-bottom: 56px; }
.cap-strip { grid-column: 2 / 5; display: flex; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; position: relative; z-index: 16; background: var(--bg); }
.cap { flex: 0 0 auto; display: flex; background: none; border: 0; color: var(--dim); font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; cursor: pointer; padding: 0; }
.cap .n { padding: 24px 20px; border-right: 1px solid var(--line); }
.cap .l { padding: 24px 30px; border-right: 1px solid var(--line); white-space: nowrap; }
.cap.on { color: var(--text); outline: 1px solid var(--line-2); outline-offset: -1px; }
.cap:hover { color: var(--body); }
.meet-title { grid-column: 1 / 3; grid-row: 3; align-self: end; position: relative; z-index: 16; }
.meet-title h2 { font-size: clamp(40px, 5vw, 72px); font-weight: 400; }
.meet-side { grid-column: 4; grid-row: 2 / 4; align-self: center; position: relative; z-index: 16; padding-left: 12px; }
.meet-side, .meet-title { text-shadow: 0 2px 18px rgba(10,11,14,0.9); }
#cap-text { font-size: 17px; color: #e3e6ea; min-height: 5.5em; margin: 0; }
.stats { margin: 26px 0 0; display: grid; gap: 16px; }
.stats div { border-top: 1px solid var(--line); padding-top: 12px; }
.stats dt { font-size: 32px; font-weight: 600; background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; width: max-content; }
.stats dd { margin: 0; color: var(--muted); font-size: 14px; }

/* solid sections below the fold: content sits above the fixed grid lines */
.video, .features, .how, .safety, .token, .install { background: var(--bg); }

/* video */
.player { display: grid; grid-template-columns: 1fr 280px; gap: 20px; align-items: start; }
.player video { width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; border: 1px solid var(--line-2); background: #000; box-shadow: 0 40px 100px rgba(0,0,0,.5); }
.chapters { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.chapters li button { width: 100%; text-align: left; display: flex; gap: 12px; padding: 14px 16px; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; color: var(--body); font-size: 15px; }
.chapters li:last-child button { border-bottom: 0; }
.chapters li button:hover, .chapters li button.on { background: var(--panel-2); color: var(--text); }
.chapters .ts { font-family: var(--mono); font-size: 12px; color: var(--green); padding-top: 3px; }

/* features explorer */
.explorer { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
.feat-list { display: flex; flex-direction: column; gap: 6px; position: sticky; top: calc(var(--nav-h) + 24px); }
.feat-item {
  display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; text-align: left; padding: 12px 14px; border-radius: 12px;
  border: 1px solid transparent; background: none; cursor: pointer; color: var(--body);
}
.feat-item .ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--panel-2); font-size: 19px; }
.feat-item b { display: block; color: var(--text); font-weight: 500; font-size: 16px; }
.feat-item small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; }
.feat-item:hover { background: var(--panel); }
.feat-item.on { background: var(--panel); border-color: var(--line-2); }
.feat-item.on .ic { background: rgba(52,211,153,0.14); }
.feat-panel { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); border: 1px solid var(--line-2); border-radius: 18px; background: var(--panel); overflow: hidden; min-height: 540px; }
.feat-info { padding: 32px; border-right: 1px solid var(--line); }
.feat-info h3 { margin-bottom: 12px; }
.feat-info > p { color: var(--body); margin: 0 0 18px; }
.checks { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 9px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; color: var(--body); font-size: 15px; line-height: 1.45; }
.checks li::before { content: "✓"; color: var(--green); font-weight: 700; }
.prompt-chip { display: block; width: 100%; text-align: left; padding: 12px 14px; border-radius: 10px; border: 1px dashed var(--line-2); background: var(--bg); color: var(--green); font-size: 13px; cursor: pointer; line-height: 1.45; }
.prompt-chip::before { content: "❯ "; }
.prompt-chip:hover { border-color: var(--green); }
.feat-visual { position: relative; padding: 24px; background: #0c0e12; display: flex; flex-direction: column; min-width: 0; }
.demo-tag { position: absolute; top: 12px; right: 14px; font-size: 10.5px; text-transform: uppercase; color: var(--dim); letter-spacing: 0.1em; }
#fp-visual { flex: 1; display: flex; flex-direction: column; min-width: 0; margin-top: 10px; }

/* demo widgets (features.js) */
.w-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: none; color: var(--body); font-family: var(--mono); font-size: 12px; cursor: pointer; }
.chip.on { background: var(--text); color: #0a0b0e; border-color: var(--text); }
.chip:hover:not(.on) { border-color: var(--muted); }
.w-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.w-table th { text-align: left; color: var(--muted); font-weight: 500; font-family: var(--mono); font-size: 11px; text-transform: uppercase; padding: 8px; border-bottom: 1px solid var(--line); }
.w-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.w-table tr.new { animation: rowin .6s ease; }
.w-table tr.clickable { cursor: pointer; }
.w-table tr.clickable:hover td { background: var(--panel-2); }
@keyframes rowin { from { background: rgba(52,211,153,0.18); transform: translateY(-6px); opacity: 0; } }
.tok { display: flex; align-items: center; gap: 9px; }
.av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; background: var(--panel-2); }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-family: var(--mono); font-size: 11px; background: var(--panel-2); color: var(--body); }
.up { color: var(--green); } .down { color: var(--red); } .warn { color: var(--yellow); } .mut { color: var(--muted); }
.w-hint { margin-top: auto; padding-top: 12px; font-size: 13px; color: var(--muted); }
.vet-grid { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: center; }
.gauge { width: 180px; }
.vet-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.vet-list li { display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 8px; background: var(--panel); font-size: 14px; opacity: 0.25; transition: opacity .3s; }
.vet-list li.done { opacity: 1; }
.verdict { margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-size: 15px; background: var(--panel); border-left: 3px solid var(--muted); }
.verdict.good { border-color: var(--green); } .verdict.mid { border-color: var(--yellow); } .verdict.bad { border-color: var(--red); }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 300px; overflow: hidden; }
.feed li { display: grid; grid-template-columns: 92px 1fr auto auto; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 9px; background: var(--panel); font-size: 13.5px; animation: rowin .5s ease; }
.flow { display: grid; gap: 6px; margin-top: 16px; }
.flow-row { display: grid; grid-template-columns: 80px 1fr 64px; gap: 10px; align-items: center; font-size: 13px; }
.bar { height: 10px; border-radius: 6px; background: var(--panel-2); position: relative; overflow: hidden; }
.bar i { position: absolute; top: 0; bottom: 0; border-radius: 6px; transition: all .5s; }
.radar-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 18px; align-items: center; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.badge { padding: 4px 10px; border-radius: 999px; font-size: 12px; background: rgba(167,139,250,0.14); color: #d7ccff; font-family: var(--mono); }
.meter { height: 10px; border-radius: 6px; background: var(--panel-2); overflow: hidden; margin: 6px 0 4px; }
.meter i { display: block; height: 100%; border-radius: 6px; background: var(--spectrum); transition: width .8s; }
canvas.w-canvas { width: 100%; height: 300px; border-radius: 10px; background: #090a0d; display: block; touch-action: none; }
.pattern-label { margin-top: 10px; font-size: 15px; }
.ticket { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.field input[type=range] { width: 100%; accent-color: var(--green); }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.restate { padding: 12px 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line-2); font-family: var(--mono); font-size: 13px; color: var(--text); }
.approval { padding: 14px; border-radius: 10px; border: 1px solid rgba(250,204,21,0.45); background: rgba(250,204,21,0.06); color: #fde68a; font-size: 14px; }
.approval .row { display: flex; gap: 10px; margin-top: 12px; }
.btn-ok, .btn-no { padding: 9px 16px; border-radius: 8px; border: 0; cursor: pointer; font-weight: 600; }
.btn-ok { background: var(--green); color: #052e1c; } .btn-no { background: var(--panel-2); color: var(--text); }
.result { padding: 12px 14px; border-radius: 10px; background: rgba(52,211,153,0.1); color: #a7f3d0; font-size: 14px; }
.result.cancel { background: var(--panel-2); color: var(--body); }
.rule-warn { color: var(--yellow); font-size: 13px; }
.chat { display: grid; gap: 10px; max-height: 280px; overflow-y: auto; padding-right: 4px; align-content: start; }
.msg { max-width: 85%; padding: 10px 13px; border-radius: 12px; font-size: 14.5px; line-height: 1.45; }
.msg.u { justify-self: end; background: var(--text); color: #0a0b0e; border-bottom-right-radius: 4px; }
.msg.d { justify-self: start; background: var(--panel-2); color: var(--text); border-bottom-left-radius: 4px; }
.memory { margin-top: 14px; padding: 12px; border-radius: 10px; border: 1px solid var(--line); }
.memory h4 { margin: 0 0 8px; font-size: 12px; font-family: var(--mono); color: var(--muted); text-transform: uppercase; font-weight: 500; }
.memory li { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; padding: 4px 0; }
.memory ul { list-style: none; padding: 0; margin: 0; }
.memory button { background: none; border: 0; color: var(--dim); cursor: pointer; }

/* how */
.how-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.steps-big { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 18px; }
.steps-big li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; }
.steps-big span { color: var(--green); font-size: 13px; padding-top: 4px; }
.steps-big b { font-size: 19px; font-weight: 500; }
.steps-big p { margin: 2px 0 0; color: var(--body); }
.term { border: 1px solid var(--line-2); border-radius: 14px; background: #08090c; box-shadow: 0 30px 80px rgba(0,0,0,0.5); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a2e36; }
.term-bar span { margin-left: 8px; font-size: 11.5px; color: var(--dim); }
.term-body { padding: 18px 20px 22px; font-size: 13px; line-height: 1.8; min-height: 420px; white-space: pre-wrap; }
.term-body .u { color: #fff; } .term-body .u::before { content: "❯ "; color: var(--green); }
.term-body .tool { color: var(--dim); } .term-body .ok { color: var(--green); } .term-body .warn { color: var(--yellow); }
.term-body .appr { display: block; margin: 6px 0; padding: 8px 10px; border: 1px solid rgba(250,204,21,0.4); background: rgba(250,204,21,0.06); color: #fde68a; }

/* safety */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { padding: 28px 24px 30px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.card .num { font-size: 12px; color: var(--green); }
.card h3 { font-size: 22px; margin: 26px 0 10px; }
.card p { margin: 0; color: var(--body); font-size: 15.5px; }

/* token */
.token-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.token h2 { font-size: clamp(48px, 6vw, 84px); background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; width: max-content; }
.ca-card { padding: 28px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--panel); }
.ca-row { display: flex; justify-content: space-between; margin-bottom: 10px; }
.ca-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.ca-chain { font-size: 12px; color: var(--green); text-transform: uppercase; }
.ca-box { display: flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: var(--bg); }
.ca-box code { flex: 1; padding: 16px; color: var(--text); font-size: 14px; word-break: break-all; }
.ca-links { display: flex; gap: 18px; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.fine { color: var(--muted); font-size: 13.5px; margin: 18px 0 0; }

/* install */
.install-grid { display: grid; grid-template-columns: minmax(0, 640px); }
.os-tabs { display: flex; margin: 28px 0 0; border: 1px solid var(--line); border-bottom: 0; width: max-content; border-radius: 10px 10px 0 0; overflow: hidden; }
.os-tabs button { background: none; border: 0; color: var(--muted); padding: 10px 16px; cursor: pointer; font-size: 12px; text-transform: uppercase; }
.os-tabs button[aria-selected="true"] { color: var(--text); background: var(--panel-2); }
.cmd { display: flex; border: 1px solid var(--line-2); border-radius: 0 10px 10px 10px; background: var(--panel); overflow: hidden; }
.cmd code { flex: 1; padding: 16px; font-size: 13px; color: var(--text); overflow-x: auto; white-space: nowrap; }
.copy { background: none; border: 0; border-left: 1px solid var(--line-2); color: var(--muted); padding: 0 18px; cursor: pointer; font-size: 12px; text-transform: uppercase; }
.copy:hover:not(:disabled), .copy.done { color: var(--green); }
.copy:disabled { cursor: not-allowed; opacity: .5; }
.steps { margin: 26px 0; padding-left: 20px; color: var(--body); }
.steps li { margin: 6px 0; }

.foot { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px var(--gutter); border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); background: var(--bg); }
.foot a { color: var(--muted); } .foot a:hover { color: var(--text); }
.foot-right { display: flex; gap: 18px; flex-wrap: wrap; }

.toast { position: fixed; z-index: 40; left: 50%; bottom: 28px; transform: translate(-50%, 20px); padding: 10px 16px; border-radius: 10px; background: var(--text); color: #0a0b0e; font-size: 14px; font-weight: 500; opacity: 0; transition: all .25s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.heart { position: fixed; z-index: 30; pointer-events: none; font-size: 20px; animation: heartup 1.1s ease-out forwards; }
@keyframes heartup { to { transform: translate(var(--dx), -90px) scale(1.4); opacity: 0; } }

/* ---- responsive ----------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .explorer { grid-template-columns: 1fr; }
  .feat-list { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .feat-item { flex: 0 0 auto; grid-template-columns: 32px auto; }
  .feat-item small { display: none; }
  .feat-item .ic { width: 32px; height: 32px; font-size: 16px; }
  .player { grid-template-columns: 1fr; }
  .chapters { display: grid; grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  .grid-lines span:nth-child(1), .grid-lines span:nth-child(3) { display: none; }
  .nav { grid-template-columns: 1fr auto; }
  .nav-links, .rail { display: none; }
  .announce span { font-size: 13px; }
  .section { padding: 80px var(--gutter); }
  #m-anchor { display: block; }
  .bubble { max-width: 210px; font-size: 13.5px; }
  .hero, .meet, .how-grid, .token-grid { display: flex; flex-direction: column; gap: 22px; }
  .hero { padding-top: calc(56vh + 30px); min-height: auto; }
  .prompt-card { margin-top: 48px; max-width: none; margin-left: 0; }
  .hero > *, .meet > * { align-self: stretch !important; justify-self: stretch !important; }
  .hero-list li { justify-content: flex-start; gap: 10px; }
  .hero-list { margin: 0; width: 100%; justify-self: auto; }
  .hero-sub { margin: 0; max-width: none; }
  .scroll { display: none; }
  .meet { min-height: auto; }
  .feat-panel { grid-template-columns: 1fr; }
  .feat-info { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px; }
  .vet-grid, .radar-wrap { grid-template-columns: 1fr; justify-items: center; }
  .cards { grid-template-columns: 1fr; }
  .term-body { min-height: 340px; font-size: 12px; }
  .w-table { font-size: 12.5px; }
  .w-table .hide-sm { display: none; }
  .feed li { grid-template-columns: 76px 1fr auto; }
  .feed li .hide-sm { display: none; }
  .chapters { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .typed::after { animation: none; }
}

/* ---- loader ----------------------------------------------------------------------------- */
body.loading { overflow: hidden; }
#loader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--bg);
  clip-path: circle(150% at 50% 50%); transition: clip-path .9s cubic-bezier(.7,0,.2,1);
}
#loader.out { clip-path: circle(0% at 50% 46%); }
.ld-inner { display: grid; justify-items: center; gap: 18px; width: min(320px, 80vw); }
.ld-face { width: 120px; height: 104px; animation: ldbob 1.6s ease-in-out infinite; }
.ld-bezel { stroke-dasharray: 100; stroke-dashoffset: 100; animation: lddraw 1.2s cubic-bezier(.6,0,.2,1) forwards, ldhue 3s linear infinite; }
.ld-eyes { transform-origin: 60px 49px; animation: ldblink 2.6s infinite, ldlook 3.2s ease-in-out infinite; }
.ld-smile { opacity: 0; transition: opacity .3s; }
#loader.out .ld-smile { opacity: 1; }
#loader.out .ld-eyes { animation: none; transform: scaleY(.35) translateY(16px); transition: transform .25s; }
.ld-word { display: flex; gap: 6px; font-size: 26px; font-weight: 600; letter-spacing: .2em; }
.ld-word span { opacity: 0; transform: translateY(10px); animation: ldin .5s cubic-bezier(.2,.8,.2,1) forwards; }
.ld-word span:nth-child(2) { animation-delay: .08s; } .ld-word span:nth-child(3) { animation-delay: .16s; }
.ld-word span:nth-child(4) { animation-delay: .24s; } .ld-word span:nth-child(5) { animation-delay: .32s; } .ld-word span:nth-child(6) { animation-delay: .4s; }
.ld-bar { width: 100%; height: 4px; border-radius: 4px; background: var(--panel-2); overflow: hidden; }
.ld-bar i { display: block; height: 100%; background: var(--spectrum); transform-origin: left; transform: scaleX(0); }
.ld-row { width: 100%; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--muted); }
#ld-pct { color: var(--text); }
@keyframes lddraw { to { stroke-dashoffset: 0; } }
@keyframes ldhue { to { filter: hue-rotate(360deg); } }
@keyframes ldbob { 50% { transform: translateY(-6px) rotate(-2deg); } }
@keyframes ldblink { 0%, 90%, 100% { transform: scaleY(1); } 94% { transform: scaleY(.1); } }
@keyframes ldlook { 0%, 100% { translate: -4px 0; } 50% { translate: 4px 0; } }
@keyframes ldin { to { opacity: 1; transform: none; } }

/* ---- CA + X up front ---------------------------------------------------------------------- */
.ann-ca { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ann-ca code { color: var(--text); font-size: 13px; padding: 3px 8px; border-radius: 6px; background: var(--panel-2); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ann-copy { background: none; border: 1px solid var(--line-2); color: var(--body); border-radius: 6px; padding: 2px 9px; font-size: 11px; cursor: pointer; }
.ann-copy:hover:not(:disabled) { color: var(--green); border-color: var(--green); }
.ann-copy:disabled { opacity: .4; cursor: default; }
.ann-x { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.ann-x svg { width: 13px; height: 13px; fill: currentColor; }
.ann-x.soon, .ca-x.soon { opacity: .45; pointer-events: none; }
.mut { color: var(--muted); }
.ca-pill {
  display: inline-flex; align-items: center; gap: 0; margin-top: 18px; border: 1px solid var(--line-2); border-radius: 12px;
  background: rgba(16,18,24,.85); backdrop-filter: blur(8px); overflow: hidden; max-width: 100%;
}
.ca-tag { padding: 10px 12px; font-size: 12px; color: #0a0b0e; background: var(--spectrum); font-weight: 600; }
.ca-pill code { padding: 10px 12px; font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 22ch; }
.ca-copy-btn, .ca-x { display: grid; place-items: center; width: 42px; align-self: stretch; border: 0; border-left: 1px solid var(--line-2); background: none; cursor: pointer; }
.ca-copy-btn svg, .ca-x svg { width: 15px; height: 15px; fill: var(--body); }
.ca-copy-btn:hover svg, .ca-x:hover svg { fill: var(--green); }
.ca-copy-btn:disabled { opacity: .4; cursor: default; }

/* ---- scroll reveal ------------------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(6px);
  transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1), filter .9s cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.hero-title, .hero-sub, .prompt-card, .hero-list, .cap-strip, .meet-title, .meet-side { will-change: transform, opacity; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  #loader { transition: opacity .3s; } #loader.out { clip-path: none; opacity: 0; }
}
@media (max-width: 900px) {
  .ann-ca code { max-width: 16ch; }
  .announce { flex-wrap: wrap; row-gap: 6px; }
}

/* video tabs */
.vtabs { display: flex; gap: 10px; margin: 0 0 16px; flex-wrap: wrap; }
.vtab { text-align: left; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: none; cursor: pointer; color: var(--body); min-width: 240px; }
.vtab b { display: block; color: var(--text); font-weight: 500; font-size: 16px; }
.vtab small { color: var(--muted); font-size: 13px; }
.vtab[aria-selected="true"] { background: var(--panel); border-color: var(--line-2); box-shadow: inset 0 -2px 0 var(--green); }
.vtab:hover { border-color: var(--line-2); }

.ann-msg { color: var(--text); font-weight: 500; padding-left: 12px; border-left: 1px solid var(--line-2); }
