/* ==========================================================================
   SupiderOS website — design system
   Monochrome ink + a single signal blue, matching the product's neutral theme.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f5;
  --bg-sunken: #f0f0ed;
  --surface: #ffffff;
  --surface-2: #fafaf9;
  --text: #0c0c0d;
  --text-2: #4f5056;
  --text-3: #85868c;
  --border: rgba(12, 12, 13, 0.09);
  --border-strong: rgba(12, 12, 13, 0.16);
  --ink: #0c0c0d;
  --on-ink: #ffffff;
  --accent: #2456e6;
  --accent-soft: rgba(36, 86, 230, 0.08);
  --accent-line: rgba(36, 86, 230, 0.45);
  --ok: #0f8a59;
  --ok-soft: rgba(15, 138, 89, 0.1);
  --warn: #a96500;
  --warn-soft: rgba(213, 140, 20, 0.13);
  --grid-line: rgba(12, 12, 13, 0.045);
  --shadow-sm: 0 1px 2px rgba(12, 12, 13, 0.05);
  --shadow-md: 0 1px 2px rgba(12, 12, 13, 0.04), 0 8px 24px -12px rgba(12, 12, 13, 0.14);
  --shadow-lg: 0 1px 0 rgba(12, 12, 13, 0.03), 0 30px 70px -30px rgba(12, 12, 13, 0.28);
  --band-bg: #0c0c0d;
  --band-text: #f2f2f0;
  --band-text-2: #a2a3a8;
  --band-border: rgba(255, 255, 255, 0.1);

  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-display: "Inter Display", "Inter", "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "Cascadia Code", "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --container: 1180px;
  --gutter: 24px;
  --header-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0c;
    --bg-soft: #111113;
    --bg-sunken: #18181b;
    --surface: #131315;
    --surface-2: #17171a;
    --text: #ededec;
    --text-2: #a7a8ad;
    --text-3: #75767c;
    --border: rgba(255, 255, 255, 0.085);
    --border-strong: rgba(255, 255, 255, 0.16);
    --ink: #f2f2f0;
    --on-ink: #0b0b0c;
    --accent: #7c9dff;
    --accent-soft: rgba(124, 157, 255, 0.12);
    --accent-line: rgba(124, 157, 255, 0.5);
    --ok: #3cc98b;
    --ok-soft: rgba(60, 201, 139, 0.13);
    --warn: #f0ae45;
    --warn-soft: rgba(240, 174, 69, 0.14);
    --grid-line: rgba(255, 255, 255, 0.04);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px -14px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 30px 80px -30px rgba(0, 0, 0, 0.9);
    --band-bg: #141416;
    --band-text: #f2f2f0;
    --band-text-2: #a2a3a8;
    --band-border: rgba(255, 255, 255, 0.09);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0b0b0c;
  --bg-soft: #111113;
  --bg-sunken: #18181b;
  --surface: #131315;
  --surface-2: #17171a;
  --text: #ededec;
  --text-2: #a7a8ad;
  --text-3: #75767c;
  --border: rgba(255, 255, 255, 0.085);
  --border-strong: rgba(255, 255, 255, 0.16);
  --ink: #f2f2f0;
  --on-ink: #0b0b0c;
  --accent: #7c9dff;
  --accent-soft: rgba(124, 157, 255, 0.12);
  --accent-line: rgba(124, 157, 255, 0.5);
  --ok: #3cc98b;
  --ok-soft: rgba(60, 201, 139, 0.13);
  --warn: #f0ae45;
  --warn-soft: rgba(240, 174, 69, 0.14);
  --grid-line: rgba(255, 255, 255, 0.04);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px -14px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 30px 80px -30px rgba(0, 0, 0, 0.9);
  --band-bg: #141416;
  --band-text: #f2f2f0;
  --band-text-2: #a2a3a8;
  --band-border: rgba(255, 255, 255, 0.09);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
  overflow-x: hidden;
}
:lang(zh-CN) body, html:lang(zh-CN) body { line-height: 1.75; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 620; letter-spacing: -0.022em; line-height: 1.15; text-wrap: balance; }
html:lang(zh-CN) h1, html:lang(zh-CN) h2, html:lang(zh-CN) h3 { letter-spacing: 0; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
code, pre { font-family: var(--font-mono); font-size: 0.88em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
main:focus { outline: none; }
::selection { background: var(--accent-soft); color: var(--text); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(780px + var(--gutter) * 2); }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 8px 14px; background: var(--ink); color: var(--on-ink); border-radius: 8px; font-size: 14px; }
.skip:focus { top: 12px; }

.icon { width: 18px; height: 18px; flex: none; }
.mark { width: 22px; height: 22px; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 18px;
}
html:lang(zh-CN) .eyebrow { letter-spacing: 0.08em; }
.eyebrow--inverse { color: var(--band-text-2); }
.eyebrow__mark { width: 14px; height: 14px; color: var(--text); }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--text-2); line-height: 1.6; max-width: 640px; text-wrap: pretty; }
.hero__lead, .cap p, .step p, .principles p, .feature__intro p { text-wrap: pretty; }
html:lang(zh-CN) .lead { line-height: 1.8; }
.note { margin-top: 18px; display: inline-block; font-size: 13.5px; color: var(--text-2); background: var(--bg-sunken); border: 1px solid var(--border); padding: 6px 12px; border-radius: 999px; }
.badge {
  display: inline-flex; align-items: center; vertical-align: middle;
  font-family: var(--font); font-size: 11.5px; font-weight: 550; letter-spacing: 0.01em; line-height: 1;
  padding: 5px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); white-space: nowrap;
}
.badge--muted { background: var(--bg-sunken); color: var(--text-2); }
.badge--warn { background: var(--warn-soft); color: var(--warn); }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); flex: none; }
.status-dot--ok { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.mono { font-family: var(--font-mono); font-size: 13px; word-break: break-all; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 550; font-size: 15px; color: var(--text); }
.link-arrow .icon { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid transparent;
  font-size: 14.5px; font-weight: 550; line-height: 1; white-space: nowrap; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s var(--ease), box-shadow 0.15s;
}
.btn .icon { width: 17px; height: 17px; }
.btn--sm { height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn--lg { height: 48px; padding: 0 22px; font-size: 15.5px; }
.btn--primary { background: var(--ink); color: var(--on-ink); box-shadow: 0 1px 2px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.08); }
.btn--primary:hover { opacity: 0.88; }
.btn--primary:active { transform: translateY(1px); }
.btn--secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn--secondary:hover { background: var(--bg-soft); }
.btn--secondary .icon { transition: transform 0.2s var(--ease); }
.btn--secondary:hover .icon { transform: translateX(3px); }
.btn:disabled { cursor: not-allowed; opacity: 0.45; box-shadow: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: 999px; background: transparent; color: var(--text-2); cursor: pointer; transition: background-color 0.15s, color 0.15s;
}
.icon-btn:hover { background: var(--bg-sunken); color: var(--text); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  border-bottom: 1px solid transparent; transition: border-color 0.2s;
}
/* The blur lives on a pseudo-element: backdrop-filter on the header itself would
   become the containing block of the fixed mobile menu. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; font-size: 16.5px; letter-spacing: -0.015em; flex: none; }
.brand__mark { width: 22px; height: 22px; transition: transform 0.6s var(--ease); }
.brand:hover .brand__mark { transform: rotate(90deg); }
.brand__zh { font-weight: 500; color: var(--text-3); font-size: 14px; letter-spacing: 0.06em; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.site-nav a { padding: 7px 11px; border-radius: 999px; font-size: 14.5px; color: var(--text-2); transition: color 0.15s, background-color 0.15s; }
.site-nav a:hover { color: var(--text); background: var(--bg-sunken); }
.site-nav a[aria-current="page"] { color: var(--text); font-weight: 550; }
.site-nav__lang-mobile { display: none !important; }
.site-header__actions { display: flex; align-items: center; gap: 6px; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 999px; font-size: 13.5px; font-weight: 550; color: var(--text-2); transition: background-color 0.15s, color 0.15s; }
.lang-switch:hover { background: var(--bg-sunken); color: var(--text); }
.lang-switch .icon { width: 16px; height: 16px; }
.site-header__cta { margin-left: 6px; }
.site-header__menu { display: none; }
.icon--moon, .icon--close { display: none; }
:root[data-theme="dark"] .icon--sun { display: none; }
:root[data-theme="dark"] .icon--moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon--sun { display: none; }
  :root:not([data-theme="light"]) .icon--moon { display: block; }
}

.lang-hint { background: var(--bg-soft); border-bottom: 1px solid var(--border); font-size: 14px; }
.lang-hint__inner { display: flex; align-items: center; gap: 14px; min-height: 44px; flex-wrap: wrap; }
.lang-hint a { font-weight: 600; color: var(--accent); }
.lang-hint button { margin-left: auto; background: none; border: 0; padding: 4px 8px; color: var(--text-3); cursor: pointer; font-size: 13.5px; }
.lang-hint button:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(64px, 10vw, 112px) 0 clamp(56px, 7vw, 88px); overflow: hidden; }
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center -1px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero__inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero__eyebrow { padding: 6px 12px 6px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-2); box-shadow: var(--shadow-sm); text-transform: none; letter-spacing: 0; font-family: var(--font); font-size: 13.5px; font-weight: 550; margin-bottom: 28px; }
.hero__title { font-size: clamp(44px, 7.6vw, 92px); line-height: 1.0; letter-spacing: -0.045em; font-weight: 640; }
html:lang(zh-CN) .hero__title { font-size: clamp(38px, 6.4vw, 76px); line-height: 1.14; letter-spacing: -0.01em; max-width: none; font-weight: 620; }
.hero__lead { margin-top: 26px; font-size: clamp(17px, 1.75vw, 20px); color: var(--text-2); max-width: 680px; line-height: 1.6; }
html:lang(zh-CN) .hero__lead { line-height: 1.85; max-width: 700px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; justify-content: center; }
.hero__actions--center { justify-content: center; }
.hero__note { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 13.5px; color: var(--text-3); }
.hero__canvas { position: relative; margin-top: clamp(56px, 7vw, 84px); }

/* ---------- Hero canvas ---------- */
.canvas {
  --node-bg: var(--surface);
  position: relative; display: grid; align-items: center;
  grid-template-columns: minmax(170px, 0.9fr) 56px minmax(360px, 2fr) 56px minmax(220px, 1.05fr);
  padding: 36px; border: 1px solid var(--border); border-radius: 22px;
  background:
    radial-gradient(circle at 1px 1px, var(--grid-line) 1px, transparent 0) 0 0 / 18px 18px,
    var(--bg-soft);
  box-shadow: var(--shadow-lg);
}
.cv-col--you { display: flex; flex-direction: column; gap: 14px; }
.cv-node { display: flex; align-items: center; gap: 10px; }
.cv-node b, .cv-meta b, .cv-company__head b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.cv-node small, .cv-meta small { display: block; font-size: 12.5px; color: var(--text-3); line-height: 1.35; }
.cv-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-size: 13px; font-weight: 600; flex: none; }
.cv-avatar--emp { width: 26px; height: 26px; font-size: 11.5px; background: var(--bg-sunken); color: var(--text); border: 1px solid var(--border); }
.cv-avatar--meta { background: var(--ink); }
.cv-meta__mark { width: 18px; height: 18px; color: var(--on-ink); animation: spin 14s linear infinite; }
.cv-bubble { font-size: 13.5px; line-height: 1.5; padding: 11px 13px; background: var(--node-bg); border: 1px solid var(--border); border-radius: 14px 14px 14px 4px; box-shadow: var(--shadow-sm); color: var(--text); }

