:root {
  /* Determined stage colors. Light field and page are the same tone, so the model is not floating on a second background. */
  --stage: #e4e1d8;
  --font: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --wrap: 1120px;
  --header: 64px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

:root,
:root[data-theme="light"] {
  color-scheme: light;
  --bg-app: var(--stage);
  --bg-main: #f7f4ee;
  --bg-sunken: #ebe9e4;
  --line: #e5e2db;
  --line-strong: #d4d0c7;
  --text: #1d1c1a;
  --text-2: #48453f;
  --text-3: #6d6962;
  --accent: #2455d3;
  --ink: #1d1c1a;
  --ink-hover: #36332e;
  --ink-on: #fbfbf9;
  --hover: rgba(42, 34, 20, 0.05);
  --code-bg: rgba(42, 34, 20, 0.065);
  --ok: #1a7746;
  --warn: #965c05;
  --add-bg: #e8f4ec;
  --add-fg: #135f38;
  --del-bg: #fbebea;
  --del-fg: #98251f;
  /* Hero light field: A is the stage the glass sits on, B/C tint its edges.
     The glass only adds light, so the light stage sits a step below the page. */
  --hero-a: #e4e1d8;
  --hero-b: #6a7891;
  --hero-c: #ffffff;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --stage: #12141c;
  --bg-app: var(--stage);
  --bg-main: #1a1c24;
  --bg-sunken: #1f222b;
  --line: #2a2d37;
  --line-strong: #3a3e4a;
  --text: #ededeb;
  --text-2: #c5c2bc;
  --text-3: #9c9890;
  --accent: #7ca6ff;
  --ink: #ededeb;
  --ink-hover: #ffffff;
  --ink-on: #161616;
  --hover: rgba(255, 255, 255, 0.06);
  --code-bg: rgba(255, 255, 255, 0.08);
  --ok: #4cc283;
  --warn: #e0a440;
  --add-bg: rgba(76, 194, 131, 0.12);
  --add-fg: #7fd9a6;
  --del-bg: rgba(240, 102, 92, 0.12);
  --del-fg: #f2948c;
  --hero-a: #12141c;
  --hero-b: #3d4d6c;
  --hero-c: #c9d8e8;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --stage: #12141c;
    --bg-app: var(--stage);
    --bg-main: #1a1c24;
    --bg-sunken: #1f222b;
    --line: #2a2d37;
    --line-strong: #3a3e4a;
    --text: #ededeb;
    --text-2: #c5c2bc;
    --text-3: #9c9890;
    --accent: #7ca6ff;
    --ink: #ededeb;
    --ink-hover: #ffffff;
    --ink-on: #161616;
    --hover: rgba(255, 255, 255, 0.06);
    --code-bg: rgba(255, 255, 255, 0.08);
    --ok: #4cc283;
    --warn: #e0a440;
    --add-bg: rgba(76, 194, 131, 0.12);
    --add-fg: #7fd9a6;
    --del-bg: rgba(240, 102, 92, 0.12);
    --del-fg: #f2948c;
    --hero-a: #12141c;
    --hero-b: #3d4d6c;
    --hero-c: #c9d8e8;
  }
}

/* Page changes cross-fade instead of blanking; the header stays put.
   No blur: a full-screen blur on every navigation drops frames on phones. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 220ms var(--ease-out) both vt-leave; }
::view-transition-new(root) { animation: 320ms var(--ease-out) both vt-enter; }
@keyframes vt-leave { to { opacity: 0; } }
@keyframes vt-enter { from { opacity: 0; transform: translateY(10px); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 16px); }
body {
  margin: 0;
  background: var(--bg-app);
  color: var(--text);
  font: 16px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
html { scrollbar-color: color-mix(in srgb, var(--text-3) 50%, transparent) transparent; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }
h1, h2, h3 { text-wrap: balance; }
p, li, figcaption, td { text-wrap: pretty; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-sm); }
code, pre { font-family: var(--mono); font-size: 0.9em; }
code { background: var(--code-bg); padding: 0.12em 0.4em; border-radius: 4px; }
h1, h2, h3 { color: var(--text); font-weight: 600; margin: 0; }
p { margin: 0 0 0.9em; }
.muted { color: var(--text-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: 12px; top: -48px; padding: 8px 12px; background: var(--ink); color: var(--ink-on); border-radius: var(--radius-sm); z-index: 20; }
.skip:focus { top: 12px; }
karmen-avatar { pointer-events: none; }

/* Scroll reveal: only when scripts run, never for reduced motion. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Header */
.site-header {
  position: sticky; top: 12px; z-index: 20;
  width: min(1080px, calc(100% - 28px));
  margin: 12px auto 0;
  height: auto;
  border-radius: 28px;
  overflow: hidden;
  clip-path: inset(0 round 28px);
  background: transparent;
  border: 1px solid color-mix(in srgb, white 28%, transparent);
  box-shadow: 0 18px 50px -28px rgba(20, 16, 28, 0.55);
  transition: transform 420ms var(--ease-out);
  transform-origin: center top;
}
.site-header[data-scrolled] { transform: scale(0.985); }
.js .site-header { background: transparent; }
.film-rail { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 40; pointer-events: none; }
.film-rail span { display: block; height: 100%; transform-origin: left center; transform: scaleX(var(--p, 0)); background: color-mix(in srgb, var(--hero-c) 75%, var(--accent)); }
.js .site-header.header-glass-off { background: color-mix(in srgb, var(--bg-app) 78%, transparent); backdrop-filter: blur(16px); }
.header-glass-stage { position: absolute; left: 0; right: 0; top: -78px; height: 220px; pointer-events: none; z-index: 0; }
.header-glass { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; display: block; }
/* The glass catches bright highlights; in dark mode a smoked layer keeps the light nav text readable. */
.site-header::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit; background: transparent; transition: background-color 400ms var(--ease-out); }
:root[data-theme="dark"] .site-header:not(.header-glass-off)::after { background: color-mix(in srgb, var(--stage) 62%, transparent); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-header:not(.header-glass-off)::after { background: color-mix(in srgb, var(--stage) 62%, transparent); }
}
.header-row { position: relative; z-index: 1; display: flex; align-items: center; gap: 32px; height: var(--header); padding: 0 8px; text-shadow: 0 1px 0 color-mix(in srgb, var(--bg-app) 35%, transparent); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-weight: 600; letter-spacing: 0.02em; font-size: 15px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: 26px; }
.brand-sep { color: var(--text-3); font-weight: 400; }
.brand-sub { font-weight: 500; letter-spacing: 0; }
.site-nav { display: flex; gap: 4px; flex: 1; }
.site-nav a { flex: none; white-space: nowrap; color: var(--text-2); padding: 6px 12px; border-radius: 999px; font-size: 14px; transition: color 200ms, background-color 200ms, transform 160ms var(--ease-out); }
.site-nav a:hover { color: var(--text); background: var(--hover); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--text); }
.header-tools { display: flex; align-items: center; gap: 8px; }
/* Phone island: header-island.js adds .is-island only below 640px. */
.island-rim, .island-hit { display: none; }
.site-header.is-island { transition: none; border-color: transparent; will-change: transform, clip-path; }
.site-header.is-island .brand-mark, .site-header.is-island .brand-name, .site-header.is-island .site-nav, .site-header.is-island .header-tools { will-change: transform, opacity; }
.site-header.is-island .island-rim {
  display: block; position: absolute; z-index: 2; top: -1px; left: -1px; box-sizing: border-box; pointer-events: none;
  border: 1px solid color-mix(in srgb, white 28%, transparent); border-radius: 28px;
}
.site-header.is-island .island-hit:not([hidden]) {
  display: block; position: absolute; z-index: 3; top: -1px; left: calc(50% - 60px); width: 120px; height: 38px;
  margin: 0; padding: 0; border: 0; border-radius: 19px; background: none; color: inherit;
  cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none;
  -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
}
.site-header.is-island .island-hit:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.site-header.is-folded .island-rim { border-color: color-mix(in srgb, white 38%, transparent); }
.lang-link { color: var(--text-2); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; padding: 6px 8px; text-decoration: none; transition: color 200ms, transform 160ms var(--ease-out); }
.lang-link:hover { color: var(--text); text-decoration: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0;
  border: 0; border-radius: 999px; background: none; color: var(--text-2); cursor: pointer;
  transition: background-color 200ms, color 200ms, transform 160ms var(--ease-out);
}
.icon-btn:hover { background: var(--hover); color: var(--text); }
.icon-btn:active, .copy:active, .lang-link:active, .nav-more:active { transform: scale(0.94); }
.site-nav a:active, .jump a:active, .nav-sub a:active, .os-tablist [role="tab"]:active { transform: scale(0.97); }
.icon-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; display: none; transition: transform 320ms var(--ease-out), opacity 200ms var(--ease-out); }
@starting-style { .icon-btn svg { opacity: 0; transform: rotate(-70deg) scale(0.6); } }
.icon-btn .fill { fill: currentColor; stroke: none; }
.icon-btn[data-mode="system"] .i-system, .icon-btn[data-mode="light"] .i-light, .icon-btn[data-mode="dark"] .i-dark { display: block; }
.icon-btn .i-dark { fill: currentColor; stroke: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--text);
  background: color-mix(in srgb, var(--bg-main) 60%, transparent);
  font: 500 15px/1 var(--font); white-space: nowrap;
  transition: background-color 250ms var(--ease-out), border-color 250ms var(--ease-out), transform 160ms var(--ease-out);
}
.btn:hover { text-decoration: none; border-color: var(--text-3); }
.btn:active { transform: scale(0.97); }
.apply-form { display: grid; gap: 14px; max-width: 640px; }
.apply-form label { display: grid; gap: 6px; font-size: 14px; }
.apply-form label span { color: var(--text-3); font-size: 13px; }
.apply-form input, .apply-form select, .apply-form textarea {
  width: 100%; border-radius: 10px; border: 1px solid var(--line-strong);
  padding: 10px 12px; background: transparent; color: inherit; font: inherit;
}
.apply-form .honeypot { position: absolute; left: -10000px; }
.apply-result { margin: 0; }
#beta-gate {
  border: 0; padding: 0; max-width: 420px; width: calc(100% - 32px);
  border-radius: var(--radius-lg); background: var(--bg-main); color: var(--text);
}
#beta-gate::backdrop { background: rgba(0, 0, 0, .45); }
#beta-gate form { display: grid; gap: 12px; padding: 28px; }
#beta-gate h2 { margin: 0; font-size: 22px; }
#beta-gate p { margin: 0; color: var(--text-2); }
#beta-gate label { display: grid; gap: 6px; font-size: 14px; }
#beta-gate input {
  height: 44px; border-radius: 10px; border: 1px solid var(--line-strong);
  padding: 0 12px; background: transparent; color: inherit; font: inherit;
}
#beta-gate .gate-error { color: var(--text); }
#beta-gate .gate-actions { display: flex; justify-content: flex-end; gap: 8px; }
.btn-primary { background: var(--ink); border-color: var(--ink); color: var(--ink-on); }
.btn-primary:hover { background: var(--ink-hover); border-color: var(--ink-hover); }
.btn-small { height: 34px; padding: 0 16px; font-size: 14px; }
.dl { margin: 32px 0 0; }
.dl-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.dl-meta { margin: 14px 0 0; font-family: var(--mono); font-size: 12.5px; color: var(--text-3); letter-spacing: 0.01em; }
.dl-note { font-size: 13px; color: var(--text-3); margin-top: 10px; }

