/* Native Solar Dark tokens. Every surface, glyph and label stays vector at any DPR. */
body:not(.studio) .product-intro { inset: clamp(82px, 12svh, 124px) 0 auto; padding: 0 28px; }
body:not(.studio) .product-glass { --intro-offset: 0px; transform: none; padding: 23px 34px; border-radius: 24px; }
.mac-demo { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
.demo-window {
  --demo-width: min(1160px, calc(100vw - 96px), calc((100svh - 232px) * 5 / 3));
  --canvas: #09272f; --sidebar: #103039; --surface: #183a43; --inset: #20454d;
  --text: #e2ebe4; --secondary: #b2c7c4; --muted: #9db5b2; --accent: #82c6dd;
  --border: #2e4d55; --strong: #446168; --active: #25434a; --green: #a4b973;
  position: absolute; left: 50%; top: 208px; width: var(--demo-width); aspect-ratio: 5 / 3;
  transform: translateX(-50%); pointer-events: auto; border-radius: 13px;
  color: var(--text); background: var(--canvas);
  box-shadow: 0 28px 65px #10354c4d, 0 8px 24px #092b4340, 0 0 0 1px #f0fbffeb, 0 0 0 6px #e3f5ff4d, 0 0 38px 5px #c2efff80;
  animation: app-arrive .9s cubic-bezier(.16,1,.3,1) both;
}
.demo-window::before { content: ""; position: absolute; inset: -7px; border-radius: 20px; border: 1px solid #e7f9ffc9; box-shadow: inset 0 0 14px #e3f9ff59, 0 0 22px #c0eaff45; pointer-events: none; }
.demo-flash { position: absolute; inset: 0; border-radius: inherit; background: #f0faff; opacity: 0; pointer-events: none; }
.demo-clip { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.demo-canvas, .demo-camera { position: absolute; width: 1440px; height: 864px; left: 0; top: 0; transform-origin: 0 0; }
.demo-canvas { transform: scale(var(--demo-scale,.75)); font: 400 14px/1.45 -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; letter-spacing: 0; -webkit-font-smoothing: antialiased; }
.demo-camera { background: var(--canvas); }
.demo-canvas *, .demo-canvas *::before, .demo-canvas *::after { box-sizing: border-box; }
.demo-canvas svg { width: 16px; height: 16px; flex: none; vertical-align: middle; }
.demo-sidebar { position: absolute; inset: 0 auto 0 0; width: 280px; background: var(--sidebar); border-right: 1px solid #061d24; }
.demo-titlebar { height: 53px; display: flex; align-items: center; gap: 8px; padding: 0 21px; }
.demo-traffic { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.demo-traffic:nth-child(2) { background: #febc2e; }
.demo-traffic:nth-child(3) { background: #28c840; }
.demo-titlebar svg { width: 19px; height: 19px; margin-left: 19px; color: var(--muted); }
.demo-filter { position: absolute; top: 60px; left: 24px; right: 24px; height: 28px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); display: flex; align-items: center; gap: 6px; padding: 0 8px; font-size: 13px; color: var(--muted); }
.demo-filter svg { width: 12px; height: 12px; }
.demo-nav { position: absolute; top: 108px; left: 24px; right: 24px; }
.demo-nav > div { display: flex; align-items: center; justify-content: space-between; height: 32px; padding: 0 8px; font-size: 13px; }
.demo-nav small { color: var(--muted); font-size: 11px; }
.demo-host { position: absolute; left: 24px; width: 232px; height: 28px; display: flex; align-items: center; gap: 7px; color: var(--secondary); font-size: 11px; font-weight: 600; border-radius: 7px; }
.demo-host svg { margin-left: auto; width: 10px; height: 10px; }
.demo-host em { font-style: normal; color: var(--muted); font-weight: 400; }
.demo-row { position: absolute; left: 24px; width: 232px; height: 32px; display: flex; align-items: center; padding: 0 8px; gap: 12px; border-radius: 7px; font-size: 13px; }
.demo-row small { margin-left: auto; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.demo-status-dot { width: 6px; height: 6px; flex: none; margin: 0 4px; border-radius: 50%; background: var(--accent); }
.demo-status-dot.working { background: #35c780; }
.demo-status-dot.idle { background: #82a7b1; }
.demo-row.selected { background: var(--active); }
.demo-moving-row { z-index: 5; transform-origin: 102px 16px; }
.demo-moving-row.lifted { box-shadow: 0 8px 24px #00131766, 0 0 0 1px #82c6dd99; background: #2b4b54; }
.demo-drop-target { position: absolute; left: 17px; top: 359px; width: 246px; height: 69px; border: 1px solid var(--accent); border-radius: 9px; background: #82c6dd0d; opacity: 0; }
.demo-drop-hint { position: absolute; left: 34px; top: 398px; height: 32px; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--accent); opacity: 0; }
.demo-shells { color: var(--secondary); }
.demo-shells svg { margin-left: auto; width: 10px; height: 10px; }
.demo-sidebar-footer { position: absolute; bottom: 15px; left: 32px; color: var(--muted); font-size: 11px; }
.demo-toolbar { position: absolute; left: 280px; right: 0; height: 53px; display: flex; align-items: center; gap: 16px; padding: 0 19px 0 12px; }
.demo-toolbar strong { font-size: 15px; font-weight: 600; }
.demo-toolbar-spacer { flex: 1; }
.demo-segment { display: flex; padding: 2px; height: 24px; border-radius: 7px; background: var(--surface); font-size: 11px; font-weight: 500; }
.demo-segment span { width: 72px; display: grid; place-items: center; }
.demo-segment span:first-child { border: 1px solid var(--strong); background: #345159; border-radius: 5px; }
.demo-new { border: 1px solid var(--border); border-radius: 7px; padding: 4px 18px; font-size: 13px; font-weight: 600; background: var(--surface); }
.demo-toolbar > svg { color: var(--secondary); }
.demo-pane { position: absolute; left: 280px; top: 53px; width: 1160px; height: 811px; }
.demo-thread { width: 744px; margin: 28px auto 0; }
.demo-prompt { width: fit-content; max-width: 650px; margin: 0 0 24px auto; padding: 10px 15px; border: 1px solid var(--border); border-radius: 17px; background: var(--inset); }
.demo-agent { min-height: 42px; margin: 0 0 18px; }
.demo-caret { display: inline-block; width: 2px; height: 13px; background: var(--accent); margin-left: 2px; vertical-align: -2px; }
.demo-tool { height: 36px; display: flex; align-items: center; gap: 10px; padding: 0 12px; margin: 8px 0; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); }
.demo-tool svg { width: 15px; height: 15px; color: var(--muted); }
.demo-tool code { font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--secondary); }
.demo-tool-state { margin-left: auto; color: var(--muted); font-size: 12px; }
.demo-chevron { color: var(--muted); font-size: 17px; padding-left: 4px; }
.demo-diff { border: 1px solid var(--border); border-radius: 9px; background: var(--surface); overflow: hidden; margin-top: 8px; }
.demo-diff .demo-tool { margin: 0; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; }
.demo-code { padding: 7px 0 9px; font: 12px/23px ui-monospace, SFMono-Regular, Menlo, monospace; }
.demo-code div { padding: 0 12px; white-space: pre; }
.demo-code .context { color: var(--secondary); }
.demo-code .removed { color: #f2988f; background: #402e32; }
.demo-code .added { color: #c1d58f; background: #203d37; }
.demo-test { margin-top: 15px; }
.demo-test-results { padding: 7px 13px; border-left: 1px solid var(--border); margin: 8px 0 10px 8px; font: 12px/25px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--secondary); }
.demo-test-results span { display: block; }
.demo-test-results b { color: #c1d58f; font-weight: 500; margin-right: 10px; }
.demo-summary { margin: 12px 0 0; min-height: 20px; }
.demo-activity { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--secondary); }
.demo-activity-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.demo-activity.complete .demo-activity-dot { background: var(--green); }
.demo-compose { width: 744px; height: 106px; margin: 18px auto 0; padding: 13px 18px; border: 1px solid var(--strong); background: var(--surface); border-radius: 17px; color: var(--muted); }
.demo-compose small { display: flex; gap: 20px; margin-top: 47px; font-size: 11px; }
.demo-compose small span:last-child { margin-left: auto; }
.demo-move-status { display: flex; align-items: center; gap: 8px; width: 744px; height: 33px; margin: 14px auto 0; color: var(--accent); font-size: 12px; }
.demo-move-status svg { width: 14px; height: 14px; }
.demo-cursor { position: absolute; left: 0; top: 0; width: 29px !important; height: 36px !important; z-index: 10; overflow: visible; filter: drop-shadow(0 2px 2px #00141866); }
.demo-click-ring { position: absolute; left: 0; top: 0; width: 30px; height: 30px; margin: -15px 0 0 -15px; border: 1.5px solid #b4e8f7; border-radius: 50%; pointer-events: none; }
.demo-window.proof { animation: none; }
body.studio .mac-demo { display: none; }
@keyframes app-arrive { from { opacity: 0; transform: translate(-50%,20px); } to { opacity: 1; transform: translate(-50%,0); } }
@media (max-width: 700px) {
  body:not(.studio) .product-intro { inset: 90px 0 auto; padding: 0 18px; }
  .demo-window { --demo-width: min(calc(100vw - 40px),calc((100svh - 264px) * 5 / 3)); top: 240px; left: 50%; transform: translateX(-50%); animation: none; }
  body:not(.studio) .product-glass { padding: 23px 26px; border-radius: 22px; }
}
@media (max-height: 600px) and (min-width: 701px) {
  body:not(.studio) .product-intro { inset: 76px 0 auto; }
  body:not(.studio) .product-glass { padding: 23px 32px; }
  .demo-window { --demo-width: min(1160px,calc(100vw - 64px),calc((100svh - 204px) * 5 / 3)); top: 188px; }
}
@media (prefers-reduced-motion: reduce) { .demo-window { animation: none; } }
/* Brand left, download and repository actions right. */
.masthead { top: 25px; justify-content: flex-start; gap: 28px; z-index: 4; }
.wordmark { text-decoration: none; flex: none; }
.brand-lockup { width: 146px; }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.header-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; border: 1px solid #ffffff70; border-radius: 13px; background: rgb(var(--glass-pearl) / var(--glass-min-opacity)); box-shadow: 0 2px 10px #2449650a; backdrop-filter: blur(16px); color: #172f3b; text-decoration: none; transition: background .15s, transform .15s; }
body.glass-lens-ready .header-actions a { background: rgb(250 249 246 / var(--header-glass-tint,.10)); }
.header-actions a:hover { transform: translateY(-1px); }
.header-actions img { opacity: .82; }
.mac-download { gap: 9px; padding: 0 17px; font-size: 12px; font-weight: 600; letter-spacing: -.015em; }
.github-link { width: 40px; height: 40px; }
.header-actions a:focus-visible, .wordmark:focus-visible { outline: 2px solid #315a79; outline-offset: 4px; }
.demo-new.is-pressed { background: var(--inset); box-shadow: 0 0 0 2px #82c6dd55; }
.demo-vendor { display: inline-block; flex: none; width: 20px; height: 20px; background: currentColor; mask-position: center; mask-size: contain; mask-repeat: no-repeat; }
.demo-vendor.claude { color: #e2a18a; mask-image: url('/assets/providers/claude.svg'); }
.demo-vendor.openai { color: #e2ebe4; mask-image: url('/assets/providers/openai.svg'); }
.demo-spawn-row { opacity: 0; background: #82c6dd0b; }
.spawn-review { padding-left: 24px; }
.spawn-review::before { content: ''; position: absolute; left: 14px; top: -8px; width: 6px; height: 23px; border-left: 1px solid var(--strong); border-bottom: 1px solid var(--strong); border-bottom-left-radius: 4px; }
.demo-new-session { position: absolute; left: 280px; top: 53px; width: 1160px; height: 811px; background: var(--canvas); opacity: 0; }
.demo-session-form { position: absolute; left: 210px; top: 82px; width: 650px; }
.demo-session-form h2 { font-size: 27px; font-weight: 500; letter-spacing: -.5px; text-align: center; margin: 0; line-height: 36px; }
.demo-session-form > p { color: var(--secondary); font-size: 14px; text-align: center; margin: 10px 0 0; line-height: 20px; }
.demo-new-composer { position: relative; height: 230px; margin-top: 38px; border: 1px solid var(--strong); border-radius: 17px; background: var(--surface); box-shadow: 0 8px 32px #00171e15; }
.demo-new-prompt { padding: 23px 24px; font-size: 16px; line-height: 26px; }
.demo-input-caret { display: inline-block; width: 1.5px; height: 18px; background: var(--accent); vertical-align: -3px; margin-left: 2px; }
.demo-new-options { position: absolute; left: 15px; right: 15px; bottom: 14px; display: flex; align-items: center; gap: 10px; height: 38px; }
.demo-machine-chip,.demo-provider-chip { height: 34px; padding: 0 10px; display: flex; align-items: center; gap: 8px; border-radius: 7px; font-size: 13px; color: var(--secondary); background: #20454d75; }
.demo-machine-chip { min-width: 180px; }
.demo-provider-chip { min-width: 160px; }
.demo-machine-chip > svg:last-child,.demo-provider-chip > svg:last-child { width: 10px; height: 10px; margin-left: auto; }
.demo-provider-chip .demo-vendor { width: 16px; height: 16px; }
.demo-send { width: 34px; height: 34px; display: grid; place-items: center; margin-left: auto; font-size: 23px; line-height: 1; border-radius: 50%; color: var(--muted); background: var(--inset); }
.demo-send.ready { color: var(--canvas); background: var(--accent); }
.demo-send.pressed { transform: scale(.92); }
.demo-picker { position: absolute; bottom: 65px; padding: 6px; border: 1px solid var(--strong); background: #1d3e47; border-radius: 11px; box-shadow: 0 12px 32px #00131660, 0 2px 4px #00131666; opacity: 0; }
.demo-machine-menu { left: 15px; width: 282px; }
.demo-provider-menu { left: 205px; width: 282px; }
.demo-menu-label { height: 28px; padding: 4px 10px; color: var(--muted); font-size: 11px; font-weight: 500; }
.demo-picker > div:not(.demo-menu-label) { display: flex; align-items: center; gap: 12px; height: 58px; padding: 8px 10px; border-radius: 6px; }
.demo-picker > div.chosen { background: #315762; }
.demo-picker > div > svg { width: 19px; height: 19px; color: var(--secondary); }
.demo-picker > div > span:not(.demo-vendor) { font-weight: 500; font-size: 13px; }
.demo-picker small { display: block; color: var(--muted); font-weight: 400; font-size: 11px; margin-top: 2px; }
.demo-picker b { margin-left: auto; color: var(--accent); font-size: 13px; opacity: 0; }
.demo-picker .chosen b { opacity: 1; }
.demo-machine-menu i { margin-left: auto; width: 5px; height: 5px; border-radius: 50%; background: #5bb699; }
.demo-new-footnote { margin-top: 16px; color: var(--muted); font-size: 11px; text-align: center; }
.demo-delegation { position: absolute; top: 28px; left: 208px; width: 744px; opacity: 0; }
.demo-delegate-copy { min-height: 60px; margin: 0 0 20px; line-height: 21px; }
.demo-spawn-tool { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); overflow: hidden; }
.demo-spawn-heading { display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--border); color: var(--secondary); }
.demo-spawn-heading strong { font-size: 12px; font-weight: 500; }
.demo-spawn-heading > span { margin-left: auto; font-size: 11px; color: var(--muted); }
.demo-agent-task { display: grid; grid-template-columns: 30px minmax(0,1fr) 165px 60px; align-items: center; gap: 12px; min-height: 84px; padding: 16px; border-bottom: 1px solid #2e4d5570; opacity: 0; }
.demo-agent-task:last-child { border: 0; }
.demo-task-icon { display: grid; place-items: center; }
.demo-task-icon .demo-vendor { width: 24px; height: 24px; }
.demo-agent-task strong { font-weight: 500; font-size: 13px; }
.demo-agent-task p { margin: 4px 0 0; font-size: 11px; color: var(--muted); }
.demo-task-destination { display: grid; grid-template-columns: 16px 1fr; column-gap: 7px; align-items: center; font-size: 12px; color: var(--secondary); }
.demo-task-destination svg { width: 14px; height: 14px; }
.demo-task-destination small { grid-column: 2; font-size: 10px; color: var(--muted); margin-top: 4px; }
.demo-task-state { font-size: 11px; color: var(--accent); text-align: right; }
.demo-task-state.done { color: #c1d58f; }
.demo-delegate-progress { position: relative; margin-top: 18px; padding-bottom: 12px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--secondary); border-bottom: 2px solid var(--inset); }
.demo-delegate-progress i { position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px; background: var(--accent); transform-origin: left; }
.demo-delegate-progress small { color: var(--muted); font-size: 11px; }
.demo-delegate-summary { display: flex; align-items: center; gap: 8px; color: #c1d58f; font-size: 13px; margin: 18px 0; }
.demo-delegate-summary svg { width: 14px; height: 14px; }
.demo-delegate-compose { height: 94px; border: 1px solid var(--strong); border-radius: 16px; background: var(--surface); padding: 14px 18px; color: var(--muted); }
.demo-delegate-compose small { display: flex; align-items: center; gap: 8px; margin-top: 25px; font-size: 11px; }
.demo-delegate-compose .demo-vendor { width: 13px; height: 13px; }
.demo-delegate-compose small > span:nth-last-child(2) { margin-left: 12px; }
.demo-delegate-compose small > span:last-child { margin-left: auto; }
@media (max-width: 700px) {
  .masthead { top: 20px; left: 20px; right: 20px; gap: 13px; }
  .brand-lockup { width: 110px; }
  .header-actions { gap: 7px; }
  .header-actions a { min-height: 34px; border-radius: 11px; }
  .mac-download { font-size: 10px; padding: 0 10px; gap: 6px; white-space: nowrap; }
  .mac-download img { width: 13px; height: 15px; }
  .github-link { width: 34px; height: 34px; }
  .github-link img { width: 18px; height: 18px; }
  .demo-session-form { width: 490px; left: 290px; }
  .demo-new-options { gap: 6px; }
  .demo-machine-chip { min-width: 170px; }
  .demo-provider-chip { min-width: 150px; }
  .demo-provider-menu { left: 180px; }
  .demo-delegation { left: 290px; width: 490px; }
  .demo-agent-task { grid-template-columns: 24px minmax(0,1fr) 145px; gap: 9px; padding: 14px; }
  .demo-task-state { display: none; }
  .demo-agent-task p { max-width: 220px; }
  .demo-session-form h2 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) { .header-actions a { transition: none; } }
@media (forced-colors: active) { .header-actions a, body.glass-lens-ready .header-actions a { border-color: ButtonText; background: Canvas; color: LinkText; } }

@media (max-width: 360px) { .masthead { left: 16px; right: 16px; gap: 8px; } .brand-lockup { width: 98px; } .header-actions { gap: 5px; } .mac-download { font-size: 9px; padding: 0 8px; } .github-link { width: 30px; } }