.cv-link { position: relative; height: 2px; align-self: center; }
.cv-link span { position: absolute; inset: 0; background-image: linear-gradient(90deg, var(--border-strong) 50%, transparent 0); background-size: 8px 2px; }
.cv-link span::after { content: ""; position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); animation: travel-x 2.4s var(--ease) infinite; }
.cv-link--b span::after { animation-delay: 1.2s; }

.cv-company { position: relative; padding: 18px; border: 1px solid var(--border-strong); border-radius: 18px; background: var(--node-bg); box-shadow: var(--shadow-md); }
.cv-company__head { display: flex; align-items: center; gap: 8px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.cv-company__head small { margin-left: auto; font-size: 11.5px; color: var(--text-3); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; }
.cv-company__mark { width: 16px; height: 16px; }
.cv-meta { position: relative; display: flex; align-items: center; gap: 10px; margin: 0 auto; width: fit-content; min-width: 220px; padding: 10px 14px 10px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); }
.cv-meta small { transition: opacity 0.3s; }
.cv-pulse { position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s ease-in-out infinite; }
.cv-bus { position: relative; height: 26px; margin: 0 16.66%; }
.cv-bus::before { content: ""; position: absolute; left: 50%; top: 0; width: 2px; height: 13px; margin-left: -1px; background: var(--border-strong); }
.cv-bus span { position: absolute; left: 0; right: 0; top: 13px; height: 13px; border: 2px solid var(--border-strong); border-bottom: 0; border-radius: 8px 8px 0 0; }
.cv-bus span::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: 0; width: 2px; margin-left: -1px; background: var(--border-strong); }
.cv-emps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cv-emp { padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); display: flex; flex-direction: column; gap: 8px; transition: border-color 0.3s, background-color 0.3s; }
.cv-emp__top { display: flex; align-items: center; gap: 7px; }
.cv-emp__top b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-pill { align-self: flex-start; font-size: 11px; font-weight: 550; padding: 3px 7px; border-radius: 999px; background: var(--bg-sunken); color: var(--text-3); transition: background-color 0.3s, color 0.3s; white-space: nowrap; }
.cv-bar { position: relative; height: 3px; border-radius: 3px; background: var(--bg-sunken); overflow: hidden; }
.cv-bar i { position: absolute; inset: 0; width: 0; background: var(--text-3); border-radius: 3px; transition: width 1.6s var(--ease), background-color 0.3s; }
.cv-emp[data-state="running"] { border-color: var(--accent-line); }
.cv-emp[data-state="running"] .cv-pill { background: var(--accent-soft); color: var(--accent); }
.cv-emp[data-state="running"] .cv-bar i { width: 62%; background: var(--accent); }
.cv-emp[data-state="approval"] { border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.cv-emp[data-state="approval"] .cv-pill { background: var(--warn-soft); color: var(--warn); }
.cv-emp[data-state="approval"] .cv-bar i { width: 70%; background: var(--warn); }
.cv-emp[data-state="done"] .cv-pill { background: var(--ok-soft); color: var(--ok); }
.cv-emp[data-state="done"] .cv-bar i { width: 100%; background: var(--ok); }

.cv-project { padding: 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--node-bg); box-shadow: var(--shadow-sm); }
.cv-project__head { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; margin-bottom: 12px; }
.cv-project__head .icon { width: 16px; height: 16px; color: var(--text-3); grid-row: span 2; }
.cv-project__head small { font-size: 11.5px; color: var(--text-3); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; line-height: 1.2; }
.cv-project__head b { font-size: 14px; font-weight: 600; line-height: 1.3; }
.cv-wos { list-style: none; display: grid; gap: 4px; }
.cv-wo { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; font-size: 13px; transition: background-color 0.3s; }
.cv-wo small { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); }
.cv-wo__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); transition: color 0.3s; }
.cv-check { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--border-strong); transition: background-color 0.3s, border-color 0.3s; }
.cv-check .icon { width: 10px; height: 10px; color: var(--on-ink); opacity: 0; transition: opacity 0.3s; stroke-width: 2.6; }
.cv-wo[data-state="running"], .cv-wo[data-state="approval"] { background: var(--bg-soft); }
.cv-wo[data-state="running"] .cv-check { border-color: var(--accent); border-top-color: transparent; animation: spin 0.9s linear infinite; }
.cv-wo[data-state="approval"] .cv-check { border-color: var(--warn); }
.cv-wo[data-state="done"] .cv-check { background: var(--ok); border-color: var(--ok); }
.cv-wo[data-state="done"] .cv-check .icon { opacity: 1; }
.cv-wo[data-state="done"] .cv-wo__name { color: var(--text); }
.cv-artifacts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); opacity: 0.35; transition: opacity 0.5s; }
.cv-artifacts.is-on { opacity: 1; }
.cv-artifacts small { width: 100%; font-size: 11.5px; color: var(--text-3); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; }
.cv-file { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; padding: 4px 8px; border-radius: 6px; background: var(--bg-sunken); font-family: var(--font-mono); font-size: 11.5px; color: var(--text-2); }
.cv-file .icon { width: 12px; height: 12px; }

