:root {
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --gray: #f5f5f7;
  --blue: #0071e3;
  --link: #0066cc;
  --app-blue: #5ab3ff;
  --green: #32d74b;
  --amber: #ff9f0a;
  --ease: cubic-bezier(.28, .11, .32, 1);
  --font: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --text: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: #fff; color: var(--fg); -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { font-family: var(--text); font-size: 17px; line-height: 1.47; letter-spacing: -.022em; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); font-size: .9em; }

.dark { --fg: #f5f5f7; --muted: #86868b; --line: #424245; background: #000; color: var(--fg); }
.sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

h1, h2, h3 { font-family: var(--font); font-weight: 600; }
h2 { font-size: clamp(40px, 5.6vw, 80px); line-height: 1.05; letter-spacing: -.015em; }
h3 { font-size: 24px; line-height: 1.17; letter-spacing: .009em; }
.sec-title { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -.003em; }

/* Logo injected as SVG */
.mark { display: inline-block; width: 22px; height: 22px; flex: none; }
.mark svg { width: 100%; height: 100%; display: block; }
.media-img .mark { color: #f5f5f7; }

/* Buttons and links */
.ctas { display: flex; gap: 32px; align-items: center; justify-content: center; margin-top: 34px; }
.btn { display: inline-block; background: var(--blue); color: #fff; font-size: 17px; line-height: 1.18; padding: 11px 22px; border-radius: 980px; transition: background .2s; }
.btn:hover { background: #0077ed; }
.btn-lg { font-size: 17px; padding: 14px 28px; }
.link { color: var(--link); font-size: 17px; }
.dark .link { color: #2997ff; }
.link::after { content: "›"; display: inline-block; margin-left: 4px; font-size: 1.15em; line-height: 1; }
.link:hover { text-decoration: underline; }

/* Navigation */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: 52px; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, .12); color: var(--fg); transition: background .4s, color .4s, border-color .4s; }
.nav-inner { max-width: 1024px; height: 100%; margin: 0 auto; padding: 0 22px; display: flex; align-items: center; }
.brand { font-family: var(--font); font-weight: 600; font-size: 21px; letter-spacing: .011em; margin-right: auto; }
.nav-links { display: flex; gap: 24px; font-size: 12px; letter-spacing: -.01em; margin-right: 24px; }
.nav-links a { opacity: .8; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-cta { font-size: 12px; background: var(--blue); color: #fff; padding: 4px 11px; border-radius: 980px; }

/* 1. Hero */
.hero { height: 400vh; position: relative; }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-copy { position: absolute; left: 0; right: 0; bottom: 11vh; text-align: center; padding: 0 24px;
  opacity: var(--copy-o, 1); transform: translateY(var(--copy-y, 0)); }
.hero-copy h1 { font-size: clamp(64px, 8vw, 112px); line-height: 1; letter-spacing: -.02em; }
.hero-sub { margin-top: 16px; font-family: var(--font); font-size: clamp(21px, 2.1vw, 28px); line-height: 1.14; letter-spacing: .007em; color: #86868b; }
.hero-copy > * { opacity: 0; transform: translateY(20px); animation: rise 1.2s var(--ease) forwards; }
.hero-copy > :nth-child(1) { animation-delay: 1.2s; }
.hero-copy > :nth-child(2) { animation-delay: 1.35s; }
.hero-copy > :nth-child(3) { animation-delay: 1.5s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.arc-labels { position: absolute; inset: 0; pointer-events: none; }
.arc-label { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; gap: 2px; white-space: nowrap; opacity: 0; will-change: transform, opacity; }
.arc-label strong { font-family: var(--font); font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; letter-spacing: .004em; }
.arc-label span { font-size: 17px; color: #86868b; }

.hero-fade { position: absolute; inset: 0; background: #000; opacity: var(--fade, 0); pointer-events: none; }

/* 2. Product: an animated tour of the app window (dark appearance, values from Appearance.swift) */
.product { height: 260vh; position: relative; }
.product .sticky { display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 44px; }
.product-head { text-align: center; position: absolute; top: 13vh; left: 0; right: 0; padding: 0 24px; z-index: 2;
  opacity: calc(1 - var(--k, 0) * 1.8); transform: translateY(calc(var(--k, 0) * -60px)); }
.stage { perspective: 2200px; perspective-origin: 50% 0%; }
.tilt {
  transform: translateY(calc(30vh - var(--k, 0) * 30vh)) rotateX(calc(46deg - var(--k, 0) * 46deg)) scale(calc(.78 + var(--k, 0) * .22));
  transform-origin: 50% 100%; will-change: transform;
}
.mac-fit { width: calc(1280px * var(--s, .9)); height: calc(780px * var(--s, .9)); position: relative; }

.mac {
  --fg: #d4d4d4; --fg2: rgba(255, 255, 255, .65); --fg3: rgba(255, 255, 255, .5);
  --surface: #1e1e1e; --chrome: #222; --elev: #2c2c2c; --sep: rgba(255, 255, 255, .08); --sep2: rgba(255, 255, 255, .04); --sep3: rgba(255, 255, 255, .16);
  --hover: rgba(255, 255, 255, .07); --sel: rgba(255, 255, 255, .08); --accent: #339cff;
  --add: rgb(64, 201, 119); --del: rgb(255, 103, 100); --addn: rgb(81, 146, 64); --deln: rgb(225, 85, 79);
  --ease: cubic-bezier(.28, .11, .32, 1);
  position: absolute; left: 0; top: 0; width: 1280px; height: 780px; transform: scale(var(--s, .9)); transform-origin: 0 0;
  background: var(--surface); color: var(--fg); border-radius: 12px; overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif; font-size: 14px; line-height: 1.36; letter-spacing: 0;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(255, 255, 255, .13), 0 22px 70px 4px rgba(0, 0, 0, .28), 0 50px 100px -20px rgba(0, 0, 0, .3);
  display: flex; flex-direction: column; cursor: default; user-select: none; -webkit-user-select: none;
}
.mac.instant, .mac.instant * { transition: none !important; }
.mac svg.ic { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.mac svg.ic.fill { fill: currentColor; stroke: none; }
.mac .xs svg.ic, .mac svg.ic.xs { font-size: 9px; }
.mac .sp { flex: 1; }
.mac code { font-family: var(--mono); font-size: .88em; background: rgba(255, 255, 255, .07); padding: 1px 5px; border-radius: 5px; }
.mac .add { color: var(--addn); font-style: normal; }
.mac .del { color: var(--deln); font-style: normal; }

/* Title bar */
.m-title { height: 44px; flex: none; display: flex; align-items: center; background: #262626; border-bottom: 1px solid rgba(0, 0, 0, .35); font-size: 13px; position: relative; z-index: 3; }
.m-tl { width: 313px; display: flex; align-items: center; height: 100%; flex: none; }
.mac .lights { position: absolute; left: 20px; display: flex; gap: 8px; }
.mac .lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .2); }
.mac .lights i:nth-child(2) { background: #febc2e; }
.mac .lights i:nth-child(3) { background: #28c840; }
.m-tb { display: flex; gap: 4px; margin-left: 84px; color: var(--fg2); font-size: 14px; }
.mac i[data-i] { display: inline-flex; align-items: center; justify-content: center; font-style: normal; }
.mac .m-tb i, .mac .m-tr > i { width: 32px; height: 30px; display: grid; place-items: center; border-radius: 8px; }
.m-tb i:nth-child(2) { opacity: .4; }
.m-vdiv { width: 1px; height: 20px; background: rgba(255, 255, 255, .1); margin-left: auto; }
.m-vdiv.s { height: 18px; margin: 0 2px; background: var(--sep2); }
.m-proj { display: flex; align-items: center; gap: 8px; padding-left: 16px; color: var(--fg); }
.m-tr { margin-left: auto; display: flex; align-items: center; gap: 4px; padding-right: 12px; color: var(--fg2); font-size: 15px; }

.m-body { flex: 1; display: flex; min-height: 0; }

/* Navigation rail */
.m-rail { width: 52px; flex: none; background: #2a2a2a; border-right: 1px solid var(--sep2); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 11.5px 0 8px; }
.m-rail b { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: var(--fg2); font-size: 16px; position: relative; transition: background .3s, color .3s; }
.m-rail b.on { background: var(--sel); color: var(--fg); }
.m-rail b.on svg.ic { stroke-width: 1.7; }
.m-badge { position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.r-sep { width: 24px; height: 1px; background: var(--sep); margin: 8px 0; }
.r-fill { flex: 1; }
.r-avatar { width: 24px; height: 24px; border-radius: 50%; background: rgb(125, 143, 145); color: #fff; font-size: 9px; font-weight: 500; display: grid; place-items: center; }

/* Sidebar */
.m-side { width: 260px; flex: none; background: #232323; border-right: 1px solid var(--sep2); display: flex; flex-direction: column; color: #b9b9b9; min-height: 0; }
.sb-head { height: 60px; display: flex; align-items: center; gap: 5px; padding: 0 12px 0 16px; flex: none; }
.sb-head b { font-size: 16px; font-weight: 600; color: var(--fg); }
.sb-head .xs { color: #767676; }
.sb-ic { width: 30px; height: 30px; display: grid; place-items: center; color: #a8a8a8; font-size: 15px; position: relative; }
.sb-ic .m-badge { top: 5px; right: 6px; }
.sb-new { display: flex; align-items: center; gap: 10px; height: 32px; margin: 0 8px 8px; padding: 0 10px; border-radius: 9px; font-size: 14px; color: #b9b9b9; }
.sb-new svg.ic { font-size: 14px; color: #a8a8a8; }
.sb-sep { height: 1px; background: rgba(255, 255, 255, .07); flex: none; }
.sb-list { padding-top: 14px; overflow: hidden; }
.sb-label { height: 34px; display: flex; align-items: center; padding: 0 16px; font-size: 13px; color: #767676; }
.sb-proj, .sb-chat { height: 32px; margin: 0 8px; padding: 0 10px; border-radius: 9px; display: flex; align-items: center; gap: 7px; font-size: 14px; white-space: nowrap; }
.sb-proj .chev { font-size: 10px; color: #767676; width: 10px; display: grid; place-items: center; }
.sb-proj .fold { position: relative; font-size: 14px; display: grid; color: #b9b9b9; }
.sb-proj .gb { position: absolute; right: -4px; bottom: -3px; font-size: 8px; color: rgb(158, 112, 232); background: #232323; border-radius: 50%; }
.sb-proj .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.sb-proj .host { font-size: 13px; color: #767676; }
.hdot { width: 8px; height: 8px; border-radius: 50%; background: rgb(66, 201, 130); flex: none; }
.sb-chat { padding-left: 32px; color: #b9b9b9; transition: background .3s; }
.sb-chat .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.sb-chat.on { background: var(--sel); color: var(--fg); }
.sb-chat .br { font-size: 11px; color: #767676; }
.st { flex: none; width: 12px; height: 12px; display: grid; place-items: center; }
.st.ready::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgb(0, 136, 224); }
.st.run { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='%23d4d4d4' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 2v5' opacity='1'/%3E%3Cpath d='M19.07 4.93l-3.54 3.54' opacity='.88'/%3E%3Cpath d='M22 12h-5' opacity='.76'/%3E%3Cpath d='M19.07 19.07l-3.54-3.54' opacity='.64'/%3E%3Cpath d='M12 22v-5' opacity='.52'/%3E%3Cpath d='M4.93 19.07l3.54-3.54' opacity='.4'/%3E%3Cpath d='M2 12h5' opacity='.28'/%3E%3Cpath d='M4.93 4.93l3.54 3.54' opacity='.2'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; animation: spinstep .8s steps(8) infinite; }
@keyframes spinstep { to { transform: rotate(360deg); } }

/* Transcript */
.m-main { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; background: var(--surface); }
.m-scroll { flex: 1; overflow: hidden; min-height: 0; }
.m-col { max-width: 738px; margin: 0 auto; padding: 14px 16px 24px; display: flex; flex-direction: column; gap: 9px; }
.t-date { text-align: center; font-size: 12px; font-weight: 500; color: var(--fg3); padding: 12px 0 10px; }
.t-user { align-self: flex-end; max-width: 70%; background: #282828; border-radius: 12px; padding: 10px 16px; line-height: 1.36; }
.t-live { display: flex; flex-direction: column; }
.t-meta { font-size: 12px; color: var(--fg3); padding: 6px 0 8px; font-variant-numeric: tabular-nums; }
.t-rule { height: .5px; background: var(--sep); margin-bottom: 4px; }
.t-rows { display: flex; flex-direction: column; }
.t-row { height: 28px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg3); }
.t-row svg.ic { font-size: 12px; width: 14px; }
.t-done { height: 32px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--fg3); }
.t-done svg.ic { font-size: 12px; }
.t-done .xs { opacity: .7; }
.t-answer { line-height: 1.55; padding: 4px 0 6px; }
.t-answer p + ul { margin-top: 8px; }
.t-answer ul { padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.t-answer .wd { opacity: 0; transition: opacity .25s; }
.t-answer .wd.on { opacity: 1; }

/* Turn summary card */
.sum { border-radius: 12px; box-shadow: inset 0 0 0 .5px var(--sep3); overflow: hidden; margin-top: 4px; }
.sum-head { display: flex; align-items: center; gap: 12px; padding: 11px 13px; background: #252525; }
.sum-tile { width: 39px; height: 39px; border-radius: 10px; background: var(--surface); display: grid; place-items: center; font-size: 18px; color: var(--fg2); }
.sum-t { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.sum-t b { font-size: 14px; font-weight: 500; }
.sum-t span { font: 500 12px var(--mono); }
.sum-btn { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--fg2); padding: 0 6px; }
.sum-pill { height: 27px; padding: 0 12px; border-radius: 980px; background: var(--hover); font-size: 11px; font-weight: 500; display: grid; place-items: center; transition: background .2s; }
.sum-pill.press { background: rgba(255, 255, 255, .16); }
.sum-row { height: 35px; display: flex; align-items: center; gap: 9px; padding: 0 14px; background: #202020; border-top: .5px solid var(--sep); font-size: 13px; }
.sum-row svg.ic { color: var(--fg3); font-size: 13px; }
.sum-row span { flex: 1; color: var(--fg2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sum-row em { font: 12px var(--mono); }

/* Reveal states for transcript pieces */
.t-live:not(.done) .t-done, .t-live.done .t-meta, .t-live.done .t-rule, .t-live.done .t-rows, .t-row:not(.on) { display: none; }
.t-row.on { animation: popin .35s var(--ease) both; }
.mac.compact .m-rail, .mac.compact .m-side, .mac.compact .m-tb, .mac.compact .m-vdiv { display: none; }
.mac.compact .m-tl { width: 80px; }
.mac.compact .m-body { position: relative; }
.mac.compact .m-pane { position: absolute; top: 0; right: 0; bottom: 0; background: var(--surface); z-index: 3; }
.mac.compact .m-pane.on, .mac.compact .cp { width: 100%; }
.mac [data-hide] { display: none; }
.mac .pop-in { animation: popin .5s var(--ease) both; }
@keyframes popin { from { opacity: 0; transform: translateY(10px); } }

/* Composer */
.m-bottom { flex: none; position: relative; padding: 0 16px 20px; }
.m-bottom > * { max-width: 738px; margin-left: auto; margin-right: auto; }
.m-spin { width: 32px; height: 0; opacity: 0; overflow: hidden; transition: opacity .3s, height .4s var(--ease), margin .4s var(--ease); }
.m-spin.on { opacity: 1; height: 32px; margin-bottom: 12px; }
.m-spin svg { width: 32px; height: 32px; animation: spinstep .8s steps(8) infinite; }
.comp { position: relative; min-height: 98px; background: #323232; border-radius: 12px; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .12); padding: 16px 12px 46px; transition: box-shadow .3s; }
.comp.focus { box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .22); }
.comp-text { min-height: 20px; line-height: 1.4; }
.comp .ph { color: rgba(255, 255, 255, .17); }
.comp.has .ph, .bv-url.has .ph { display: none; }
.m-caret { display: none; width: 1.5px; height: 17px; background: var(--accent); vertical-align: -3px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
.comp.focus .m-caret, .bv-url.focus .m-caret { display: inline-block; }
.m-caret + .ph { margin-left: -1.5px; }
.comp-row { position: absolute; left: 8px; right: 10px; bottom: 8px; height: 32px; display: flex; align-items: center; gap: 4px; }
.c-btn { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--fg2); font-size: 17px; }
.c-btn:last-of-type { font-size: 15px; }
.mp { height: 32px; display: flex; align-items: center; gap: 5px; padding: 0 6px; border-radius: 9px; font-size: 12px; transition: background .2s; }
.mp.press, .mp.open { background: var(--hover); }
.mp svg.ic { font-size: 12px; color: var(--fg2); }
.mp b { font-weight: 400; }
.mp em { font-style: normal; color: var(--fg2); }
.c-send { width: 28px; height: 28px; border-radius: 50%; background: var(--elev); color: var(--fg3); display: grid; place-items: center; font-size: 12px; transition: background .2s, color .2s, transform .15s; position: relative; }
.c-send svg.ic { stroke-width: 2.2; grid-area: 1 / 1; }
.c-send svg.ic:last-child { display: none; }
.comp.has .c-send, .comp.busy .c-send { background: var(--fg); color: #1e1e1e; }
.comp.busy:not(.has) .c-send svg.ic:first-child { display: none; }
.comp.busy:not(.has) .c-send svg.ic:last-child { display: block; }
.c-queue { display: none; height: 28px; padding: 0 11px; border-radius: 980px; background: var(--hover); font-size: 12px; font-weight: 500; align-items: center; margin-right: 2px; }
.comp.busy.has .c-queue { display: flex; }
.comp.busy.has .c-send { display: none; }
.press { transform: scale(.94); }

/* Queued messages */
.queue-stack { background: #323232; border-radius: 12px 12px 0 0; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .12); overflow: hidden; display: none; margin-bottom: -1px; }
.queue-stack.on { display: block; }
.q-row { min-height: 45px; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; font-size: 13px; position: relative; animation: qin .45s var(--ease) both; }
.q-row + .q-row::before { content: ""; position: absolute; top: 0; left: 14px; right: 14px; height: .5px; background: var(--sep); }
.q-row svg.ic { font-size: 11px; color: var(--fg3); }
.q-row span { flex: 1; }
.q-row b { width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; color: var(--fg3); font-size: 13px; }
.q-row.out { animation: qout .4s var(--ease) both; }
@keyframes qin { from { opacity: 0; transform: translateY(14px); } }
@keyframes qout { to { opacity: 0; transform: translateY(-12px); } }
.queue-stack.on + .comp { border-radius: 0 0 12px 12px; }

/* Model popover */
.pop { position: absolute; right: 36px; bottom: 46px; left: auto; margin: 0; width: 255px; background: #2c2c2c; border-radius: 12px; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .14), 0 12px 40px rgba(0, 0, 0, .45); padding: 14px; opacity: 0; transform: translateY(6px) scale(.98); transform-origin: 80% 100%; pointer-events: none; transition: opacity .2s, transform .25s var(--ease), width .3s var(--ease); z-index: 4; }
.pop.on { opacity: 1; transform: none; }
.pop.models { width: 280px; padding: 8px; }
.pop-models, .pop.models .pop-effort { display: none; }
.pop.models .pop-models { display: block; }
.pe-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.pe-head b { font-size: 14px; font-weight: 500; }
.pe-model { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--fg2); padding: 3px 6px; border-radius: 6px; }
.pe-model.press { background: var(--hover); }
.pe-slider { --v: .6667; position: relative; height: 6px; border-radius: 980px; background: rgba(212, 212, 212, .13); }
.pe-fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--v) * 100%); border-radius: inherit; background: #007aff; transition: width .35s var(--ease); }
.pe-ticks { position: absolute; inset: 0; display: flex; justify-content: space-between; padding: 0 1px; align-items: center; }
.pe-ticks i { width: 3px; height: 3px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.pe-thumb { position: absolute; top: 50%; left: calc(var(--v) * 100%); width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .5); transition: left .35s var(--ease); }
.pe-labels { display: flex; justify-content: space-between; font-size: 10px; color: var(--fg3); margin-top: 10px; }
.pe-row { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: .5px solid var(--sep); font-size: 13px; }
.pe-row svg.ic { font-size: 12px; color: var(--fg2); }
.tog { margin-left: auto; width: 26px; height: 15px; border-radius: 980px; background: rgba(255, 255, 255, .16); position: relative; }
.tog::after { content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; }
.tog.on { background: #007aff; }
.tog.on::after { left: 13px; }
.pm-label { font-size: 11px; color: var(--fg3); padding: 4px 8px 6px; }
.pm-search { height: 28px; display: flex; align-items: center; gap: 7px; padding: 0 8px; margin-bottom: 4px; border-radius: 7px; background: rgba(255, 255, 255, .05); font-size: 12px; color: var(--fg3); }
.pm-row { height: 29px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; border-radius: 7px; font-size: 13px; transition: background .15s; }
.pm-row.two { height: 42px; flex-direction: column; align-items: flex-start; justify-content: center; }
.pm-row.two em { font-style: normal; font-size: 11px; color: var(--fg3); }
.pm-row svg.ic { font-size: 12px; color: var(--accent); stroke-width: 2; visibility: hidden; }
.pm-row.on svg.ic { visibility: visible; }
.pm-row.hover { background: #0a64d6; color: #fff; }
.pm-row.hover svg.ic { color: #fff; }
.pm-foot { border-top: .5px solid var(--sep); margin-top: 4px; padding: 8px 8px 2px; font-size: 12px; color: var(--fg2); }

/* Right pane */
.m-pane { width: 0; flex: none; overflow: hidden; transition: width .8s var(--ease); border-left: 1px solid transparent; }
.m-pane.on { width: 540px; border-left-color: var(--sep); }
.cp { width: 540px; height: 100%; display: flex; flex-direction: column; background: var(--surface); }
.cp-tabs { height: 48px; flex: none; display: flex; align-items: center; gap: 2px; padding: 0 8px; background: var(--chrome); border-bottom: 1px solid var(--sep2); }
.cp-tab { display: none; align-items: center; gap: 7px; height: 34px; min-width: 0; flex: 0 1 150px; padding: 0 8px 0 12px; border-radius: 12px; font-size: 12px; font-weight: 500; color: var(--fg2); white-space: nowrap; }
.cp-tab.open { display: flex; animation: tabin .4s var(--ease) both; }
.cp-tab.on { background: var(--elev); color: var(--fg); }
.cp-tab span { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.cp-tab .x { font-size: 9px; color: var(--fg3); }
@keyframes tabin { from { opacity: 0; transform: translateY(4px); } }
.cp-plus, .cp-ic { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: var(--fg2); font-size: 13px; transition: background .2s; }
.cp-plus.press { background: var(--hover); }
.cp-view { flex: 1; min-height: 0; display: none; flex-direction: column; }
.cp-view.on { display: flex; animation: fadein .35s ease both; }
@keyframes fadein { from { opacity: 0; } }

/* Changes */
.dv-bar { height: 48px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid var(--sep2); }
.dv-mode { height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 980px; background: var(--elev); box-shadow: inset 0 0 0 1px var(--sep2); font-size: 13px; color: var(--fg2); }
.dv-n { font: 12px var(--mono); padding-left: 8px; border-left: 1px solid var(--sep); }
.dv-ic { width: 34px; height: 24px; border-radius: 980px; background: var(--elev); display: grid; place-items: center; color: var(--fg2); font-size: 12px; }
.dv-ic.on { color: var(--accent); background: rgb(0, 40, 77); }
.dv-split { flex: 1; min-height: 0; display: flex; }
.dv-tree { width: 172px; flex: none; padding: 8px 6px; border-right: 1px solid var(--sep2); font-size: 13px; }
.ft { height: 29px; display: flex; align-items: center; gap: 6px; padding-left: calc(8px + var(--lv, 0) * 15px); border-radius: 8px; color: var(--fg2); white-space: nowrap; transition: background .25s, color .25s; }
.ft.d1 { --lv: 1; } .ft.d2 { --lv: 2; }
.ft.f { color: #747474; padding-left: calc(23px + var(--lv) * 15px); }
.ft.on { background: var(--sel); color: var(--fg); }
.dv-diff { position: relative; flex: 1; min-width: 0; overflow: hidden; font: 12px/22px var(--mono); }
.dv-fh { height: 39px; display: flex; align-items: center; gap: 8px; padding: 0 12px; font: 13px var(--text); border-bottom: 1px solid var(--sep); position: relative; }
.dv-fh + .dl { margin-top: 2px; }
.dl + .dv-fh { margin-top: 10px; border-top: 1px solid var(--sep); }
.dv-fh .fb { font: 600 9px var(--text); text-transform: uppercase; color: #f08a24; background: rgba(240, 138, 36, .14); padding: 3px 5px; border-radius: 4px; }
.dv-fh .p { color: var(--fg2); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dv-fh em { font: 12px var(--mono); }
.dl { height: 22px; display: flex; white-space: pre; color: var(--fg); position: relative; }
.dl i { width: 49px; flex: none; text-align: right; padding-right: 12px; color: rgba(255, 255, 255, .28); font-style: normal; box-shadow: inset 3px 0 transparent; }
.dl span { overflow: hidden; }
.dl b { font-weight: 400; }
.dl.a { background: rgb(41, 51, 37); }
.dl.a i { background: rgb(19, 26, 15); color: var(--addn); box-shadow: inset 3px 0 var(--addn); }
.dl.d { background: rgb(57, 36, 35); }
.dl.d i { background: rgb(32, 18, 18); color: var(--deln); box-shadow: inset 3px 0 var(--deln); }
.dl.h span { color: var(--accent); }
.dl.cm::after { content: "+"; position: absolute; left: 4px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); color: #fff; font: 600 13px/16px var(--text); text-align: center; animation: popin .3s var(--ease) both; }
.dl.cm { box-shadow: inset 0 0 0 1px rgba(51, 156, 255, .5); }
.dv-diff .dl, .dv-diff .dv-fh { transition: opacity .4s, transform .5s var(--ease); }
.dv-diff.pre .dl, .dv-diff.pre .dv-fh { opacity: 0; transform: translateX(8px); }
.k { color: #fc5fa3; } .t { color: #d0a8ff; } .n { color: #d0bf69; } .s { color: #fc6a5d; } .f { color: #67b7a4; } .c { color: #6c7986; }

/* Terminal */
.tv-head { height: 32px; flex: none; display: flex; align-items: center; gap: 7px; padding: 0 12px; font-size: 11px; color: var(--fg2); border-bottom: 1px solid var(--sep2); }
.tv { flex: 1; margin: 0; padding: 10px 12px; font: 12px/1.55 var(--mono); color: #e6e6e6; white-space: pre-wrap; overflow: hidden; background: #1e1e1e; }
.tv .pr { color: #9ece6a; } .tv .pp { color: #7aa2f7; }
.tv .ok { color: var(--add); } .tv .er { color: var(--del); } .tv .dm { color: rgba(255, 255, 255, .45); }
.tv .cur { display: inline-block; width: 7px; height: 14px; background: #d4d4d4; vertical-align: -2px; animation: blink 1s steps(1) infinite; }

/* Browser */
.bv-bar { height: 49px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: var(--chrome); border-bottom: 1px solid var(--sep2); position: relative; color: var(--fg2); font-size: 12px; }
.bv-nav { display: flex; gap: 0; background: var(--elev); border-radius: 980px; padding: 4px; }
.mac .bv-nav i { width: 26px; height: 26px; display: grid; place-items: center; }
.bv-nav i:nth-child(2) { opacity: .4; }
.bv-url { flex: 1; height: 34px; border-radius: 980px; background: var(--elev); display: flex; align-items: center; padding: 0 14px; font-size: 13px; color: var(--fg); box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .2s; }
.bv-url.focus { box-shadow: inset 0 0 0 1.5px var(--accent); }
.bv-url .ph { color: var(--fg3); }
.bv-load { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--accent); opacity: 0; }
.bv-load.go { opacity: 1; width: 100%; transition: width .9s var(--ease); }
.bv-body { flex: 1; min-height: 0; position: relative; }
.bv-new { padding: 26px 30px; display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
.bv-new > b { font-weight: 600; margin-top: 4px; }
.bv-grid, .bv-sugg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bv-grid span, .bv-sugg span { height: 35px; display: flex; align-items: center; gap: 9px; padding: 0 12px; background: var(--elev); border-radius: 10px; color: var(--fg2); }
.bv-grid em { margin-left: auto; font-style: normal; color: var(--fg3); font-size: 11px; }
.bv-page { position: absolute; inset: 0; background: #fff; color: #1d1d1f; overflow: hidden; opacity: 0; transition: opacity .4s; font-family: var(--text); }
.bv-page.on { opacity: 1; }
.pg-in { transition: transform 1.2s var(--ease); }
.pg-nav { display: flex; align-items: center; gap: 18px; padding: 14px 26px; border-bottom: 1px solid #e5e5ea; font-size: 12px; color: #6e6e73; }
.pg-nav b { color: #1d1d1f; margin-right: auto; font-size: 14px; }
.pg-hero { padding: 40px 26px 30px; background: linear-gradient(#f5f5f7, #fff); }
.pg-hero h4 { font: 600 30px/1.1 var(--font); letter-spacing: -.01em; }
.pg-hero p, .pg-sec p { margin-top: 10px; color: #6e6e73; font-size: 13px; line-height: 1.5; }
.mac .bv-page code { background: #f0f0f3; color: #1d1d1f; }
.pg-sec { margin: 0 26px; padding: 22px 0; border-top: 1px solid #e5e5ea; transition: background .6s; border-radius: 0; }
.pg-sec h5 { font: 600 19px var(--font); }
.pg-sec.hl { background: rgba(0, 113, 227, .06); box-shadow: -14px 0 0 rgba(0, 113, 227, .06), 14px 0 0 rgba(0, 113, 227, .06); }
.pg-table { margin-top: 14px; display: grid; grid-template-columns: 110px 1fr; font-size: 12.5px; border-top: 1px solid #e5e5ea; }
.pg-table span { padding: 9px 0; border-bottom: 1px solid #e5e5ea; }
.pg-table span:nth-child(odd) { color: #6e6e73; }

/* Agent Tree */
.av-head { height: 68px; flex: none; display: flex; align-items: center; padding: 0 18px; background: var(--chrome); border-bottom: 1px solid var(--sep2); }
.av-head b { display: block; font-size: 17px; font-weight: 600; }
.av-head em { font-style: normal; font-size: 11px; color: var(--fg3); }
.av-tog { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--fg2); }
.av-canvas { flex: 1; position: relative; overflow: hidden; background: var(--surface); background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 18px 18px; }
.av-links { position: absolute; left: 0; top: 0; width: 520px; height: 470px; }
.av-links path { fill: none; stroke: rgba(255, 255, 255, .5); stroke-opacity: .55; stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease) .35s; }
.av-canvas.on .av-links path { stroke-dashoffset: 0; }
.av-msg { fill: var(--accent); opacity: 0; transition: opacity .4s 1.4s; }
.av-canvas.on .av-msg { opacity: 1; }
.av-card { position: absolute; left: var(--x); top: var(--y); width: 150px; height: 86px; margin: -43px 0 0 -75px; background: var(--elev); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--sep); padding: 11px 12px; display: flex; flex-direction: column; gap: 3px;
  opacity: 0; transform: scale(.94); transition: opacity .5s var(--ease), transform .5s var(--ease), box-shadow .3s; transition-delay: calc(var(--d) * .12s); }
.av-canvas.on .av-card { opacity: 1; transform: none; }
.av-card.sel { box-shadow: inset 0 0 0 1.5px var(--accent); }
.av-n { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.av-n b { font-weight: 600; flex: 1; }
.av-n svg.ic { font-size: 12px; color: var(--fg2); }
.av-card em { font-style: normal; font-size: 10px; color: var(--fg3); }
.av-s { margin-top: auto; display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--fg2); }
.av-s::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ff9f0a; }
.av-s.run::before { animation: ping-o 1.6s infinite; }
.av-s.ok::before { background: rgb(66, 201, 130); }
.av-s.wait::before { background: rgba(255, 255, 255, .3); }
@keyframes ping-o { 0% { box-shadow: 0 0 0 0 rgba(255, 159, 10, .6); } 70%, 100% { box-shadow: 0 0 0 5px rgba(255, 159, 10, 0); } }
.av-tip { position: absolute; left: 50%; top: 96px; width: 240px; margin-left: -120px; background: #333; border-radius: 10px; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .14), 0 10px 30px rgba(0, 0, 0, .4); padding: 10px 12px; font-size: 12px; line-height: 1.45; color: var(--fg); opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .3s var(--ease); pointer-events: none; z-index: 2; }
.av-card.sel .av-tip { opacity: 1; transform: none; }
.av-zoom { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; height: 30px; padding: 0 12px; border-radius: 980px; background: var(--elev); box-shadow: inset 0 0 0 .5px var(--sep3); font-size: 11px; color: var(--fg2); }

/* Pointer */
.m-cursor { position: absolute; left: 0; top: 0; width: 26px; height: 26px; z-index: 10; pointer-events: none; transform: translate(var(--cx, 640px), var(--cy, 900px)); transition: transform var(--cd, .9s) cubic-bezier(.45, .05, .2, 1); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.m-cursor path { fill: #000; stroke: #fff; stroke-width: 1.3; stroke-linejoin: round; transform-origin: 6px 3px; transition: transform .12s; }
.m-cursor.down path { transform: scale(.82); }

/* Chapter controls */
.demo-ui { margin-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 16px; opacity: clamp(0, calc(var(--k, 0) * 3 - 2), 1); }
.demo-cap { font-size: 17px; color: var(--muted); text-align: center; min-height: 1.5em; padding: 0 24px; transition: opacity .3s; }
.demo-cap b { color: var(--fg); font-weight: 600; }
.demo-cap.swap { opacity: 0; }
.demo-bar { display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px); }
.chapters { min-width: 0; display: flex; gap: 2px; padding: 4px; border-radius: 980px; background: rgba(232, 232, 237, .72); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); overflow-x: auto; scrollbar-width: none; }
.chapters::-webkit-scrollbar { display: none; }
.chapters button { flex: none; position: relative; border: 0; background: none; font: inherit; font-size: 14px; color: #1d1d1f; padding: 8px 16px; border-radius: 980px; cursor: pointer; white-space: nowrap; overflow: hidden; transition: background .3s, color .3s; }
.chapters button:hover { color: var(--blue); }
.chapters button.on { background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); color: #1d1d1f; }
.chapters button i { position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px; border-radius: 2px; background: rgba(0, 0, 0, .08); display: none; overflow: hidden; }
.chapters button.on i { display: block; }
.chapters button i::after { content: ""; position: absolute; inset: 0; background: #1d1d1f; transform-origin: left; transform: scaleX(var(--cp, 0)); }
.demo-play { width: 44px; height: 44px; flex: none; }
.demo-play::before { width: 10px; height: 12px; border-left-width: 3px; border-right-width: 3px; }
.demo-play.paused::before { border-width: 7px 0 7px 11px; }
.dark .chapters { background: rgba(66, 66, 69, .72); }
.dark .chapters button { color: #f5f5f7; }
.dark .chapters button:hover { color: #2997ff; }
.dark .chapters button.on { background: #f5f5f7; box-shadow: none; color: #1d1d1f; }
.dark .play { background: rgba(66, 66, 69, .72); }
.dark .play::before { border-left-color: #f5f5f7; border-right-color: #f5f5f7; }
.dark .play.paused::before { border-color: transparent transparent transparent #f5f5f7; }

/* Shared */
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }
.dot.live { background: var(--app-blue); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(90, 179, 255, .6); } 70%, 100% { box-shadow: 0 0 0 7px rgba(90, 179, 255, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0; } }
.send { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; background: #f5f5f7; color: #000; display: grid; place-items: center; font-weight: 700; }

/* Providers */
.providers { padding: 0 24px 140px; }
.providers-grid { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; border-top: 1px solid var(--line); padding-top: 48px; }
.providers h3 { margin-bottom: 8px; }
.providers p { color: var(--muted); }

/* 3. Highlights gallery */
.highlights { background: var(--gray); padding: 120px 0 80px; }
.highlights .sec-title { max-width: 980px; margin: 0 auto 40px; padding: 0 24px; box-sizing: content-box; }
.gallery { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-padding-inline: var(--gutter); --gutter: max(24px, calc((100vw - 980px) / 2)); }
.gallery::-webkit-scrollbar { display: none; }
.gallery-track { list-style: none; display: flex; gap: 20px; padding: 0 var(--gutter); width: max-content; }
.gitem { scroll-snap-align: start; width: min(820px, 84vw); height: min(620px, 72vh); background: #fff; border-radius: 28px; padding: 44px 48px; display: flex; flex-direction: column; overflow: hidden; }
.gcap { font-family: var(--font); font-size: 21px; line-height: 1.19; font-weight: 600; letter-spacing: .011em; color: var(--muted); max-width: 30em; }
.gcap b { color: var(--fg); }
.gcap code { color: var(--fg); }
.gviz { flex: 1; display: grid; place-items: center; min-height: 0; }
.gallery-controls { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 32px; }
.dots { display: flex; gap: 12px; align-items: center; height: 56px; padding: 0 24px; border-radius: 980px; background: rgba(210, 210, 215, .64); backdrop-filter: blur(10px); }
.dots button { width: 8px; height: 8px; border: 0; padding: 0; border-radius: 980px; background: rgba(0, 0, 0, .42); cursor: pointer; transition: width .4s var(--ease), background .3s; }
.dots button.on { width: 48px; background: rgba(0, 0, 0, .8); }
.play { width: 56px; height: 56px; border: 0; border-radius: 50%; background: rgba(210, 210, 215, .64); cursor: pointer; display: grid; place-items: center; }
.play::before { content: ""; width: 12px; height: 14px; border-left: 4px solid #1d1d1f; border-right: 4px solid #1d1d1f; box-sizing: border-box; }
.play.paused::before { width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #1d1d1f; margin-left: 4px; }

.picker { width: min(340px, 100%); background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 20px 50px rgba(0, 0, 0, .12); padding: 8px; font-size: 14px; }
.picker-group { font-size: 11px; font-weight: 600; color: var(--muted); padding: 10px 10px 4px; }
.picker-row { display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 7px; }
.picker-row.on { background: var(--blue); color: #fff; }

.accounts { width: min(440px, 100%); display: flex; flex-direction: column; gap: 10px; }
.acct { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--gray); }
.acct b { display: block; font-size: 15px; }
.acct em { display: block; font-style: normal; font-size: 13px; color: var(--muted); }
.acct-ic { width: 36px; height: 36px; border-radius: 10px; background: #1d1d1f; flex: none; }
.acct:nth-child(2) .acct-ic { background: #d97757; }
.acct:nth-child(3) .acct-ic { background: #6e6e73; }
.acct-state { margin-left: auto; font-size: 13px; color: #248a3d; }
.acct-state.off { color: var(--muted); }

.highlights .queue { width: min(440px, 100%); }
.highlights .queue i { opacity: 1; transform: none; }
.queue-label { font-size: 12px; font-weight: 600; color: var(--muted); padding: 0 4px 2px; }
.queue-composer { margin-top: 6px; display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 16px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-size: 14px; }
.queue-composer .send { background: #1d1d1f; color: #fff; }

.review { width: 100%; max-width: 640px; display: grid; grid-template-columns: 170px 1fr; border-radius: 14px; overflow: hidden; background: #1c1c1e; color: #d1d1d6; font-size: 12.5px; box-shadow: 0 20px 50px rgba(0, 0, 0, .18); }
.review-tree { display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; background: #141415; }
.review-tree b { font-size: 11px; color: #8e8e93; padding: 6px 8px 2px; }
.review-tree span { padding: 4px 8px 4px 16px; border-radius: 6px; color: #a1a1a6; }
.review-tree span.on { background: rgba(90, 179, 255, .16); color: #fff; }
.review-diff { font-family: var(--mono); font-size: 12px; line-height: 2; padding: 12px 0; }
.review-diff i { display: block; font-style: normal; padding: 0 14px; white-space: pre; }
.review-diff i.a { background: rgba(50, 215, 75, .12); color: #b8f5c4; }
.review-diff i.d { background: rgba(255, 105, 97, .12); color: #ffc2bd; }

.media { width: min(460px, 100%); font-size: 15px; }
.media p { margin-bottom: 12px; }
.media-img { aspect-ratio: 16 / 10; border-radius: 14px; background: #000; display: grid; place-items: center; }
.media-img .mark { width: 30%; height: auto; aspect-ratio: 1; }

/* 4. Statement */
.statement { height: 240vh; }
.statement .sticky { display: grid; place-items: center; padding: 0 24px; }
.words { font-family: var(--font); font-size: clamp(32px, 4.6vw, 64px); font-weight: 600; letter-spacing: -.01em; line-height: 1.1; max-width: 980px; }
.words .w { color: #d2d2d7; transition: color .4s linear; }
.words .w.on { color: var(--fg); }
.dark .words .w { color: #3a3a3c; }

/* 4. Machines */
.machines { height: 280vh; }
.machines .sticky, .teams .sticky { display: grid; grid-template-columns: minmax(300px, 420px) 1fr; align-items: center; gap: 4vw; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.machines-copy h2, .teams-copy h2 { font-size: clamp(40px, 4.4vw, 56px); line-height: 1.07; }
.machines-copy p, .teams-copy p { color: #86868b; font-size: 19px; line-height: 1.42; letter-spacing: .012em; margin-top: 24px; font-weight: 600; }
.machines-copy p b { color: #f5f5f7; font-weight: 600; }
.teams-copy p { color: var(--muted); }
.teams-copy p b { color: var(--fg); font-weight: 600; }
.machines-copy p code { color: #f5f5f7; }
.machines-copy > *, .teams-copy > * { opacity: clamp(0, var(--p, 0) * 7 - .15, 1); transform: translateY(calc((1 - clamp(0, var(--p, 0) * 7 - .15, 1)) * 30px)); }
.machines-fine { position: absolute; bottom: 6vh; left: 0; right: 0; text-align: center; font-size: 14px; color: #86868b; opacity: clamp(0, var(--p, 0) * 4 - 1, 1); }
.world { perspective: 1400px; height: 80vh; display: grid; place-items: center; }
.floor {
  --rz: calc(-28deg + var(--p, 0) * 46deg);
  --tilt: 58deg;
  position: relative; width: min(64vh, 640px, 86vw); aspect-ratio: 1;
  transform: rotateX(var(--tilt)) rotateZ(var(--rz)) scale(calc(.85 + var(--p, 0) * .2));
  transform-style: preserve-3d;
  background:
    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px) 0 0 / 10% 10%,
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px) 0 0 / 10% 10%;
  border-radius: 50%;
}
.floor::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 80px 60px #000; pointer-events: none; }
.links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.links path { fill: none; stroke: rgba(255, 255, 255, .35); stroke-width: 2; stroke-dasharray: 6 10; animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -16; } }
.pulse { fill: #fff; }
.node { position: absolute; left: var(--x); top: var(--y); transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateZ(calc(var(--rz) * -1)) rotateX(calc(var(--tilt) * -1)) translateY(-50%); }
.node-card { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 16px; min-width: 128px; border-radius: 18px;
  background: rgba(36, 36, 38, .9); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 20px 40px rgba(0, 0, 0, .5); text-align: center; }
.node-card b { font-size: 15px; font-weight: 600; white-space: nowrap; }
.node-card em { font-style: normal; font-size: 12px; color: #86868b; white-space: nowrap; }
.node-card .dot { margin-bottom: 4px; }
.node.core .node-card { padding: 16px 22px; background: #f5f5f7; color: var(--fg); }
.node.core .node-card em { color: var(--muted); }
.node-ic { width: 34px; height: 22px; border: 2px solid var(--fg); border-radius: 4px 4px 1px 1px; position: relative; margin-bottom: 8px; }
.node-ic::after { content: ""; position: absolute; left: -7px; right: -7px; bottom: -6px; height: 3px; background: var(--fg); border-radius: 0 0 3px 3px; }

/* 5. Teams */
.teams { height: 280vh; }
.tree { position: relative; height: min(56vh, 520px); width: 100%; border-radius: 28px; background: var(--gray);
  background-image: radial-gradient(rgba(0, 0, 0, .08) 1px, transparent 1px); background-size: 22px 22px; }
.tree-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tree-links path { fill: none; stroke: #86868b; stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--draw, 0)); vector-effect: non-scaling-stroke; }
.msg { fill: var(--blue); opacity: var(--draw-done, 0); }
.agent { position: absolute; left: var(--x); top: var(--y);
  --show: clamp(0, (var(--p, 0) - .06 - var(--d) * .08) * 8, 1);
  transform: translate(-50%, -50%) scale(calc(.94 + var(--show) * .06)); opacity: var(--show);
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .04), 0 12px 32px rgba(0, 0, 0, .08); white-space: nowrap; }
.agent b { display: block; font-size: 15px; font-weight: 600; }
.agent em { display: block; font-style: normal; font-size: 13px; color: var(--muted); }
.agent:not(.lead) { flex-direction: column; align-items: flex-start; gap: 10px; min-width: 150px; }
.agent:not(.lead) .pill { margin-left: 0; }
.agent.lead .mark { width: 30px; height: 30px; }
.pill { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 980px; margin-left: 4px; }
.pill.live { color: var(--blue); background: rgba(0, 113, 227, .1); }
.pill.ok { color: #248a3d; background: rgba(52, 199, 89, .14); }
.pill.wait { color: #b25000; background: rgba(255, 149, 0, .14); }

/* 6. Features */
.features { background: var(--gray); padding: 140px 24px; }
.features .sec-title { max-width: 980px; margin: 0 auto 48px; }
.bento { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border-radius: 28px; padding: 36px 32px; min-height: 380px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px; transition: transform .4s var(--ease), box-shadow .4s var(--ease), opacity 1s var(--ease), translate 1s var(--ease); }
.card:hover { transform: scale(1.01); box-shadow: 2px 4px 16px rgba(0, 0, 0, .12); }
.card.wide { grid-column: span 2; flex-direction: row; align-items: center; }
.card.wide .card-text { max-width: 300px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 17px; }
.card code { color: var(--fg); }
.features.dark { background: #000; }
.dark .card { background: #161617; }
.dark .card:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.dark .branches .main { stroke: #424245; }
.dark .branches .b2, .dark .branches .tip + .tip { stroke: #f5f5f7; fill: #f5f5f7; }
.dark .branches .b2 { fill: none; }
.dark .branches circle { fill: #161617; }
.dark .diff i { background: #2c2c2e; }
.dark .diff i.a { background: rgba(50, 215, 75, .3); }
.dark .diff i.d { background: rgba(255, 69, 58, .3); }
.dark .mini-win { background: #2c2c2e; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.dark .ptr { border-bottom-color: #f5f5f7; filter: drop-shadow(0 0 1px #000) drop-shadow(0 4px 6px rgba(0, 0, 0, .5)); }
.dark .browser { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.dark .browser .url { background: #2c2c2e; }
.dark .browser .page i { background: #2c2c2e; }
.dark .browser .page i:first-child { background: #f5f5f7; }
.dark .term pre { background: #000; }
.viz { flex: 1; display: grid; place-items: center; min-height: 140px; }

.branches svg { width: 100%; max-width: 380px; }
.branches path { fill: none; stroke-width: 3; stroke-linecap: round; }
.branches .main { stroke: #d2d2d7; }
.branches .b { stroke: var(--blue); stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1.6s var(--ease) .3s; }
.branches .b2 { stroke: #1d1d1f; transition-delay: .7s; }
.branches circle { fill: #fff; stroke: #86868b; stroke-width: 3; }
.branches .tip { stroke: var(--blue); fill: var(--blue); opacity: 0; transition: opacity .4s 1.6s; }
.branches .tip + .tip { stroke: #1d1d1f; fill: #1d1d1f; }
.in .branches .b { stroke-dashoffset: 0; }
.in .branches .tip { opacity: 1; }

.diff { display: flex; flex-direction: column; gap: 8px; width: 100%; place-items: stretch; }
.diff i { display: block; height: 14px; border-radius: 4px; background: #e8e8ed; width: 80%; transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
.diff i.a { background: rgba(52, 199, 89, .35); width: 92%; } .diff i.s { width: 60%; } .diff i.m { width: 72%; }
.diff i.d { background: rgba(255, 59, 48, .25); width: 66%; }
.in .diff i { transform: none; }
.in .diff i:nth-child(2) { transition-delay: .1s; } .in .diff i:nth-child(3) { transition-delay: .2s; } .in .diff i:nth-child(4) { transition-delay: .3s; } .in .diff i:nth-child(5) { transition-delay: .4s; }

.cursor { position: relative; }
.mini-win { width: 170px; height: 110px; border-radius: 10px; background: var(--gray); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); display: flex; gap: 5px; padding: 9px; }
.mini-win i { width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; } .mini-win i:nth-child(2) { background: #febc2e; } .mini-win i:nth-child(3) { background: #28c840; }
.ptr { position: absolute; left: 50%; top: 50%; width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-bottom: 22px solid #1d1d1f; rotate: -30deg; filter: drop-shadow(0 0 1px #fff) drop-shadow(0 4px 6px rgba(0, 0, 0, .25)); animation: roam 5s var(--ease) infinite; }
@keyframes roam { 0%, 100% { translate: 40px 30px; } 30% { translate: -60px -30px; scale: 1; } 35% { scale: .8; } 40% { scale: 1; } 65% { translate: 50px -20px; } }

.queue { display: flex; flex-direction: column; gap: 8px; width: 100%; place-items: stretch; }
.queue i { font-style: normal; font-size: 14px; background: var(--gray); padding: 9px 14px; border-radius: 12px; transform: translateY(20px); opacity: 0; transition: transform .7s var(--ease), opacity .7s var(--ease); }
.queue i::before { content: "⋮⋮"; color: #aeaeb2; margin-right: 10px; letter-spacing: -2px; }
.in .queue i { transform: none; opacity: 1; }
.in .queue i:nth-child(2) { transition-delay: .15s; } .in .queue i:nth-child(3) { transition-delay: .3s; }

.browser { display: flex; flex-direction: column; width: 100%; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); place-items: stretch; }
.browser .url { background: var(--gray); padding: 8px 12px; font-size: 12px; color: var(--muted); font-family: var(--mono); }
.browser .page { height: 110px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.browser .page i { display: block; height: 10px; border-radius: 4px; background: #e8e8ed; width: 70%; }
.browser .page i:first-child { height: 16px; width: 45%; background: #1d1d1f; }

.term pre { width: 100%; background: #1d1d1f; color: #f5f5f7; border-radius: 14px; padding: 20px 22px; font-family: var(--mono); font-size: 13px; line-height: 1.7; white-space: pre; overflow: hidden; }
.term .pr { color: #86868b; }
.term .ok { color: var(--green); }
.caret { display: inline-block; width: 8px; height: 1.1em; vertical-align: -3px; background: #f5f5f7; animation: blink 1s steps(1) infinite; }

/* 7. Specs */
.specs { padding: 140px 24px 80px; }
.specs .sec-title { max-width: 980px; margin: 0 auto 40px; }
.spec-list { max-width: 980px; margin: 0 auto; }
.spec-list > div { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; border-top: 1px solid var(--line); padding: 32px 0; }
.spec-list dt { font-family: var(--font); font-size: 24px; font-weight: 600; line-height: 1.17; }
.spec-list dd { font-size: 17px; line-height: 1.6; }

/* 8. Download */
.final { padding: 120px 24px 140px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.final-icon { perspective: 800px; margin-bottom: 28px; }
.final-icon img { display: block; width: 200px; height: 200px; transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); transition: transform .6s var(--ease); }
.final h2 { font-size: clamp(48px, 6vw, 80px); }
.final .ctas { margin-top: 28px; }
.fine { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* Footer */
.foot { background: var(--gray); color: var(--muted); font-size: 12px; line-height: 1.33; letter-spacing: -.01em; padding: 18px 24px 22px; }
.foot-inner { max-width: 980px; margin: 0 auto; }
.foot-note { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.foot-bar { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; }
.foot-links { display: flex; }
.foot-links a { color: #424245; padding: 0 10px; border-right: 1px solid var(--line); }
.foot-links a:last-child { border: 0; padding-right: 0; }
.foot-links a:hover { text-decoration: underline; }

/* Reveal on scroll */
.reveal { opacity: 0; translate: 0 40px; transition: opacity 1s var(--ease), translate 1s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease); }
.reveal.in { opacity: 1; translate: 0 0; }
.bento .reveal:nth-child(2), .bento .reveal:nth-child(5), .providers-grid .reveal:nth-child(2) { transition-delay: .08s; }
.bento .reveal:nth-child(3), .bento .reveal:nth-child(6), .providers-grid .reveal:nth-child(3) { transition-delay: .16s; }

/* Responsive */
@media (max-width: 1000px) {
  .machines .sticky, .teams .sticky { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 0; padding-top: 60px; }
  .machines-copy, .teams-copy { text-align: center; max-width: 620px; margin: 0 auto; }
  .machines-copy p, .teams-copy p { margin: 16px auto 0; font-size: 17px; }
  .world { height: 50vh; }
  .tree { height: 44vh; margin-top: 32px; }
  .bento { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 734px) {
  .nav-links { display: none; }
  .providers-grid { grid-template-columns: 1fr; gap: 32px; }
  .bento { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card.wide { grid-column: auto; flex-direction: column; align-items: stretch; }
  .spec-list > div { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .agent, .agent:not(.lead) { padding: 8px 12px; gap: 8px; min-width: 0; }
  .agent em, .pill { display: none; }
  .agent.lead .mark { width: 22px; height: 22px; }
  .node-card { min-width: 0; padding: 8px 10px; }
  .node-card em { display: none; }
  .hero-copy { bottom: 8vh; }
  .arc-label strong { font-size: 21px; }
  .arc-label span { font-size: 14px; }
  .ctas { gap: 24px; }
  .machines-copy p, .teams-copy p { font-size: 15px; }
  .machines-fine { display: none; }
  .foot-bar { flex-direction: column; }
  .foot-links a:first-child { padding-left: 0; }
  .features, .specs { padding-top: 100px; }
  .gitem { padding: 28px 24px; height: 560px; }
  .gcap { font-size: 19px; }
  .review { grid-template-columns: 1fr; }
  .review-tree { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
