/* T3 Unity site. Dark, motion-rich, GPU-friendly (transform/opacity only for loops). */
:root {
  --bg: #06070b;
  --bg2: #0b0d14;
  --surface: #10131d;
  --surface2: #151927;
  --line: rgba(255, 255, 255, 0.08);
  --line2: rgba(255, 255, 255, 0.14);
  --text: #eceff7;
  --muted: #a3abc0;
  --dim: #7d869c;
  --mint: #5ef2c9;
  --violet: #8a7bff;
  --pink: #ff7aa8;
  --amber: #ffb45e;
  --sky: #63b4ff;
  --green: #4ade80;
  --claude: #ffa36b;
  --codex: #7cb3ff;
  --hermes: #59e3a0;
  --grad: linear-gradient(100deg, var(--mint), var(--violet) 55%, var(--pink));
  --r: 18px;
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.reduce-motion { scroll-behavior: auto; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--body);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
main { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
code { font-family: var(--mono); font-size: .88em; background: rgba(255,255,255,.06); border: 1px solid var(--line); padding: .05em .4em; border-radius: 6px; }
.ico { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -0.2em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--mint); color: #04130e; padding: 10px 14px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- ambient layers ---------- */
.aurora { position: fixed; inset: -10vh 0 -40vh 0; z-index: -2; pointer-events: none; overflow: hidden; }
.au { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; opacity: .5; will-change: transform; }
.au1 { background: radial-gradient(closest-side, rgba(94,242,201,.16), transparent); left: -20vmax; top: -25vmax; animation: drift1 26s ease-in-out infinite alternate; }
.au2 { background: radial-gradient(closest-side, rgba(138,123,255,.18), transparent); right: -25vmax; top: 10vmax; animation: drift2 32s ease-in-out infinite alternate; }
.au3 { background: radial-gradient(closest-side, rgba(255,122,168,.10), transparent); left: 10vmax; bottom: -35vmax; animation: drift3 38s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate3d(14vmax, 10vmax, 0) scale(1.1); } }
@keyframes drift2 { to { transform: translate3d(-12vmax, 8vmax, 0) scale(.9); } }
@keyframes drift3 { to { transform: translate3d(8vmax, -10vmax, 0) scale(1.15); } }
.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, border-color .3s, transform .4s var(--ease); border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(6,7,11,.72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line); }
.nav.hide { transform: translateY(-100%); }
.nav-in { width: min(1280px, 100% - 32px); margin: auto; height: 68px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.12rem var(--display); }
.brand b { font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo { width: 34px; height: 34px; }
.logo-orbit, .logo-ring { transform-origin: 20px 20px; transform-box: view-box; }
.motion .logo-orbit { animation: spin 14s linear infinite; }
.motion .logo-ring { animation: spin 30s linear infinite reverse; }
.brand:hover .logo-orbit { animation-duration: 2.5s; }
@keyframes spin { to { transform: rotate(360deg); } }
.beta-tag { font: 600 .66rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--amber); border: 1px solid rgba(255,180,94,.4); padding: 4px 6px; border-radius: 6px; }
.links { display: flex; gap: 4px; margin-left: auto; }
.links a { text-decoration: none; color: var(--muted); padding: 8px 12px; border-radius: 10px; font-size: .94rem; position: relative; transition: color .2s; }
.links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.links a:hover, .links a.active { color: var(--text); }
.links a:hover::after, .links a.active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.motion-toggle { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--line2); color: var(--muted); border-radius: 10px; padding: 7px 10px; font: 500 .82rem var(--body); cursor: pointer; transition: color .2s, border-color .2s; }
.motion-toggle:hover { color: var(--text); border-color: var(--mint); }
.burger { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line2); background: none; cursor: pointer; position: relative; }
.burger i { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease); }
.burger i:first-child { top: 16px; } .burger i:last-child { top: 24px; }
.burger[aria-expanded="true"] i:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn { --bx: 0px; --by: 0px; display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 14px; font: 600 1rem var(--body); text-decoration: none; cursor: pointer; border: 1px solid transparent; position: relative; isolation: isolate; overflow: hidden; transform: translate(var(--bx), var(--by)); transition: transform .25s var(--ease), border-color .25s, box-shadow .3s; }
.btn-sm { padding: 8px 12px; font-size: .86rem; border-radius: 10px; gap: 6px; }
.btn-primary { color: #071410; background: var(--grad); box-shadow: 0 10px 40px -12px rgba(94,242,201,.55); }
.btn-primary::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn-primary:hover::before { transform: translateX(120%); }
.btn-primary:hover { box-shadow: 0 16px 50px -10px rgba(138,123,255,.65); }
.btn-ghost { color: var(--text); background: rgba(255,255,255,.04); border-color: var(--line2); }
.btn-ghost:hover { border-color: rgba(94,242,201,.6); background: rgba(94,242,201,.06); }
.btn .ico { transition: transform .3s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 110px 0 80px; overflow: hidden; }
.stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 40px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255,255,255,.03); font-size: .86rem; color: var(--muted); }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(94,242,201,.6); }
.motion .dot-live { animation: ping 2s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(94,242,201,.6); } 100% { box-shadow: 0 0 0 10px rgba(94,242,201,0); } }
.hero-title { font-size: clamp(2.4rem, 5.4vw, 4.6rem); font-weight: 700; margin: 22px 0 22px; letter-spacing: -0.035em; line-height: 1.02; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gsplit { background: none !important; }
.gsplit .wi { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 36em; }
.lede strong { color: var(--text); }
.say { margin: 22px 0 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-family: var(--mono); font-size: .93rem; min-height: 1.6em; }
.say-label { display: inline-flex; align-items: center; gap: 6px; color: var(--dim); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.say-label .ico { color: var(--mint); }
.say-text { color: var(--mint); }
.caret { display: inline-block; width: 8px; height: 1.1em; background: var(--mint); vertical-align: -0.2em; margin-left: 2px; }
.motion .caret { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .9rem; }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); }
.hero-facts b { color: var(--text); font-weight: 600; }