@keyframes travel-x { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }
@keyframes travel-y { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 8px); opacity: 0; } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.75); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 136px) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0 clamp(80px, 10vw, 120px); }
.section--soft { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__head { margin-bottom: clamp(40px, 5vw, 64px); max-width: 760px; }
.section__head h2 { font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -0.035em; }
html:lang(zh-CN) .section__head h2 { letter-spacing: 0; }
.section__head .lead { margin-top: 20px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center .lead { margin-left: auto; margin-right: auto; }
.section__more { margin-top: 40px; }

/* ---------- Structure: layers ---------- */
.layers { display: grid; grid-template-columns: minmax(240px, 320px) 1fr; gap: clamp(24px, 4vw, 56px); align-items: stretch; }
.layers__tabs { display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--border); }
.layer-tab {
  position: relative; display: flex; align-items: center; gap: 16px; width: 100%; padding: 16px 18px; margin-left: -1px;
  background: none; border: 0; border-left: 2px solid transparent; text-align: left; cursor: pointer; border-radius: 0 12px 12px 0;
  transition: background-color 0.2s, border-color 0.2s;
}
.layer-tab:hover { background: var(--bg-soft); }
.layer-tab[aria-selected="true"] { border-left-color: var(--ink); background: var(--bg-soft); }
.layer-tab__num { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.layer-tab__text b { display: block; font-size: 16px; font-weight: 600; }
.layer-tab__text small { display: block; font-size: 13.5px; color: var(--text-3); }
.layer-tab[aria-selected="true"] .layer-tab__num { color: var(--accent); }
.layers__stage { display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-md); }
.layers__panels { padding: clamp(24px, 3vw, 40px); border-left: 1px solid var(--border); display: flex; }
.layer-panel { display: flex; flex-direction: column; animation: fade-up 0.35s var(--ease); }
.layer-panel[hidden] { display: none; }
.layer-panel__role { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 10px; }
.layer-panel h3 { font-size: 28px; letter-spacing: -0.03em; margin-bottom: 14px; }
.layer-panel > p:not([class]) { color: var(--text-2); font-size: 16px; }
.layer-panel__owns-label { margin-top: auto; padding-top: 28px; font-size: 12.5px; font-weight: 600; color: var(--text-3); margin-bottom: 10px; }
.layer-panel__owns { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.layer-panel__owns li { font-size: 13px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-soft); }
@keyframes fade-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.org { padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; align-items: center; background: radial-gradient(circle at 1px 1px, var(--grid-line) 1px, transparent 0) 0 0 / 16px 16px, var(--bg-soft); font-size: 13px; }
.org [data-part] { transition: border-color 0.3s, background-color 0.3s, color 0.3s, box-shadow 0.3s, opacity 0.3s; }
.org__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.5; }
.org__you, .org__meta { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font-weight: 550; }
.org__line { width: 2px; height: 22px; background: var(--border-strong); }
.org__company { position: relative; width: 100%; padding: 30px 16px 16px; border: 1px dashed var(--border-strong); border-radius: 16px; display: flex; flex-direction: column; align-items: center; gap: 0; }
.org__label { position: absolute; top: -11px; left: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; background: var(--bg-soft); font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); transition: color 0.3s; }
.org__mark { width: 12px; height: 12px; }
.org__fan { position: relative; width: 66%; height: 22px; }
.org__fan i { position: absolute; top: 0; width: 2px; height: 22px; background: var(--border-strong); }
.org__fan i:nth-child(1) { left: 0; } .org__fan i:nth-child(2) { left: 50%; } .org__fan i:nth-child(3) { right: 0; }
.org__fan::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--border-strong); }
.org__fan::after { content: ""; position: absolute; left: 50%; top: -12px; width: 2px; height: 12px; background: var(--border-strong); }
.org__meta { margin-bottom: 12px; }
.org__emps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.org__emps span, .org__projects span { padding: 9px 6px; text-align: center; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.org__projects { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); border-radius: 0; }
.org__projects span { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.org__projects .icon { width: 14px; height: 14px; color: var(--text-3); }
.org[data-active] [data-part] { opacity: 0.62; }
.org[data-active="you"] [data-part="you"],
.org[data-active="company"] [data-part="company"],
.org[data-active="company"] [data-part="company"] [data-part],
.org[data-active="meta"] [data-part="meta"],
.org[data-active="employees"] [data-part="employees"],
.org[data-active="projects"] [data-part="projects"] { opacity: 1; }
.org[data-active="meta"] [data-part="company"], .org[data-active="employees"] [data-part="company"], .org[data-active="projects"] [data-part="company"] { opacity: 1; }
.org[data-active="you"] .org__you, .org[data-active="meta"] .org__meta { background: var(--ink); color: var(--on-ink); border-color: var(--ink); box-shadow: 0 0 0 5px var(--accent-soft); }
.org[data-active="company"] .org__company { border-style: solid; border-color: var(--ink); background: var(--surface); box-shadow: 0 0 0 5px var(--accent-soft); }
.org[data-active="company"] .org__label { color: var(--text); background: var(--surface); }
.org[data-active="employees"] .org__emps span, .org[data-active="projects"] .org__projects span { border-color: var(--ink); box-shadow: 0 0 0 4px var(--accent-soft); }

/* ---------- Capabilities ---------- */
.caps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.cap { padding: 32px 30px 36px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-soft); transition: background-color 0.2s; }
.cap:hover { background: var(--surface); }
.cap__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.cap__icon .icon { width: 20px; height: 20px; }
.cap h3 { font-size: 18px; letter-spacing: -0.015em; margin-bottom: 8px; }
.cap p { font-size: 15px; color: var(--text-2); }

