/* Morphlo — site styles. No build step. */
:root {
  --bg: #0a0a0a; --s1: #111111; --s2: #171717; --line: #262626; --line2: #404040;
  --seg: #262626; --seg-h: #404040; --seg-p: #525252;
  --text: #fafafa; --muted: #a3a3a3; --dim: #737373; --dim-text: #8a8a8a; /* --dim for borders/icons/art; --dim-text (5.4:1) for small text */
  --accent: #8b6cf6; --accent-2: #4533db; --ok: #3fdd86; --err: #ff6b6b;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --r: 14px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body::before { /* film grain, CSS only */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; }
img, svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
b { font-weight: 600; color: var(--text); }
i { font-style: normal; }
.mono { font-family: var(--mono); font-feature-settings: "ss01" 0; letter-spacing: -.01em; }
.dim { color: var(--dim-text); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 200; background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } .hide-sm { display: none !important; } }

kbd {
  display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 7px;
  font: 500 13px/1 var(--mono); color: var(--text);
  background: linear-gradient(#1f1f1f, #161616); border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: 7px;
}
kbd.wide { font-size: 12px; padding: 0 9px; }
kbd.ico svg { width: 15px; height: 15px; }
p kbd { height: 22px; min-width: 22px; font-size: 12px; vertical-align: 1px; margin: 0 1px; }

.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--dim); flex: none; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 3px rgba(63, 221, 134, .14); }
.blink { animation: blink 1.6s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(10, 10, 10, .72); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; letter-spacing: -.02em; text-decoration: none; font-size: 16px; }
.bf { width: 20px; height: 20px; color: var(--text); }
.brand:hover .bf { color: var(--accent); }
.pill { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 7px; font-weight: 400; }
.nav nav { display: flex; align-items: center; gap: 4px; }
.nav nav a { font-size: 14px; color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; transition: color .2s, background .2s; }
.nav nav a:hover { color: var(--text); background: var(--s2); }
.nav nav a.gh { display: inline-flex; align-items: center; gap: 6px; color: var(--text); border: 1px solid var(--line); margin-left: 6px; }
.nav nav a.gh svg { width: 13px; height: 13px; color: var(--muted); transition: color .2s, transform .4s var(--spring); }
.nav nav a.gh:hover svg { color: var(--accent); transform: rotate(72deg) scale(1.1); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.grid-bg {
  position: absolute; inset: -1px 0 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; background-position: center top; opacity: .45;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 30%, transparent 75%);
}
.hero::after { content: ""; position: absolute; left: 50%; top: -260px; width: 720px; height: 520px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(139, 108, 246, .16), transparent); }
.hero .wrap { position: relative; z-index: 1; }
.hero-copy { text-align: center; max-width: 760px; margin: 0 auto; animation: rise .7s var(--ease) both; }
.hero .demo { animation: rise .8s var(--ease) .12s both; }
@keyframes rise { from { opacity: .001; transform: translateY(8px); } }
.hero-icon { width: 72px; height: 72px; margin: 0 auto 26px; border-radius: 18px; box-shadow: 0 14px 40px rgba(69, 51, 219, .35), 0 0 0 1px rgba(255,255,255,.06); }
h1 { font-size: clamp(38px, 7vw, 72px); line-height: 1.02; letter-spacing: -.045em; font-weight: 600; text-wrap: balance; }
.lead { font-size: clamp(17px, 2.1vw, 20px); color: var(--muted); margin: 20px auto 30px; max-width: 34em; text-wrap: balance; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px; border-radius: 12px; text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap; transition: transform .25s var(--ease), background .2s, border-color .2s, box-shadow .25s; }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--text); color: #0a0a0a; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 8px 24px rgba(0,0,0,.4); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 10px 30px rgba(139, 108, 246, .25); }
.btn-primary:active { transform: translateY(0) scale(.98); }
.btn.sm { height: 38px; font-size: 14px; padding: 0 14px; margin-top: 14px; }
.btn-cmd { background: var(--s1); border: 1px solid var(--line); font-size: 14px; color: var(--text); padding: 0 8px 0 16px; gap: 12px; }
.btn-cmd:hover { border-color: var(--line2); }
.copy-ico { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 9px; border-radius: 8px; background: var(--s2); color: var(--muted); font-size: 12px; transition: color .2s, background .2s; }
.copy-ico svg { width: 13px; height: 13px; }
.btn-cmd:hover .copy-ico { color: var(--text); }
.copied .copy-ico, .copy.copied { color: var(--ok) !important; }
.meta { margin-top: 22px; color: var(--dim-text); font-size: 12.5px; }
.meta i { margin: 0 6px; color: var(--line2); }
.meta span { white-space: nowrap; }