/* Home hero: the ring evolves on its own; it never follows the pointer. */
.hero {
  position: relative;
  min-height: 100svh;
  margin-top: calc(-1 * var(--header) - 24px);
  background: transparent;
}
.hero-track { min-height: 165vh; }
.hero-stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.page-stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.page-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 900ms var(--ease-out); }
.page-stage[data-hero-scene="ready"] .page-canvas { opacity: 1; }
.page-stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, transparent 0%, color-mix(in srgb, var(--stage) 28%, transparent) 52%, color-mix(in srgb, var(--stage) 78%, transparent) 80%);
}
.hero-stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 42%, transparent 0%, color-mix(in srgb, var(--stage) 18%, transparent) 46%, color-mix(in srgb, var(--stage) 72%, transparent) 78%),
    linear-gradient(to bottom, transparent 70%, var(--stage));
}
.hero-canvas, .hero-dust { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-canvas { opacity: 0; transition: opacity 1400ms var(--ease-out); }
.hero-dust { z-index: 1; }
.hero-stage[data-painted] .hero-canvas { opacity: 1; }
.hero-stage[data-hero-scene="ready"] .hero-fallback { display: none; }
.hero-fallback { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8vh; }
.hero-fallback karmen-avatar { width: min(52vh, 70vw); height: min(52vh, 70vw); }
.ring-still {
  width: min(52vh, 70vw); aspect-ratio: 1; border-radius: 50%;
  border: clamp(30px, 6vh, 64px) solid color-mix(in srgb, var(--hero-b) 22%, transparent);
}
.hero-fallback:has(karmen-avatar) .ring-still { display: none; }
/* The bottom padding is the room the ring rises into; home.js measures it. */
.hero-copy { position: sticky; top: 22vh; z-index: 2; text-align: center; padding-top: calc(var(--header) + 8vh); padding-bottom: 18vh; }
.hero-copy h1 { font-size: clamp(34px, 4.8vw, 60px); line-height: 1.18; letter-spacing: -0.02em; margin: 18px auto 0; max-width: 900px; }
@property --lead { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --ci { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --count { syntax: "<number>"; inherits: true; initial-value: 1; }
@property --local { syntax: "<number>"; inherits: false; initial-value: 0; }
.scrub-char {
  display: inline-block; color: var(--text);
  --local: clamp(0, (var(--lead) - (var(--ci) / var(--count)) * 0.42) / 0.58, 1);
  transform: translate3d(0, calc(var(--local) * 250%), 0) scale(calc(1 - var(--local) * 0.1), calc(1 + var(--local) * 0.2));
  opacity: calc(1 - var(--local));
}
.scrub-word { display: inline-block; white-space: nowrap; }
.h1-sub { display: block; color: var(--text-3); }
.h1-sub .scrub-char { color: var(--text-3); }
.hero-copy .eyebrow, .hero-copy .dl-meta, .hero-copy .dl-note { text-shadow: 0 0 10px var(--stage), 0 0 2px var(--stage); }
.hero-copy h1 { text-shadow: 0 1px 0 color-mix(in srgb, var(--stage) 80%, transparent); }
.dl-meta { text-wrap: balance; }
.btn-glow {
  position: relative; isolation: isolate;
  background: linear-gradient(120deg, var(--ink), color-mix(in srgb, var(--accent) 62%, var(--ink)));
  color: var(--ink-on);
  border-color: transparent;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--hero-c) 40%, transparent), 0 0 24px color-mix(in srgb, var(--accent) 40%, transparent);
}
/* A soft halo that breathes behind the main call to action; only opacity and transform move. */
.btn-glow::before {
  content: ""; position: absolute; inset: -14px -22px; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 55%, transparent), transparent);
  animation: breathe 3.6s var(--ease-in-out) infinite alternate;
}
.btn-glow:hover { text-decoration: none; filter: brightness(1.08); }
@keyframes breathe { from { opacity: 0.35; transform: scale(0.94); } to { opacity: 0.9; transform: scale(1.06); } }
.hero-cta { margin-top: 18px; }
.hero-copy .dl-actions, .page-hero-center .dl-actions, .section-cta .dl-actions { justify-content: center; }
.hero-copy .dl-note { max-width: 720px; margin-left: auto; margin-right: auto; }
.motion-toggle {
  position: absolute; right: 24px; bottom: 24px; z-index: 3;
  font: 12px/1 var(--font); color: var(--text-3); background: color-mix(in srgb, var(--bg-main) 55%, transparent);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; cursor: pointer;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: color 200ms, border-color 200ms;
}
.motion-toggle:hover { color: var(--text); border-color: var(--line-strong); }
.eyebrow { font-size: 13px; letter-spacing: 0.06em; color: var(--text-3); margin: 0; }