/* ---------- Workflow ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 15px; height: 1px; background: var(--border-strong); }
.step { position: relative; padding-right: 22px; }
.step__num { position: relative; display: inline-grid; place-items: center; height: 30px; padding: 0 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border-strong); font-family: var(--font-mono); font-size: 12px; font-weight: 500; margin-bottom: 22px; }
.step:first-child .step__num { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.step h3 { font-size: 16.5px; letter-spacing: -0.01em; margin-bottom: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.step p { font-size: 14.5px; color: var(--text-2); }

/* ---------- Product preview ---------- */
.preview__tabs { display: flex; justify-content: center; gap: 4px; margin: 0 auto 28px; padding: 4px; width: fit-content; border-radius: 999px; background: var(--bg-sunken); border: 1px solid var(--border); }
.preview__tabs button { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 550; color: var(--text-2); cursor: pointer; transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.preview__tabs button:hover { color: var(--text); }
.preview__tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.preview__caption { margin-top: 18px; text-align: center; font-size: 13px; color: var(--text-3); }
.window { max-width: 1040px; margin: 0 auto; border-radius: 16px; border: 1px solid var(--border-strong); background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; }
.window__bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.window__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.window__bar b { margin: 0 auto; padding-right: 51px; font-size: 12px; font-weight: 550; color: var(--text-3); }
.window__view[hidden] { display: none; }
.window__view { animation: fade-up 0.35s var(--ease); }

/* Recreated product UI — mirrors the app's neutral theme */
.ui-app { display: grid; grid-template-columns: 52px 210px 1fr; height: 568px; font-size: 13.5px; background: var(--surface-2); }
.ui-rail { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 0; }
.ui-rail__item { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--text-3); }
.ui-rail__item.is-on { background: var(--bg-sunken); color: var(--text); }
.ui-rail__spacer { flex: 1; }
.ui-side { padding: 16px 10px; display: flex; flex-direction: column; gap: 2px; }
.ui-side__company { display: flex; align-items: center; gap: 8px; padding: 4px 8px 12px; font-size: 14px; }
.ui-side__mark { width: 16px; height: 16px; }
.ui-side__title { padding: 4px 8px 12px; font-weight: 600; font-size: 14px; }
.ui-side__label { padding: 8px 8px 6px; font-size: 11.5px; color: var(--text-3); }
.ui-side__item { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-side__item .icon { width: 15px; height: 15px; color: var(--text-3); }
.ui-side__item.is-on { background: var(--bg-sunken); color: var(--text); font-weight: 550; }
.ui-main { position: relative; display: flex; flex-direction: column; margin: 8px 8px 8px 0; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); overflow: hidden; }
.ui-main--form { padding: 26px; overflow: hidden; }
.ui-head { display: flex; align-items: center; gap: 10px; padding: 12px 18px; }
.ui-head__avatar { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--surface), var(--bg-sunken) 70%); border: 1px solid var(--border-strong); }
.ui-head b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.25; }
.ui-head small { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-3); }
.ui-head small .icon { width: 12px; height: 12px; }
.ui-thread { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 10px 48px 0; overflow: hidden; }
.ui-msg { max-width: 92%; line-height: 1.6; }
.ui-msg--user { align-self: flex-end; max-width: 70%; padding: 9px 14px; border-radius: 16px; background: var(--bg-sunken); }
.ui-card { border: 1px solid var(--border); border-radius: 12px; padding: 6px; }
.ui-card__title { padding: 6px 10px 8px; font-size: 12px; color: var(--text-3); }
.ui-row { display: grid; grid-template-columns: 130px 1fr auto; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; }
.ui-row:nth-child(odd) { background: var(--surface-2); }
.ui-row__who { display: flex; align-items: center; gap: 8px; font-weight: 550; }
.ui-row__what { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-mini-avatar { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--bg-sunken); border: 1px solid var(--border); font-size: 10.5px; }
.ui-status { font-size: 11.5px; font-weight: 550; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.ui-status--done { background: var(--ok-soft); color: var(--ok); }
.ui-status--running { background: var(--accent-soft); color: var(--accent); }
.ui-activity { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13px; flex-wrap: wrap; }
.ui-activity .icon { width: 15px; height: 15px; color: var(--text-3); }
.ui-activity code { padding: 1px 6px; border-radius: 5px; background: var(--bg-sunken); font-size: 12px; }
.ui-activity small { color: var(--text-3); font-size: 12px; }
.ui-activity--wait { color: var(--text); }
.ui-approval { border-radius: 12px; border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); background: color-mix(in srgb, var(--warn-soft) 40%, var(--surface)); padding: 14px 16px; }
.ui-approval__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 10px; }
.ui-approval__title small { font-size: 12px; color: var(--text-3); }
.ui-approval__fields { display: grid; grid-template-columns: 96px 1fr; gap: 6px 12px; margin: 0 0 14px; padding: 12px; border-radius: 8px; background: var(--bg-sunken); font-size: 12.5px; }
.ui-approval__fields dt { color: var(--text-3); }
.ui-approval__fields dd { margin: 0; font-family: var(--font-mono); font-size: 12px; }
.ui-approval__fields dd code { font-size: 12px; }
.ui-approval__actions, .ui-form__actions { display: flex; gap: 8px; }
.ui-form__actions { justify-content: flex-end; margin-top: 18px; }
.ui-btn { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font-size: 13px; font-weight: 550; }
.ui-btn--primary { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.ui-composer { margin: 12px 48px 16px; border: 1px solid var(--border-strong); border-radius: 18px; padding: 12px 12px 10px 16px; box-shadow: var(--shadow-md); background: var(--surface); }
.ui-composer__ph { display: block; color: var(--text-3); margin-bottom: 12px; }
.ui-composer__row { display: flex; align-items: center; gap: 6px; }
.ui-chip-btn { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--text-3); }
.ui-chip-btn .icon { width: 15px; height: 15px; }
.ui-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--border); font-size: 12px; }
.ui-chip .icon { width: 13px; height: 13px; }
.ui-send { display: grid; place-items: center; width: 32px; height: 32px; margin-left: auto; border-radius: 50%; background: var(--ink); color: var(--on-ink); }
.ui-send .icon { width: 15px; height: 15px; }
.ui-form { max-width: 560px; margin: 0 auto; }
.ui-form__title { font-size: 16px; font-weight: 600; }
.ui-form__hint { margin-top: 4px; color: var(--text-3); font-size: 12.5px; }
.ui-steps { list-style: none; display: grid; grid-template-columns: repeat(5, auto); justify-content: space-between; gap: 8px; margin: 20px 0 22px; padding-bottom: 14px; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--text-3); }
.ui-steps li { white-space: nowrap; }
.ui-steps .is-done { color: var(--text-2); }
.ui-steps .is-on { color: var(--text); font-weight: 600; }
.ui-form__step { font-weight: 600; margin-bottom: 14px; }
.ui-field { display: grid; gap: 6px; margin-bottom: 14px; }
.ui-field > span { font-size: 12.5px; font-weight: 550; }
.ui-select { display: flex; align-items: center; justify-content: space-between; height: 38px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 10px; }
.ui-select b { font-weight: 500; }
.ui-select .icon { width: 14px; height: 14px; color: var(--text-3); transform: rotate(90deg); }
.ui-perms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ui-perms span { padding: 9px 10px; border-radius: 10px; background: var(--bg-sunken); font-weight: 550; font-size: 12.5px; }
.ui-perms small { display: block; font-weight: 400; color: var(--text-3); font-size: 11.5px; }