.net-wrap { position: relative; aspect-ratio: 800 / 640; width: 100%; }
.net { width: 100%; height: 100%; overflow: visible; }
.net-caption { position: absolute; right: 8px; bottom: -8px; font: 500 .72rem var(--mono); color: var(--dim); letter-spacing: .06em; text-transform: uppercase; }
.net-rings circle { fill: none; stroke: rgba(255,255,255,.06); stroke-dasharray: 2 6; }
.net-rings .r-spin { transform-origin: 400px 320px; transform-box: view-box; }
.motion .net-rings .r-spin { animation: spin 90s linear infinite; }
.motion .net-rings .r-spin.rev { animation-direction: reverse; animation-duration: 120s; }
.edge { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 1.3; transition: stroke .3s, stroke-width .3s; }
.edge-flow { fill: none; stroke: url(#edgeGrad); stroke-width: 1.4; stroke-dasharray: 3 12; opacity: .55; transition: opacity .3s; }
.motion .edge-flow { animation: dash 2.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -30; } }
.net.focus .edge, .net.focus .edge-flow { opacity: .15; }
.net.focus .edge.hot { opacity: 1; stroke: var(--mint); stroke-width: 2; }
.net.focus .edge-flow.hot { opacity: 1; }
.node { cursor: pointer; outline: none; }
.node .n-float { transform-box: fill-box; transform-origin: center; }
.node .n-bg { fill: #0d111b; stroke: var(--line2); stroke-width: 1.2; transition: stroke .3s, fill .3s; }
.node .n-halo { opacity: 0; transition: opacity .3s; }
.node text { font: 500 13px var(--body); fill: var(--muted); transition: fill .3s; }
.node text.n-kind { font: 500 9.5px var(--mono); fill: var(--dim); letter-spacing: .08em; text-transform: uppercase; }
.node use { color: var(--c, var(--mint)); }
.node:hover .n-bg, .node:focus-visible .n-bg, .node.hot .n-bg { stroke: var(--c, var(--mint)); fill: #121828; }
.node:hover text, .node:focus-visible text, .node.hot text { fill: var(--text); }
.node:hover .n-halo, .node:focus-visible .n-halo, .node.hot .n-halo { opacity: 1; }
.net.focus .node:not(.hot):not(:hover) { opacity: .45; }
.node { transition: opacity .3s; }
.core .n-bg { fill: url(#coreGlow); stroke: none; }
.core-ring { fill: none; stroke: var(--violet); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; }
.motion .core-ring { animation: corePulse 3s ease-out infinite; }
.motion .core-ring.r2 { animation-delay: 1.5s; }
@keyframes corePulse { 0% { transform: scale(.7); opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }
.packet { fill: #fff; filter: drop-shadow(0 0 4px var(--mint)); }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid var(--line2); border-radius: 14px; }
.scroll-cue i { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--mint); }
.motion .scroll-cue i { animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* split text helpers */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.wi { display: inline-block; will-change: transform; }
.ch { display: inline-block; }

/* ---------- marquee ---------- */
.marquee { padding: 26px 0; border-block: 1px solid var(--line); background: rgba(255,255,255,.015); overflow: hidden; display: grid; gap: 12px;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.mq-row { display: flex; width: max-content; gap: 12px; }
.motion .mq-row { animation: mq 46s linear infinite; }
.motion .mq-row.rev { animation-direction: reverse; animation-duration: 54s; }
@keyframes mq { to { transform: translateX(-50%); } }
.mq-item { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg2); font: 500 .92rem var(--display); color: var(--muted); white-space: nowrap; transition: color .2s, border-color .2s, transform .3s var(--ease); }
.mq-item i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.mq-item:hover { color: var(--text); border-color: var(--c); transform: translateY(-2px); }
.marquee:hover .mq-row { animation-play-state: paused; }

/* ---------- sections ---------- */
.sec { padding: clamp(80px, 12vw, 150px) 0; position: relative; }
.sec::before { content: ""; position: absolute; left: 50%; top: 0; width: min(900px, 80%); height: 1px; transform: translateX(-50%) scaleX(var(--line-s, 1)); background: linear-gradient(90deg, transparent, var(--line2), transparent); }
.sec-head { max-width: 760px; margin-bottom: 56px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 500 .8rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mint); margin-bottom: 18px; }
.eyebrow span { color: var(--dim); }
.eyebrow::after { content: ""; width: 48px; height: 1px; background: linear-gradient(90deg, var(--mint), transparent); }
h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); font-weight: 700; letter-spacing: -0.03em; }
h2 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sec-lede { margin-top: 20px; font-size: 1.12rem; color: var(--muted); }
.sec-lede b { color: var(--text); }
.sub-h { font-size: 1.5rem; margin: 90px 0 26px; }

/* ---------- feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { --mx: 50%; --my: 50%; position: relative; padding: 26px; border-radius: var(--r); background: linear-gradient(180deg, var(--surface), var(--bg2)); border: 1px solid var(--line); overflow: hidden; isolation: isolate; transition: border-color .3s; }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s; background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--c, var(--mint)) 16%, transparent), transparent 60%); }
.card:hover { border-color: color-mix(in srgb, var(--c, var(--mint)) 45%, transparent); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 1.3rem; margin: 14px 0 10px; }
.card p { color: var(--muted); font-size: .97rem; }
.card p b { color: var(--text); font-weight: 600; }
.card-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--c, var(--mint)); background: color-mix(in srgb, var(--c, var(--mint)) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c, var(--mint)) 30%, transparent); transition: transform .4s var(--ease); }
.card:hover .card-ico { transform: rotate(-8deg) scale(1.08); }
.card-ico .ico { width: 22px; height: 22px; }
.c-orch { --c: var(--violet); } .c-voice { --c: var(--mint); } .c-cc { --c: var(--sky); }
.c-sess { --c: var(--claude); } .c-bots { --c: var(--pink); } .c-mach { --c: var(--hermes); }
.mini { height: 130px; margin: -6px -6px 18px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid var(--line); position: relative; overflow: hidden; }

.mini-orch svg { width: 100%; height: 100%; }
.mo-lines path { stroke: color-mix(in srgb, var(--violet) 70%, transparent); stroke-width: 1.5; fill: none; stroke-dasharray: 90; stroke-dashoffset: 90; }
.mo-dots circle { fill: var(--surface2); stroke: var(--violet); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; transform: scale(0); }
.mo-core { fill: var(--violet); }
.mo-pulse { fill: none; stroke: var(--violet); transform-box: fill-box; transform-origin: center; opacity: 0; }
.motion .mo-lines path { animation: moDraw 4s var(--ease) infinite; }
.motion .mo-dots circle { animation: moPop 4s var(--ease) infinite; }
.motion .mo-pulse { animation: corePulse 2s ease-out infinite; }
.reduce-motion .mo-lines path, .no-gsap .mo-lines path { stroke-dashoffset: 0; }
.reduce-motion .mo-dots circle, .no-gsap .mo-dots circle { transform: none; }
.mo-lines path:nth-child(2), .mo-dots circle:nth-child(2) { animation-delay: .15s !important; }
.mo-lines path:nth-child(3), .mo-dots circle:nth-child(3) { animation-delay: .3s !important; }
.mo-lines path:nth-child(4), .mo-dots circle:nth-child(4) { animation-delay: .45s !important; }
.mo-lines path:nth-child(5), .mo-dots circle:nth-child(5) { animation-delay: .6s !important; }
.mo-lines path:nth-child(6), .mo-dots circle:nth-child(6) { animation-delay: .75s !important; }
@keyframes moDraw { 0% { stroke-dashoffset: 90; } 30%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -90; } }
@keyframes moPop { 0%, 20% { transform: scale(0); } 35%, 85% { transform: scale(1); } 100% { transform: scale(0); } }

.mini-eq { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 0 18px; }
.mini-eq i { flex: 1; max-width: 6px; height: 80%; border-radius: 4px; background: linear-gradient(var(--mint), var(--violet)); transform: scaleY(var(--s, .3)); transform-origin: center; }
.motion .mini-eq i { animation: eq var(--d, 1s) ease-in-out infinite alternate; animation-delay: var(--dl, 0s); }
@keyframes eq { 0% { transform: scaleY(.08); } 100% { transform: scaleY(var(--s, .9)); } }

.mini-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 14px; align-content: center; }
.mini-tiles span { background: var(--surface2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 8px; display: grid; gap: 2px; font-family: var(--display); min-height: 74px; align-content: center; }
.mini-tiles span:first-child { background: linear-gradient(140deg, #2c5cf6, #6b5bff); border: 0; position: relative; }
.mini-tiles span:first-child i { position: absolute; right: 8px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.motion .mini-tiles span:first-child i { animation: ping 1.6s ease-out infinite; }
.mini-tiles b { font-size: 1.15rem; }
.mini-tiles small { font: 500 .66rem var(--body); color: var(--dim); }
.motion .mini-tiles span { animation: tileBob 5s var(--ease) infinite; }
.mini-tiles span:nth-child(2) { animation-delay: .3s !important; } .mini-tiles span:nth-child(3) { animation-delay: .6s !important; } .mini-tiles span:nth-child(4) { animation-delay: .9s !important; }
@keyframes tileBob { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(-5px); } }

.mini-rows { padding: 10px 14px; }
.rows-track { display: grid; gap: 8px; }
.motion .rows-track { animation: rows 9s cubic-bezier(.7,0,.3,1) infinite; }
@keyframes rows { 0%, 15% { transform: translateY(0); } 20%, 35% { transform: translateY(-34px); } 40%, 55% { transform: translateY(-68px); } 60%, 75% { transform: translateY(-102px); } 80%, 95% { transform: translateY(-136px); } 100% { transform: translateY(-170px); } }
.rows-track span { display: flex; align-items: center; gap: 8px; height: 26px; font-size: .82rem; color: var(--text); white-space: nowrap; }
.tg { font: 600 .66rem var(--mono); font-style: normal; padding: 2px 6px; border-radius: 5px; }
.tg-c { color: var(--claude); background: rgba(255,163,107,.12); } .tg-x { color: var(--codex); background: rgba(124,179,255,.12); } .tg-h { color: var(--hermes); background: rgba(89,227,160,.12); }

.mini-chat { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.bub { max-width: 82%; padding: 7px 11px; border-radius: 12px; font-size: .8rem; }
.bub.me { align-self: flex-end; background: #2c5cf6; color: #fff; border-bottom-right-radius: 4px; }
.bub.them { align-self: flex-start; background: var(--surface2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.motion .bub { animation: bub 6s var(--ease) infinite; }
.motion .bub.them { animation-delay: .9s; }
@keyframes bub { 0% { opacity: 0; transform: translateY(10px) scale(.96); } 10%, 80% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(-6px); } }
.badge-ping { position: absolute; left: 16px; bottom: 14px; min-width: 20px; height: 20px; border-radius: 6px; background: #2c5cf6; color: #fff; font: 600 .72rem/20px var(--body); text-align: center; }
.motion .badge-ping { animation: badge 2.4s var(--ease) infinite; }
@keyframes badge { 0%, 60%, 100% { transform: scale(1); } 70% { transform: scale(1.3); } 80% { transform: scale(.95); } }

.mini-term { font: .82rem var(--mono); padding: 16px; display: grid; gap: 14px; align-content: center; }
.mt-line b { color: var(--hermes); }
.mt-type { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; width: 5ch; }
.motion .mt-type { animation: typing 4s steps(5) infinite; }
@keyframes typing { 0%, 10% { width: 0; } 50%, 90% { width: 5ch; } 100% { width: 5ch; } }
.mt-hosts { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .76rem; }
.mt-hosts span { display: inline-flex; align-items: center; gap: 6px; }
.mt-hosts i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.mt-hosts i.on { background: var(--hermes); }
.motion .mt-hosts i.on { animation: pingG 2s ease-out infinite; }
.mt-hosts span:nth-child(2) i { animation-delay: .7s !important; }
@keyframes pingG { 0% { box-shadow: 0 0 0 0 rgba(89,227,160,.6); } 100% { box-shadow: 0 0 0 8px rgba(89,227,160,0); } }

.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.strip-item { display: flex; gap: 16px; padding: 22px; border-radius: var(--r); border: 1px dashed var(--line2); transition: border-color .3s, background .3s; }
.strip-item:hover { border-color: var(--violet); background: rgba(138,123,255,.05); }
.strip-item > .ico { width: 26px; height: 26px; color: var(--violet); margin-top: 2px; }
.strip-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.strip-item p { color: var(--muted); font-size: .92rem; }
.strip-item code { font-size: .74rem; display: inline-block; margin: 2px 0; }

/* ---------- orchestrator demo ---------- */
.orch-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.steps { list-style: none; padding: 0; margin: 36px 0 0; counter-reset: s; display: grid; gap: 6px; }
.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 58px; border-radius: 14px; color: var(--dim); transition: color .4s, background .4s, border-color .4s; border: 1px solid transparent; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 16px; top: 14px; font: 600 .82rem var(--mono); color: var(--dim); transition: color .4s; }
.steps li b { color: var(--muted); transition: color .4s; }
.steps li.on { color: var(--muted); background: rgba(138,123,255,.07); border-color: rgba(138,123,255,.25); }
.steps li.on b, .steps li.on::before { color: var(--text); }
.steps li.on::before { color: var(--violet); }
.app-win { border-radius: 20px; border: 1px solid var(--line2); background: linear-gradient(180deg, #0f1320, #0a0d16); box-shadow: 0 40px 120px -40px rgba(138,123,255,.45), 0 0 0 1px rgba(255,255,255,.02) inset; overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 500 .8rem var(--mono); color: var(--muted); }
.win-bar i, .shot-bar i, .term-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.14); }
.win-bar span { margin-left: 10px; }
.win-tag { margin-left: auto; font-style: normal; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); border: 1px solid var(--line); padding: 2px 6px; border-radius: 5px; }
.win-body { padding: 22px; display: grid; gap: 14px; min-height: 430px; align-content: start; }
.msg { max-width: 88%; padding: 12px 15px; border-radius: 14px; font-size: .95rem; }
.msg.me { justify-self: end; background: linear-gradient(140deg, #2c5cf6, #6b5bff); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { background: var(--surface2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.who { display: flex; align-items: center; gap: 6px; font: 600 .72rem var(--mono); color: var(--violet); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.o-type { white-space: pre-wrap; }
.tasks { display: grid; gap: 8px; padding: 12px; border-radius: 14px; border: 1px dashed rgba(138,123,255,.35); background: rgba(138,123,255,.04); }
.task { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 4px 10px; font-size: .86rem; }
.task small { color: var(--dim); font-size: .76rem; grid-column: 2 / 4; grid-row: 2; }
.task em { font-style: normal; font: 500 .72rem var(--mono); color: var(--amber); grid-column: 4; grid-row: 1; }
.task em.done { color: var(--hermes); }
.t-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); grid-row: 1; }
.task.done .t-dot { background: var(--hermes); }
.t-bar { grid-column: 3; grid-row: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.07); overflow: hidden; }
.t-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--violet), var(--mint)); transform-origin: left; transform: scaleX(var(--p, 0)); }
.win-input { display: flex; align-items: center; gap: 10px; margin: 0 16px 16px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line2); color: var(--dim); font-size: .9rem; }
.win-input b { margin-left: auto; background: #2c5cf6; color: #fff; padding: 5px 12px; border-radius: 9px; font-size: .8rem; }
.no-gsap .t-bar i, .reduce-motion .t-bar i { --p: 1; }

/* ---------- voice ---------- */
.voice { overflow: hidden; }
.engine-switch { position: relative; display: flex; width: max-content; max-width: 100%; margin: 0 auto 28px; padding: 5px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line2); }
.engine-switch button { position: relative; z-index: 1; background: none; border: 0; color: var(--muted); font: 600 .95rem var(--body); padding: 10px 20px; border-radius: 10px; cursor: pointer; transition: color .3s; }
.engine-switch button[aria-selected="true"] { color: #071410; }
.es-pill { position: absolute; top: 5px; bottom: 5px; left: 5px; width: var(--w, 50%); transform: translateX(var(--x, 0)); border-radius: 10px; background: var(--grad); transition: transform .5s var(--ease), width .5s var(--ease); }
.voice-stage { position: relative; border-radius: 24px; border: 1px solid var(--line2); background: radial-gradient(120% 120% at 50% 0%, #121730, #080a12 70%); padding: 22px; overflow: hidden; }
.call-strip { display: flex; align-items: center; gap: 10px; width: max-content; max-width: 100%; margin: 0 auto; padding: 8px 10px 8px 14px; border-radius: 999px; background: rgba(0,0,0,.35); border: 1px solid var(--line2); font-size: .86rem; }
.rec { width: 9px; height: 9px; border-radius: 50%; background: #ff5f6d; }
.motion .rec { animation: pingR 1.6s ease-out infinite; }
@keyframes pingR { 0% { box-shadow: 0 0 0 0 rgba(255,95,109,.6); } 100% { box-shadow: 0 0 0 9px rgba(255,95,109,0); } }
.call-time { font-family: var(--mono); color: var(--muted); }
.call-end { background: #ff5f6d; color: #fff; font-weight: 600; font-size: .78rem; padding: 4px 12px; border-radius: 999px; }
.wave { display: block; width: 100%; height: 220px; margin: 14px 0 6px; }
.caption { text-align: center; min-height: 3.2em; color: var(--text); font-size: 1.05rem; max-width: 40em; margin: 0 auto 18px; }
.cap-who { display: inline-block; margin-right: 10px; font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--mint); padding: 3px 7px; border-radius: 6px; background: rgba(94,242,201,.1); vertical-align: 2px; }
.cap-who.orch { color: var(--violet); background: rgba(138,123,255,.12); }
.pipe { display: flex; align-items: stretch; justify-content: center; gap: 0; flex-wrap: wrap; padding-top: 8px; }
.p-node { position: relative; display: grid; gap: 2px; text-align: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(0,0,0,.3); min-width: 120px; transition: border-color .35s, background .35s, transform .35s var(--ease), box-shadow .35s; }
.p-node b { font: 600 .9rem var(--display); }
.p-node small { color: var(--dim); font-size: .72rem; }
.p-node .where { font: 500 .62rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--mint); }
.p-node .where.cloud { color: var(--amber); }
.p-node.lit { border-color: var(--mint); background: rgba(94,242,201,.08); transform: translateY(-4px); box-shadow: 0 10px 30px -10px rgba(94,242,201,.5); }
.p-link { width: 34px; align-self: center; height: 2px; position: relative; overflow: hidden; background: rgba(255,255,255,.08); }
.p-link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--mint), transparent); transform: translateX(-100%); }
.motion .p-link::after { animation: plink 1.4s linear infinite; }
@keyframes plink { to { transform: translateX(100%); } }
.p-in { animation: pIn .6s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
.reduce-motion .p-in { animation: none; }
@keyframes pIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.engines { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.engine { padding: 26px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); transition: border-color .4s, box-shadow .4s; }
.engine.active { border-color: color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 20px 60px -30px var(--c); }
.e-live { --c: var(--amber); } .e-local { --c: var(--mint); }
.engine h3 { font-size: 1.4rem; } .engine h3 span { color: var(--dim); font-weight: 500; }
.e-sub { color: var(--muted); margin: 6px 0 16px; }
.engine dl { margin: 0; display: grid; gap: 0; }
.engine dl div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .93rem; }
.engine dt { color: var(--dim); }
.engine dd { margin: 0; }
.fine { margin-top: 26px; color: var(--dim); font-size: .9rem; max-width: 820px; margin-inline: auto; text-align: center; }