/* Sections */
.section { padding: 64px 0; }
.section-tight { padding-top: 32px; }
.section-head { margin-bottom: 56px; max-width: 640px; }
.section-head:last-child { margin-bottom: 0; }
.section-head h2, .feature-text h2, .section-cta h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.2; letter-spacing: -0.02em; }
.section-head h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.section-head h2 .badge { margin: 0; }
.section-head p { margin-top: 14px; font-size: 17px; color: var(--text-2); }
.h-small { font-size: 22px !important; letter-spacing: -0.01em; margin-bottom: 16px; }
.page-hero { padding: 96px 0 32px; }
.page-hero h1 {
  font-size: clamp(36px, 5vw, 60px); line-height: 1.15; letter-spacing: -0.025em; margin: 16px 0 22px;
  background-image: linear-gradient(100deg, var(--text) 0%, var(--hero-b) 46%, var(--accent) 82%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-hero .lede { font-size: 18px; color: var(--text-2); max-width: 680px; }
.page-hero-center { text-align: center; }
.page-hero-center .lede, .page-hero-center .note { margin-left: auto; margin-right: auto; }
.section-cta { text-align: center; padding-bottom: 136px; }
.section-cta h2 { margin-bottom: 4px; }

.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.product { background: var(--bg-main); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.product-visual { height: 280px; display: grid; place-items: center; background: var(--bg-sunken); position: relative; overflow: hidden; }
.product-visual-bot { background: radial-gradient(120% 90% at 50% 100%, color-mix(in srgb, var(--hero-b) 22%, var(--bg-sunken)), var(--bg-sunken)); }
.product-avatar { width: 200px; height: 200px; }
.product-visual-koder { display: block; }
.product-visual-koder .shot-img { width: 100%; height: 100%; object-fit: cover; object-position: left top; transform: scale(1.02); transform-origin: left top; transition: transform 900ms var(--ease-out); }
.product-visual-cli { justify-items: start; padding: 0 32px; color: var(--text-2); font-family: var(--mono); font-size: 15px; line-height: 1.7; }
.cli-mark { margin: 0; white-space: pre-wrap; }
.cli-mark span { display: block; margin-bottom: 8px; color: var(--text); font-size: 28px; letter-spacing: -0.03em; }
.product:hover .product-visual-koder .shot-img { transform: scale(1.06); }
.product-body { padding: 28px 30px 30px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 24px; letter-spacing: -0.01em; margin: 10px 0 10px; }
.product-body p { color: var(--text-2); }
.more { margin-top: auto; font-size: 15px; font-weight: 500; color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.more::after { content: "→"; transition: transform 250ms var(--ease-out); }
.more:hover { text-decoration: none; }
.more:hover::after { transform: translateX(3px); }
.tag { font-size: 13px; color: var(--text-3); margin: 0; display: flex; align-items: center; gap: 8px; }
.dot { position: relative; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); flex-shrink: 0; }
.dot-ok { background: var(--ok); }
.dot-wait { background: var(--warn); }
/* Something you can use now breathes; something not out yet stays still. */
.tag .dot:not(.dot-wait), .status-table .dot:not(.dot-wait) { background: var(--accent); }
.tag .dot:not(.dot-wait)::after, .status-table .dot:not(.dot-wait)::after, .dot-ok::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: inherit; pointer-events: none;
  animation: dot-pulse 2.8s var(--ease-out) infinite;
}
@keyframes dot-pulse { 0% { opacity: 0.6; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(2.8); } }
[data-still]::before, [data-still]::after { animation-play-state: paused; }

.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.principles > div { border-top: 1px solid var(--line-strong); padding-top: 22px; }
.principles h3 { font-size: 17px; margin-bottom: 10px; }
.principles p { color: var(--text-2); font-size: 15px; }

.status-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.status-table th, .status-table td { text-align: left; padding: 16px 0; border-bottom: 1px solid var(--line); }
.status-table th { font-weight: 400; color: var(--text-3); font-size: 13px; padding-top: 0; }
.status-table td:first-child { font-weight: 500; }
.status-table td .dot { margin-right: 10px; vertical-align: 1px; }

.points { list-style: none; padding: 0; margin: 0 0 12px; }
.points li { position: relative; padding-left: 20px; margin: 0 0 10px; color: var(--text-2); }
.points li::before { content: ""; position: absolute; left: 3px; top: 0.72em; width: 5px; height: 5px; border-radius: 50%; background: var(--text-3); }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.feature-text h2 { margin-bottom: 22px; }
.feature-text > p { color: var(--text-2); }
.visual { margin: 0; background: var(--bg-main); border-radius: var(--radius-lg); padding: 32px; }
.visual-shot { padding: 18px; }
.visual-cap { margin-top: 14px; font-size: 12px; color: var(--text-3); text-align: right; }

.narrow { max-width: 760px; }
.steps { margin: 18px 0 0; padding: 0 0 0 22px; color: var(--text-2); }
.steps li { margin: 0 0 12px; }
.steps a, .note-line a { color: var(--text); }
.exhibit { padding-bottom: 12px; }
.exhibit-copy, .exhibit-lead {
  background: color-mix(in srgb, var(--bg-main) 90%, transparent);
  border-radius: 28px;
  padding: 24px 28px;
}
.exhibit-copy { padding-top: 24px; max-width: 760px; }
.exhibit-copy h2 { font-size: clamp(40px, 6vw, 72px); line-height: 1.05; letter-spacing: -0.035em; margin: 12px 0 18px; }
.exhibit-copy p:last-child { color: var(--text-2); font-size: 18px; max-width: 640px; }
.exhibit-scene { padding: 56px 0 8px; }
.exhibit-lead { display: grid; gap: 8px; max-width: 760px; margin-bottom: 22px; }
.exhibit-lead h3 { margin: 0; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; }
.exhibit-lead p { margin: 0; color: var(--text-2); max-width: 520px; }
.exhibit-stage, .exhibit-stage-alt {
  margin: 0;
  padding: 28px 24px 16px;
  background: transparent;
}
.exhibit-stage figcaption { width: min(1040px, 100%); margin: 16px auto 0; color: var(--text-2); font-size: 14px; }
.plate { margin: 0; }
.plate-stage { padding: 56px 22px 32px; background: transparent; }
.page-hero .wrap { background: color-mix(in srgb, var(--bg-main) 78%, transparent); backdrop-filter: blur(16px) saturate(1.25); border-radius: 28px; padding: 28px 32px; }
.flow { width: min(1040px, 100%); margin: 0 auto; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.flow.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.flow.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.flow li { background: #1c1c1e; color: #eceae4; border-radius: 16px; padding: 18px 16px 16px; min-height: 132px; box-shadow: 0 24px 50px -28px rgba(28, 24, 40, 0.55); }
.flow .k { display: block; margin-bottom: 8px; font-size: 12px; color: #9d9a93; }
.flow strong { display: block; margin-bottom: 6px; font-size: 18px; letter-spacing: -0.02em; }
.flow li > span { color: #c8c4bc; font-size: 13px; line-height: 1.45; }
.flow .later { background: rgba(255, 255, 255, 0.55); color: #1d1c1a; box-shadow: none; }
.flow .later .k, .flow .later > span { color: #3c3934; }
.plate figcaption { width: min(1040px, 100%); margin: 12px auto 0; color: var(--text-2); font-size: 14px; }
.shot-stack {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 8px;
  padding-bottom: 12px;
}
.shot-stack .shot-frame { flex: 0 0 min(960px, 86vw); width: min(960px, 86vw); scroll-snap-align: center; }
.shot-stack { align-items: center; scroll-behavior: smooth; scrollbar-width: none; }
.shot-stack::-webkit-scrollbar { display: none; }
.shot-stack:only-child, .shot-stack:has(> .shot-frame:only-child) { justify-content: center; }
.shot-frame {
  position: relative; display: block; margin: 0 auto; border-radius: 14px; overflow: hidden; cursor: zoom-in;
  background: var(--bg-sunken);
  box-shadow: 0 50px 90px -40px rgba(24, 20, 36, 0.55), 0 18px 40px -24px rgba(24, 20, 36, 0.35), 0 0 0 1px var(--line);
  transform-origin: 50% 100%;
}
.js .plate .shot-frame, .js .exhibit-stage .shot-frame {
  transform: perspective(1800px) translate3d(0, var(--py, 0px), 0) rotateX(var(--tilt, 0deg)) scale(var(--zoom, 1));
  transition: box-shadow 400ms var(--ease-out);
}
.shot-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, 0.06) 100%);
  mix-blend-mode: soft-light;
}
.shot-frame:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.shot-img { display: block; width: 100%; height: auto; }
.shot-dark { display: none; }
:root[data-theme="dark"] .shot-dark { display: block; }
:root[data-theme="dark"] .shot-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot-dark { display: block; }
  :root:not([data-theme="light"]) .shot-light { display: none; }
}
.film-frame {
  width: min(1080px, 100%); margin: 0 auto; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 9;
  background: var(--bg-sunken);
  box-shadow: 0 50px 90px -40px rgba(24, 20, 36, 0.55), 0 18px 40px -24px rgba(24, 20, 36, 0.35), 0 0 0 1px var(--line);
}
.film-video { width: 100%; height: 100%; object-fit: cover; }
.exhibit-stage .shot-frame { width: min(1080px, 100%); }
.visual-shot .shot-frame { border-radius: 12px; }
.shot-nav { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 18px 0 0; font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.shot-nav button {
  width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line-strong); cursor: pointer;
  background: color-mix(in srgb, var(--bg-main) 80%, transparent); color: var(--text); font-size: 18px; line-height: 1;
  backdrop-filter: blur(10px); transition: transform 200ms var(--ease-out), background 200ms var(--ease-out);
}
.shot-nav button:hover { transform: scale(1.06); }
.shot-nav button:active { transform: scale(0.96); }
.shot-nav button:disabled { opacity: 0.35; cursor: default; transform: none; }
.short-legal { width: min(720px, 100%); margin: 0 0 24px; }
.short-legal figcaption { margin-top: 12px; color: var(--text-2); font-size: 14px; }
.shot-view { width: min(1440px, 96vw); max-width: none; max-height: 94vh; padding: 0; border: 0; border-radius: 16px; background: transparent; overflow: visible; }
.shot-view::backdrop { background: rgba(10, 10, 14, 0.72); backdrop-filter: blur(10px); }
.shot-view img { display: block; width: 100%; height: auto; max-height: 90vh; object-fit: contain; border-radius: 16px; box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.7); }
.shot-view[open] img { animation: shot-open 360ms var(--ease-out); }
.shot-view p { margin: 12px 0 0; text-align: center; color: rgba(255, 255, 255, 0.82); font-size: 14px; }
.shot-view button { position: absolute; top: -14px; right: -14px; width: 36px; height: 36px; border-radius: 999px; border: 0; background: #fff; color: #111; font-size: 18px; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }
@keyframes shot-open { from { opacity: 0; transform: scale(0.96) translateY(10px); } }
main > * { position: relative; z-index: 1; }
body[data-page="home"] { scroll-snap-type: y proximity; }
body[data-page="home"] .section, body[data-page="home"] .plate, body[data-page="home"] .about-us { scroll-snap-align: start; }
.section > .wrap {
  background: color-mix(in srgb, var(--bg-main) 90%, transparent);
  border-radius: 28px;
  padding: 48px 48px 52px;
}
.aside-fold { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 18px; }
.aside-fold > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--text-3); }
.aside-fold > summary::-webkit-details-marker { display: none; }
.aside-fold > summary::after { content: "+"; font-size: 16px; line-height: 1; transition: transform 200ms var(--ease-out); }
.aside-fold[open] > summary::after { transform: rotate(45deg); }
.aside-fold > summary:hover { color: var(--text); }
.aside-body { margin-top: 18px; color: var(--text-2); font-size: 15px; }
.aside-body > * + * { margin-top: 12px; }
.section-fold { padding-top: 0; }
.section-fold > .wrap { background: none; padding-top: 0; padding-bottom: 0; }
.section-fold .aside-fold { margin-top: 0; }
.glass, .fold-body, .feature-card { background: color-mix(in srgb, var(--bg-main) 78%, transparent); backdrop-filter: blur(14px) saturate(1.2); border-radius: 28px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature-card { border-radius: 22px; background: color-mix(in srgb, var(--bg-main) 70%, transparent); backdrop-filter: blur(16px) saturate(1.3); }
.feature-card summary { list-style: none; cursor: pointer; display: grid; gap: 12px; padding: 16px 16px 8px; }
.feature-card summary::-webkit-details-marker { display: none; }
.feature-card summary h3 { display: flex; align-items: center; gap: 10px; }
.feature-card summary h3::after { content: "展开"; margin-left: auto; font-size: 12px; font-weight: 500; color: var(--text-3); }
.feature-card[open] summary h3::after { content: "收起"; }
.feature-body { padding: 0 18px 18px; }
.feature-shot { position: relative; margin: 0; border-radius: 12px; overflow: hidden; background: var(--bg-sunken); box-shadow: 0 0 0 1px var(--line); }
.feature-shot .shot-img { max-height: 132px; object-fit: cover; object-position: left top; }
.fold-peek { margin: 0; color: var(--text-3); font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fold { border-top: 1px solid var(--line); padding-top: 12px; }
.fold summary { cursor: pointer; display: grid; gap: 10px; align-items: center; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary h3 { display: flex; align-items: center; gap: 8px; margin: 0; }
.fold summary h3::after { content: "展开"; margin-left: auto; font-size: 12px; font-weight: 500; color: var(--text-3); }
.fold[open] summary h3::after { content: "收起"; }
.fold summary .fold-peek { grid-column: 1 / -1; }
.fold-body { margin-top: 12px; padding: 14px 16px 6px; }
.about-us h2 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.03em; margin: 8px 0 16px; }
.about-us .wrap { position: relative; isolation: isolate; overflow: hidden; }
/* A slow glow breathing behind the closing title. */
.about-us .wrap::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; top: 50%; width: min(720px, 120%); aspect-ratio: 2 / 1; margin: calc(min(720px, 120%) / -4) 0 0 calc(min(720px, 120%) / -2);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--hero-b) 30%, transparent), transparent);
  animation: breathe 6s var(--ease-in-out) infinite alternate;
}

