: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: #5d6a7c;
  --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: #7d8c9e;
  --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); }
.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-line { color: var(--text); border: 1px solid var(--line-2); width: 100%; }
.btn-line:hover { border-color: var(--accent); color: var(--accent); }

/* Hero */
.hero { position: relative; padding: 40px 0 44px; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; 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: -260px; top: -60px; opacity: .55;
  pointer-events: none;
}
.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; } }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "copy phone";
  column-gap: 72px; row-gap: 40px;
  align-items: center;
}
.hero-copy {
  grid-area: copy; padding-top: 0; align-self: start;
  display: grid; grid-template-columns: minmax(0, 1fr) 290px; column-gap: 32px;
  grid-template-rows: auto auto auto 1fr;
  grid-template-areas: "title title" "lede sync" "pitch sync" ". sync"; align-items: start;
}
.hero-copy h1 { grid-area: title; }
.hero-copy .lede { grid-area: lede; }
.hero-copy .pitch { grid-area: pitch; }
.sync-card { grid-area: sync; margin: 28px 0 0; display: grid; gap: 10px; }
.sc-kicker { display: flex; align-items: center; gap: 8px; font: 600 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--x-gr); box-shadow: 0 0 0 3px color-mix(in srgb, var(--x-gr) 25%, transparent); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--x-gr) 0%, transparent); } }
.sc-win { border: 1px solid var(--k-card-line); border-radius: 12px; overflow: hidden; background: var(--k-bg); color: var(--k-text); box-shadow: var(--k-shadow); }
.sc-bar { display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 10px; background: var(--k-bar); border-bottom: 1px solid var(--k-line); font: 500 11.5px/1 var(--font-mono); color: var(--k-muted); }
.sc-bar .cc-dots i { width: 8px; height: 8px; }
.sc-body { padding: 10px 12px 12px; display: grid; gap: 5px; font: 12px/1.45 var(--font-mono); }
.sc-body .dim { color: var(--k-muted); }
.sc-tag { margin-left: auto; padding: 3px 6px; border-radius: 5px; font: 600 9.5px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.sc-tag-ph { margin-left: 0; color: var(--c-codex); background: color-mix(in srgb, var(--c-codex) 16%, transparent); }
.sc-link { text-align: center; font: 11px/1 var(--font-mono); color: var(--faint); }
.sc-phone { padding: 10px 12px 12px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--p-bg); color: var(--p-content); box-shadow: var(--k-shadow); }
.sc-phone-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.sc-phone-head small { font-size: 11px; color: var(--p-dim); }
.sc-phone-msg { min-height: 2.9em; font: 12px/1.45 var(--font-mono); }
.sc-body p:last-child { min-height: 2.9em; }
.sc-caret::after { content: "▍"; color: var(--accent); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.sync-card figcaption { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.hero-phone { grid-area: phone; }

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: 22px; max-width: 28ch; padding-left: 16px; border-left: 2px solid var(--accent); font: italic 350 25px/1.35 var(--font-serif); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72; color: var(--text); text-wrap: pretty; }
.pitch em { display: block; margin-bottom: 6px; font-style: italic; font-weight: 500; font-size: 34px; line-height: 1.1; color: var(--title); text-wrap: balance; }
.lede { margin-top: 24px; max-width: 36ch; font-size: 19px; color: var(--muted); line-height: 1.55; }

/* Phone */
.hero-phone { --k: 0.74; 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; }

.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: 10px; align-items: center; margin-top: 6px; padding: 3px 10px; background: var(--p-panel); font: 500 11.5px/1.5 var(--font-mono); color: var(--p-muted); }
.tmux .tm-s { color: var(--c-orange); }
.tmux .on { color: var(--p-on-accent); background: var(--c-cyan); padding: 0 6px; border-radius: 8px; }
.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: 12px 0 0; display: flex; flex-direction: column; }
.rd-tools { display: flex; justify-content: space-around; padding: 0 12px; color: var(--p-text); font-size: 21px; }
.rd-tools .off { color: var(--c-red); }
.rd-stats { margin-top: 8px; text-align: center; font: 500 11px/1 var(--font-mono); color: var(--c-green); }
.rd-stage { flex: 1; display: grid; place-items: center; }
.mac {
  position: relative; width: 390px; 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; }