/* ---------- Principles band ---------- */
.band { background: var(--band-bg); color: var(--band-text); padding: clamp(80px, 11vw, 136px) 0; position: relative; overflow: hidden; }
.band__head { margin-bottom: clamp(44px, 6vw, 72px); }
.band__head h2 { font-size: clamp(34px, 5vw, 60px); letter-spacing: -0.04em; line-height: 1.06; }
html:lang(zh-CN) .band__head h2 { letter-spacing: 0; line-height: 1.25; }
.principles { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--band-border); }
.principles li { padding: 28px 28px 0 0; }
.principles li + li { padding-left: 28px; border-left: 1px solid var(--band-border); }
.principles h3 { font-size: 17px; margin-bottom: 10px; color: var(--band-text); }
.principles p { color: var(--band-text-2); font-size: 15px; }

/* ---------- CTA ---------- */
.cta__inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta__mark { width: 52px; height: 52px; margin-bottom: 28px; animation: spin 40s linear infinite; }
.cta h2 { font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -0.035em; }
html:lang(zh-CN) .cta h2 { letter-spacing: 0; }
.cta .lead { margin-top: 16px; }

/* ---------- Inner pages ---------- */
.page-hero { padding: clamp(64px, 9vw, 112px) 0 clamp(24px, 3vw, 40px); }
.page-hero h1 { font-size: clamp(38px, 5.6vw, 64px); letter-spacing: -0.04em; max-width: 16ch; }
html:lang(zh-CN) .page-hero h1 { letter-spacing: 0; max-width: none; }
.page-hero .lead { margin-top: 20px; }
.page-hero--center { text-align: center; padding-bottom: clamp(80px, 12vw, 140px); }
.page-hero--center .container { display: flex; flex-direction: column; align-items: center; }
.page-hero--center .lead { margin: 16px auto 32px; }
.nf__mark { width: 48px; height: 48px; margin-bottom: 28px; }