.facets { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 72px; }
.facets.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.facets h3 { font-size: 20px; letter-spacing: -0.01em; margin-bottom: 12px; }
.facets p { color: var(--text-2); }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 48px; }
.grid-3 > * { border-top: 1px solid var(--line-strong); padding-top: 22px; }
.grid-3 h3 { font-size: 18px; letter-spacing: -0.01em; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.grid-3 p { color: var(--text-2); font-size: 15px; margin: 0; }
.grid-links > a { color: inherit; transition: border-color 250ms var(--ease-out); }
.grid-links > a:hover { text-decoration: none; border-top-color: var(--text); }
.grid-links > a h3::after { content: "→"; color: var(--text-3); font-weight: 400; margin-left: auto; transition: transform 250ms var(--ease-out); }
.grid-links > a:hover h3::after { transform: translateX(3px); color: var(--text); }
.label { display: inline-block; font-size: 12px; font-weight: 500; letter-spacing: 0.04em; color: var(--warn); border: 1px solid currentColor; border-radius: 999px; padding: 2px 10px; margin: 0 0 14px; line-height: 1.5; }
.grid-3 h3 .label { margin: 0; }
.grid-3.grid-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 56px; }
.jump {
  position: sticky; top: calc(var(--header) + 22px); z-index: 4;
  display: flex; flex-wrap: wrap; gap: 4px; margin: 22px 0 0; padding: 6px;
  width: fit-content; max-width: 100%;
  font-size: 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg-main) 84%, transparent);
  backdrop-filter: blur(12px);
}
.jump a { color: var(--text-2); padding: 4px 12px; border-radius: 999px; transition: color 200ms, background-color 250ms var(--ease-out), transform 160ms var(--ease-out); }
.jump a:hover { color: var(--text); background: var(--hover); text-decoration: none; }
.jump a[aria-current="true"] { color: var(--text); background: var(--hover); }
html:has(.page-jump) { scroll-padding-top: calc(var(--header) + 84px); }
.page-jump { position: sticky; top: calc(var(--header) + 22px); z-index: 6; height: 0; overflow: visible; pointer-events: none; }
.page-jump .jump { position: static; margin: 0 auto; pointer-events: auto; box-shadow: 0 0 0 1px var(--line), 0 18px 36px -24px rgba(24, 20, 36, 0.45); }
.page-jump + * { margin-top: 64px; }

