:root {
  --font-display: "Clash Display", "Satoshi", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Fraunces", ui-serif, Georgia, serif;
  --font-cjk: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --bg: #05070b;
  --bg-2: #0a0e15;
  --surface: #0e131b;
  --surface-2: #131a25;
  --line: rgba(160, 190, 230, 0.10);
  --line-2: rgba(160, 190, 230, 0.18);
  --text: #e8eef6;
  --title: #ffffff;
  --muted: #8e9aab;
  --faint: #8492a5;
  --accent: #4d9fff;
  --accent-ink: #04121f;
  --coral: #ff7067;
  --teal: #2fc6d3;
  --grad: linear-gradient(100deg, #6fb2ff 0%, #36c8d6 55%, #ff8a73 110%);
  --glow: rgba(77, 159, 255, 0.20);
  --mesh-halo: #161d27; --mesh-ink: #2a3646; --mesh-ring: #0e131a; --mesh-hub: #3b4c63; --mesh-flow: #56698a;
  --store-bg: #f3f6fa;
  --store-ink: #05070b;
  --shadow-phone: 0 40px 120px -30px rgba(40, 110, 220, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);

  /* phone = the app's Classic palette */
  --p-bg: #06080c; --p-panel: #0d1117; --p-surface: #161b22; --p-surface-2: #1c2230;
  --p-line: #262e3a; --p-line-2: #384251; --p-key: #222b38; --p-field: #05070a;
  --p-text: #e6edf3; --p-muted: #8b949e; --p-dim: #6f7b8a; --p-content: #cdd9e5;
  --p-accent: #4d9fff; --p-on-accent: #04121f;
  --c-green: #3fb950; --c-cyan: #39c5cf; --c-blue: #4d9fff; --c-purple: #bc8cff;
  --c-orange: #e3a008; --c-red: #f85149; --c-claude: #e8805e; --c-codex: #10b39a;

  --radius: 18px;
  --wrap: 1180px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f5f8fc;
  --bg-2: #eaf1f8;
  --surface: #ffffff;
  --surface-2: #f2f6fb;
  --line: rgba(20, 50, 90, 0.10);
  --line-2: rgba(20, 50, 90, 0.18);
  --text: #0f1e33;
  --title: var(--text);
  --muted: #536477;
  --faint: #5e6e82;
  --accent: #2a66bd;
  --accent-ink: #ffffff;
  --coral: #e0574b;
  --teal: #1c7d94;
  --grad: linear-gradient(100deg, #2a66bd 0%, #1c8aa0 55%, #e0574b 110%);
  --glow: rgba(42, 102, 189, 0.16);
  --mesh-halo: #e6ebf1; --mesh-ink: #cfd7e1; --mesh-ring: #f7f9fc; --mesh-hub: #b3bfcd; --mesh-flow: #f7f9fc;
  --store-bg: #0b1220;
  --store-ink: #ffffff;
  --shadow-phone: 0 40px 100px -35px rgba(30, 70, 140, 0.45), 0 0 0 1px rgba(15, 30, 51, 0.10);

  /* phone = the app's Arctic palette */
  --p-bg: #eaf1f8; --p-panel: #eaf1f8; --p-surface: #ffffff; --p-surface-2: #eef4fb;
  --p-line: #d3dfeb; --p-line-2: #b4c4d4; --p-key: #c8dbee; --p-field: #f5f8fc;
  --p-text: #14243a; --p-muted: #5a6b82; --p-dim: #64778d; --p-content: #1c2c42;
  --p-accent: #2a66bd; --p-on-accent: #ffffff;
  --c-green: #2f855a; --c-cyan: #1c7d94; --c-blue: #2d5aa0; --c-purple: #6a4f9c;
  --c-orange: #b5651d; --c-red: #cf4a3c; --c-claude: #d0643f; --c-codex: #0f8f7b;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s, color .3s;
}
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; }
img, svg { display: block; }
code, pre, .mono { font-family: var(--font-mono); }
.btn svg, .t-ico, .tabbar svg, .r-end svg, .fc, .fi svg, .pathbar svg, .dg-lock use { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; text-decoration: none; }
.brand img { border-radius: 7px; box-shadow: 0 0 0 1px var(--line-2); }
.brand.sm { font-size: 15px; gap: 8px; }
.brand.sm img { border-radius: 5px; }
.nav nav { margin-left: auto; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer;
}
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-toggle:hover { background: var(--surface-2); }
.theme-toggle .moon { display: none; }
.lang-switch { display: flex; align-items: center; height: 38px; padding: 3px; border: 1px solid var(--line-2); border-radius: 10px; }
.lang-switch button { height: 100%; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font: 600 12.5px/1 var(--font-mono); cursor: pointer; }
.lang-switch button:hover { color: var(--text); }
.lang-switch button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.i18n-pending body { visibility: hidden; }
:root[data-theme="light"] .theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .moon { display: block; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 14px;
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform .15s, background-color .2s, border-color .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-store { background: var(--store-bg); color: var(--store-ink); padding: 0 22px 0 18px; }
.btn-store svg { width: 26px; height: 26px; }
.btn-store:hover { box-shadow: 0 10px 30px -10px var(--glow); }
[data-app-store][aria-disabled] { opacity: .6; cursor: default; pointer-events: none; }
[data-app-store][aria-disabled] .store-live, [data-app-store]:not([aria-disabled]) .store-soon { display: none; }
.store-text { display: flex; flex-direction: column; line-height: 1.05; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; text-align: left; }
.store-text small { font-size: 11px; font-weight: 500; letter-spacing: 0.01em; opacity: .8; }
.btn-sm { min-height: 38px; padding: 0 14px 0 12px; font-size: 14px; border-radius: 10px; gap: 6px; }
.btn-sm svg { width: 17px; height: 17px; }
.btn-ghost { color: var(--text); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-ghost svg { width: 16px; height: 16px; stroke-width: 2.2; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { box-shadow: 0 12px 32px -12px var(--accent); }
.btn-line { color: var(--text); border: 1px solid var(--line-2); width: 100%; }
.btn-line:hover { border-color: var(--accent); color: var(--accent); }

/* Hero and feature tour */
.tour { position: relative; isolation: isolate; overflow-x: clip; }
.tour::before {
  content: ""; position: absolute; top: -280px; right: -200px; width: 900px; height: 900px; z-index: -2;
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
}
.hero-mesh {
  position: absolute; z-index: -1; width: 1100px; right: calc(max(24px, (100vw - var(--wrap)) / 2 + 24px) - 390px); top: -60px; opacity: .4;
  pointer-events: none; transform: translateX(56px);
}
.hero-mesh path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hero-mesh .m-halo { stroke: var(--mesh-halo); stroke-width: 52; }
.hero-mesh .m-line { stroke: var(--mesh-ink); stroke-width: 20; }
.hero-mesh .m-flow { stroke: var(--mesh-flow); stroke-width: 4; stroke-dasharray: 14 22; animation: flow 3s linear infinite; }
.hero-mesh .m-ring { fill: var(--mesh-ring); }
.hero-mesh .m-node { fill: var(--mesh-ink); }
.hero-mesh .m-hub { fill: var(--mesh-hub); }
@keyframes flow { to { stroke-dashoffset: -72; } }

.tour-grid {
  --nav-h: 64px;
  --ph: calc(845px * var(--k) + 24px + 92px);
  --stick: max(84px, calc(var(--nav-h) + (100vh - var(--nav-h) - var(--ph)) / 2));
  --k: 0.74;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "copy phone" "feat phone";
  column-gap: 96px;
}
.hero-copy {
  grid-area: copy; min-height: calc(100vh - var(--nav-h)); padding: 48px 0 72px;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 32px 0 0; padding: 0; list-style: none; font-size: 14.5px; color: var(--muted); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg, .no-list > li > svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--c-green); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

h1 {
  font-size: clamp(44px, 6.4vw, 78px); line-height: 0.98; letter-spacing: -0.045em; font-weight: 750;
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pitch { margin-top: 20px; max-width: 34ch; font: italic 350 22px/1.4 var(--font-serif); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72; color: var(--muted); text-wrap: pretty; }
.pitch em { font-weight: 500; color: var(--text); }
.lede { margin-top: 28px; max-width: 40ch; font-size: 19.5px; color: var(--muted); line-height: 1.6; text-wrap: pretty; }

/* Phone */
.hero-phone {
  grid-area: phone; align-self: start; position: sticky; top: var(--stick); margin-top: calc(var(--stick) - var(--nav-h));
  display: flex; flex-direction: column; align-items: center;
}
.phone-frame {
  position: relative;
  width: calc(390px * var(--k) + 24px); height: calc(845px * var(--k) + 24px);
  padding: 12px; border-radius: calc(58px * var(--k) + 12px);
  background: linear-gradient(145deg, #2a3140, #0c0f15 40%, #1b212c);
  box-shadow: var(--shadow-phone);
}
:root[data-theme="light"] .phone-frame { background: linear-gradient(145deg, #dfe6ef, #9aa6b6 45%, #cfd8e3); }
.screen {
  position: relative; width: 390px; height: 845px; overflow: hidden;
  transform: scale(var(--k)); transform-origin: 0 0;
  border-radius: 58px; background: var(--p-bg); color: var(--p-text);
  font: 400 16px/1.3 -apple-system, "SF Pro Text", "Satoshi", system-ui, sans-serif;
  display: flex; flex-direction: column;
  transition: background-color .3s, color .3s;
}

.island { position: absolute; top: 11px; left: 50%; width: 124px; height: 36px; margin-left: -62px; background: #000; border-radius: 20px; z-index: 3; }
.sb { height: 54px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 44px; font-weight: 600; font-size: 17px; }
.sb-icons { display: flex; gap: 6px; align-items: center; }
.sb-icons i { display: block; background: currentColor; }
.sig { width: 18px; height: 11px; clip-path: polygon(0 70%, 20% 70%, 20% 100%, 0 100%, 0 70%, 27% 48%, 47% 48%, 47% 100%, 27% 100%, 27% 48%, 54% 25%, 74% 25%, 74% 100%, 54% 100%, 54% 25%, 81% 0, 100% 0, 100% 100%, 81% 100%, 81% 0); }
.wifi { width: 16px; height: 12px; clip-path: path("M8 12 L4.5 8.3 A5 5 0 0 1 11.5 8.3 Z M2.3 6.1 A8 8 0 0 1 13.7 6.1 L12.5 7.3 A6.3 6.3 0 0 0 3.5 7.3 Z M0 3.8 A11.2 11.2 0 0 1 16 3.8 L14.8 5 A9.5 9.5 0 0 0 1.2 5 Z"); }
.bat { width: 26px; height: 12px; border-radius: 4px; }

.hdr { height: 48px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 18px 0 20px; border-bottom: 1px solid var(--p-line); }
.crumb { display: flex; align-items: center; gap: 7px; font-size: 15px; }
.crumb .mesh, .crumb .sep { color: var(--p-muted); }
.crumb b { font-size: 18px; font-weight: 600; }
.chev-d { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; color: var(--p-muted); }
.hdr-ic { display: flex; gap: 20px; color: var(--p-accent); }
.hdr-ic svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Mesh picker preview; all device identities are fictional. */
.mesh-picker { position: absolute; inset: 54px 0 0; z-index: 4; display: grid; place-items: center; padding: 25px 24px 60px; opacity: 0; visibility: hidden; background: color-mix(in srgb, var(--p-bg) 30%, transparent); backdrop-filter: blur(8px); transition: opacity .45s, visibility 0s linear .45s; }
.phone[data-view="meshes"] .mesh-picker { opacity: 1; visibility: visible; transition-delay: 0s; }
.phone[data-view="meshes"] .v-overview { opacity: 1; visibility: visible; transform: none; }
.phone[data-view="meshes"] .tabbar [data-view="overview"] { color: var(--p-accent); }
.mesh-sheet { width: 100%; max-height: 100%; overflow: hidden; border: 1px solid var(--p-line-2); border-radius: 24px; background: var(--p-bg); box-shadow: 0 15px 60px #0006; }
.mesh-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 22px; border-bottom: 1px solid var(--p-line); }
.mesh-sheet-head b { font-size: 17px; }
.mesh-sheet-head > span { padding: 6px 12px; border: 1px solid color-mix(in srgb, var(--p-accent) 40%, transparent); border-radius: 18px; color: var(--p-accent); background: color-mix(in srgb, var(--p-accent) 14%, transparent); }
.mesh-group { display: flex; justify-content: space-between; align-items: center; margin: 0 14px; padding: 24px 12px 16px; border-bottom: 1px solid var(--p-line-2); color: var(--p-muted); font-size: 14px; font-weight: 600; }
.mesh-group i { display: inline-block; width: 7px; height: 7px; margin: 0 6px 0 16px; border-radius: 50%; background: var(--c-green); }
.mesh-settings, .mesh-selected { color: var(--p-accent); font-size: 22px; }
.mesh-peer { display: flex; align-items: center; gap: 10px; margin: 0 14px; padding: 10px 12px; border-bottom: 1px solid var(--p-line-2); }
.mesh-peer:last-child { border-bottom: 0; }
.mesh-device { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--p-line-2); border-radius: 12px; color: var(--p-accent); background: color-mix(in srgb, var(--p-accent) 12%, var(--p-panel)); font-size: 28px; }
.mesh-device svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.mesh-peer > div { flex: 1; }
.mesh-peer b { display: block; font-size: 17px; font-weight: 600; }
.mesh-peer b span { color: var(--p-muted); font-weight: 400; }
.mesh-peer small { display: block; margin-top: 3px; color: var(--c-green); font: 11px/1.4 var(--font-mono); }
.mesh-peer small em { color: var(--c-orange); font-style: normal; }
.mesh-peer small strong { color: var(--c-cyan); font-weight: 400; }
.mesh-peer .mesh-local, .mesh-next { color: var(--p-muted); }
.mesh-next { font-size: 28px; }

.views { position: relative; flex: 1; min-height: 0; }
.view {
  position: absolute; inset: 0; overflow: hidden; padding: 14px 18px 0;
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(.99);
  transition: opacity .45s ease, transform .5s cubic-bezier(.2,.7,.2,1), visibility 0s linear .5s;
}
.phone[data-view="agents"] .v-agents,
.phone[data-view="terminal"] .v-terminal,
.phone[data-view="desktop"] .v-desktop,
.phone[data-view="files"] .v-files,
.phone[data-view="overview"] .v-overview { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

.tabbar { flex: none; height: 84px; display: grid; grid-template-columns: repeat(5, 1fr); padding: 8px 6px 0; border-top: 1px solid var(--p-line); background: var(--p-bg); }
.tabbar span { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; color: var(--p-muted); font: 500 11px/1 -apple-system, var(--font-body); cursor: pointer; padding: 4px 0; transition: color .25s; }
.tabbar svg { width: 26px; height: 26px; stroke-width: 1.6; }
.phone[data-view="agents"] .tabbar [data-view="agents"],
.phone[data-view="terminal"] .tabbar [data-view="terminal"],
.phone[data-view="desktop"] .tabbar [data-view="desktop"],
.phone[data-view="files"] .tabbar [data-view="files"],
.phone[data-view="overview"] .tabbar [data-view="overview"] { color: var(--p-accent); }
.home-ind { position: absolute; bottom: 8px; left: 50%; width: 136px; height: 5px; margin-left: -68px; border-radius: 3px; background: var(--p-text); opacity: .85; }

/* Shared phone widgets */
.card { background: var(--p-panel); border: 1px solid var(--p-line-2); border-radius: 18px; }
:root[data-theme="light"] .card { background: var(--p-surface); border-color: var(--p-line); }

/* Agents view */
.seg { display: grid; grid-template-columns: 1fr 1.08fr 1fr 1.1fr; padding: 4px; border: 1px solid var(--p-line-2); border-radius: 24px; font-size: 16px; font-weight: 500; color: var(--p-muted); text-align: center; }
.seg span { padding: 9px 0; border-radius: 20px; }
.seg .on { background: var(--p-accent); color: var(--p-on-accent); font-weight: 600; }
.search-row { display: flex; gap: 10px; margin-top: 14px; }
.field { flex: 1; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border: 1px solid var(--p-line-2); border-radius: 12px; color: var(--p-dim); font-size: 15px; background: var(--p-field); }
.field svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.pill-btn { display: flex; align-items: center; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--p-line-2); background: var(--p-surface); color: var(--p-accent); font-size: 14px; font-weight: 600; }
.group-h { margin: 16px 2px 8px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--p-muted); }
.count { padding: 1px 8px; border-radius: 10px; background: var(--p-surface-2); font-size: 12px; }
.rows { list-style: none; margin: 0; padding: 0 0 0 14px; }
.rows li { display: flex; align-items: center; gap: 14px; height: 70px; border-bottom: 1px solid var(--p-line); padding-right: 12px; }
.rows li:last-child { border-bottom: 0; }
.ag { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; font: 600 16px/1 var(--font-mono); }
.ag svg { width: 22px; height: 22px; }
.ag-claude { color: var(--c-claude); background: color-mix(in srgb, var(--c-claude) 18%, var(--p-panel)); }
.ag-codex { color: var(--p-content); background: color-mix(in srgb, var(--p-muted) 18%, var(--p-panel)); font-size: 13px; }
.ag-pi { color: var(--c-cyan); background: color-mix(in srgb, var(--c-cyan) 16%, var(--p-panel)); font-size: 22px; font-family: -apple-system, var(--font-body); }
.r-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.r-main b { font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-main small { font: 12px/1 var(--font-mono); color: var(--p-muted); }
.working { color: var(--c-green); display: inline-flex; align-items: center; gap: 5px; }
.working i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.4s ease-in-out infinite; }
.needs { color: var(--c-orange); }
@keyframes pulse { 50% { opacity: .25; } }
.r-end { display: flex; align-items: center; gap: 12px; color: var(--p-muted); font-size: 18px; }
.r-end svg { width: 18px; height: 18px; }

/* Terminal view */
.v-terminal { padding: 0; display: flex; flex-direction: column; }
.pathbar { flex: none; display: flex; justify-content: space-between; align-items: center; height: 40px; padding: 0 18px; background: var(--p-panel); border-bottom: 1px solid var(--p-line); font: 500 15px/1 var(--font-mono); }
.pathbar span { display: flex; align-items: center; gap: 8px; }
.pathbar svg { width: 18px; height: 18px; color: var(--p-muted); }
.pathbar .shell { color: var(--p-accent); font-weight: 600; }
.pathbar .shell .chev-d { color: var(--p-accent); }
.term {
  flex: 1; min-height: 0; margin: 0; padding: 10px 10px 0; overflow: hidden;
  font-size: 11.6px; line-height: 1.5; color: var(--p-content); white-space: pre;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.term code { display: block; font: inherit; }
.term .p { color: var(--c-cyan); }
.term .d { color: var(--c-blue); }
.term .g { color: var(--c-green); }
.term .r { color: var(--c-red); }
.term u { color: var(--c-cyan); }
.typed { display: inline-block; vertical-align: bottom; overflow: hidden; width: 20ch; }
.phone[data-view="terminal"].animate .typed { animation: type 1.4s steps(20) .5s both; }
@keyframes type { from { width: 0; } }
.cursor { display: inline-block; width: 7px; height: 14px; margin-left: 1px; vertical-align: -2px; background: var(--c-green); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.tmux { flex: none; display: flex; gap: 5px; align-items: center; padding: 6px 8px; background: var(--p-panel); border-top: 1px solid var(--p-line); font: 500 13px/1.5 var(--font-body); color: var(--p-muted); }
.tmux > span { padding: 5px 8px; border: 1px solid var(--p-line-2); border-radius: 10px; white-space: nowrap; }
.tmux small { margin-right: 4px; font: 11px var(--font-mono); }
.tmux .on { color: var(--p-accent); border-color: var(--p-accent); background: color-mix(in srgb, var(--p-accent) 16%, var(--p-panel)); font-weight: 700; }
.tmux .tm-add { margin-left: auto; padding: 0 3px; border: 0; color: var(--p-accent); font-size: 26px; }
.keys { flex: none; display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; padding: 10px 8px 10px; }
.k { height: 46px; display: grid; place-items: center; border-radius: 10px; background: var(--p-key); font: 500 16px/1 var(--font-mono); color: var(--p-text); }
.k svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.k-esc { color: #ffb4ad; background: color-mix(in srgb, var(--c-red) 45%, var(--p-key)); }
:root[data-theme="light"] .k svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.k-esc { color: #fff; }
.k-b { color: var(--p-accent); font-size: 14px; }
.k-y { color: var(--c-orange); font-size: 14px; background: color-mix(in srgb, var(--c-orange) 20%, var(--p-key)); }

/* Desktop view */
.v-desktop { padding: 0 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.rd-monitor { width: 100%; display: flex; flex-direction: column; align-items: center; }
.rd-screen { width: 100%; padding: 6px 6px 0; border: 1.5px solid var(--p-line-2); border-radius: 12px; background: var(--p-panel); }
.rd-screen .mac { width: 100%; border-radius: 4px; }
.rd-foot { display: flex; justify-content: space-between; align-items: center; padding: 6px 4px 7px 8px; font: 500 11px/1 var(--font-mono); letter-spacing: .1em; color: var(--p-muted); }
.rd-foot i { width: 7px; height: 7px; border-radius: 50%; background: var(--p-accent); }
.rd-neck { width: 46px; height: 22px; background: var(--p-surface-2); border-inline: 1.5px solid var(--p-line-2); }
.rd-base { width: 150px; height: 9px; border: 1.5px solid var(--p-line-2); border-radius: 6px; background: var(--p-surface-2); }
.rd-opts { width: 100%; display: grid; grid-template-columns: 1fr 1fr; margin-top: 8px; border: 1px solid var(--p-line-2); border-radius: 14px; background: var(--p-panel); font: 500 15px/1 var(--font-mono); }
.rd-opts div { display: flex; flex-direction: column; gap: 7px; padding: 11px 14px; }
.rd-opts div + div { border-left: 1px solid var(--p-line-2); }
.rd-opts small { font-size: 10.5px; letter-spacing: .1em; color: var(--p-muted); }
.rd-connect { display: flex; align-items: center; gap: 9px; padding: 11px 26px; border-radius: 24px; background: var(--p-accent); color: var(--p-on-accent); font-size: 17px; font-weight: 600; }
.rd-connect svg { width: 17px; height: 17px; fill: currentColor; }
.mac {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 110%, #ff8f73 0%, transparent 45%),
    radial-gradient(90% 80% at 10% 0%, #2f73d8 0%, transparent 60%),
    linear-gradient(160deg, #0e2d5a 0%, #1e5fa8 45%, #25a5bd 80%, #8fd3db 100%);
}
.mac-menu { position: absolute; inset: 0 0 auto; height: 9px; display: flex; gap: 8px; align-items: center; padding: 0 8px; background: rgba(8, 16, 30, .35); }
.mac-menu i { width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: .9; }
.mac-menu span { width: 18px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.7); }
.mac-menu em { margin-left: auto; width: 40px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.7); }
.win { position: absolute; border-radius: 6px; overflow: hidden; background: #0f141c; box-shadow: 0 10px 24px rgba(0,0,0,.4); }
.w-bar { height: 12px; display: flex; gap: 4px; align-items: center; padding: 0 6px; background: #1a212c; }
.w-bar i { width: 5px; height: 5px; border-radius: 50%; background: #ff6159; }
.w-bar i:nth-child(2) { background: #ffbd2e; }
.w-bar i:nth-child(3) { background: #28c941; }
.w-code { left: 6%; top: 11%; width: 58%; height: 66%; }
.w-body { display: flex; height: calc(100% - 12px); }
.w-side { width: 22%; padding: 7px 5px; display: flex; flex-direction: column; gap: 5px; background: #121821; }
.w-side i { height: 3px; border-radius: 2px; background: #3a4555; }
.w-lines { flex: 1; padding: 7px 8px; display: flex; flex-direction: column; gap: 5.4px; }
.w-lines i { height: 3px; width: var(--w); border-radius: 2px; background: var(--c, #7d8898); }
.win.w-term { right: 5%; top: 34%; width: 38%; height: 40%; background: #0a0d12; }
.w-lines.t { gap: 6px; }
.dock { position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; padding: 3px 5px; border-radius: 7px; background: rgba(255,255,255,.22); }
.dock i { width: 11px; height: 11px; border-radius: 3px; background: #fff; }
.dock i:nth-child(1) { background: #4d9fff; } .dock i:nth-child(2) { background: #ff7067; } .dock i:nth-child(3) { background: #28c941; }
.dock i:nth-child(4) { background: #ffbd2e; } .dock i:nth-child(5) { background: #1a212c; } .dock i:nth-child(6) { background: #bc8cff; } .dock i:nth-child(7) { background: #e6edf3; }

/* Files view */
.v-files { padding: 0; }
.fbar { display: flex; justify-content: space-between; align-items: center; height: 40px; padding: 0 16px; background: var(--p-panel); border-bottom: 1px solid var(--p-line); }
.froot { display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; background: var(--p-surface-2); font-weight: 600; font-size: 15px; }
.froot svg, .fact svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.fact { display: flex; gap: 24px; align-items: center; padding-left: 26px; border-left: 1px solid var(--p-line-2); color: var(--p-accent); font-weight: 700; }
.flist { list-style: none; margin: 0; padding: 0 0 0 18px; }
.flist li { display: flex; align-items: center; gap: 16px; height: 60px; border-bottom: 1px solid var(--p-line); padding-right: 16px; }
.flist b { flex: 1; font-weight: 400; font-size: 17px; display: flex; flex-direction: column; gap: 3px; }
.flist small { font-size: 12px; color: var(--p-muted); }
.fi { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 11px; background: color-mix(in srgb, var(--c-blue) 14%, var(--p-panel)); color: var(--c-blue); font: 700 10px/1 var(--font-mono); letter-spacing: .03em; }
.fi svg { width: 24px; height: 24px; fill: currentColor; stroke: none; }
.fi.doc { color: var(--p-content); background: var(--p-surface-2); }
.fi.img { color: var(--c-purple); background: color-mix(in srgb, var(--c-purple) 14%, var(--p-panel)); }
.fi.zip { color: var(--c-orange); background: color-mix(in srgb, var(--c-orange) 14%, var(--p-panel)); }
.fc { width: 18px; height: 18px; color: var(--p-muted); }

/* Overview view */
.v-overview h4 { margin: 16px 4px 10px; font-size: 19px; font-weight: 700; }
.ov-card { border: 1px solid var(--p-line-2); border-radius: 20px; background: var(--p-panel); padding: 16px 16px 4px; }
:root[data-theme="light"] .ov-card { background: var(--p-surface); border-color: var(--p-line); }
.ov-top { display: flex; justify-content: space-between; align-items: center; }
.ov-top b { font-size: 22px; font-weight: 700; }
.lan { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 16px; font: 600 13px/1 var(--font-mono); color: var(--c-cyan); border: 1px solid color-mix(in srgb, var(--c-cyan) 50%, transparent); background: color-mix(in srgb, var(--c-cyan) 12%, transparent); }
.lan i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.traffic { margin-top: 14px; border: 1px solid var(--p-line-2); border-radius: 12px; overflow: hidden; background: color-mix(in srgb, var(--c-blue) 5%, transparent); }
.tr { display: grid; grid-template-columns: 34px 1fr 1fr 1fr; align-items: center; padding: 8px 12px; font: 500 14px/1 var(--font-mono); color: var(--p-muted); text-align: right; border-top: 1px solid var(--p-line); }
.tr b { color: var(--p-text); font-weight: 700; font-size: 15px; }
.tr-h { font-size: 10.5px; letter-spacing: .08em; border-top: 0; padding: 7px 12px; }
.arr { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: var(--c-blue); background: color-mix(in srgb, var(--c-blue) 18%, transparent); font-family: -apple-system, sans-serif; font-weight: 700; }
.kv { display: flex; justify-content: space-between; padding: 12px 2px; font-size: 15px; color: var(--p-muted); }
.kv code { color: var(--p-text); font-size: 14px; }
.quota { padding: 4px 16px; }
.q { padding: 10px 0; }
.q + .q { border-top: 1px solid var(--p-line); }
.q-h { display: flex; justify-content: space-between; align-items: center; }
.q-ref { width: 18px; height: 18px; fill: none; stroke: var(--p-accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.q-h span { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; }
.dot-c, .dot-x { width: 9px; height: 9px; border-radius: 50%; background: var(--c-claude); }
.dot-x { background: var(--c-codex); }
.tag { font: 600 10.5px/1 var(--font-mono); font-style: normal; padding: 3px 6px; border-radius: 6px; border: 1px solid; }
.tag-o { color: var(--c-orange); }
.tag-g { color: var(--c-cyan); }
.q-r { display: flex; justify-content: space-between; margin-top: 8px; font-size: 13.5px; color: var(--p-muted); }
.q-r b { color: var(--p-text); margin-right: 4px; }
.bar { margin-top: 6px; height: 7px; border-radius: 4px; background: var(--p-surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 4px; background: var(--c-claude); }
.bar.g i { background: var(--c-codex); }
.phone:is([data-view="overview"], [data-view="tokens"]).animate .bar i { animation: grow 1s cubic-bezier(.2,.7,.2,1) both .2s; }
@keyframes grow { from { width: 0 !important; } }
.ins { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bar.r i { background: var(--c-red); }
.lan svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.ov-card { padding-bottom: 0; overflow: hidden; }
.ov-ids, .ov-caps { display: grid; margin: 14px -16px 0; border-top: 1px solid var(--p-line); }
.ov-ids { grid-template-columns: 1fr 1fr; }
.ov-ids div { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 9px 38px 9px 16px; min-width: 0; }
.ov-cp { position: absolute; right: 12px; top: 50%; width: 18px; height: 18px; margin-top: -9px; fill: none; stroke: var(--p-muted); stroke-width: 1.7; }
.ov-ids div + div { border-left: 1px solid var(--p-line); }
.ov-ids small { font-size: 12.5px; color: var(--p-muted); }
.ov-ids code { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-caps { margin-top: 0; grid-template-columns: repeat(4, 1fr); }
.ov-caps span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0; font-size: 14px; font-weight: 600; }
.ov-caps span + span { border-left: 1px solid var(--p-line); }
.ov-caps svg { width: 22px; height: 22px; fill: none; stroke: var(--c-blue); stroke-width: 1.6; }
.ov-caps em { font-style: normal; }
.sys { margin-top: 12px; padding: 12px 16px 0; overflow: hidden; }
.sys-h { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.sys-h b { font-size: 19px; font-weight: 700; }
.sys-h small { margin-left: auto; white-space: nowrap; font: 10.5px/1 var(--font-mono); color: var(--p-muted); }
.sys-chev { flex: none; width: 14px; height: 14px; margin-left: -4px; fill: none; stroke: var(--p-muted); stroke-width: 2.2; }
.ok { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 12px; font-size: 13px; font-weight: 600; color: var(--c-green); background: color-mix(in srgb, var(--c-green) 14%, transparent); }
.ok i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.sys-r { display: grid; grid-template-columns: 70px 1fr 42px 80px; align-items: center; gap: 8px; height: 27px; font-size: 14px; color: var(--p-muted); }
.sys-r .bar { margin: 0; height: 6px; }
.sys-r b { text-align: right; color: var(--p-text); font: 700 13px/1 var(--font-mono); }
.sys-r small { text-align: right; font: 11px/1 var(--font-mono); }
.sys-f { display: grid; grid-template-columns: repeat(3, 1fr); margin: 8px -16px 0; border-top: 1px solid var(--p-line); }
.sys-f div { display: flex; flex-direction: column; gap: 4px; padding: 8px 14px; font-size: 15px; font-weight: 600; }
.sys-f div + div { border-left: 1px solid var(--p-line); }
.sys-f small { font: 600 10.5px/1 var(--font-body); letter-spacing: .08em; color: var(--p-muted); }
.v-overview h4 { margin-top: 12px; }

/* Git and token push screens */
.p-body { flex: 1; min-height: 0; overflow: hidden; padding: 14px 18px 0; display: flex; flex-direction: column; }
.seg3 { grid-template-columns: repeat(3, 1fr); }
.seg4 { grid-template-columns: repeat(4, 1fr); }
.g-search { flex: none; margin-top: 12px; }
.g-refs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.g-refs .card { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; font-size: 14px; }
.g-refs .card > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.g-refs code { color: var(--c-cyan); font-size: 14px; }
.g-refs small { font: 10.5px/1 var(--font-mono); color: var(--p-muted); }
.g-refs em { font: normal 11px/1 var(--font-mono); color: var(--c-green); }
.g-refs svg { width: 16px; height: 16px; fill: none; stroke: var(--p-muted); stroke-width: 2; }
.g-ic { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; font-weight: 700; }
.g-ic.br { color: var(--c-green); background: color-mix(in srgb, var(--c-green) 16%, transparent); }
.g-ic.wt { color: var(--c-purple); background: color-mix(in srgb, var(--c-purple) 16%, transparent); }
.g-day { justify-content: space-between; margin-top: 14px; }
.g-day span { font-weight: 500; letter-spacing: 0; }
.g-list { list-style: none; margin: 0; padding: 0; }
.g-list li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 11px 34px 11px 32px; border-bottom: 1px solid var(--p-line); }
.g-list li::before { content: ""; position: absolute; left: 13px; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--c-blue); }
.g-list li.head::before { left: 10px; top: 14px; width: 9px; height: 9px; background: var(--c-green); box-shadow: 0 0 0 2px var(--p-panel), 0 0 0 3.5px var(--c-green); }
.g-list b { font-size: 15px; font-weight: 600; line-height: 1.3; }
.g-list small { display: flex; align-items: center; gap: 6px; font: 11.5px/1 var(--font-mono); color: var(--p-muted); }
.g-list code { display: inline-flex; align-items: center; white-space: nowrap; padding: 3px 6px; border-radius: 6px; color: var(--c-cyan); background: color-mix(in srgb, var(--c-cyan) 12%, transparent); }
.add { color: var(--c-green); }
.del { color: var(--c-red); }
.g-cp { width: 12px; height: 12px; margin-left: 4px; vertical-align: -2px; fill: none; stroke: currentColor; stroke-width: 1.8; opacity: .7; }
.g-bar { display: inline-flex; gap: 1.5px; margin-right: 2px; }
.g-bar i { width: 6px; height: 9px; border-radius: 1.5px; background: var(--c-green); }
.g-bar i.r { background: var(--c-red); }
.g-chev { position: absolute; right: 12px; top: 50%; width: 16px; height: 16px; margin-top: -8px; fill: none; stroke: var(--p-muted); stroke-width: 2; }
.g-ref { font-style: normal; padding: 2px 7px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--c-green) 50%, transparent); color: var(--c-green); white-space: nowrap; }
.tk-sum { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 14px 16px; }
.tk-sum > div { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.tk-ring { flex: none; width: 96px; height: 96px; transform: rotate(-90deg); }
.tk-ring circle { fill: none; stroke-width: 3.4; }
.tk-ring .cx { stroke: var(--c-claude); }
.tk-ring .cl { stroke: var(--c-codex); }
.tk-ring text { transform: rotate(90deg); transform-origin: 18px 18px; text-anchor: middle; fill: var(--p-text); font: 700 6px/1 var(--font-mono); }
.tk-ring text.sm { fill: var(--p-muted); font: 3.4px/1 -apple-system, sans-serif; }
.tk-sum strong { font: 700 30px/1 var(--font-mono); }
.tk-sum strong { white-space: nowrap; }
.tk-sum strong small { font-size: 13px; font-weight: 400; color: var(--p-muted); }
.tk-cost { font: 700 19px/1 var(--font-mono); color: var(--c-green); }
.tk-cost small { white-space: nowrap; font-size: 11px; font-weight: 400; color: var(--p-muted); }
.tk-leg { font-size: 11.5px; white-space: nowrap; line-height: 1.5; color: var(--p-muted); }
.tk-leg i { display: inline-block; vertical-align: 0; margin: 0 3px 0 0; width: 8px; height: 8px; border-radius: 2px; }
.dot-p { background: var(--c-blue); }
.tk-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.tk-stats .card { display: flex; flex-direction: column; gap: 6px; padding: 9px 12px; border-radius: 14px; }
.tk-stats small, .tk-nums small { font-size: 9.5px; letter-spacing: .04em; white-space: nowrap; color: var(--p-muted); }
.tk-stats b { font: 700 19px/1 var(--font-mono); }
.tk-chart { padding: 12px 16px; }
.tk-nums { display: grid; grid-template-columns: repeat(4, 1fr); }
.tk-nums div { display: flex; flex-direction: column; gap: 5px; }
.tk-nums b { font: 600 15px/1 var(--font-mono); }
.tk-bars { display: flex; align-items: flex-end; gap: 5px; height: 110px; margin-top: 12px; }
.tk-bars i { flex: 1; height: calc((var(--x) + var(--c) + var(--p)) * 1.1%); background: linear-gradient(to top, var(--c-claude) calc(var(--x) / (var(--x) + var(--c) + var(--p)) * 100%), var(--c-codex) 0 calc((var(--x) + var(--c)) / (var(--x) + var(--c) + var(--p)) * 100%), var(--c-blue) 0); }
.tk-nums em { font: 11px/1 var(--font-mono); font-style: normal; color: var(--p-muted); }
.tk-nums em.g { color: var(--c-green); }
.tk-foot { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12.5px; color: var(--p-muted); }
.tk-foot i { display: inline-block; width: 8px; height: 8px; margin: 0 3px 0 6px; border-radius: 2px; }
.tk-foot i:first-child { margin-left: 0; }
.phone[data-view="tokens"].animate .tk-bars i { animation: rise .9s cubic-bezier(.2,.7,.2,1) both .25s; transform-origin: bottom; }
@keyframes rise { from { transform: scaleY(0); } }
.tk-models { padding: 6px 16px 12px; }
.tk-models > div:not(.bar) { display: flex; justify-content: space-between; margin-top: 8px; font-size: 14px; }
.tk-models b { font: 700 13px/1 var(--font-mono); white-space: nowrap; }
.tk-models b small { font-weight: 400; font-size: 11px; color: var(--p-muted); }
.tk-models b em { font-style: normal; font-weight: 400; color: var(--p-content); }
.in { padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.in-ic { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; margin-bottom: 6px; }
.in-ic svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.in-ic.git { color: var(--c-purple); background: color-mix(in srgb, var(--c-purple) 16%, transparent); }
.in-ic.tok { color: var(--c-cyan); background: color-mix(in srgb, var(--c-cyan) 16%, transparent); }
.in b { font-size: 15px; font-weight: 600; }
.in strong { font: 700 19px/1.2 var(--font-mono); }
.in small { font-size: 12px; color: var(--p-muted); }

/* Sections */
.section { padding: 104px 0; }
.section + .section { border-top: 1px solid var(--line); }
.kicker { font: 500 13px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
h2 { margin-top: 14px; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; }
.foot-inner { display: flex; align-items: center; gap: 20px; font-size: 14px; }
.foot-inner .muted { color: var(--faint); margin-left: auto; }
.foot-inner a { color: var(--muted); text-decoration: none; }
.foot-inner a:hover { color: var(--text); }

/* Slide caption */
.now { margin-top: 18px; width: 100%; max-width: 340px; display: grid; justify-items: center; gap: 4px; }
.now-cap { display: grid; justify-items: center; gap: 5px; text-decoration: none; border-radius: 8px; transition: opacity .2s ease; }
.now-cap small { font: 500 11.5px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.now-cap span { font-size: 15px; font-weight: 600; color: var(--text); }
.now-cap:hover span { text-decoration: underline; text-underline-offset: 3px; }
.now.swap .now-cap { opacity: 0; }
.now-row { display: flex; align-items: center; gap: 6px; }
.now-dots { display: flex; justify-content: center; }
.now-dots button { padding: 12px 3px; border: 0; background: none; cursor: pointer; border-radius: 6px; }
.now-dots button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.now-dots i { position: relative; display: block; width: 18px; height: 4px; border-radius: 2px; background: var(--line-2); overflow: hidden; transition: background .2s ease; }
.now-dots button:hover i { background: color-mix(in srgb, var(--accent) 60%, var(--line-2)); }
.now-dots i.on::after { content: ""; position: absolute; inset: 0; background: var(--grad); transform-origin: left; animation: progress var(--slide-ms, 5000ms) linear forwards; }
.now-dots i.done { background: color-mix(in srgb, var(--accent) 45%, var(--line-2)); }
.paused .now-dots i.on::after { animation-play-state: paused; }
.now.static .now-dots i.on::after { animation: none; }
.now.static .now-dots i.done { background: var(--line-2); }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.preview-toggle { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.preview-toggle:hover { color: var(--text); border-color: var(--accent); }
.preview-toggle i { width: 10px; height: 11px; border-inline: 3px solid currentColor; }
.preview-toggle[data-paused] i { width: 0; height: 0; margin-left: 3px; border-inline: 0; border-left: 10px solid currentColor; border-block: 6px solid transparent; }
.preview-toggle[hidden] { display: none; }


/* Session push screen */
.push {
  position: absolute; top: 54px; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; flex-direction: column; background: var(--p-bg);
  transform: translateX(100%); visibility: hidden;
  transition: transform .55s cubic-bezier(.3,.8,.2,1), visibility 0s linear .55s;
}
.phone[data-view="session"] .v-session,
.phone[data-view="bots"] .v-bots,
.phone[data-view="git"] .v-git,
.phone[data-view="tokens"] .v-tokens { transform: none; visibility: visible; transition-delay: 0s; box-shadow: -20px 0 40px rgba(0,0,0,.25); }
.phone:is([data-view="session"], [data-view="bots"], [data-view="git"]) .v-agents,
.phone[data-view="tokens"] .v-overview { opacity: .5; visibility: visible; transform: translateX(-28%); transition: opacity .5s, transform .55s cubic-bezier(.3,.8,.2,1); }
.phone:is([data-view="session"], [data-view="bots"], [data-view="git"]) .tabbar [data-view="agents"],
.phone[data-view="tokens"] .tabbar [data-view="overview"] { color: var(--p-accent); }
.s-hdr { flex: none; display: grid; grid-template-columns: minmax(max-content, 1fr) minmax(0, auto) minmax(max-content, 1fr); align-items: center; gap: 8px; height: 58px; padding: 0 13px; border-bottom: 1px solid var(--p-line); }
.s-back { display: flex; align-items: center; gap: 2px; color: var(--p-accent); font-size: 16px; }
.s-back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.s-title { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.s-title b { max-width: 100%; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-title small { display: flex; align-items: center; gap: 5px; font: 12px/1 var(--font-mono); color: var(--p-muted); }
.s-title small svg { width: 12px; height: 12px; color: var(--c-claude); }
.s-title em { font-style: normal; color: var(--c-green); }
.s-more { justify-self: end; color: var(--p-accent); font-size: 18px; letter-spacing: 1px; }
.s-body { flex: 1; min-height: 0; overflow: hidden; padding: 12px 14px 0; display: flex; flex-direction: column; gap: 12px; justify-content: flex-end; }
.s-code { margin: 0; padding: 10px 12px; border: 1px solid var(--p-line-2); border-radius: 14px; background: var(--p-panel); font: 11px/1.6 var(--font-mono); color: var(--p-content); white-space: pre; overflow: hidden; }
.s-code .ln { color: var(--p-dim); }
.s-code .kw { color: var(--c-purple); }
.s-code .ty { color: var(--c-blue); }
.s-code .fn { color: var(--c-cyan); }
.s-code .nu { color: var(--c-orange); }
.s-think { display: flex; align-items: center; gap: 6px; font: 13px/1 var(--font-mono); color: var(--p-muted); }
.s-think svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.s-tool { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px; border: 1px solid var(--p-line-2); border-radius: 19px; background: var(--p-panel); font: 13px/1 var(--font-mono); }
.s-cmd { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--p-content); }
.s-dur { color: var(--p-muted); }
.s-ok { font-style: normal; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--c-green); color: var(--c-green); font-size: 10px; }
.s-bg { border-color: color-mix(in srgb, var(--c-orange) 55%, transparent); }
.s-bg .s-cmd, .s-bg .s-dur { color: var(--c-orange); }
.s-x { font-style: normal; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--p-muted); color: var(--p-bg); font-size: 11px; font-weight: 700; }
.s-ask { align-self: flex-end; max-width: 82%; padding: 10px 14px; border-radius: 18px 18px 4px 18px; background: color-mix(in srgb, var(--p-accent) 22%, var(--p-surface)); color: var(--p-text); font-size: 14px; line-height: 1.45; }
.s-prose { font: 13.5px/1.55 var(--font-mono); color: var(--p-text); }
.s-spent { font: 12.5px/1 var(--font-mono); color: var(--p-muted); }
.s-prose code, .b-card code { padding: 1px 4px; border-radius: 4px; color: var(--c-cyan); background: color-mix(in srgb, var(--c-cyan) 12%, transparent); }
.b-at { display: inline-block; padding: 3px 9px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--c-cyan) 45%, transparent); background: color-mix(in srgb, var(--c-cyan) 12%, transparent); color: var(--c-cyan); font: 500 12.5px/1.2 var(--font-mono); }
.s-ask .b-at { margin-right: 4px; }
.b-card { padding: 12px 14px 14px; border: 1px solid var(--p-line-2); border-radius: 18px; background: var(--p-panel); font: 12.5px/1.5 var(--font-mono); color: var(--p-text); }
.b-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.b-quote { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--p-accent) 40%, transparent); background: color-mix(in srgb, var(--p-accent) 14%, transparent); color: var(--p-accent); font: 600 12px/1.2 var(--font-mono); }
.b-quote svg { width: 13px; height: 13px; fill: currentColor; }
.b-info { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--c-cyan); color: var(--c-cyan); font: 700 11px/1 Georgia, serif; }
.b-card h5 { margin: 8px 0 3px; font: 700 15px/1.3 var(--font-mono); }
.b-card p { margin: 0; }
.s-at { flex: 0 1 auto; margin-right: auto; color: var(--p-text); }
.phone[data-view="bots"].animate .b-card { animation: bot-in .6s cubic-bezier(.2,.7,.2,1) both .9s; }
@keyframes bot-in { from { opacity: 0; transform: translateY(10px); } }
.s-status { flex: none; margin-top: 10px; padding: 7px 14px; border-top: 1px solid var(--p-line); font: 10.5px/1.3 var(--font-mono); color: var(--p-muted); white-space: nowrap; overflow: hidden; }
.s-status .b { color: var(--c-blue); }
.s-status .g { color: var(--c-green); }
.s-compose { flex: none; display: flex; align-items: center; gap: 14px; margin: 6px 12px 30px; height: 54px; padding: 0 6px 0 18px; border: 1px solid var(--p-line-2); border-radius: 27px; color: var(--p-muted); font-size: 20px; }
.s-ph { flex: 1; font-size: 15px; color: var(--p-dim); }
.s-mic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.s-send { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--p-surface-2); color: var(--p-text); }
.s-send svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Section heads */
.sec-head { max-width: 880px; }
.sec-lede { margin-top: 18px; max-width: 58ch; font-size: 18px; color: var(--muted); text-wrap: pretty; }
.sec-lede code { font-size: .9em; padding: 1px 5px; border-radius: 5px; background: var(--surface-2); color: var(--text); }

/* Code surfaces */
:root {
  --k-bg: #0a0e14; --k-bar: #0e131b; --k-block: #0c1118; --k-head: #131a24;
  --k-line: rgba(255,255,255,.08); --k-border: #293241; --k-text: #d5dee8; --k-strong: #e6edf3;
  --k-muted: #8b949e; --k-dim: #7a8798; --k-chip: #1c2430; --k-dot: #2a313c;
  --k-btn: #161d28; --k-btn-line: #333d4d; --k-btn-text: #c9d4df; --k-hover: #4d9fff; --k-hover-text: #6cb6ff;
  --k-card-line: var(--line-2); --k-shadow: 0 40px 90px -50px var(--glow);
  --x-bin: #6cb6ff; --x-sub: #39c5cf; --x-fl: #c69bff; --x-st: #8ddb8c; --x-op: #8b949e;
  --x-th: #e3a008; --x-out: #aab6c4; --x-gr: #3fb950;
}
:root[data-theme="light"] {
  --k-bg: #f4f7fb; --k-bar: #eaeff6; --k-block: #ffffff; --k-head: #f6f8fb;
  --k-line: #e1e7ef; --k-border: #c9d3e0; --k-text: #1f2937; --k-strong: #0f172a;
  --k-muted: #57606a; --k-dim: #667487; --k-chip: #e3e9f1; --k-dot: #cdd6e2;
  --k-btn: #ffffff; --k-btn-line: #c9d3e0; --k-btn-text: #24292f; --k-hover: #0969da; --k-hover-text: #0969da;
  --k-card-line: #cdd6e2; --k-shadow: 0 30px 70px -44px rgba(15, 30, 60, .35);
  --x-bin: #0550ae; --x-sub: #0c647c; --x-fl: #8250df; --x-st: #116329; --x-op: #6e7781;
  --x-th: #9a6700; --x-out: #57606a; --x-gr: #1a7f37;
}
.term-card, .code-card {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--k-card-line);
  background: var(--k-bg); color: var(--k-text); box-shadow: var(--k-shadow);
}
.tc-bar { display: flex; align-items: center; gap: 16px; padding: 0 12px 0 16px; height: 48px; background: var(--k-bar); border-bottom: 1px solid var(--k-line); }
.tc-title { font: 600 13px/1 var(--font-mono); color: var(--k-strong); letter-spacing: 0; }
.cc-dots { display: flex; gap: 6px; }
.cc-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--k-dot); }
.tc-panel { display: grid; gap: 14px; padding: 16px; }
.tc-panel[hidden] { display: none; }
.code-body { display: grid; gap: 14px; padding: 16px; }

.cb { border: 1px solid var(--k-border); border-radius: 10px; background: var(--k-block); overflow: hidden; transition: border-color .2s; }
.cb-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; padding: 6px 7px 6px 14px; border-bottom: 1px solid var(--k-border); background: var(--k-head); font: 500 12px/1.4 var(--font-mono); color: var(--k-muted); }
.cb-code { padding: 12px 14px; font: 13px/1.75 var(--font-mono); overflow-x: auto; scrollbar-width: thin; }
.ln { white-space: pre; min-height: 1.75em; }
.cb .cm, .cb .dim { color: var(--k-dim); }
.pr { color: var(--coral); user-select: none; }
.bin { color: var(--x-bin); font-weight: 600; }
.sub, .cy { color: var(--x-sub); }
.fl { color: var(--x-fl); }
.st { color: var(--x-st); }
.op { color: var(--x-op); }
.th, .ye { color: var(--x-th); }
.tk { color: var(--x-bin); }
.out { color: var(--x-out); }
.gr { color: var(--x-gr); }
.cp {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 7px;
  border: 1px solid var(--k-btn-line); background: var(--k-btn); color: var(--k-btn-text);
  font: 600 12px/1 var(--font-body); cursor: pointer; transition: border-color .2s, color .2s;
}
.cp svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cp:hover { border-color: var(--k-hover); color: var(--k-hover-text); }
.cp.done { color: var(--x-gr); border-color: var(--x-gr); }
.cb:has(.cp:hover) { border-color: var(--k-hover); }
.cb-note { padding: 0 2px; font-size: 13px; line-height: 1.6; color: var(--k-muted); }
.cp-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.qr { display: block; shape-rendering: crispEdges; }
.invite-out { display: flex; align-items: flex-start; gap: 16px; padding: 8px 0 2px; }
.invite-out .qr { flex: none; width: 92px; height: 92px; padding: 6px; background: #fff; border: 1px solid var(--k-border); border-radius: 8px; color: #070a10; }
.beat { opacity: 0; transition: opacity .35s ease; }
.cb-invite.played .beat, .cb-invite[data-beat-at="1"] [data-beat="1"],
.cb-invite[data-beat-at="2"] [data-beat="1"], .cb-invite[data-beat-at="2"] [data-beat="2"],
.cb-invite[data-beat-at="3"] .beat:not([data-beat="4"]),
.cb-invite[data-beat-at="4"] .beat { opacity: 1; }

/* Features */
.features { grid-area: feat; padding: 40px 0 32vh; }
.feat-head { max-width: 640px; }
.fgroup { margin-top: 120px; }
.feat-head + .fgroup { margin-top: 96px; }
.fg-head { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 18px; align-items: center; }
.fg-ic { grid-row: span 2; align-self: start; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--accent); }
.fg-ic svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fg-head h3 { font-family: var(--font-display); font-size: 26px; font-weight: 600; line-height: 1.2; letter-spacing: 0; word-spacing: .06em; color: var(--title); }
.fg-head p { margin-top: 4px; font-size: 16px; color: var(--muted); }
.feats { list-style: none; margin: 28px 0 0 21px; padding: 0; border-left: 1px solid var(--line-2); }
.feat { position: relative; padding: 22px 24px 22px 39px; border-radius: 0 14px 14px 0; transition: background-color .35s; }
.feat + .feat { margin-top: 4px; }
.feat::before { content: ""; position: absolute; left: -1px; top: 20px; bottom: 20px; width: 2px; border-radius: 1px; transition: background-color .35s; }
.feat h4 { font-size: 18px; font-weight: 650; letter-spacing: -0.01em; color: var(--title); }
.feat p { margin-top: 6px; max-width: 60ch; font-size: 15.5px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.feat code { white-space: nowrap; font-size: .9em; padding: 1px 5px; border-radius: 5px; background: var(--surface-2); color: var(--text); }
.feat a { color: var(--accent); text-decoration: none; white-space: nowrap; font-weight: 600; }
.feat a::after { content: " →"; }
.feat a:hover { text-decoration: underline; text-underline-offset: 3px; }
.feat.is-on { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.feat.is-on::before { background: var(--accent); }
.fg-shots { display: none; }

/* Get started */
.no-list { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.no-list > li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 12px; }
.no-list > li > svg { margin-top: 4px; }
.no-list b { font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.no-list p { margin-top: 4px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.setup { margin-top: 56px; }
.setup .tc-bar { gap: 20px; height: 56px; }
.setup-tabs { display: flex; gap: 2px; height: 38px; padding: 3px; border: 1px solid var(--k-line); border-radius: 10px; background: var(--k-bg); }
.setup-tabs button { padding: 0 16px; border: 0; border-radius: 7px; background: transparent; color: var(--k-muted); font: 600 13px/1 var(--font-mono); cursor: pointer; transition: color .2s, background-color .2s; }
.setup-tabs button:hover { color: var(--k-strong); }
.setup-tabs [aria-selected="true"] { background: var(--k-chip); color: var(--k-strong); }
.setup-tabs button:focus-visible { outline-offset: -2px; }
.mac-panel { padding: 36px 32px; }
.mac-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.mac-steps li { display: flex; flex-direction: column; gap: 12px; }
.mac-steps .n { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--k-chip); color: var(--k-strong); font: 600 12.5px/1 var(--font-mono); }
.mac-steps b { display: block; color: var(--k-strong); font-size: 16px; font-weight: 650; line-height: 1.35; }
.mac-steps p { margin-top: 4px; color: var(--k-muted); font-size: 14px; line-height: 1.5; }
.mac-steps em { font-style: normal; color: var(--x-bin); }
.step-acts { display: grid; gap: 8px; margin-top: 4px; }
.step-act { width: 100%; max-width: 200px; min-height: 40px; padding: 0 12px; justify-content: center; border-radius: 9px; font: 600 13.5px/1 var(--font-body); }
.step-act svg { width: 15px; height: 15px; }
.btn-sm.step-act span { display: inline; }
.linux-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; padding: 20px; gap: 16px; }
.cb-store { padding: 12px 14px; }
.dl-terms { margin-top: 20px; font-size: 13px; line-height: 1.5; color: var(--faint); }
.dl-terms a { color: var(--muted); }

/* Two-column sections */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.split-sec .cb-code { font-size: 12px; }
.split .sec-lede { font-size: 17px; }
.split-sec .pillars { margin-top: 40px; }
.split-flip .split-side { order: -1; }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.pillars li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
.pi { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: var(--surface); border: 1px solid var(--line-2); color: var(--accent); }
.pi svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pillars h3 { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
.pillars p { margin-top: 4px; font-size: 15px; color: var(--muted); }
.pillars code { white-space: nowrap; font-size: .9em; padding: 1px 5px; border-radius: 5px; background: var(--surface-2); color: var(--text); }
.code-card { position: relative; }
.tc-title { font: 500 13px/1 var(--font-mono); color: var(--k-muted); }
.cb-note code { white-space: nowrap; font-size: .95em; color: var(--k-strong); background: var(--k-chip); padding: 1px 5px; border-radius: 4px; }
.cb-more { padding: 0 2px; }
.cb-more summary { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; cursor: pointer; list-style: none; font: 600 13px/1.4 var(--font-mono); color: var(--k-strong); border-radius: 6px; }
.cb-more summary::-webkit-details-marker { display: none; }
.cb-more summary::before { content: "+"; width: 1ch; color: var(--k-muted); }
.cb-more[open] summary::before { content: "−"; }
.cb-more .cb-note { margin-top: 6px; padding: 0; }

/* How it works */
.hiw-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: center; margin-top: 56px; }
.hiw-map { display: block; width: 100%; height: auto; }
.hiw-map path { fill: none; stroke-linecap: round; }
.hiw-map .h-meet { stroke: var(--muted); stroke-width: 1.6; stroke-dasharray: 4 6; }
.hiw-map .h-relay { stroke: var(--c-orange); stroke-width: 1.6; stroke-dasharray: 4 6; }
.hiw-map .h-direct { stroke: var(--c-green); stroke-width: 3; opacity: var(--hiw-direct); }
.hiw-map .h-flow { stroke: var(--c-green); stroke-width: 3; stroke-dasharray: 18 14; animation: flow 1.6s linear infinite; }
.hiw-map .h-box { fill: var(--surface); stroke: var(--hiw-box-line); stroke-width: 1.2; }
.hiw-map .h-dev { fill: var(--surface-2); stroke: var(--accent); stroke-width: 1.4; }
.hiw-map .h-name { fill: var(--text); font: 700 15px var(--font-body); }
.hiw-map .h-sub { fill: var(--muted); font: 11px var(--font-mono); }
.h-badge circle { fill: var(--bg); stroke-width: 1.5; }
.h-badge text { font: 600 12px var(--font-mono); text-anchor: middle; dominant-baseline: central; }
.h-b1 circle { stroke: var(--muted); } .h-b1 text { fill: var(--muted); }
.h-b2 circle { stroke: var(--c-green); } .h-b2 text { fill: var(--c-green); }
.h-b3 circle { stroke: var(--c-orange); } .h-b3 text { fill: var(--c-orange); }
.hiw-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hiw-steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; padding: 14px 16px; border: 1px solid transparent; border-radius: 14px; animation: hiw-step 9s infinite; }
.hiw-steps li:nth-child(2) { animation-delay: 3s; }
.hiw-steps li:nth-child(3) { animation-delay: 6s; }
.hs-n { width: 30px; height: 30px; display: grid; place-items: center; border: 1.5px solid; border-radius: 50%; font: 600 13px var(--font-mono); }
.hs-n1 { color: var(--muted); } .hs-n2 { color: var(--c-green); } .hs-n3 { color: var(--c-orange); }
.hiw-steps h3 { font-size: 17px; }
.hiw-steps p { margin-top: 4px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.hg { animation: hiw-dim 9s infinite; }
.hg2 { animation-delay: 3s; }
.hg3 { animation-delay: 6s; }
@keyframes hiw-step { 0%, 30% { background: var(--surface); border-color: var(--hiw-step-line); box-shadow: var(--hiw-step-shadow); } 34%, 100% { background: transparent; border-color: transparent; box-shadow: none; } }
@keyframes hiw-dim { 0%, 30% { opacity: 1; } 34%, 100% { opacity: var(--hiw-dim); } }
.hiw { --hiw-dim: .28; --hiw-step-line: var(--line); --hiw-step-shadow: none; --hiw-box-line: var(--line-2); --hiw-direct: .35; }
:root[data-theme="light"] .hiw {
  --hiw-dim: .5; --hiw-step-line: color-mix(in srgb, var(--accent) 35%, transparent);
  --hiw-step-shadow: 0 10px 28px -14px rgba(20, 50, 90, .35); --hiw-box-line: rgba(20, 50, 90, .32); --hiw-direct: .55;
}
:root[data-theme="light"] .hiw-map .h-sub { fill: #44546a; }
:root[data-theme="light"] .hiw-map .h-meet { stroke: #536477; }
:root[data-theme="light"] .hiw-map .h-dev { fill: #eaf1fa; stroke-width: 1.8; }
:root[data-theme="light"] .hiw-steps p { color: #44546a; }
.hiw-note { display: flex; gap: 12px; align-items: flex-start; max-width: 860px; margin-top: 48px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.hiw-note svg { flex: none; width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 48px; align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 2px; cursor: pointer; list-style: none; font-size: 17px; font-weight: 700; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; font: 400 22px/1 var(--font-mono); color: var(--muted); transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.faq-item p { padding: 0 2px 20px; max-width: 68ch; font-size: 15.5px; line-height: 1.6; color: var(--muted); }

/* Display type */
.hero-kicker { margin-bottom: 18px; }
.hero-copy h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 5.3vw, 68px); line-height: 1.02; letter-spacing: -0.005em; word-spacing: 0.08em; color: var(--title); }
.hero-copy h1 .grad { background: none; color: inherit; }
h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: 0; word-spacing: 0.08em; }
h3 { font-weight: 700; letter-spacing: -0.005em; }
.nw { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Responsive */
@media (max-width: 1180px) { .tour-grid { column-gap: 64px; } }
@media (max-width: 1080px) {
  .tour-grid { --k: 0.7; column-gap: 48px; }
  .mac-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
  .no-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 981px) and (max-height: 860px) { .tour-grid { --k: 0.64; } }
@media (min-width: 981px) and (max-height: 740px) { .tour-grid { --k: 0.56; } }
@media (min-width: 981px) { .feat { cursor: pointer; } }
@media (max-width: 980px) {
  .nav-links { display: none; }
  .tour-grid { --k: 0.7; grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "phone" "feat"; }
  .hero-copy { min-height: 0; padding: 56px 0 44px; align-items: center; text-align: center; }
  .hero-cta, .trust { justify-content: center; }
  .hero-phone { position: static; margin-top: 0; }
  .hero-mesh { width: 900px; right: 50%; margin-right: -450px; top: 420px; opacity: .35; }
  .features { padding: 96px 0 0; }
  .fgroup, .feat-head + .fgroup { margin-top: 80px; }
  .fg-shots { --k: 0.6; display: flex; gap: 20px; margin: 28px -24px 0; padding: 4px 24px 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .fg-shots::-webkit-scrollbar { display: none; }
  .fg-shots:has(.shot:only-child) { justify-content: center; }
  .shot { flex: none; margin: 0; display: grid; justify-items: center; gap: 12px; scroll-snap-align: center; }
  .shot .phone-frame { box-shadow: 0 30px 70px -40px rgba(40, 110, 220, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06); }
  .shot figcaption { font-size: 14px; font-weight: 600; color: var(--muted); }
  .feats { margin: 20px 0 0; border-left: 0; }
  .feat { padding: 16px 0; border-radius: 0; }
  .feat + .feat { margin-top: 0; border-top: 1px solid var(--line); }
  .feat::before { display: none; }
  .section { padding: 88px 0; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .split-flip .split-side { order: 0; }
  .linux-panel { grid-template-columns: minmax(0, 1fr); }
  .hiw-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 760px) { .faq { grid-template-columns: minmax(0, 1fr); gap: 20px; } .faq-item summary { font-size: 16px; padding: 16px 2px; } }
@media (max-width: 600px) {
  .mac-steps, .no-list { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .mac-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px 14px; }
  .step-acts { grid-column: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-act { max-width: none; }
  .mac-panel { padding: 24px 18px; }
}
@media (max-width: 560px) {
  h2 br { display: none; }
  .tc-panel, .code-body { padding: 12px; gap: 12px; }
  .wrap { padding: 0 16px; }
  .fg-shots { margin-inline: -16px; padding-inline: 16px; }
  body { font-size: 16px; }
  .tour-grid { --k: 0.66; }
  .lede { font-size: 17px; }
  .cb-code { font-size: 12px; }
  .sec-lede { font-size: 16px; }
  .section { padding: 72px 0; }
  .setup .tc-bar { padding-left: 12px; }
  .setup .cc-dots { display: none; }
  .foot-inner { flex-wrap: wrap; }
}
@media (max-width: 360px) { .tour-grid { --k: 0.62; } }

@media (prefers-reduced-motion: reduce) {
  .hero-mesh .m-flow, .hiw-map .h-flow, .hiw-steps li, .hg { animation: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
:root:lang(zh) {
  --font-display: "Clash Display", var(--font-cjk);
  --font-body: "Satoshi", var(--font-cjk);
  --font-serif: "Songti SC", "Noto Serif SC", "STSong", serif;
}
:lang(zh) .pitch { font-style: normal; max-width: 30em; }
:lang(zh) .hero-copy h1, :lang(zh) h2, :lang(zh) .fg-head h3 { word-spacing: 0; letter-spacing: 0.01em; }
.legal { max-width: 820px; padding-top: 48px; padding-bottom: 72px; }
html:not([lang="zh-CN"]) .legal-doc[lang="zh-CN"], html[lang="zh-CN"] .legal-doc[lang="en"] { display: none; }
.legal h1 { margin-top: 12px; font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 4.4vw, 48px); line-height: 1.08; word-spacing: 0.06em; color: var(--title); }
.legal-meta { margin-top: 12px; font: 500 13px/1.5 var(--font-mono); color: var(--muted); }
.legal-notice { margin: 28px 0 8px; padding: 18px 20px; border: 1px solid color-mix(in srgb, var(--c-orange) 40%, var(--line)); border-radius: 14px; background: color-mix(in srgb, var(--c-orange) 7%, var(--surface)); }
.legal-notice p + p { margin-top: 10px; }
.legal h2 { margin-top: 40px; font-family: var(--font-body); font-size: 20px; font-weight: 700; letter-spacing: -0.005em; word-spacing: 0; }
.legal p, .legal li { font-size: 15.5px; line-height: 1.7; color: var(--muted); }
.legal p { margin-top: 12px; }
.legal .kicker { color: var(--accent); }
.legal ul { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 6px; }
.legal ul.legal-enum { padding-left: 0; list-style: none; }
.legal strong, .legal b { color: var(--text); font-weight: 700; }
.legal a { color: var(--accent); }
.legal code { font: 500 0.88em var(--font-mono); color: var(--text); }
.legal .ph { padding: 1px 6px; border-radius: 5px; background: color-mix(in srgb, var(--c-orange) 18%, transparent); color: var(--text); font-weight: 600; }
.foot-inner a.brand { color: var(--text); }
.dl-terms { margin-top: 18px; font-size: 13px; line-height: 1.5; color: var(--faint); }
.dl-terms a { color: var(--muted); }

/* Product photography and platform entry points */
.desktop-section { background: var(--bg-2); }
.release-note { display: flex; align-items: baseline; gap: 16px; max-width: 880px; margin-top: 30px; padding-left: 16px; border-left: 2px solid var(--teal); font-size: 14px; color: var(--muted); }
.release-note strong { flex: none; color: var(--teal); font-weight: 600; }
.desktop-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.desktop-shot { min-width: 0; margin: 0; }
.desktop-shot > a { display: block; overflow: hidden; border: 1px solid var(--line-2); border-radius: 24px; background: #06080c; transition: border-color .2s; }
.desktop-shot > a:hover { border-color: var(--accent); }
.desktop-shot img { display: block; width: 100%; height: auto; }
.desktop-shot figcaption { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }
.desktop-shot figcaption strong { font: 600 19px/1.3 var(--font-display); color: var(--title); }
.desktop-shot figcaption span { color: var(--muted); font: 12px/1.5 var(--font-mono); }
.desktop-caption { margin-top: 24px; font-size: 13px; color: var(--muted); }
.desktop-details { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding-top: 36px; margin-top: 36px; border-top: 1px solid var(--line-2); }
.desktop-details h3 { margin-bottom: 10px; font-size: 21px; color: var(--title); }
.desktop-details p { color: var(--muted); max-width: 52ch; }
.desktop-requirements { margin-top: 32px; font-size: 14px; color: var(--muted); }
.desktop-requirements summary { width: fit-content; cursor: pointer; color: var(--text); padding: 8px 0; }
.desktop-requirements p { margin-top: 8px; max-width: 95ch; }
.desktop-requirements code { overflow-wrap: anywhere; color: var(--text); font-size: .9em; }
.download-options { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 36px 0 48px; }
.download-option { display: flex; flex-direction: column; min-width: 0; padding: 32px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); scroll-margin-top: 90px; }
.download-option h3 { margin: 12px 0; font: 600 28px/1.2 var(--font-display); color: var(--title); }
.download-option > p:not(.kicker) { color: var(--muted); }
.download-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 18px; }
.download-option .download-note { font-size: 13px; margin-top: auto; }
.setup-heading { margin: 0 0 20px; font-size: 23px; color: var(--title); }
@media (max-width: 980px) {
  .desktop-gallery { gap: 18px; }
  .desktop-details { gap: 32px; }
  .download-option { padding: 24px; }
}
@media (max-width: 680px) {
  .desktop-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; margin-top: 32px; }
  .desktop-shot > a { border-radius: 16px; }
  .desktop-shot figcaption strong { font-size: 18px; }
  .desktop-shot figcaption span { font-size: 10px; }
  .desktop-details, .download-options { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .release-note { display: block; }
  .release-note strong { display: block; margin-bottom: 6px; }
}
.download-actions .btn-line { width: auto; }
.phone .v-desktop { padding: 0; gap: 0; z-index: 5; background: #06080c; }
.v-desktop > img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* Agent screens enter from the right. */
.phone .v-agents { transform: translateX(100%); }
.phone .v-session { transform: translateX(100%); }
.phone .v-bots { transform: translateX(100%); }
.phone[data-view="agents"] .v-agents,
.phone[data-view="session"] .v-session,
.phone[data-view="bots"] .v-bots { transform: none; }
.phone[data-view="ports"] .v-ports { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.phone[data-view="ports"] .tabbar [data-view="overview"] { color: var(--p-accent); }
@media (prefers-reduced-motion: reduce) {
  .phone .view, .phone .push { transition: none; }
}

/* Both preview layers travel together inside the phone's screen boundary. */
#phone > .phone-frame { overflow: hidden; }
.tour-slide {
  position: absolute; top: 12px; left: 12px; z-index: 10;
  width: calc(390px * var(--k)); height: calc(845px * var(--k));
  overflow: hidden; border-radius: calc(58px * var(--k)); pointer-events: none;
}
.tour-slide *, .tour-slide *::before, .tour-slide *::after { transition: none !important; animation: none !important; }
.phone-frame.is-transitioning > .screen { opacity: 0; }

#phone > .phone-frame > .screen .view,
#phone > .phone-frame > .screen .push,
#phone > .phone-frame > .screen .mesh-picker { transition: none; }

.hiw-note strong { display: block; margin-bottom: 6px; color: var(--title); font-size: 17px; font-weight: 650; }