/* Features */
.feature-list { border-top: 1px solid var(--border); }
.feature { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(24px, 5vw, 80px); padding: clamp(36px, 5vw, 56px) 0; border-bottom: 1px solid var(--border); }
.feature__num { display: block; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-3); margin-bottom: 14px; }
.feature h2 { font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -0.025em; margin-bottom: 12px; }
html:lang(zh-CN) .feature h2 { letter-spacing: 0; }
.feature__intro p { color: var(--text-2); max-width: 440px; }
.feature__points { list-style: none; display: grid; gap: 14px; align-content: start; padding-top: 4px; }
.feature__points li, .ticks li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; }
.feature__points .icon, .ticks .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--accent); }
.ticks { list-style: none; display: grid; gap: 10px; }
.horizon { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg); border: 1px dashed var(--border-strong); background: var(--bg-soft); }
.horizon h2 { font-size: 24px; margin: 14px 0 10px; letter-spacing: -0.02em; }
.horizon p { color: var(--text-2); }
.horizon ul { list-style: none; display: grid; gap: 8px; align-content: center; }
.horizon li { padding: 12px 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); font-size: 15px; }

/* Docs */
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.docs__toc { position: sticky; top: calc(var(--header-h) + 24px); }
.docs__toc summary { list-style: none; font-size: 12.5px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--font-mono); margin-bottom: 12px; cursor: default; }
.docs__toc summary::-webkit-details-marker { display: none; }
.docs__toc ol { list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--border); }
.docs__toc a { display: block; padding: 6px 14px; margin-left: -1px; border-left: 2px solid transparent; font-size: 14px; color: var(--text-2); transition: color 0.15s, border-color 0.15s; }
.docs__toc a:hover { color: var(--text); }
.docs__toc a.is-active { color: var(--text); border-left-color: var(--ink); font-weight: 550; }
.docs__section { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--border); }
.docs__section:last-child { border-bottom: 0; }
.prose { max-width: 720px; font-size: 16px; color: var(--text-2); }
.prose h2 { font-size: 24px; letter-spacing: -0.02em; color: var(--text); margin-bottom: 16px; }
html:lang(zh-CN) .prose h2 { letter-spacing: 0; }
.prose p + p, .prose p + ul, .prose ul + p, .prose pre + p, .prose p + pre { margin-top: 14px; }
.prose ul { padding-left: 20px; display: grid; gap: 6px; }
.prose b { color: var(--text); font-weight: 600; }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--text); }
pre { margin: 0; padding: 14px 16px; border-radius: 10px; background: var(--bg-sunken); border: 1px solid var(--border); overflow-x: auto; color: var(--text); font-size: 13.5px; line-height: 1.55; }
.glossary { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 0; border-top: 1px solid var(--border); }
.glossary dt, .glossary dd { padding: 12px 0; border-bottom: 1px solid var(--border); margin: 0; }
.glossary dt { font-weight: 600; color: var(--text); padding-right: 28px; }