/* ---------- command center ---------- */
.cc-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; color: var(--muted); }
.ticks li b { color: var(--text); }
.ticks .ico { color: var(--mint); margin-top: 4px; }
.cc-stack { position: relative; aspect-ratio: 1.25; }
.shot { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line2); background: #fff; box-shadow: 0 40px 100px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.04); }
.shot-bar { display: flex; gap: 6px; padding: 8px 10px; background: #e9ebf0; }
.shot-bar i { background: #c9ccd6; width: 8px; height: 8px; }
.s-main { position: absolute; left: 0; top: 6%; width: 82%; z-index: 2; }
.s-a { position: absolute; right: 0; top: 0; width: 52%; z-index: 1; opacity: .9; transform: rotate(2deg); }
.s-b { position: absolute; right: 2%; bottom: 0; width: 56%; z-index: 3; }
.stats { margin-top: 90px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.stat { padding: 22px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), transparent); }
.stat b { display: block; font: 700 clamp(2.2rem, 4vw, 3.2rem)/1 var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px; }
.stat > span { color: var(--muted); font-size: .9rem; }

/* ---------- install ---------- */
.inst-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tabs button { background: none; border: 1px solid var(--line2); color: var(--muted); font: 500 .88rem var(--body); padding: 8px 14px; border-radius: 10px; cursor: pointer; transition: all .25s; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--text); border-color: var(--mint); background: rgba(94,242,201,.08); }
.term { border-radius: 16px; border: 1px solid var(--line2); background: #05060a; overflow: hidden; box-shadow: 0 30px 80px -40px rgba(94,242,201,.35); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: #0a0c13; }
.term-bar span { margin-left: 8px; font: 500 .78rem var(--mono); color: var(--dim); }
.term-body { margin: 0; padding: 18px; min-height: 290px; font: .85rem/1.75 var(--mono); color: #cfd6e6; white-space: pre-wrap; word-break: break-word; }
.term-body .pr { color: var(--mint); }
.term-body .cm { color: var(--dim); }
.term-body .ok { color: var(--hermes); }
.term-body .hl { color: var(--amber); }
.term-note { margin-top: 12px; color: var(--dim); font-size: .88rem; }
.wizard { border-radius: 18px; border: 1px solid var(--line2); background: #f5f5f3; color: #1b1d22; padding: 22px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.7); }
.wz-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wz-head b { font: 700 1.25rem var(--display); }
.wz-dry { font-size: .72rem; font-weight: 600; color: #9a5b00; border: 1px solid #d8a24a; border-radius: 999px; padding: 2px 9px; }
.wz-steps { position: relative; display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.wz-steps span { font-size: .72rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; border: 1px solid #dcdcdc; color: #666; background: #fff; transition: all .35s; }
.wz-steps span.on { background: #2f5bea; color: #fff; border-color: #2f5bea; }
.wz-steps span.done { background: #e6edff; color: #2f5bea; border-color: #c9d6ff; }
.wz-panels { position: relative; min-height: 236px; background: #fff; border: 1px solid #e3e3e3; border-radius: 14px; overflow: hidden; }
.wz-p { position: absolute; inset: 0; padding: 18px; opacity: 0; transform: translateX(24px); transition: opacity .45s var(--ease), transform .45s var(--ease); pointer-events: none; }
.wz-p.on { opacity: 1; transform: none; }
.wz-p.out { opacity: 0; transform: translateX(-24px); }
.wz-p h4 { font-size: 1rem; margin-bottom: 12px; }
.wz-p h4 small { font: 500 .7rem var(--mono); color: #888; margin-left: 6px; }
.wz-checks, .wz-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .86rem; }
.wz-checks li { display: flex; align-items: center; gap: 10px; }
.wz-checks li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #ccc; flex: none; transition: all .3s; }
.wz-checks li.ok::before { border-color: #18a058; background: #18a058 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3.5' d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/11px no-repeat; }
.wz-list li { padding-left: 16px; position: relative; opacity: .25; transition: opacity .35s; }
.wz-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: #2f5bea; }
.wz-list li.ok { opacity: 1; }
.wz-log { height: 130px; overflow: hidden; background: #0d0f15; border-radius: 10px; font: .76rem/1.9 var(--mono); color: #a7f3d0; padding: 8px 12px; }
.wz-log-in span { display: block; }
.wz-prog { margin-top: 14px; height: 8px; border-radius: 8px; background: #e7e9ee; overflow: hidden; }
.wz-prog i { display: block; height: 100%; background: linear-gradient(90deg, #2f5bea, #5ef2c9); transform-origin: left; transform: scaleX(var(--p, 0)); }
.wz-addr { font: 600 .95rem var(--mono); color: #2f5bea; }
.wz-code { display: flex; gap: 8px; margin: 16px 0 10px; }
.wz-code span { width: 40px; height: 50px; border-radius: 10px; background: #f1f3f8; border: 1px solid #dfe3ec; display: grid; place-items: center; font: 700 1.4rem var(--mono); color: #1b1d22; }
.wz-sm { font-size: .78rem; color: #777; }
.platforms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plat { padding: 24px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); transition: translate .4s var(--ease), border-color .3s; }
.plat:hover { translate: 0 -6px; border-color: rgba(94,242,201,.4); }
.plat > .ico { width: 30px; height: 30px; color: var(--mint); transition: transform .5s var(--ease); }
.plat:hover > .ico { transform: rotate(-10deg) scale(1.15); }
.plat h4 { font-size: 1.15rem; margin: 14px 0 8px; }
.plat p { color: var(--muted); font-size: .9rem; }
.os { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.os li { font: 500 .72rem var(--mono); padding: 4px 8px; border-radius: 6px; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--muted); }

/* ---------- screenshots ---------- */
.screens { overflow: hidden; }
.hs { position: relative; }
.hs-track { display: flex; gap: 28px; padding: 10px max(16px, calc((100vw - var(--wrap)) / 2)) 30px; width: max-content; }
.g { margin: 0; width: min(640px, 80vw); flex: none; }
.g-btn { display: block; width: 100%; padding: 0; border: 1px solid var(--line2); border-radius: 16px; overflow: hidden; background: #fff; cursor: zoom-in; box-shadow: 0 30px 70px -30px rgba(0,0,0,.8); transition: transform .5s var(--ease), box-shadow .5s, border-color .3s; }
.g-btn img { transition: transform .8s var(--ease); }
.g-btn:hover { transform: translateY(-8px) rotate(-.6deg); border-color: var(--mint); box-shadow: 0 40px 90px -30px rgba(94,242,201,.35); }
.g-btn:hover img { transform: scale(1.04); }
.g figcaption { margin-top: 14px; color: var(--muted); font-size: .92rem; }
.g figcaption b { color: var(--text); margin-right: 8px; font-family: var(--display); }
.g-tall { width: min(576px, 72vw); }

/* ---------- beta ---------- */
.beta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.safety { margin-top: 30px; display: flex; gap: 14px; padding: 20px; border-radius: var(--r); background: rgba(255,180,94,.06); border: 1px solid rgba(255,180,94,.25); }
.safety .ico { width: 26px; height: 26px; color: var(--amber); }
.safety p { color: var(--muted); font-size: .95rem; }
.safety b { color: var(--text); }
.status { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.status li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 15px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); transition: translate .35s var(--ease), border-color .3s; }
.status li:hover { translate: 6px 0; border-color: var(--line2); }
.status em { font-style: normal; font-size: .8rem; color: var(--dim); text-align: right; }
.st { width: 10px; height: 10px; border-radius: 50%; }
.st-ok { background: var(--hermes); } .st-new { background: var(--amber); } .st-no { background: #5b6275; }
.motion .st-ok { animation: pingG 2.6s ease-out infinite; }
.motion .st-new { animation: pingA 2.6s ease-out infinite; }
@keyframes pingA { 0% { box-shadow: 0 0 0 0 rgba(255,180,94,.6); } 100% { box-shadow: 0 0 0 8px rgba(255,180,94,0); } }
.status li:nth-child(2) .st { animation-delay: .3s !important; } .status li:nth-child(3) .st { animation-delay: .6s !important; } .status li:nth-child(4) .st { animation-delay: .9s !important; } .status li:nth-child(5) .st { animation-delay: 1.2s !important; } .status li:nth-child(7) .st { animation-delay: 1.5s !important; }

/* ---------- open source ---------- */
.oss-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.oss-art svg { width: 100%; overflow: visible; }
.ga-main, .ga-fork { fill: none; stroke-width: 3; stroke-linecap: round; }
.ga-main { stroke: rgba(255,255,255,.25); }
.ga-fork { stroke: url(#edgeGrad); }
.ga-commits circle { fill: var(--bg); stroke: rgba(255,255,255,.4); stroke-width: 2.5; }
.ga-commits2 circle { fill: var(--bg); stroke: var(--mint); stroke-width: 3; }
.motion .ga-commits2 circle:last-child { animation: corePulse2 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes corePulse2 { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }
.oss-art text { font: 500 14px var(--mono); fill: var(--dim); }
.oss-art text.ga-u { fill: var(--mint); }
.oss .cta { margin-top: 28px; }
.oss p.muted { margin-top: 14px; }

/* ---------- donate ---------- */
.don-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 18px; max-width: 1040px; margin: 0 auto; }
.don { position: relative; padding: 30px; border-radius: 22px; border: 1px solid var(--line2); background: linear-gradient(180deg, var(--surface2), var(--bg2)); overflow: hidden; }
.don h3 { font-size: 1.5rem; margin-bottom: 10px; }
.don p { color: var(--muted); }
.don-pp { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.don-pp .btn { margin-top: 20px; }
.don-pp .ico.big { width: 44px; height: 44px; color: var(--pink); margin-bottom: 8px; }
.motion .don-pp .ico.big { animation: beat 1.8s ease-in-out infinite; }
@keyframes beat { 0%, 40%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 25% { transform: scale(.96); } }
.tiny { font-size: .78rem; color: var(--dim) !important; margin-top: 8px; }
.hearts { position: absolute; inset: 0; pointer-events: none; }
.hearts i { position: absolute; bottom: -20px; width: 10px; height: 10px; background: var(--pink); opacity: 0; transform: rotate(45deg); border-radius: 2px; }
.hearts i::before, .hearts i::after { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: inherit; }
.hearts i::before { left: -5px; } .hearts i::after { top: -5px; }
.motion .hearts i { animation: rise 6s ease-in infinite; }
.hearts i:nth-child(1) { left: 70%; animation-delay: 0s !important; } .hearts i:nth-child(2) { left: 82%; animation-delay: 1s !important; scale: .7; }
.hearts i:nth-child(3) { left: 90%; animation-delay: 2s !important; scale: .5; } .hearts i:nth-child(4) { left: 76%; animation-delay: 3s !important; scale: .8; }
.hearts i:nth-child(5) { left: 86%; animation-delay: 4s !important; scale: .6; } .hearts i:nth-child(6) { left: 64%; animation-delay: 5s !important; scale: .5; }
@keyframes rise { 0% { opacity: 0; transform: translateY(0) rotate(45deg); } 15% { opacity: .5; } 100% { opacity: 0; transform: translateY(-260px) rotate(45deg); } }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 18px; }
.chip { font: 600 .78rem var(--mono); padding: 5px 10px; border-radius: 8px; background: rgba(94,242,201,.08); border: 1px solid rgba(94,242,201,.3); color: var(--mint); }
.chip.chip-net { background: rgba(138,123,255,.1); border-color: rgba(138,123,255,.35); color: #b9b0ff; }
.sep { color: var(--dim); font-size: .85rem; }
.addr-row { display: flex; gap: 10px; align-items: stretch; }
.addr { flex: 1; min-width: 0; display: flex; align-items: center; font-size: .92rem; padding: 14px 16px; border-radius: 12px; background: #05060a; border: 1px solid var(--line2); word-break: break-all; line-height: 1.5; color: var(--text); user-select: all; }
.copy { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--mint); background: rgba(94,242,201,.1); color: var(--mint); font: 600 .92rem var(--body); cursor: pointer; transition: background .25s, transform .2s; }
.copy:hover { background: rgba(94,242,201,.18); }
.copy:active { transform: scale(.96); }
.copy .i2 { display: none; }
.copy.done { background: var(--mint); color: #071410; }
.copy.done .i1 { display: none; } .copy.done .i2 { display: inline-block; }
.copy-status { min-height: 1.4em; font-size: .84rem; color: var(--mint) !important; margin-top: 8px; }
.warn { display: flex; gap: 12px; margin-top: 8px; padding: 16px; border-radius: 14px; border: 1px solid rgba(255,180,94,.45); background: rgba(255,180,94,.08); }
.warn .ico { width: 24px; height: 24px; color: var(--amber); }
.warn p { font-size: .9rem; color: #e9dcc7; }
.warn b { color: #ffd59c; }

/* ---------- footer ---------- */
.foot { padding: 40px 0 50px; border-top: 1px solid var(--line); overflow: hidden; }
.wordmark { font: 800 clamp(4rem, 17vw, 15rem)/.9 var(--display); letter-spacing: -0.06em; text-align: center; margin: 10px 0 40px;
  background: linear-gradient(100deg, rgba(255,255,255,.05) 20%, rgba(94,242,201,.55) 40%, rgba(138,123,255,.55) 50%, rgba(255,255,255,.05) 70%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.motion .wordmark { animation: sweep 8s linear infinite; }
@keyframes sweep { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; }
.foot-grid p { margin-bottom: 10px; font-size: .92rem; }
.foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; align-content: start; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: .92rem; width: max-content; background: linear-gradient(var(--mint), var(--mint)) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease), color .2s; }
.foot-links a:hover { color: var(--text); background-size: 100% 1px; }
.foot a:not(.foot-links a) { color: var(--text); }

/* ---------- lightbox ---------- */
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(1280px, 94vw); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(3,4,8,.85); backdrop-filter: blur(6px); }
.lightbox img { border-radius: 14px; max-height: 88vh; width: auto; margin: auto; box-shadow: 0 40px 120px rgba(0,0,0,.7); }
.lightbox[open] img { animation: lbIn .45s var(--ease); }
@keyframes lbIn { from { opacity: 0; transform: scale(.94); } }
.lb-close { position: absolute; right: -8px; top: -46px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line2); background: var(--surface); color: var(--text); font-size: 1.4rem; cursor: pointer; }

/* ---------- initial reveal state (only when motion is on and scripts run) ---------- */
.motion [data-reveal], .motion [data-hero], .motion .scroll-cue { opacity: 0; }
.motion [data-split] .wi { transform: translateY(110%); }
.motion #netNodes .node, .motion #netEdges path { opacity: 0; }

/* ---------- loops pause offscreen ---------- */
.idle, .idle * { animation-play-state: paused !important; }
.page-hidden * { animation-play-state: paused !important; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html:not(.motion) *, html:not(.motion) *::before, html:not(.motion) *::after { animation: none !important; transition-duration: .01ms !important; }
}
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
.reduce-motion .hearts { display: none; }
.reduce-motion .mt-type { width: 5ch; }
.reduce-motion .bub { opacity: 1; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .links { gap: 0; } .links a { padding: 8px 8px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .platforms { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .links { position: fixed; top: 68px; left: 0; right: 0; flex-direction: column; padding: 12px 16px 20px; background: rgba(6,7,11,.96); border-bottom: 1px solid var(--line); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); margin: 0; }
  .links.open { opacity: 1; transform: none; pointer-events: auto; }
  .links a { padding: 12px 8px; font-size: 1.05rem; }
  .links a::after { left: 8px; right: auto; width: 40px; }
  .burger { display: block; }
  .nav-actions { margin-left: auto; }
  .hero { padding-top: 96px; }
  .hero-grid, .orch-grid, .cc-grid, .inst-grid, .beta-grid, .oss-grid, .don-grid, .foot-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 20px; }
  .net-wrap { max-width: 560px; margin: 0 auto; }
  .cards, .strip { grid-template-columns: 1fr 1fr; }
  .orch-grid, .cc-grid, .oss-grid { gap: 40px; }
  .oss-art { max-width: 460px; }
}
@media (max-width: 640px) {
  .nav-actions .btn-ghost span, .motion-toggle span { display: none; }
  .cards, .strip, .engines, .platforms { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .stat:last-child { grid-column: 1 / -1; }
  .engine dl div { grid-template-columns: 1fr; gap: 2px; }
  .win-body { min-height: 400px; padding: 16px; }
  .pipe { gap: 8px; }
  .p-link { display: none; }
  .p-node { min-width: 0; flex: 1 1 40%; }
  .wave { height: 150px; }
  .status li { grid-template-columns: auto 1fr; }
  .status em { grid-column: 2; text-align: left; }
  .addr-row { flex-direction: column; }
  .copy { justify-content: center; padding: 12px; }
  .don { padding: 22px; }
  .term-body { font-size: .76rem; min-height: 260px; }
  .wz-code span { width: 34px; height: 44px; font-size: 1.2rem; }
  .engine-switch button { padding: 10px 14px; font-size: .88rem; }
  .hs-track { gap: 16px; }
  .btn { padding: 13px 18px; }
  .sub-h { margin-top: 64px; }
  .foot-links { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px), (prefers-reduced-motion: reduce) {
  .hs { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .g { scroll-snap-align: center; }
}
.reduce-motion .hs { overflow-x: auto; scroll-snap-type: x mandatory; }
.reduce-motion .g { scroll-snap-align: center; }

/* pinned gallery must fit one viewport on wide screens */
@media (min-width: 921px) {
  .motion .screens { padding: 90px 0 40px; }
  .motion .screens .sec-head { margin-bottom: 30px; }
  .g { width: min(640px, 80vw, calc((100svh - 330px) * 1.6)); }
  .g-tall { width: min(576px, 72vw, calc((100svh - 330px) * 1.42)); }
}

/* One-step install: the agent prompt with its copy button */
.qi { margin: 0 auto 34px; max-width: 920px; padding: 18px; border-radius: 18px; border: 1px solid rgba(94,242,201,.35); background: linear-gradient(180deg, rgba(94,242,201,.08), rgba(94,242,201,.02)); box-shadow: 0 0 0 1px rgba(94,242,201,.06), 0 20px 60px -30px rgba(94,242,201,.45); }
.qi-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font: 600 .95rem var(--body); color: var(--text, #e8ecf5); }
.qi-badge { padding: 3px 9px; border-radius: 999px; background: var(--mint); color: #071410; font: 700 .7rem var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.qi-box { display: flex; align-items: stretch; gap: 12px; }
.qi-box code { flex: 1; min-width: 0; padding: 14px 16px; border-radius: 12px; background: #0a0c13; border: 1px solid var(--line); font: 500 .92rem/1.5 var(--mono); color: #e8ecf5; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }
.qi-copy { flex: none; min-height: 48px; }
.qi-note { margin: 12px 2px 0; font-size: .86rem; color: var(--dim); }
.term-copy { margin-left: auto; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--dim); font: 600 .74rem var(--body); cursor: pointer; }
.term-copy:hover { color: var(--mint); border-color: rgba(94,242,201,.5); }
.term-copy.done { color: #071410; background: var(--mint); border-color: var(--mint); }
@media (max-width: 640px) { .qi-box { flex-direction: column; } .qi-copy { justify-content: center; } }