.ptr { position: absolute; width: 16px; height: 16px; left: 44%; top: 40%; fill: #fff; stroke: #000; stroke-width: 1.4; stroke-linejoin: round; filter: drop-shadow(0 2px 2px rgba(0,0,0,.4)); }
.phone[data-view="desktop"].animate .ptr { animation: drift 5s ease-in-out infinite; }
@keyframes drift { 30% { transform: translate(60px, 24px); } 60% { transform: translate(20px, 50px); } }

/* 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: 20px; align-items: center; 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-green); border: 1px solid color-mix(in srgb, var(--c-green) 50%, transparent); background: color-mix(in srgb, var(--c-green) 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 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[data-view="overview"].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; }
.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); }

/* Works-with strip */

/* Sections */
.section { padding: 44px 0; }
.kicker { font: 500 13px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
h2 { margin-top: 14px; max-width: 18ch; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 720; }

/* Download */
.free { font: 600 11px/1 var(--font-mono); font-style: normal; text-transform: uppercase; letter-spacing: .06em; color: var(--c-green); padding: 4px 7px; border-radius: 6px; background: color-mix(in srgb, var(--c-green) 14%, transparent); }
/* 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: 340px; max-width: 100%; text-align: center; }
.now-text { font-size: 15px; font-weight: 600; color: var(--text); transition: opacity .3s ease; }
.now.swap .now-text { opacity: 0; }
.now-dots { display: flex; justify-content: center; gap: 2px; margin: 6px 0 -12px; }
.now-dots button { padding: 12px 4px; 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: 26px; 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; }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* 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"] .push { transform: none; visibility: visible; transition-delay: 0s; box-shadow: -20px 0 40px rgba(0,0,0,.25); }
.phone[data-view="session"] .v-agents { opacity: .5; visibility: visible; transform: translateX(-28%); transition: opacity .5s, transform .55s cubic-bezier(.3,.8,.2,1); }
.phone[data-view="session"] .tabbar [data-view="agents"] { color: var(--p-accent); }
.s-hdr { flex: none; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; height: 58px; padding: 0 16px 0 10px; 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 { 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-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: 760px; }
.sec-lede { margin-top: 18px; max-width: 58ch; font-size: 18px; color: var(--muted); }
h2 { max-width: none; }

/* 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: #6e7b8c; --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: #8a94a3; --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: #0e7490; --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; }
.setup-phone { grid-column: 1 / -1; padding: 18px 22px; }
.setup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.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; }

/* Two-column sections */
.split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.split-sec { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split-sec .cb-code { font-size: 12px; }
.split .sec-lede { margin-top: 14px; font-size: 17px; }
.split .term-card { margin-top: 28px; }
.split-sec .pillars { margin-top: 30px; gap: 20px; }
.split-sec .split-side { padding-top: 8px; }

/* How it works */
.head-row .sec-lede { margin-top: 16px; }
.how-grid { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.mac-panel { grid-template-columns: minmax(0, 1fr); grid-template-areas: "steps"; padding: 22px; }
.mac-steps { grid-area: steps; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.mac-steps li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; }
.step-act { align-self: center; width: 168px; min-height: 34px; padding: 0 12px; justify-content: center; border-radius: 9px; font: 600 13.5px/1 var(--font-body); }
.step-act svg { width: 15px; height: 15px; }
.mac-steps .n { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--k-chip); color: var(--k-strong); font: 600 12px/1 var(--font-mono); }
.setup-phone .n { background: var(--accent); color: var(--accent-ink); }
.mac-steps b { display: block; color: var(--k-strong); font-size: 15px; font-weight: 600; line-height: 24px; }
.mac-steps p { margin-top: 1px; color: var(--k-muted); font-size: 14px; line-height: 1.45; }
.mac-steps em { font-style: normal; color: var(--x-bin); }
.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; }

/* Security */
.sec-grid { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.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 { font-size: .9em; padding: 1px 5px; border-radius: 5px; background: var(--surface-2); color: var(--text); }
.code-card { position: relative; }

/* Download install block */

/* Responsive */
@media (max-width: 1180px) {
  .hero-copy { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "lede" "pitch" "sync"; }
  .sync-card { max-width: 420px; margin-top: 32px; }
}
@media (max-width: 1080px) {
  .hero-grid { column-gap: 40px; }
  .hero-phone { --k: 0.72; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav nav { margin-left: auto; }
  .hero { padding-top: 40px; padding-bottom: 40px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "phone"; row-gap: 40px; }
  .hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; padding-top: 0; }
  .sync-card { text-align: left; width: 100%; }
  .lede { max-width: 38ch; }
  .pitch { max-width: 32ch; padding-left: 0; border-left: 0; font-size: 22px; }
  .hero-mesh { width: 900px; right: 50%; margin-right: -450px; top: 280px; opacity: .45; }
  .sec-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .split, .split-sec { grid-template-columns: minmax(0, 1fr); }
  .setup-grid { grid-template-columns: minmax(0, 1fr); }
  .section { padding: 40px 0; }
}
@media (max-width: 560px) {
  h2 br { display: none; }
  .tc-panel, .code-body { padding: 12px; gap: 12px; }
  .wrap { padding: 0 16px; }
  body { font-size: 16px; }
  .btn-sm span, .nav .btn-sm { display: none; }
  .hero-phone { --k: 0.68; }
  .lede { font-size: 17px; }
  .cb-code { font-size: 12px; }
  .sec-lede { font-size: 16px; }
  .foot-inner { flex-wrap: wrap; }
}
@media (max-width: 360px) {
  .hero-phone { --k: 0.62; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mesh .m-flow { animation: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .live { animation: none; }
  .sc-caret { display: none; }
}
.sc-aside { margin: 0; font-size: 12px; line-height: 1.45; color: var(--muted); opacity: .8; }
.no-list { list-style: none; margin: 28px 0 28px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.no-list li { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.no-list b { font-size: 15.5px; font-weight: 650; letter-spacing: -0.01em; }
.no-list p { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.mac-steps .opt .n { background: transparent; border: 1px dashed var(--line-2); color: var(--muted); }
.mac-steps .opt b { color: var(--muted); }
@media (max-width: 960px) { .no-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .no-list { grid-template-columns: minmax(0, 1fr); } }
.hero 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 h1 .grad { background: none; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h2 { font-family: var(--font-display); }
h2 { font-weight: 600; letter-spacing: 0; word-spacing: 0.08em; }
h3 { font-weight: 700; letter-spacing: -0.005em; }
.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: 18px 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 18px; max-width: 68ch; font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.hiw-use { margin-top: 28px; padding: 26px; border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line)); border-radius: var(--radius); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, var(--surface)), var(--surface) 60%); }
.hu-title { display: flex; align-items: center; gap: 14px; font-size: 20px; }
.hu-n { width: 30px; height: 30px; display: grid; place-items: center; border: 1.5px solid; border-radius: 50%; font: 600 13px var(--font-mono); color: var(--accent); }
.hu-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hu-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.hu-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.hu-ic svg { width: 19px; height: 19px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hu-list b { font-size: 15.5px; }
.hu-list p { margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--muted); }
@media (max-width: 960px) { .hu-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hu-list { grid-template-columns: minmax(0, 1fr); } .hiw-use { padding: 18px; } }
@media (max-width: 560px) { .mac-steps li { grid-template-columns: 26px minmax(0, 1fr); } .step-act { grid-column: 2; justify-self: start; } }
@media (max-width: 760px) { .faq { grid-template-columns: minmax(0, 1fr); gap: 20px; } .faq-item summary { font-size: 16px; padding: 16px 2px; } }
.dl-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; padding: 44px; border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line)); border-radius: calc(var(--radius) + 4px); background: radial-gradient(90% 120% at 0% 0%, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface) 65%); }
.dl-lede { margin: 16px 0 26px; max-width: 40ch; font-size: 17px; line-height: 1.55; color: var(--muted); }
.dl-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 22px 0 0; padding: 0; list-style: none; font: 500 12.5px/1.4 var(--font-mono); color: var(--muted); }
.dl-facts li::before { content: "✓ "; color: var(--accent); }
.dl-hosts { display: grid; gap: 12px; }
.dl-hosts-label { font: 500 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dl-host { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px 16px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.dl-ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); color: var(--accent); }
.dl-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dl-host h3 { font-size: 17px; }
.dl-host p { margin-top: 2px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.dl-host .dl-meta { margin-top: 6px; font: 500 12px/1.4 var(--font-mono); color: var(--muted); }
.dl-host code { font: 500 12.5px var(--font-mono); color: var(--text); }
.dl-act { width: 168px; min-height: 36px; justify-content: center; border-radius: 9px; font: 600 13.5px/1 var(--font-body); }
.dl-act svg { width: 15px; height: 15px; }
.cb-dl { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding-right: 8px; color: var(--k-text); }
.cb-dl .cb-code { flex: 1; min-width: 0; font-size: 12.5px; overflow-x: auto; scrollbar-width: none; }
.cb-dl .ln { white-space: pre; }
.cb-dl .cp { flex: none; }
.dl-host .cp-status { grid-column: 1 / -1; margin: 0; }
.dl-host .cp-status:empty { display: none; }
@media (max-width: 960px) { .dl-band { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 28px; } }
@media (max-width: 560px) { .dl-band { padding: 22px 18px; } .dl-host { grid-template-columns: auto minmax(0, 1fr); } .dl-act { grid-column: 1 / -1; width: 100%; } .cb-dl .ln { white-space: pre-wrap; } }
.hiw-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-top: 36px; }
.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; }
@media (max-width: 860px) { .hiw-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
@media (prefers-reduced-motion: reduce) { .hiw-map .h-flow, .hiw-steps li, .hg { animation: none; } }
: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, :lang(zh) .pitch em { font-style: normal; }
:lang(zh) .pitch { max-width: 34ch; }
:lang(zh) .pitch em { font-size: 31px; font-weight: 600; text-wrap: wrap; word-break: keep-all; }
:lang(zh) .hero h1, :lang(zh) h2 { 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 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); }