/* Download */
.download { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.dl-card, .dl-side, .dl-side > section, .docs__body { min-width: 0; }
.dl-card { padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-lg); border: 1px solid var(--border-strong); background: var(--surface); box-shadow: var(--shadow-lg); display: grid; gap: 22px; justify-items: start; }
.dl-card__head { display: flex; align-items: center; gap: 16px; }
.dl-card__os { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--bg-sunken); border: 1px solid var(--border); }
.dl-card__os .icon { width: 26px; height: 26px; }
.dl-card h2 { font-size: 26px; letter-spacing: -0.025em; }
.dl-card__status { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text-2); margin-top: 2px; }
.dl-card > p { color: var(--text-2); }
.dl-card__meta { width: 100%; margin: 0; border-top: 1px solid var(--border); }
.dl-card__meta div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.dl-card__meta dt { color: var(--text-3); }
.dl-card__meta dd { margin: 0; color: var(--text); }
.dl-side { display: grid; gap: 36px; }
.dl-side h2 { font-size: 18px; letter-spacing: -0.01em; margin-bottom: 12px; }
.dl-side p { color: var(--text-2); }
.dl-side p + pre, .dl-side p + .link-arrow { margin-top: 12px; }
.dl-side .ticks li { color: var(--text-2); }

/* FAQ */
.faq { border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item h2 { font-size: 18px; letter-spacing: -0.01em; font-weight: 580; }
.faq__icon { position: relative; width: 14px; height: 14px; flex: none; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 1.6px; background: var(--text-2); border-radius: 2px; transition: transform 0.25s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__a { padding: 0 40px 24px 0; color: var(--text-2); }
.faq__a a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.faq__a b { color: var(--text); font-weight: 600; }

/* Release notes */
.release { padding: 32px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-md); }
.release__head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.release__head h2 { font-size: 28px; letter-spacing: -0.03em; }
.release__date { margin-left: auto; font-size: 14px; color: var(--text-3); }
.release > p { color: var(--text-2); }
.release h3 { font-size: 14px; color: var(--text-3); font-weight: 600; margin: 28px 0 14px; }
.release .ticks li { color: var(--text-2); }

/* Privacy & legal */
.notice { display: grid; gap: 12px; justify-items: start; padding: 20px 22px; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); background: color-mix(in srgb, var(--warn-soft) 45%, var(--bg)); margin-bottom: 40px; }
.notice p { color: var(--text); }
.legal { list-style: none; counter-reset: legal; border-top: 1px solid var(--border); }
.legal__item { counter-increment: legal; padding: 22px 0; border-bottom: 1px solid var(--border); }
.legal__head { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 6px; flex-wrap: wrap; }
.legal__head h2 { min-width: 0; }
.legal__head h2 { font-size: 18px; letter-spacing: -0.01em; }
.legal__head h2::before { content: counter(legal, decimal-leading-zero); font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; color: var(--text-3); margin-right: 14px; }
.legal__item p { color: var(--text-2); padding-left: 34px; }
.legal__item.is-current p { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 64px 0 28px; font-size: 14px; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.site-footer__brand p { margin-top: 14px; color: var(--text-2); max-width: 320px; }
.site-footer__status { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-3) !important; }
.site-footer__col { display: flex; flex-direction: column; gap: 10px; }
.site-footer__col h2 { font-family: var(--font); font-size: 13px; font-weight: 600; letter-spacing: 0; margin-bottom: 4px; }
.site-footer__col a { color: var(--text-2); width: fit-content; }
.site-footer__col a:hover { color: var(--text); }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 13px; }
.site-footer__langs { display: flex; gap: 16px; }
.site-footer__langs a:hover, .site-footer__langs a[aria-current] { color: var(--text); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .canvas { grid-template-columns: 1fr 40px minmax(320px, 1.9fr); grid-template-rows: auto auto; row-gap: 36px; }
  .cv-col--you { grid-column: 1; grid-row: 1; }
  .cv-link--a { grid-column: 2; grid-row: 1; }
  .cv-company { grid-column: 3; grid-row: 1; }
  .cv-link--b { display: none; }
  .cv-project { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: 140px minmax(0, 1.7fr) minmax(0, 1fr); gap: 0 24px; align-items: start; }
  .cv-project__head { margin: 0; }
  .cv-artifacts { margin: 0; padding: 0 0 0 24px; border: 0; border-left: 1px solid var(--border); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .layers { grid-template-columns: 1fr; }
  .layers__tabs { flex-direction: row; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--border); gap: 0; scrollbar-width: none; }
  .layers__tabs::-webkit-scrollbar { display: none; }
  .layer-tab { width: auto; flex: none; margin: 0 0 -1px; padding: 12px 16px; border-left: 0; border-bottom: 2px solid transparent; border-radius: 10px 10px 0 0; }
  .layer-tab[aria-selected="true"] { border-bottom-color: var(--ink); }
  .layer-tab__text small { display: none; }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .principles li:nth-child(3) { padding-left: 0; border-left: 0; }
  .principles li:nth-child(n+3) { border-top: 1px solid var(--band-border); margin-top: 28px; }
  .site-header__inner { gap: 16px; }
}