/* Koder submenu: a popover so it is not clipped by the header capsule. */
.nav-menu { display: flex; align-items: center; }
.nav-more { display: inline-grid; place-items: center; width: 22px; height: 30px; margin-left: -10px; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--text-3); cursor: pointer; transition: color 200ms, transform 160ms var(--ease-out); }
.nav-more::before { transition: transform 220ms var(--ease-out); }
.nav-menu:has(.nav-sub:popover-open) .nav-more::before { transform: translateY(2px) rotate(225deg); }
.nav-more::before { content: ""; width: 5px; height: 5px; margin-top: -3px; border-right: 1.4px solid currentColor; border-bottom: 1.4px solid currentColor; transform: rotate(45deg); }
.nav-more:hover, .nav-menu:hover .nav-more { color: var(--text); }
.nav-sub {
  position: fixed; inset: auto; margin: 0; padding: 6px; min-width: 168px;
  border: 0; border-radius: 16px; color: var(--text);
  background: color-mix(in srgb, var(--bg-main) 90%, transparent);
  backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 0 0 1px var(--line), 0 24px 48px -22px rgba(24, 20, 36, 0.5);
  transform-origin: 24px 0;
  opacity: 0; transform: translateY(-4px) scale(0.97);
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), overlay 180ms allow-discrete, display 180ms allow-discrete;
}
.nav-sub:popover-open { display: grid; gap: 2px; opacity: 1; transform: none; }
@starting-style { .nav-sub:popover-open { opacity: 0; transform: translateY(-4px) scale(0.97); } }
.nav-sub a { transition: color 160ms, background-color 160ms, transform 160ms var(--ease-out); }
.nav-sub a { color: var(--text-2); padding: 9px 14px; border-radius: 10px; font-size: 14px; white-space: nowrap; }
.nav-sub a:hover, .nav-sub a:focus-visible { color: var(--text); background: var(--hover); text-decoration: none; }
.nav-sub a[aria-current="page"] { color: var(--text); }
@supports not selector(:popover-open) { .nav-more { display: none; } .nav-sub { position: static; display: flex; padding: 0; background: none; box-shadow: none; opacity: 1; transform: none; } }

/* Copyable commands */
.code-copy { position: relative; margin: 10px 0 0; }
.code-copy .cmd { padding-right: 84px; background: var(--bg-sunken); }
.code-copy .copy { position: absolute; top: 8px; right: 8px; background: var(--bg-main); }
.cmd-cell { display: flex; align-items: flex-start; gap: 10px; }
.cmd-cell code { flex: 1 1 auto; min-width: 0; }
.cmd-cell .copy { flex: none; margin-top: 3px; }
.cmd-table th:last-child { padding-right: 18px; }

/* Install tabs per system */
.os-tabs { margin: 22px 0 0; }
.os-tablist { display: none; }
.js .os-tablist { display: flex; flex-wrap: wrap; gap: 4px; width: fit-content; max-width: 100%; padding: 4px; margin: 0 0 18px; border-radius: 999px; background: var(--bg-sunken); }
.os-tablist button { font: 500 13px/1 var(--font); color: var(--text-2); background: none; border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; transition: color 200ms, background-color 200ms, box-shadow 200ms, transform 160ms var(--ease-out); }
.os-tablist button:hover { color: var(--text); }
.os-tablist button[aria-selected="true"] { color: var(--text); background: var(--bg-main); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(0, 0, 0, 0.08); }
.os-name { margin: 22px 0 8px; font-weight: 600; }
.js .os-name { display: none; }
.os-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.os-steps li { color: var(--text-2); }

/* Quick start: numbered steps on a rail */
.qs { list-style: none; margin: 0; padding: 0; counter-reset: qs; }
.qs > li { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 20px; padding: 0 0 40px; counter-increment: qs; }
.qs > li::before { content: counter(qs); grid-column: 1; grid-row: 1 / span 12; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font: 600 14px/1 var(--font); color: var(--text); background: var(--bg-main); box-shadow: inset 0 0 0 1px var(--line-strong); }
.qs > li::after { content: ""; position: absolute; left: 16.5px; top: 42px; bottom: 8px; width: 1px; background: var(--line); }
.qs > li:last-child { padding-bottom: 0; }
.qs > li:last-child::after { display: none; }
.qs > li > * { grid-column: 2; }
.qs h3 { margin: 5px 0 8px; font-size: 19px; letter-spacing: -0.01em; }
.qs p { margin: 0 0 8px; color: var(--text-2); }
.qs .visual { margin-top: 16px; padding: 0; background: none; max-width: 760px; }
.qs .visual-cap { text-align: left; }