/* ---------- demo ---------- */
.demo { margin: 56px auto 0; max-width: 980px; }
.demo-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.switch { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--s1); font-size: 13px; color: var(--muted); transition: border-color .2s; }
.switch:hover { border-color: var(--line2); }
.switch b { font-weight: 500; color: var(--text); }
.track { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--seg); transition: background .3s var(--ease); }
.knob { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .4s var(--spring), background .3s; }
.switch[aria-checked="true"] .track { background: var(--accent); }
.switch[aria-checked="true"] .knob { transform: translateX(16px); background: #fff; }
.switch[aria-checked="true"] b { color: var(--accent); }
.switch.pulse .track { animation: pulse .6s var(--ease); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(139,108,246,.6); } 100% { box-shadow: 0 0 0 10px rgba(139,108,246,0); } }
.demo-keys { display: flex; gap: 6px; }
.kbtn { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; background: var(--s1); transition: color .2s, border-color .2s; }
.kbtn:hover { color: var(--text); border-color: var(--line2); }

.scene {
  position: relative; display: grid; grid-template-columns: 1fr 1.12fr; gap: 16px; padding: 44px 18px 18px;
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  background: radial-gradient(120% 90% at 20% 0%, #1b1730 0%, #0f0e16 45%, #0b0b0d 100%);
  box-shadow: 0 40px 120px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.04);
}
.menubar { position: absolute; top: 0; left: 0; right: 0; height: 26px; display: flex; justify-content: space-between; align-items: center; padding: 0 14px; font-size: 11.5px; color: #d4d4d4; background: rgba(10,10,10,.55); border-bottom: 1px solid rgba(255,255,255,.05); }
.menubar b { font-weight: 500; }
.mb-right { display: flex; align-items: center; gap: 12px; }
.mb-bf { width: 15px; height: 15px; color: var(--dim); transition: color .3s; }
.is-on .mb-bf { color: var(--accent); filter: drop-shadow(0 0 6px rgba(139,108,246,.7)); }

.win { position: relative; background: rgba(23, 23, 23, .92); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.win-top { display: flex; align-items: center; gap: 12px; height: 32px; padding: 0 12px; border-bottom: 1px solid var(--line); font-size: 11.5px; color: var(--dim-text); flex: none; }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #2e2e2e; }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 8px; }
.tile { position: relative; aspect-ratio: 1; border-radius: 5px; overflow: hidden; }
.g1 { background: linear-gradient(160deg, #3a4a5e, #1c2633); }
.g2 { background: radial-gradient(60% 50% at 70% 35%, #f3c58a 0%, rgba(243,197,138,0) 60%), linear-gradient(170deg, #d9875e 0%, #8c4a6c 55%, #2c2346 100%); }
.g3 { background: linear-gradient(200deg, #33403a, #161d19); }
.g4 { background: radial-gradient(70% 60% at 30% 70%, #4fa0b8 0%, rgba(79,160,184,0) 65%), linear-gradient(180deg, #1e3a52 0%, #0f1d2b 100%); }
.g5 { background: linear-gradient(140deg, #4a3d33, #1f1915); }
.g6 { background: linear-gradient(120deg, #2e2b45, #15131f); }
.g7 { background: linear-gradient(160deg, #3d3d3d, #1a1a1a); }
.g8 { background: linear-gradient(190deg, #43354a, #1b1520); }
.g9 { background: linear-gradient(150deg, #2d4046, #121a1d); }
.tile.drag { cursor: grab; touch-action: none; transition: transform .3s var(--ease), opacity .2s; }
.tile.drag:hover { transform: scale(1.03); }
.tile.drag.lifted { opacity: .35; transform: scale(.96); cursor: grabbing; }
.tcap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 5px; font-size: 9.5px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbadge { display: none; }
.tdur { position: absolute; top: 5px; right: 6px; font-size: 9.5px; color: #fff; background: rgba(0,0,0,.45); padding: 1px 5px; border-radius: 4px; }
.hint { position: absolute; inset: 0; border-radius: 5px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.0); animation: hint 2.8s var(--ease) infinite; pointer-events: none; }
.tile[data-kind="mov"] .hint { animation-delay: 1.4s; }
@keyframes hint { 0%, 60%, 100% { box-shadow: inset 0 0 0 2px rgba(255,255,255,0); } 30% { box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); } }
.demo.auto .hint, .demo.touched .hint { animation: none; }

.chat { min-height: 300px; }
.chat.hot { border-color: var(--line2); }
.chat.hot .thread { background: rgba(255,255,255,.025); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.18); }
.is-on .chat.hot .thread { box-shadow: inset 0 0 0 1.5px rgba(139,108,246,.6); }
.thread { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 14px; margin: 8px; border-radius: 10px; overflow: hidden; transition: background .2s, box-shadow .2s, padding .35s var(--ease); }
.toast.show ~ .thread { padding-top: 52px; }
.empty { margin: auto; color: var(--dim-text); font-size: 12px; border: 1px dashed var(--line2); border-radius: 10px; padding: 14px 18px; }
.msg { align-self: flex-end; max-width: 88%; animation: pop .5s var(--spring) both; }
.msg.sys { align-self: flex-end; font-size: 11px; color: var(--dim-text); animation-delay: .1s; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.94); } to { opacity: 1; transform: none; } }
.att { display: flex; align-items: center; gap: 10px; background: var(--s1); border: 1px solid var(--line); border-radius: 12px; padding: 7px 12px 7px 7px; }
.att-th { position: relative; width: 52px; height: 52px; border-radius: 8px; flex: none; overflow: hidden; }
.att-meta { display: flex; flex-direction: column; font-size: 11.5px; line-height: 1.4; }
.att-meta .n { color: var(--text); }
.att-meta .s { color: var(--dim-text); }
.att.broken { border-color: rgba(255,107,107,.45); }
.att.broken .att-th { background: #1a1212; border: 1px dashed rgba(255,107,107,.5); display: grid; place-items: center; color: var(--err); font: 600 18px var(--mono); }
.att.broken .s { color: var(--err); }
.att.still .att-th::after { content: "1 frame"; position: absolute; inset: auto 0 0; font: 500 9px var(--mono); text-align: center; color: #fff; background: rgba(0,0,0,.6); padding: 2px 0; }
.att.still .att-th { filter: grayscale(.5) brightness(.8); }
.att.ok .att-th { width: 88px; height: 88px; }
.ok-badge { position: absolute; right: 4px; bottom: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--ok); color: #0a0a0a; display: grid; place-items: center; animation: pop .45s var(--spring) .2s both; }
.ok-badge svg { width: 11px; height: 11px; }
.att.vid { flex-direction: column; align-items: stretch; padding: 7px; gap: 7px; width: 220px; max-width: 100%; }
.att.vid .att-th { width: 100%; height: 108px; }
.play { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.3); display: grid; place-items: center; }
.play::after { content: ""; margin-left: 3px; border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.vbar { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--muted); padding: 0 3px 2px; }
.vbar .bar { flex: 1; height: 3px; border-radius: 3px; background: var(--line2); overflow: hidden; }
.vbar .bar i { display: block; height: 100%; width: 0; background: var(--text); animation: prog 3.2s linear .4s forwards; }
@keyframes prog { to { width: 100%; } }
.vtag { display: flex; justify-content: space-between; font-size: 11px; padding: 0 3px; }
.vtag .s { color: var(--ok); }

.toast { position: absolute; top: 42px; left: 50%; z-index: 5; transform: translate(-50%, -12px); opacity: 0; pointer-events: none; white-space: nowrap;
  font-size: 12px; color: #ffd6d6; background: #2a1414; border: 1px solid rgba(255,107,107,.5); border-radius: 9px; padding: 7px 12px; transition: opacity .3s, transform .45s var(--spring); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast::before { content: "!"; display: inline-grid; place-items: center; width: 15px; height: 15px; margin-right: 8px; border-radius: 50%; background: var(--err); color: #1a0a0a; font-weight: 700; font-size: 10px; }

.composer { display: flex; align-items: center; gap: 10px; margin: 0 8px 8px; padding: 9px 9px 9px 12px; background: var(--s1); border: 1px solid var(--line); border-radius: 12px; font-size: 13.5px; color: var(--dim-text); flex: none; }
.composer .plus { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line2); display: grid; place-items: center; font-size: 14px; line-height: 1; }
.composer .ph { flex: 1; }
.composer .send { width: 26px; height: 26px; border-radius: 8px; background: var(--seg); color: var(--muted); display: grid; place-items: center; font-size: 13px; }

.ghost { position: absolute; left: 0; top: 0; z-index: 20; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 6px; opacity: 0; will-change: transform; }
.ghost.show { opacity: 1; }
.ghost.drop { transition: opacity .2s; opacity: 0; }
.g-thumb { width: 64px; height: 64px; border-radius: 9px; box-shadow: 0 18px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.15); animation: lift .35s var(--spring); }
@keyframes lift { from { transform: scale(.8); } }
.g-label { font-size: 11px; color: var(--text); background: rgba(17,17,17,.92); border: 1px solid var(--line2); border-radius: 7px; padding: 3px 8px; white-space: nowrap; }
.g-ext { display: inline-block; border-radius: 4px; padding: 0 1px; }
.g-ext.flash { color: #fff; animation: flash 1s var(--ease); }
.morphed .g-ext { color: var(--accent); }
.morphed .g-label { border-color: rgba(139,108,246,.7); box-shadow: 0 0 0 4px rgba(139,108,246,.15); }
@keyframes flash { 0% { background: var(--accent); transform: scale(1.25); } 100% { background: transparent; transform: none; } }
.g-badge { display: none; font-size: 10px; color: var(--accent); }
.ghost.full .g-badge { display: block; animation: pop .4s var(--spring); }

.cursor { position: absolute; left: 0; top: 0; width: 20px; height: 24px; z-index: 30; pointer-events: none; opacity: 0; transition: opacity .3s; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }
.cursor.show { opacity: 1; }
.demo-hint { margin-top: 12px; text-align: center; font-size: 12px; color: var(--dim-text); }

/* ---------- sections ---------- */
.sec { padding: 112px 0 40px; position: relative; }
.sec-head { max-width: 640px; margin-bottom: 44px; }
.eyebrow { font-size: 12px; color: var(--dim-text); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
h2 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.05; letter-spacing: -.04em; font-weight: 600; text-wrap: balance; }
.sub { margin-top: 16px; color: var(--muted); font-size: 17px; max-width: 36em; }
.fine { color: var(--dim-text); font-size: 13.5px; margin-top: 18px; max-width: 46em; }

/* flow */
.flow { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--s1); }
.flow-k { font-size: 11px; color: var(--dim-text); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 13px; color: var(--text); background: var(--s2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 11px; transition: border-color .2s, transform .3s var(--ease); }
.chip:hover { border-color: var(--line2); transform: translateY(-1px); }
.chip-a { color: var(--accent); border-color: rgba(139,108,246,.35); }
.flow-mid { display: flex; align-items: center; gap: 0; width: 140px; }
.flow-line { flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--line2) 0 4px, transparent 4px 8px); background-size: 16px 1px; animation: dash 1s linear infinite; }
@keyframes dash { to { background-position: 16px 0; } }
.flow-node { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line2); background: var(--s2); display: grid; place-items: center; color: var(--accent); flex: none; }
.flow-node svg { width: 22px; height: 22px; }
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--line); }
.rule { background: var(--bg); padding: 22px; color: var(--muted); font-size: 14.5px; }
.rule-k { display: flex; align-items: center; gap: 9px; font-size: 11.5px; color: var(--text); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }

/* convert */
.conv { display: grid; grid-template-columns: 1fr; grid-template-areas: "tabs" "stage" "out"; justify-items: center; gap: 22px; padding: 28px 20px; border: 1px solid var(--line); border-radius: 18px; background: radial-gradient(60% 60% at 50% 45%, #141414, var(--bg)); }
.conv-tabs { grid-area: tabs; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ftab { font-size: 12.5px; color: var(--muted); padding: 7px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--s1); transition: color .2s, border-color .2s, background .2s; }
.ftab:hover { color: var(--text); border-color: var(--line2); }
.ftab[aria-selected="true"] { color: var(--text); background: var(--s2); border-color: var(--line2); box-shadow: inset 0 -2px 0 var(--accent); }
.conv-stage { grid-area: stage; width: min(100%, 400px); aspect-ratio: 1; }
.wheel { width: 100%; height: 100%; overflow: visible; }
.wheel .seg { cursor: pointer; transform-origin: 0 0; animation: segIn .55s var(--spring) both; outline: none; }
.wheel .seg path { fill: var(--seg); transition: fill .18s; }
.wheel .seg text { fill: var(--muted); font-family: var(--mono); font-size: 13px; text-anchor: middle; dominant-baseline: central; pointer-events: none; transition: fill .18s; }
.wheel .seg text.sm { font-size: 9.5px; fill: var(--dim-text); }
.wheel .seg:hover path, .wheel .seg:focus-visible path { fill: var(--seg-h); }
.wheel .seg:hover text, .wheel .seg:focus-visible text { fill: var(--text); }
.wheel .seg:focus-visible path { stroke: var(--accent); stroke-width: 1.5; }
.wheel .seg.pressed path { fill: var(--seg-p); }
.wheel .seg.done text:not(.sm) { fill: var(--accent); }
.wheel .seg.dim path, .wheel .seg.dim:hover path { fill: var(--seg); }
.wheel .seg.dim text, .wheel .seg.dim:hover text, .wheel .seg.dim text.sm { fill: #525252; }
.wheel .seg.dim.done text:not(.sm) { fill: var(--muted); }
.wheel .sep { stroke: var(--seg-p); stroke-width: 1; pointer-events: none; }
.wheel .hub-n { fill: var(--text); font-family: var(--mono); font-size: 12.5px; text-anchor: middle; }
.wheel .hub-s { fill: var(--dim-text); font-family: var(--mono); font-size: 11px; text-anchor: middle; }
.wheel .hub-s.on { fill: var(--accent); }
@keyframes segIn { from { opacity: 0; transform: scale(.86) rotate(-8deg); } to { opacity: 1; transform: none; } }
.conv-out { grid-area: out; width: min(100%, 560px); font-size: 13px; color: var(--muted); background: var(--s1); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; min-height: 44px; overflow-wrap: anywhere; }
.conv-out .prompt { color: var(--dim-text); }
.conv-out .okc { color: var(--ok); }
.conv-out .acc { color: var(--accent); }
.caret { display: inline-block; width: 7px; height: 14px; margin-left: 2px; vertical-align: -2px; background: var(--muted); animation: blink 1s steps(2, jump-none) infinite; }

.ways { display: grid; grid-template-columns: 1fr 260px; gap: 18px 48px; margin-top: 56px; align-items: start; }
.ways-h { grid-column: 1 / -1; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.ways-list { border-top: 1px solid var(--line); counter-reset: w; }
.ways-list li { display: grid; grid-template-columns: 160px 1fr; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15px; transition: background .2s; }
.ways-list li:hover { background: linear-gradient(90deg, rgba(255,255,255,.02), transparent); }
.keys { display: flex; gap: 5px; flex-wrap: wrap; }
.real { text-align: center; }
.real img { width: 100%; max-width: 260px; height: auto; margin: 0 auto; border-radius: 50%; box-shadow: 0 30px 80px rgba(0,0,0,.7); }
.real figcaption { margin-top: 12px; font-size: 11.5px; color: var(--dim-text); }

@media (min-width: 901px) {
  .conv { grid-template-columns: 380px 1fr; grid-template-areas: "stage tabs" "stage out"; grid-template-rows: 1fr auto; justify-items: stretch; align-items: start; gap: 18px 48px; padding: 36px 40px; }
  .conv-stage { width: 380px; align-self: center; }
  .conv-tabs { flex-direction: column; flex-wrap: nowrap; align-self: center; gap: 6px; max-width: 360px; }
  .ftab { text-align: left; padding: 10px 14px; }
  .ftab[aria-selected="true"] { box-shadow: inset 2px 0 0 var(--accent); }
  .conv-out { width: 100%; align-self: end; }
}

/* watch */
.sec-watch { padding-top: 72px; }
.film { margin: 0; }
.film-frame { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 16 / 9; box-shadow: 0 40px 120px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.02) inset; }
.film-frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.film-frame video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.film-play { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-start; padding: 22px; background: linear-gradient(180deg, transparent 55%, rgba(10,10,10,.55)); }
.film-pill { display: inline-flex; align-items: center; gap: 12px; padding: 7px 16px 7px 7px; border-radius: 999px; background: rgba(10,10,10,.72); border: 1px solid var(--line2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: border-color .25s, transform .45s var(--spring); }
.film-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--accent); box-shadow: 0 0 0 5px rgba(139,108,246,.18), 0 10px 30px rgba(69,51,219,.45); transition: box-shadow .3s; }
.film-btn svg { width: 20px; height: 20px; margin-left: 3px; }
.film-txt { font-size: 14px; font-weight: 500; color: var(--text); letter-spacing: -.01em; }
.film-len { font-size: 12px; color: var(--dim-text); }
.film-play:hover .film-pill, .film-play:focus-visible .film-pill { border-color: var(--accent); transform: translateY(-2px); }
.film-play:hover .film-btn, .film-play:focus-visible .film-btn { box-shadow: 0 0 0 8px rgba(139,108,246,.2), 0 10px 36px rgba(69,51,219,.6); }
.film-play:focus-visible { outline-offset: -4px; border-radius: 18px; }
.film-play[hidden] { display: none; }
.film-err { margin-top: 12px; text-align: center; font-size: 14px; color: var(--err); }
.film-err a { color: var(--text); }
@media (max-width: 600px) { .film-frame { border-radius: 12px; } .film-play { padding: 12px; } .film-btn { width: 36px; height: 36px; } .film-btn svg { width: 16px; height: 16px; } .film-txt { display: none; } .film-pill { gap: 8px; padding: 5px 12px 5px 5px; } }
@media (prefers-reduced-motion: reduce) { .film-pill, .film-btn { transition: none; } }

/* privacy */
.priv { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.claims { margin-top: 30px; display: grid; gap: 20px; }
.claims { gap: 0; border-top: 1px solid var(--line); }
.claims li { display: flex; gap: 18px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.claims .num { flex: none; font-size: 12px; color: var(--dim-text); }
.claims b { display: block; font-size: 17px; letter-spacing: -.01em; }
.claims div span { color: var(--muted); font-size: 14.5px; }
.monitor, .term { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.mon-top, .term-top { display: flex; align-items: center; gap: 14px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--dim-text); background: var(--s2); }
.mon-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.mon-stats > div { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.mon-stats > div + div { border-left: 1px solid var(--line); }
.mon-stats .k { font-size: 11px; color: var(--dim-text); text-transform: uppercase; letter-spacing: .06em; }
.mon-stats .v { font-size: 24px; color: var(--text); display: flex; align-items: center; gap: 10px; letter-spacing: -.02em; }
.mon-log { height: 236px; overflow: hidden; padding: 10px 0; font-size: 12px; display: flex; flex-direction: column; justify-content: flex-end; -webkit-mask-image: linear-gradient(transparent, #000 35%); mask-image: linear-gradient(transparent, #000 35%); }
.mon-log li { display: grid; grid-template-columns: 70px 100px 1fr auto; gap: 10px; padding: 4px 16px; color: var(--muted); white-space: nowrap; animation: logIn .5s var(--ease) both; }
.mon-log li .t { color: var(--dim-text); }
.mon-log li .f { color: var(--text); }
.mon-log li .a { overflow: hidden; text-overflow: ellipsis; }
.mon-log li .l { color: var(--ok); font-size: 11px; }
@keyframes logIn { from { opacity: 0; transform: translateY(8px); } }
.mon-foot { display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); flex-wrap: wrap; }

/* formats explorer */
.fx { display: grid; grid-template-columns: 1.05fr 1fr; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--s1); transition: border-color .2s, box-shadow .2s; }
.fx.over { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(139,108,246,.15); }
.fx-in { padding: 26px; border-right: 1px solid var(--line); }
.fx-k { font-size: 11px; color: var(--dim-text); text-transform: uppercase; letter-spacing: .08em; }
.fx-ask { display: block; }
.fx-field { display: flex; align-items: center; margin-top: 10px; height: 52px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 12px; background: var(--bg); transition: border-color .2s, box-shadow .2s; }
.fx-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139,108,246,.18); }
.fx-dot { font-size: 22px; color: var(--accent); margin-right: 2px; }
.fx-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--text); font-size: 20px; letter-spacing: -.01em; }
.fx-field input::placeholder { color: var(--dim-text); font-size: 15px; }
.fx-hint { margin-top: 10px; font-size: 12.5px; color: var(--dim-text); }
.fx-groups { margin-top: 20px; display: grid; gap: 12px; }
.fx-g { display: grid; grid-template-columns: 78px 1fr; gap: 10px; align-items: start; }
.fx-g .fx-k { padding-top: 6px; }
.fx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fx-chip { font-family: var(--mono); font-size: 12px; color: var(--muted); padding: 5px 9px; border-radius: 7px; border: 1px solid var(--line); background: var(--s2); transition: color .15s, border-color .15s, background .15s, transform .25s var(--ease); }
.fx-chip:hover { color: var(--text); border-color: var(--line2); transform: translateY(-1px); }
.fx-chip[aria-pressed="true"] { color: #fff; background: var(--accent-2); border-color: var(--accent); }
.fx-out { padding: 26px; display: flex; flex-direction: column; gap: 14px; background: radial-gradient(80% 70% at 70% 0%, #151320, var(--s1)); min-width: 0; }
.fx-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fx-file { font-size: 18px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-kind { flex: none; font-size: 11px; color: var(--accent); border: 1px solid rgba(139,108,246,.35); border-radius: 999px; padding: 3px 9px; text-transform: uppercase; letter-spacing: .06em; }
.fx-kind.bad { color: var(--err); border-color: rgba(255,107,107,.35); }
.fx-targets { display: flex; flex-wrap: wrap; gap: 8px; min-height: 40px; }
.fx-t { opacity: 0; transform: translateY(6px) scale(.96); animation: fxIn .38s var(--spring) forwards; }
.fx-t button { display: inline-flex; align-items: baseline; gap: 6px; font-size: 13.5px; color: var(--text); padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line2); background: var(--s2); transition: border-color .15s, background .15s, color .15s; }
.fx-t button:hover { border-color: var(--accent); }
.fx-t button small { font-family: var(--mono); font-size: 11px; color: var(--dim-text); }
.fx-t button[aria-pressed="true"] { background: rgba(139,108,246,.16); border-color: var(--accent); }
.fx-t button[aria-pressed="true"] small { color: var(--accent); }
.fx-t.same button { color: var(--dim-text); border-style: dashed; }
@keyframes fxIn { to { opacity: 1; transform: none; } }
.fx-msg { font-size: 14px; color: var(--muted); }
.fx-cli { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.fx-cli code { flex: 1; min-width: 0; font-size: 12px; color: var(--muted); overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.fx-cli code::-webkit-scrollbar { display: none; }
.fx-cli code .p { margin-right: 6px; }
.fx-cli code b { color: var(--accent); font-weight: 500; }
.fx-note { font-size: 11.5px; color: var(--dim-text); }
.fx[data-state="none"] .fx-cli, .fx[data-state="none"] .fx-note, .fx[data-state="none"] #fx-to-k { display: none; }
@media (max-width: 900px) { .fx { grid-template-columns: 1fr; } .fx-in { border-right: 0; border-bottom: 1px solid var(--line); } }
@media (max-width: 600px) { .fx-in, .fx-out { padding: 18px; } .fx-g { grid-template-columns: 1fr; gap: 6px; } .fx-g .fx-k { padding-top: 0; } }
@media (prefers-reduced-motion: reduce) { .fx-t { animation: none; opacity: 1; transform: none; } }

/* star prompt (under the video) */
.star { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--s1); }
.star-txt { font-size: 14.5px; color: var(--muted); }
.star-btn { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 10px; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--bg); background: var(--text); transition: transform .3s var(--spring), box-shadow .2s; }
.star-btn svg { width: 15px; height: 15px; color: #e3b341; transition: transform .45s var(--spring); }
.star-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,255,255,.08); }
.star-btn:hover svg { transform: rotate(72deg) scale(1.15); }
@media (max-width: 600px) { .star { flex-direction: column; align-items: stretch; text-align: center; } .star-btn { justify-content: center; } }
.c { color: var(--dim-text); }
.p { color: var(--accent); user-select: none; }

/* install */
.itabs { display: flex; gap: 2px; margin-left: 4px; }
.itab { font-size: 12.5px; color: var(--dim-text); padding: 6px 12px; border-radius: 7px; transition: color .2s, background .2s; }
.itab:hover { color: var(--text); }
.itab[aria-selected="true"] { color: var(--text); background: var(--line); }
.ipanel { padding: 18px; animation: logIn .4s var(--ease); }
.line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0; }
.line code { font-size: 13px; color: var(--text); overflow-wrap: anywhere; line-height: 1.7; }
.copy { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--s2); transition: color .2s, border-color .2s; }
.copy:hover { color: var(--text); border-color: var(--line2); }
.copy svg { width: 13px; height: 13px; }
.un { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--dim-text); }
.perms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 28px; }
.perm { font-size: 14.5px; color: var(--muted); }
.perm .k { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim-text); margin-bottom: 8px; }

/* faq */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 0 56px; align-items: start; }
.faq-wrap .sec-head { margin-bottom: 0; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 2px; font-size: 17px; font-weight: 500; letter-spacing: -.01em; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 20px/1 var(--mono); color: var(--dim); transition: transform .35s var(--spring), color .2s; }
.faq summary:hover::after { color: var(--text); }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.ans { overflow: hidden; color: var(--muted); font-size: 15.5px; padding: 0 2px 22px; max-width: 44em; }
.ans code { font-size: 13px; color: var(--text); background: var(--s2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }

/* closing band */
.close { padding: 128px 0 0; text-align: center; }
.close-in { position: relative; padding: 64px 24px 68px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  background: radial-gradient(70% 90% at 50% 0%, rgba(139,108,246,.12), transparent 70%), var(--s1); }
.close-icon { width: 56px; height: 56px; margin: 0 auto 24px; border-radius: 14px; box-shadow: 0 12px 34px rgba(69,51,219,.35), 0 0 0 1px rgba(255,255,255,.06); }
.close h2 { max-width: 14em; margin: 0 auto 28px; }

/* footer */
.foot { margin-top: 72px; border-top: 1px solid var(--line); padding: 36px 0 48px; }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.foot-brand .dim { font-weight: 400; font-size: 12px; margin-left: 6px; }
.foot-links { font-size: 12.5px; color: var(--dim-text); }
.foot-links i { margin: 0 8px; color: var(--line2); }
.foot-links a { color: var(--muted); text-decoration: none; transition: color .2s; }
.foot-links a:hover { color: var(--accent); }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .priv { grid-template-columns: 1fr; gap: 40px; }
  .ways { grid-template-columns: 1fr; }
  .real { display: block; max-width: 280px; margin: 24px auto 0; }
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-wrap .sec-head { margin-bottom: 44px; }
  .rules, .perms { grid-template-columns: 1fr; }
  .perms { gap: 18px; }
}
@media (max-width: 720px) {
  .hero { padding-top: 48px; }
  .scene { grid-template-columns: 1fr; padding: 38px 10px 10px; gap: 10px; }
  .pgrid { grid-template-columns: repeat(3, 1fr); padding: 6px; }
  .tcap { display: none; }
  .tbadge { display: block; position: absolute; left: 5px; bottom: 5px; font-size: 9px; line-height: 1; color: #fff; background: rgba(0,0,0,.55); padding: 3px 5px; border-radius: 4px; }
  .tile.drag { box-shadow: inset 0 0 0 1px rgba(139,108,246,.55); }
  .pgrid .g7, .pgrid .g8, .pgrid .g9 { display: none; }
  .tdur { font-size: 8.5px; top: 3px; right: 3px; padding: 0 3px; }
  .chat { min-height: 270px; }
  .flow { grid-template-columns: 1fr; padding: 20px; }
  .flow-mid { width: 100%; height: 40px; flex-direction: column; width: 44px; height: 92px; margin: 0 auto; }
  .flow-line { width: 1px; height: auto; background: repeating-linear-gradient(180deg, var(--line2) 0 4px, transparent 4px 8px); background-size: 1px 16px; animation-name: dashv; }
  @keyframes dashv { to { background-position: 0 16px; } }
  .ways-list li { grid-template-columns: 1fr; gap: 10px; }
  .mon-log li { grid-template-columns: 92px 1fr auto; }
  .mon-log li .t { display: none; }
  .mon-stats .v { font-size: 19px; }
  .sec { padding-top: 88px; }
  .close { padding-top: 96px; }
  .close-in { padding: 48px 16px 52px; }
}
@media (max-width: 600px) {
  .nav nav a { padding: 6px 8px; }
  .nav nav a.gh { margin-left: 2px; }
  .demo-bar { justify-content: center; }
  .meta i { margin: 0 3px; }
  .btn-cmd { font-size: 13px; }
  .line { flex-direction: column; align-items: flex-start; }
  .mon-stats > div { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