@media (max-width: 900px) {
  .site-header__menu { display: inline-grid; }
  .site-header__actions { margin-left: auto; }
  .site-header__cta { display: none; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 32px;
    background: var(--bg); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity 0.2s, transform 0.2s var(--ease), visibility 0s 0.2s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity 0.2s, transform 0.2s var(--ease); }
  .site-nav a { padding: 16px 4px; border-radius: 0; font-size: 18px; color: var(--text); border-bottom: 1px solid var(--border); }
  .site-nav a:hover { background: none; }
  .site-nav__lang-mobile { display: flex !important; align-items: center; gap: 10px; color: var(--text-2) !important; }
  .site-nav__lang-mobile .icon { width: 18px; height: 18px; }
  body.menu-open { overflow: hidden; }
  .site-header.menu-open { border-bottom-color: var(--border); }
  .site-header.menu-open::before { background: var(--bg); }
  .site-header.menu-open .icon--menu { display: none; }
  .site-header.menu-open .icon--close { display: block; }
  .caps { grid-template-columns: repeat(2, 1fr); }
  .layers__stage { grid-template-columns: 1fr; }
  .layers__panels { border-left: 0; border-top: 1px solid var(--border); }
  .layer-panel__owns-label { margin-top: 0; padding-top: 22px; }
  .ui-app { grid-template-columns: 52px 1fr; height: 500px; }
  .ui-app .ui-side { display: none; }
  .ui-main { margin-left: 0; }
  .ui-thread { padding: 8px 20px 0; }
  .ui-composer { margin: 12px 20px 16px; }
  .feature, .download, .horizon { grid-template-columns: minmax(0, 1fr); }
  .docs { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .docs__toc { position: static; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; background: var(--bg-soft); }
  .docs__toc summary { margin: 0; cursor: pointer; display: flex; justify-content: space-between; }
  .docs__toc summary::after { content: "+"; font-size: 16px; line-height: 1; }
  .docs__toc details[open] summary { margin-bottom: 12px; }
  .docs__toc details[open] summary::after { content: "–"; }
  .site-footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  :root { --gutter: 16px; --header-h: 58px; }
  .brand__zh { display: none; }
  .hero__title { font-size: clamp(40px, 12vw, 56px); }
  html:lang(zh-CN) .hero__title { font-size: clamp(32px, 9.4vw, 46px); }
  .hero__actions { width: 100%; flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .canvas { display: flex; flex-direction: column; align-items: stretch; padding: 18px; gap: 0; border-radius: 18px; }
  .cv-link { width: 2px; height: 30px; align-self: center; }
  .cv-link span { background-image: linear-gradient(180deg, var(--border-strong) 50%, transparent 0); background-size: 2px 8px; }
  .cv-link span::after { top: 0; left: -3px; animation-name: travel-y; }
  .cv-link--b { display: block; }
  .cv-company { padding: 14px; }
  .cv-meta { min-width: 0; width: 100%; }
  .cv-emps { gap: 6px; }
  .cv-emp { padding: 8px; }
  .cv-emp__top .cv-avatar { display: none; }
  .cv-project { display: block; }
  .cv-project__head { margin-bottom: 12px; }
  .cv-artifacts { margin-top: 12px; padding: 12px 0 0; border: 0; border-top: 1px solid var(--border); }
  .caps { grid-template-columns: 1fr; }
  .cap { padding: 26px 22px 28px; }
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .step { display: grid; grid-template-columns: 52px 1fr; padding: 0 0 26px; }
  .step__num { grid-row: span 2; margin: 0; width: fit-content; }
  .step::before { content: ""; position: absolute; left: 19px; top: 34px; bottom: 4px; width: 1px; background: var(--border-strong); }
  .step:last-child::before { display: none; }
  .principles { grid-template-columns: 1fr; }
  .principles li, .principles li + li { padding: 24px 0 0; border-left: 0; }
  .principles li + li { border-top: 1px solid var(--band-border); margin-top: 24px; }
  .preview__tabs { width: 100%; }
  .preview__tabs button { flex: 1; padding: 8px 6px; font-size: 13px; }
  .window { border-radius: 12px; }
  .ui-app { grid-template-columns: 1fr; height: auto; min-height: 480px; font-size: 13px; }
  .ui-rail { display: none; }
  .ui-main { margin: 6px; }
  .ui-main--form { padding: 18px; }
  .ui-thread { padding: 6px 14px 0; }
  .ui-msg--user { max-width: 88%; }
  .ui-row { grid-template-columns: 1fr auto; }
  .ui-row__what { grid-column: 1; grid-row: 2; font-size: 12.5px; }
  .ui-row .ui-status { grid-row: span 2; }
  .ui-composer { margin: 12px 12px 12px; }
  .ui-approval__fields { grid-template-columns: 1fr; gap: 2px; }
  .ui-approval__fields dd { margin-bottom: 8px; }
  .ui-steps { grid-template-columns: repeat(5, 1fr); font-size: 11px; }
  .ui-steps li { overflow: hidden; text-overflow: ellipsis; }
  .ui-perms { grid-template-columns: 1fr; }
  .window__bar b { padding-right: 0; }
  .faq__a { padding-right: 0; }
  .release { padding: 22px; }
  .release__date { margin-left: 0; width: 100%; }
  .legal__item p { padding-left: 0; }
  .legal__head { align-items: flex-start; }
  .glossary { grid-template-columns: 1fr; }
  .glossary dt { border-bottom: 0; padding-bottom: 0; }
  .glossary dd { padding-top: 4px; }
  .dl-card__meta div { grid-template-columns: 90px 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .cv-link span::after { display: none; }
}