.cmd-grid + .visual, .visual + .keys, .qs + .two-col { margin-top: 48px; }
.cmd-board + .points { margin-top: 4px; }
.faq { margin-top: 24px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px; padding: 18px 0; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--text-3); font-size: 18px; line-height: 1; transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--text-2); }
.cmd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.cmd-grid h3 { font-size: 17px; margin: 0 0 6px; font-family: var(--mono); letter-spacing: 0; }
.cmd-grid p { color: var(--text-2); font-size: 15px; margin: 0; }
.keys { width: 100%; border-collapse: collapse; font-size: 15px; }
.keys th, .keys td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.keys th { width: 34%; font-weight: 500; padding-right: 18px; white-space: nowrap; }
.keys td { color: var(--text-2); }
.keys kbd { font: 500 13px/1 var(--mono); padding: 3px 7px; border-radius: 6px; background: var(--bg-sunken); box-shadow: inset 0 -1px 0 var(--line-strong); }

.loop { list-style: none; margin: 0; padding: 0; }
.loop li { display: grid; grid-template-columns: 44px 64px minmax(0, 1fr); align-items: baseline; gap: 8px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.loop li:first-child { border-top: 1px solid var(--line); }
.loop-n { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.loop strong { font-size: 18px; font-weight: 600; }
.loop span:last-child { color: var(--text-2); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.two-col p { color: var(--text-2); }
/* KARMEN BOT */
.bot-figure { display: flex; justify-content: center; margin-bottom: 8px; }
.bot-avatar { width: min(240px, 56vw); height: min(240px, 56vw); }
.pause-note { margin: 16px 0 0; padding: 14px 18px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--warn) 45%, var(--line)); background: color-mix(in srgb, var(--warn) 9%, var(--bg-main)); color: var(--text); font-size: 15px; max-width: 680px; }
.pause-note strong { margin-right: 10px; color: var(--warn); }
.page-hero-center .pause-note { margin-left: auto; margin-right: auto; }
.download-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 36px; margin: 22px auto 0; padding: 16px 22px; max-width: 680px; border-radius: 16px; background: var(--bg-main); }
.download-stats .stat-item { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 88px; }
.download-stats .stat-num { font-family: var(--mono); font-size: 28px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.download-stats .stat-label { font-size: 13px; color: var(--text-3); }
.page-hero-center .download-stats { margin-left: auto; margin-right: auto; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 14px; margin: 8px 0 0; }
.note { font-size: 14px; color: var(--text-3); max-width: 640px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.plan { background: var(--bg-main); border-radius: var(--radius-lg); padding: 32px 32px 20px; }
a.plan { color: inherit; display: block; }
a.plan:hover { text-decoration: none; outline: 1px solid var(--line-strong); }
.plan-n { font-family: var(--mono); font-size: 12px; color: var(--text-3); margin: 0 0 14px; }
.plan h3 { font-size: 21px; letter-spacing: -0.01em; margin-bottom: 16px; }
.plan-note { font-size: 13px; color: var(--warn); }
.meeting { margin: 0; }
.meeting > div { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.meeting > div:first-child { padding-top: 0; }
.meeting dt { font-size: 13px; color: var(--text-3); padding-top: 2px; }
.meeting dd { margin: 0; color: var(--text-2); }
.meeting-key dt, .meeting-key dd { color: var(--text); }

/* Download */
.download-card { background: var(--bg-main); border-radius: var(--radius-lg); overflow: hidden; }
.download-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 32px; padding: 32px 36px; }
.download-head h2, .win-title { font-size: 26px; letter-spacing: -0.01em; margin-bottom: 4px; font-weight: 600; }
.win-title { margin-top: 0; }
.win-picks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0 0 8px; }
.win-picks a { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 112px; padding: 16px; border-radius: var(--radius-lg); background: var(--bg-main); color: inherit; }
.win-picks a:hover { text-decoration: none; outline: 1px solid var(--line-strong); }
.win-picks strong { font-size: 18px; letter-spacing: -0.01em; }
.win-picks a > span:last-child { color: var(--text-3); font-size: 13px; line-height: 1.45; }
.win-picks .label { margin: 0; }
.win-group { margin: 36px 0 14px; font-size: 15px; }
.win-grid { display: grid; gap: 16px; }
.card-note { margin: 0; padding: 0 36px 28px; color: var(--text-2); font-size: 15px; }
.card-note p { margin: 0 0 10px; }
.setup-cmd { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 0 36px 8px; }
.cmd-board { position: relative; margin: 0 0 28px; }
.cmd-table { width: 100%; border: 1px solid var(--line); border-radius: 16px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.cmd-table th, .cmd-table td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmd-table th { font-size: 14px; font-weight: 500; }
.cmd-table th:last-child { padding-right: 48px; }
.cmd-table td:first-child { width: 34%; font-weight: 500; }
.cmd-table tr:last-child td { border-bottom: 0; }
.cmd-table code { display: block; font-size: 13px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--bg-sunken); padding: 8px 10px; border-radius: 8px; }
.cmd-board > .ask { position: static; }
.cmd-board > .ask > summary { position: absolute; top: 12px; right: 14px; z-index: 2; }
.cmd-board .ask-body { left: 0; right: 0; top: calc(100% + 10px); width: auto; }
.download-card:has(.ask) { overflow: visible; }
.setup-cmd:has(.ask[open]) { z-index: 3; }
.setup-cmd .cmd { flex: 1 1 280px; margin: 0; }
.download-head p { margin: 0; font-size: 14px; }
.download-head .dl { margin: 0; text-align: right; }
.download-head .dl-actions { justify-content: flex-end; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.facts > div { padding: 18px 36px; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 12.5px; color: var(--text-3); margin-bottom: 4px; }
.facts dd { margin: 0; font-size: 15px; }
.facts .fact-sha { grid-column: 1 / -1; border-bottom: 0; }
.fact-sha dd { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Download page: three platform cards, then one install section per platform */
.section > .wrap.wrap-bare { background: none; padding-top: 0; padding-bottom: 0; }
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.choice {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 30px 30px 26px; border-radius: 28px;
  background: color-mix(in srgb, var(--bg-main) 90%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -44px rgba(24, 20, 36, 0.5);
  transition: transform 320ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .choice:hover { transform: translateY(-3px); }
  .choice:hover .choice-more::after { transform: translateY(2px); }
}
.choice-os { margin: 0; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.choice h2 { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 22px; letter-spacing: -0.02em; }
.choice h2 .badge { margin: 0; padding: 2px 10px; font-size: 12px; font-weight: 500; }
.choice > .muted { margin: 0 0 6px; font-size: 14px; }
.choice .dl { margin: 6px 0 0; }
.choice .dl-meta, .spec .dl-meta { display: none; }
.choice-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.choice-links .btn { height: 40px; padding: 0 18px; font-size: 14px; }
.choice-note { margin: 2px 0 0; font-size: 14px; color: var(--text-2); }
.choice-more { margin-top: auto; padding-top: 16px; font-size: 14px; font-weight: 500; color: var(--text); }
.choice-more::after { content: "↓"; display: inline-block; margin-left: 0.3em; color: var(--text-3); transition: transform 240ms var(--ease-out); }
.choices-absent { max-width: 640px; margin: 26px auto 0; text-align: center; font-size: 14px; color: var(--text-3); }
.badge-wait { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
.section-head .pause-note { margin-top: 18px; }

.install-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 56px; align-items: start; }
.install-grid .qs > li { padding-bottom: 32px; }
.install-grid .qs .points { margin-top: 12px; }
.install-grid .qs .points li { font-size: 14.5px; }
.spec { display: grid; gap: 16px; }
.spec-title { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--text-3); }
.spec > .spec-title { margin: 0 0 -6px 4px; }
.spec-list { margin: 0; padding: 4px 22px; border: 1px solid var(--line); border-radius: 20px; }
.spec-list > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec-list > div:last-child { border-bottom: 0; }
.spec-list dt, .spec .facts dt { margin-bottom: 4px; font-size: 12.5px; color: var(--text-3); }
.spec-list dd { margin: 0; font-size: 14.5px; overflow-wrap: anywhere; }
.spec .fact-sha dd { flex-direction: column; align-items: flex-start; gap: 10px; }
.spec .sha { font-size: 12.5px; line-height: 1.6; }
.spec .download-card { border: 1px solid var(--line); border-radius: 20px; background: none; }
.spec .download-head { flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px 22px 8px; }
.spec .download-head .dl { text-align: left; }
.spec .download-head .dl-actions { justify-content: flex-start; }
.spec .download-head .label { margin-bottom: 10px; }
.spec .win-title { font-size: 18px; }
.spec .card-note { padding: 0 22px 16px; font-size: 14px; }
.spec .facts { grid-template-columns: 1fr; }
.spec .facts > div { padding: 12px 22px; }
.spec .facts dd { font-size: 14.5px; overflow-wrap: anywhere; }
.spec-note { padding: 18px 22px 8px; border-radius: 20px; background: var(--bg-sunken); }
.spec-note .points li { font-size: 14px; }
#versions .section-head { margin-bottom: 32px; }
.version-list { border-top: 1px solid var(--line); }
.version-family .unavailable { margin: 0 0 6px; }
.version-family .unavailable li, .version-family .unavailable li:first-child { padding: 10px 0; border: 0; }
.version-family > .muted { margin: 0 0 8px; font-size: 14px; }
.version-family[open] { padding-bottom: 6px; }
.sha { word-break: break-all; font-size: 13.5px; background: none; padding: 0; }
.copy { font: 12.5px/1 var(--font); color: var(--text-2); background: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 12px; cursor: pointer; transition: color 200ms, border-color 200ms, background-color 200ms, transform 160ms var(--ease-out); }
.copy:hover { color: var(--text); border-color: var(--text-3); }
.copy.is-done { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 60%, transparent); background: color-mix(in srgb, var(--ok) 10%, transparent); animation: copied 360ms var(--ease-out); }
@keyframes copied { 0% { transform: scale(0.9); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
.ask { position: static; flex: 0 0 auto; }
.ask > summary { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--text-3); font-size: 12px; line-height: 1; cursor: pointer; list-style: none; }
.ask > summary::-webkit-details-marker { display: none; }
.ask > summary:hover, .ask[open] > summary { color: var(--text); border-color: var(--text); }
.ask-body { position: absolute; z-index: 6; left: 0; right: 0; top: calc(100% + 8px); width: auto; max-height: min(70vh, 640px); overflow: auto; padding: 16px 18px 8px; background: var(--bg-main); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18); }
.ask-body p { margin: 14px 0 6px; font-size: 13px; color: var(--text); font-weight: 600; }
.ask-body .steps { margin: 0 0 8px; }
.ask-body .steps li { font-size: 13px; color: var(--text-2); font-weight: 400; }
.ask-body .cmd { margin: 0 0 12px; }
.download-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin-top: 64px; }
.download-body h3 { font-size: 18px; margin-bottom: 12px; }
.download-body p, .download-body li { font-size: 15px; color: var(--text-2); }
.cmd { margin: 0; padding: 12px 14px; background: var(--bg-main); border-radius: var(--radius); }
.cmd code { background: none; padding: 0; font-size: 12.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.steps { padding-left: 20px; margin: 0 0 12px; }
.steps li { margin-bottom: 6px; }
.note-line { margin: 20px 4px 0; font-size: 14px; color: var(--text-3); }
.small-print { margin-top: 18px; font-size: 14px; }
.steps-lg { margin: 0; padding-left: 22px; }
.steps-lg li { color: var(--text-2); margin-bottom: 14px; padding-left: 4px; }
.version-family { border-bottom: 1px solid var(--line); }
.version-family > summary, .version-fold > summary { cursor: pointer; list-style: none; }
.version-family > summary::-webkit-details-marker, .version-fold > summary::-webkit-details-marker { display: none; }
.version-family > summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; font-weight: 600; }
.version-family > summary::after { content: "展开"; font-size: 12px; font-weight: 500; color: var(--text-3); }
.version-family[open] > summary::after { content: "收起"; }
:lang(en) .feature-card summary h3::after, :lang(en) .fold summary h3::after, :lang(en) .version-family > summary::after { content: "Show"; }
:lang(en) .feature-card[open] summary h3::after, :lang(en) .fold[open] summary h3::after, :lang(en) .version-family[open] > summary::after { content: "Hide"; }
.version-fold > summary { padding: 4px 0 16px; color: var(--text-2); }
.version-series { margin: 0 0 12px; border: 1px solid var(--line); border-radius: 16px; padding: 0 16px; background: color-mix(in srgb, var(--bg-main) 70%, transparent); }
.version-series > summary { cursor: pointer; padding: 12px 0; font-size: 14px; color: var(--text-2); }
.version-series[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.version-grid { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.version-grid .u-build { overflow-wrap: anywhere; }
.version-grid li { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 12px; border: 1px dashed var(--line-strong); font-size: 14px; font-variant-numeric: tabular-nums; }
.u-build { display: block; font-size: 11px; color: var(--text-3); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -0.01em; }
.unavailable .u-name .u-build { display: inline; margin-left: 10px; }
.unavailable { list-style: none; margin: 0 0 14px; padding: 0; }
.unavailable li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.unavailable li:first-child { border-top: 1px solid var(--line); }
.u-state { font-size: 13px; color: var(--text-3); border: 1px dashed var(--line-strong); border-radius: 999px; padding: 4px 12px; cursor: not-allowed; }

/* Legal */
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list li { display: grid; grid-template-columns: 240px minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.doc-list li:first-child { border-top: 1px solid var(--line); }
.doc-list li > a:first-child { font-weight: 600; color: var(--text); font-size: 17px; }
.doc-list .muted { font-size: 14px; }
.doc-raw { font-size: 14px; }
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding-top: 48px; padding-bottom: 96px; }
.legal-side { position: sticky; top: calc(var(--header) + 32px); align-self: start; font-size: 14px; }
.crumb { font-size: 13px; margin-bottom: 14px; }
.crumb a::before { content: "← "; }
.legal-nav { display: grid; gap: 2px; margin-bottom: 16px; }
.legal-nav a { color: var(--text-2); padding: 7px 12px; border-radius: 999px; transition: background-color 200ms, color 200ms; }
.legal-nav a:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.legal-nav a[aria-current="page"] { background: var(--hover); color: var(--text); font-weight: 500; }
.legal-source { font-size: 13px; padding-left: 12px; }
.legal-main { min-width: 0; max-width: 780px; }
.legal-banner { font-size: 13px; color: var(--text-3); margin-bottom: 20px; }
.legal-doc { background: var(--bg-main); border-radius: var(--radius-lg); padding: 44px 48px 32px; font-size: 15.5px; line-height: 1.85; }
.legal-doc h1 { font-size: 30px; letter-spacing: -0.02em; margin-bottom: 20px; }
.legal-doc h2 { font-size: 19px; margin: 36px 0 12px; }
.legal-doc p { color: var(--text-2); margin-bottom: 1em; overflow-wrap: anywhere; }
.legal-doc strong { color: var(--text); }
.legal-doc .numbered { padding-left: 1.2em; }
.legal-extra { margin-top: 40px; }
.legal-extra h2 { font-size: 19px; margin-bottom: 10px; }
.legal-extra > p { font-size: 14px; }
.inventory-group { border-radius: var(--radius); background: var(--bg-main); margin-bottom: 8px; }
.inventory-group summary { cursor: pointer; padding: 14px 18px; font-size: 14.5px; font-weight: 500; }
.inventory-list { list-style: none; margin: 0; padding: 0 18px 12px; max-height: 440px; overflow: auto; }
.inventory-list li { display: grid; grid-template-columns: minmax(0, 1fr) 180px 60px; gap: 10px; padding: 5px 0; border-top: 1px solid var(--line); font-size: 12.5px; }
.inv-name { font-family: var(--mono); overflow-wrap: anywhere; }
.inv-license { color: var(--text-3); overflow-wrap: anywhere; }

/* Footer */
.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 64px 0 48px; font-size: 13.5px; color: var(--text-3); background: color-mix(in srgb, var(--stage) 94%, transparent); }
.footer-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 32px 28px; margin-bottom: 0; }
.footer-brand { grid-column: 1 / -1; display: grid; gap: 6px; margin: 0; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.footer-brand strong { color: var(--text); font-weight: 600; font-size: 15px; }
.footer-nav { display: grid; gap: 10px; align-content: start; min-width: 0; }
.footer-label { margin: 0 0 4px; color: var(--text); font-size: 13px; font-weight: 600; }
.footer-nav a { color: var(--text-2); line-height: 1.45; }
.footer-nav a:hover { color: var(--text); }
.fine { max-width: none; margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.75; }
.fine a { color: var(--text-2); }

@media (max-width: 900px) {
  .products, .plans, .feature, .two-col, .facets, .facets.cols-3, .download-body, .feature-grid, .install-grid { grid-template-columns: 1fr; }
  .choices { grid-template-columns: 1fr 1fr; }
  .choices .choice:last-child { grid-column: 1 / -1; }
  .install-grid { gap: 32px; }
  .flow, .flow.cols-3, .flow.cols-2 { grid-template-columns: 1fr; }
  .feature { gap: 40px; }
  .principles, .grid-3 { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .win-picks { grid-template-columns: 1fr 1fr; }
  .legal-layout { grid-template-columns: 1fr; gap: 24px; }
  .legal-side { position: static; }
  .legal-nav { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .doc-list li { grid-template-columns: 1fr; gap: 4px; }
  .inventory-list li { grid-template-columns: minmax(0, 1fr) 110px; }
  .inventory-list li > :last-child { display: none; }
  .download-head .dl { text-align: left; }
  .download-head .dl-actions { justify-content: flex-start; }
  .footer-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 128px; }
  .wrap { padding: 0 20px; }
  .header-row { gap: 12px; height: auto; min-height: var(--header); flex-wrap: wrap; padding-top: 10px; padding-bottom: 6px; }
  .site-nav { order: 3; flex-basis: 100%; overflow-x: auto; margin: 0 -12px; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .brand-sep, .brand-sub { display: none; }
  .header-tools { margin-left: auto; }
  .hero { margin-top: -96px; }
  .hero-copy { padding-top: 132px; padding-bottom: 300px; }
  .hero-copy h1 { font-size: clamp(26px, 7vw, 34px); }
  .js .os-tablist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; border-radius: 18px; }
  .os-tablist button { border-radius: 14px; padding: 10px 8px; text-align: center; }
  .download-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 14px 12px; }
  .download-stats .stat-item { min-width: 0; }
  .js .site-header:not(.is-folded) .site-nav { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); padding-right: 28px; }
  .section { padding: 36px 0; }
  .section > .wrap { padding: 28px 22px 32px; }
  .page-hero { padding-top: 56px; }
  .principles, .grid-3, .grid-3.grid-pair { grid-template-columns: 1fr; gap: 28px; }
  .product-visual { height: 220px; }
  .facts { grid-template-columns: 1fr; }
  .exhibit-lead, .flow, .flow.cols-3, .flow.cols-2 { grid-template-columns: 1fr; }
  .shot-stack .shot-frame { flex-basis: 92vw; width: 92vw; }
  .plate-stage { padding: 28px 12px 20px; }
  .facts > div, .download-head, .card-note { padding-left: 22px; padding-right: 22px; }
  .win-picks { grid-template-columns: 1fr; }
  .legal-doc { padding: 26px 20px 16px; }
  .status-table th:nth-child(2), .status-table td:nth-child(2) { display: none; }
  .cmd-table td:first-child { width: auto; }
  .choices { grid-template-columns: 1fr; gap: 14px; }
  .choices .choice:last-child { grid-column: auto; }
  .choice { padding: 24px 22px 22px; border-radius: 22px; }
  .section > .wrap.wrap-bare { padding-left: 20px; padding-right: 20px; }
  .cmd-table thead { display: none; }
  .cmd-table tr, .cmd-table td { display: block; }
  .cmd-table td { padding: 12px 14px; }
  .cmd-table td:first-child { padding-bottom: 0; border-bottom: 0; }
  .cmd-cell { flex-direction: column; align-items: stretch; }
  .cmd-cell .copy { align-self: flex-start; }
  .page-jump { position: static; height: auto; margin: 16px 20px 0; }
  .page-jump .jump { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .page-jump + * { margin-top: 8px; }
  .cmd-grid { grid-template-columns: 1fr; }
  .keys th { width: auto; white-space: normal; }
  .qs > li { grid-template-columns: 28px minmax(0, 1fr); column-gap: 14px; }
  .qs > li::before { width: 28px; height: 28px; font-size: 13px; }
  .qs > li::after { left: 13.5px; top: 36px; }
  .footer-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  /* Screenshot tilt reads layout on every scroll frame; phones keep the shots flat. */
  .js .plate .shot-frame, .js .exhibit-stage .shot-frame { transform: none; }
  /* Phones re-blur every panel each time the animated stage behind it repaints. */
  .page-hero .wrap, .glass, .fold-body, .feature-card, .choice, .jump {
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: color-mix(in srgb, var(--bg-main) 94%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-canvas, .btn, .site-header { transition: none; }
  .btn-glow::before, .about-us .wrap::before { animation: none; opacity: 0.6; }
  .dot::after { animation: none; opacity: 0; }
  .copy.is-done { animation: none; }
  .nav-sub, .icon-btn svg { transition-property: opacity, overlay, display; }
  .choice, .choice-more::after { transition: none; }
  .choice:hover, .choice:hover .choice-more::after { transform: none; }
  .js .shot-frame, .shot-frame .shot-img { transform: none; transition: none; }
  .scrub-char { transform: none; opacity: 1; }
  .shot-stack { scroll-behavior: auto; }
  .shot-view[open] img { animation: none; }
}
