/* A lighter serif for editorial text, paired with a clear sans serif for controls. */
@font-face {
  font-family: "Source Serif 4 Variable";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/source-serif-4-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Source Serif 4 Variable";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/source-serif-4-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4 Variable";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/source-serif-4-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Source Serif 4 Variable";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/source-serif-4-latin-ext-wght-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Manrope Variable";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Manrope Variable";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* Shared product colors with a calmer editorial rhythm for the public site. */
:root {
  --accent: #2563eb; --accent-strong: #1d4ed8; --accent-deep: #1746a2; --accent-ink: #2457ad;
  --accent-soft: #eff6ff; --accent-softer: #eaf2ff; --accent-tint: #dbeafe;
  --accent-border: #9ab8ec; --accent-border-soft: #c8d8f2;
  --app-bg: #f6f8fb; --surface: #fff; --surface-subtle: #f9fbfd; --surface-soft: #f2f6fb;
  --surface-hover: #f0f2f5; --surface-sunk: #f7f8fa; --surface-track: #e9edf2;
  --border: #dfe6ef; --border-strong: #cad5e3;
  --text: #263448; --text-strong: #101b2d; --text-heading: #30415a; --text-secondary: #4e6078;
  --muted: #64738a; --text-faint: #7b8aa0;
  --success: #14734f; --success-soft: #e8f7ef; --success-bright: #22a06b;
  --warning: #745612; --warning-soft: #fff8e7; --warning-border: #e0b45b;
  --danger: #a4262c; --danger-soft: #fff1f2;
  --violet: #7c3aed; --teal: #0f8aa6;
  --radius-xs: 6px; --radius-s: 8px; --radius-m: 11px; --radius-l: 16px; --radius-xl: 22px; --radius-pill: 999px;
  --shadow-1: 0 2px 8px rgba(28, 47, 84, .055);
  --shadow-2: 0 12px 32px rgba(28, 47, 84, .12);
  --shadow-card: 0 18px 45px rgba(28, 47, 84, .09);
  --shadow-4: 0 28px 80px rgba(31, 41, 55, .24);
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "微软雅黑", "Manrope Variable", "Hiragino Sans GB", ui-sans-serif, sans-serif;
  --serif: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "微软雅黑", "Source Serif 4 Variable", "Hiragino Sans GB", ui-sans-serif, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --nav-h: 60px;
  --topbar-bg: rgba(248, 250, 252, .88);
  --code-bg: #0f172a; --code-border: var(--border);
  --edge: #b6bfcb; --node-halo: #f8fafc;
  --bg-home: #f7f9fc; --bg-top: #edf3ff;
  --glow-1: rgba(37, 99, 235, .17); --glow-2: rgba(124, 58, 237, .12); --glow-3: rgba(13, 148, 136, .10);
  --grid: rgba(16, 27, 45, .055);
  color-scheme: light;
}

/* Dark palette: same hues, lowered luminance. Applied by data-theme (set before first paint by an inline script). */
:root[data-theme="dark"] {
  color-scheme: dark;
  --accent: #4f83f1; --accent-strong: #79a3ff; --accent-deep: #a9c4ff; --accent-ink: #8fb2ff;
  --accent-soft: #14213b; --accent-softer: #182a4d; --accent-tint: #1d3564;
  --accent-border: #3a5fae; --accent-border-soft: #2b4680;
  --app-bg: #0d1117; --surface: #151b24; --surface-subtle: #111720; --surface-soft: #1a212c;
  --surface-hover: #1d2531; --surface-sunk: #0f141c; --surface-track: #262f3d;
  --border: #253041; --border-strong: #34415a;
  --text: #dbe1ea; --text-strong: #f3f6fa; --text-heading: #c3ccd9; --text-secondary: #a5b0c0;
  --muted: #8a96a8; --text-faint: #6f7b8e;
  --success: #4cc38a; --success-soft: #11291f; --success-bright: #34b47c;
  --warning: #e6b95a; --warning-soft: #2a2110; --warning-border: #6b5220;
  --danger: #f08a8f; --danger-soft: #2f1517;
  --shadow-1: 0 1px 3px rgba(0, 0, 0, .5);
  --shadow-2: 0 8px 24px rgba(0, 0, 0, .5);
  --shadow-card: 0 12px 30px rgba(0, 0, 0, .4);
  --shadow-4: 0 28px 80px rgba(0, 0, 0, .6);
  --topbar-bg: rgba(13, 17, 23, .85);
  --code-bg: #0a0e14; --code-border: #253041;
  --edge: #3a4658; --node-halo: #111720;
  --bg-home: #090d14; --bg-top: #121d36;
  --glow-1: rgba(79, 131, 241, .28); --glow-2: rgba(124, 58, 237, .22); --glow-3: rgba(15, 138, 166, .17);
  --grid: rgba(255, 255, 255, .05);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); }
body { margin: 0; background: var(--app-bg); color: var(--text); font: 450 15px/1.7 var(--font); letter-spacing: -.006em; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
/* One family everywhere (Microsoft YaHei first, webfonts only as fallback): YaHei ships two
   weights, so headings lean on 600 instead of the 500 that a variable serif would have used. */
:where(h1, h2, h3) { font-family: var(--serif); font-weight: 600; text-wrap: balance; }
a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
button { font: inherit; }
code, pre, kbd { font-family: var(--mono); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 21px; border: 1px solid var(--border-strong); border-radius: var(--radius-m); background: var(--surface); color: var(--text-heading); font-weight: 700; font-size: 13.5px; cursor: pointer; transition: background .18s, box-shadow .18s, transform .18s; }
.btn:hover { background: var(--surface-hover); box-shadow: var(--shadow-1); text-decoration: none; transform: translateY(-1px); }
.btn.primary { border-color: var(--accent); background: var(--accent); color: #fff; box-shadow: 0 6px 15px rgba(37, 99, 235, .16); }
.btn.primary:hover { background: var(--accent-strong); box-shadow: 0 9px 22px rgba(37, 99, 235, .23); }
.btn.small { min-height: 34px; padding: 0 14px; font-size: 13px; }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; pointer-events: none; }

/* ================= landing (2026 redesign) ================= */
/* The public site follows the new design: a floating pill navigation bar, a gradient hero with the
   product shot, alternating feature rows and a closing call to action. The palette is rebuilt around
   the design's near-black ink (#191919) and neutral greys, while the brand gradient is reserved for
   the wordmark in the hero. */
:root {
  --ink-1: #191919; --ink-2: #4d4d4d; --ink-3: #777777; --ink-4: #808080;
  --page: #ffffff; --soft: #f4f6fa;
  --hairline: rgba(16, 24, 40, .08); --hairline-strong: rgba(16, 24, 40, .16);
  --brand-grad: linear-gradient(96deg, #00d8ff 0%, #0089ff 24%, #0013ff 52%, #b36bff 78%, #ff6fff 100%);
  --landing-container: min(1600px, calc(100% - clamp(40px, 16.6vw, 320px)));
  --shot-shadow: 0 40px 90px rgba(21, 45, 96, .20);
}
:root[data-theme="dark"] {
  --ink-1: #ffffff; --ink-2: rgba(255, 255, 255, .72); --ink-3: rgba(255, 255, 255, .62); --ink-4: rgba(255, 255, 255, .46);
  --page: #000000; --soft: #0b0b0c;
  --hairline: rgba(255, 255, 255, .12); --hairline-strong: rgba(255, 255, 255, .24);
  --shot-shadow: 0 40px 100px rgba(0, 0, 0, .65);
}

/* ---------- top bar ---------- */
/* The bar floats over the page instead of sitting flush against it: a rounded, translucent strip
   with a soft shadow, so the hero gradient keeps running behind it. */
.topbar {
  position: sticky; top: 14px; z-index: 40;
  width: min(1600px, calc(100% - clamp(16px, 16.6vw, 320px))); height: 52px; margin: clamp(10px, 1.25vw, 24px) auto 0;
  border: 1px solid rgba(255, 255, 255, .8); border-radius: 16px;
  background: rgba(255, 255, 255, .5);
  box-shadow: 0 12px 34px rgba(18, 38, 84, .10);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
}
:root[data-theme="dark"] .topbar {
  border-color: rgba(255, 255, 255, .10); background: rgba(10, 13, 20, .45);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .55);
}
.topbar-inner { max-width: none; height: 100%; margin: 0; padding: 0 14px 0 16px; display: flex; align-items: center; gap: 22px; }
/* The bar carries the same colour story as the hero: the gradient mark beside the wordmark
   painted with the brand gradient. Both are bright enough on the light and the dark strip, so
   one treatment serves both themes and no monochrome lockup is needed. */
.brand { display: flex; align-items: center; gap: 9px; }
.brand:hover { text-decoration: none; }
.brand-mark { display: block; width: auto; height: 27px; }
.brand-word {
  font-size: 17px; font-weight: 700; letter-spacing: .012em; line-height: 1.2;
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.topnav { display: flex; gap: 4px; margin-right: auto; }
.topnav a { padding: 7px 12px; border-radius: 10px; color: var(--ink-3); font-size: 14px; font-weight: 500; }
.topnav a:hover { background: rgba(16, 24, 40, .05); color: var(--ink-1); text-decoration: none; }
.topnav a.active { background: rgba(16, 24, 40, .06); color: var(--ink-1); font-weight: 600; }
:root[data-theme="dark"] .topnav a:hover { background: rgba(255, 255, 255, .07); }
:root[data-theme="dark"] .topnav a.active { background: rgba(255, 255, 255, .10); }
.topbar-actions { display: flex; align-items: center; gap: 2px; }
.icon-link, .lang-switch {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px;
  border: 0; border-radius: 9px; background: transparent; color: var(--ink-1); font-size: 14px;
}
.icon-link:hover, .lang-switch:hover { background: rgba(16, 24, 40, .05); color: var(--ink-1); text-decoration: none; }
:root[data-theme="dark"] .icon-link, :root[data-theme="dark"] .lang-switch { color: rgba(255, 255, 255, .82); }
:root[data-theme="dark"] .icon-link:hover, :root[data-theme="dark"] .lang-switch:hover { background: rgba(255, 255, 255, .08); }
.btn.menu-toggle { display: none; }

/* ---------- hero ---------- */
body.home { background: var(--page); }
.home-hero {
  position: relative; overflow: hidden; text-align: center;
  /* Pull the hero up behind the floating topbar so the gradient fills the bar's background,
     instead of leaving a white/black strip between the bar and the hero. */
  margin-top: calc(-52px - clamp(10px, 1.25vw, 24px));
  padding: calc(52px + clamp(10px, 1.25vw, 24px) + clamp(36px, 3vw, 58px)) 0 clamp(40px, 2.9vw, 56px);
  /* Rebuilt in CSS instead of the handoff still: the export carried the tool's layout grid, so a
     clean gradient keeps every arc without the gridlines. A blue wash across the top, the large
     blue shape on the left, a violet breath on the right, fading to white. */
  background:
    radial-gradient(circle 360px at 7% 40%, rgba(41, 134, 255, .32), rgba(41, 134, 255, .10) 52%, transparent 70%),
    radial-gradient(58% 42% at 50% -6%, rgba(41, 134, 255, .13), transparent 70%),
    radial-gradient(34% 26% at 94% 4%, rgba(150, 120, 255, .10), transparent 72%),
    linear-gradient(180deg, #eaf1ff 0%, #f3f7ff 44%, #ffffff 74%);
}
:root[data-theme="dark"] .home-hero {
  background:
    radial-gradient(66% 52% at 50% 112%, rgba(122, 180, 255, .48), transparent 60%),
    linear-gradient(180deg, #02040a 0%, #040c1e 30%, #071f52 58%, #123f9b 82%, #1556c8 100%);
}
.hero-inner { position: relative; z-index: 1; width: var(--landing-container); margin: 0 auto; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--ink-4); font-size: clamp(14px, .84vw, 16px); }
.hero-eyebrow svg { flex: none; }
/* The brand line pairs the mark with the gradient wordmark. The row owns the type size, so the
   icon can be sized in em and the two always scale together; the mark runs a touch larger than
   the cap height so it reads as the logo leading the name. */
.hero-brandline {
  display: flex; align-items: center; justify-content: center; gap: .2em;
  margin: 14px 0 0; font-size: clamp(28px, 2.8vw, 54px);
}
.hero-mark { flex: none; height: 1.18em; width: auto; }
/* The gradient is painted through the glyphs, so it only fills the element's own box: a tight
   line-height left the descender of the final "y" outside that box and it vanished. The bottom
   padding widens the painted area to include the descender, and the title's margin adds the air
   the two lines need. */
.hero-wordmark {
  padding-bottom: .14em; font-size: inherit; font-weight: 700; line-height: 1.1; letter-spacing: .012em;
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-title { margin: clamp(12px, 1.5vw, 28px) 0 0; color: var(--ink-1); font-size: clamp(30px, 2.92vw, 56px); font-weight: 700; line-height: 1.16; letter-spacing: .012em; }
.hero-lead { max-width: min(800px, max(360px, 41.6vw)); margin: clamp(18px, 1.5vw, 28px) auto 0; color: var(--ink-2); font-size: clamp(15px, .94vw, 18px); line-height: 1.62; }
.hero-actions { display: flex; justify-content: center; margin-top: clamp(26px, 3vw, 58px); }
.home-download {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 26px;
  border: 0; border-radius: 999px; background: #101318; color: #fff;
  font-size: clamp(14px, .84vw, 16px); font-weight: 500; cursor: pointer;
  box-shadow: 0 16px 34px rgba(10, 18, 40, .24);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.home-download:hover { transform: translateY(-2px); box-shadow: 0 22px 44px rgba(10, 18, 40, .3); background: #1b1f26; }
.home-download:focus-visible { outline: 2px solid #4f8cff; outline-offset: 3px; }
:root[data-theme="dark"] .home-download {
  background: linear-gradient(180deg, #3f92ff 0%, #1668ff 100%);
  box-shadow: 0 0 44px rgba(59, 141, 255, .55), 0 10px 24px rgba(0, 0, 0, .4);
}
:root[data-theme="dark"] .home-download:hover { background: linear-gradient(180deg, #5aa2ff 0%, #2a78ff 100%); }

/* The recording is the hero's second half and plays muted on load so the browser's autoplay policy
   lets it start without a gesture. Clicking it opens a dialog with the same video, native controls
   and sound. */
.hero-shot {
  display: block; width: min(1200px, 62.5vw); margin: clamp(26px, 2.6vw, 50px) auto 0;
  border-radius: 14px; background: #0b0b0c; overflow: hidden; box-shadow: var(--shot-shadow); cursor: pointer;
}
.hero-shot video { display: block; width: 100%; height: auto; background: #0b0b0c; }

/* ---- video dialog ---- */
.video-dialog { border: 0; padding: 0; background: transparent; width: min(1200px, 92vw); max-width: none; }
.video-dialog::backdrop { background: rgba(4, 6, 12, .72); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.video-dialog-inner { position: relative; }
.video-close {
  position: absolute; top: -16px; right: -16px; z-index: 2;
  width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: #fff; color: #111; font-size: 15px; line-height: 1; cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,.45);
}
.video-close:hover { background: #f1f5f9; }
.video-dialog-video { display: block; width: 100%; height: auto; border-radius: 12px; background: #000; }

/* ---------- feature rows ---------- */
.home-feature {
  display: grid; grid-template-columns: 560fr 890fr; column-gap: clamp(40px, 7.8vw, 150px);
  align-items: center; width: var(--landing-container); margin: 0 auto;
  padding: clamp(44px, 4.6vw, 80px) 0;
}
.home-feature.flip { grid-template-columns: 890fr 560fr; }
.home-feature.flip .feature-copy { order: 2; }
.home-feature.flip .feature-figure { order: 1; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px;
  border: 1px solid var(--hairline); border-radius: 8px; background: var(--soft); color: var(--ink-1);
  font-size: 14px; line-height: 1.5;
}
.chip svg { flex: none; color: var(--ink-1); }
.feature-copy h2 { margin: 18px 0 0; color: var(--ink-1); font-size: clamp(26px, 2.08vw, 40px); font-weight: 700; line-height: 1.22; letter-spacing: .005em; }
.feature-copy p { margin: 20px 0 0; max-width: 560px; color: var(--ink-3); font-size: clamp(15px, 1.04vw, 20px); line-height: 1.62; }
.feature-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 24px; color: var(--ink-1); font-size: 14px; }
.feature-link svg { flex: none; }
.feature-figure { margin: 0; }
.feature-figure img { display: block; width: 100%; height: auto; border-radius: 14px; }
.feature-figure .visual-dark { display: none; }
:root[data-theme="dark"] .feature-figure .visual-light { display: none; }
:root[data-theme="dark"] .feature-figure .visual-dark { display: block; }

/* ---------- closing call to action ---------- */
.home-cta {
  position: relative; overflow: hidden; margin-top: clamp(30px, 3vw, 56px);
  padding: clamp(64px, 7.3vw, 130px) 24px clamp(72px, 8vw, 150px);
  text-align: center;
  /* Same treatment as the hero: the closing band keeps the design's prism glow. */
  background: #ffffff url("media/landing/cta-bg-light.webp") bottom center / cover no-repeat;
}
 :root[data-theme="dark"] .home-cta {
  /* The design's dark prism glow, rebuilt in CSS so it stays resolution-independent and has no
     baked-in copy; the light band keeps the exported artwork because that file is copy-free. */
  background:
    radial-gradient(42% 68% at 16% 122%, rgba(96, 78, 220, .45), transparent 70%),
    radial-gradient(50% 72% at 84% 124%, rgba(0, 122, 255, .36), transparent 72%),
    radial-gradient(30% 40% at 60% 132%, rgba(0, 200, 220, .26), transparent 70%),
    linear-gradient(180deg, #000000 0%, #03050a 100%);
}
.home-cta h2 { margin: 0; color: var(--ink-1); font-size: clamp(28px, 2.08vw, 40px); font-weight: 700; letter-spacing: .01em; }
.home-cta p { max-width: 660px; margin: 16px auto 0; color: var(--ink-3); font-size: clamp(15px, 1.04vw, 20px); line-height: 1.55; }
.cta-actions { display: flex; justify-content: center; gap: 16px; margin-top: clamp(28px, 2.6vw, 44px); }
.cta-ghost, .cta-solid {
  display: inline-flex; align-items: center; justify-content: center; min-width: 128px; min-height: 48px; padding: 0 28px;
  border-radius: 999px; font-size: clamp(14px, .84vw, 16px); font-weight: 500; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.cta-ghost { border: 1px solid var(--hairline-strong); background: transparent; color: var(--ink-1); }
.cta-ghost:hover { background: rgba(16, 24, 40, .04); text-decoration: none; transform: translateY(-2px); }
.cta-solid { border: 1px solid #101318; background: #101318; color: #fff; box-shadow: 0 14px 30px rgba(10, 18, 40, .22); }
.cta-solid:hover { background: #1b1f26; text-decoration: none; transform: translateY(-2px); }
:root[data-theme="dark"] .cta-ghost { border-color: rgba(255, 255, 255, .38); background: transparent; color: #fff; }
:root[data-theme="dark"] .cta-ghost:hover { background: rgba(255, 255, 255, .08); }
:root[data-theme="dark"] .cta-solid { border-color: #fff; background: #fff; color: #000; }

/* ---------- footer ---------- */
.footer { margin-top: 0; padding: 0; border-top: 0; background: #f3f3f3; color: var(--ink-4); font-size: 12px; }
:root[data-theme="dark"] .footer { background: #0a0a0a; }
.footer .wrap { width: 100%; max-width: none; min-height: 60px; margin: 0 auto; padding: 0 clamp(16px, 2vw, 32px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; }
.footer a { color: var(--ink-4); }
.footer a:hover { color: var(--ink-1); }
.foot-links { display: inline-flex; align-items: center; gap: 6px; }
.foot-dot { opacity: .6; }

/* ---------- download panel ---------- */
.quick-install .hero-cta .btn.download,
.hero-actions .btn.download { min-width: 268px; min-height: 54px; padding: 0 30px; border-color: var(--accent); background: var(--accent); color: #fff; font-size: 15.5px; box-shadow: 0 8px 20px rgba(37, 99, 235, .22); }
.dl-reveal { display: grid; grid-template-rows: 0fr; margin-top: 0; opacity: 0; visibility: hidden; transition: grid-template-rows .3s ease, margin-top .3s ease, opacity .24s ease, visibility .3s; }
.dl-reveal.open { grid-template-rows: 1fr; margin-top: 22px; opacity: 1; visibility: visible; }
.dl-clip { min-height: 0; overflow: hidden; }
.dl-panel {
  width: min(750px, 100%); margin: 0 auto; padding: 12px 14px;
  border: 1px solid var(--hairline); border-radius: 20px; background: var(--page); text-align: left;
  box-shadow: 0 24px 60px rgba(18, 38, 84, .10);
}
:root[data-theme="dark"] .dl-panel { background: #0d0f13; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
.dl-panel .os-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: none; margin: 0; }
.dl-panel .os { position: relative; flex-direction: row; align-items: center; justify-content: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--hairline); border-radius: 12px; background: var(--page); box-shadow: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.dl-panel .os:hover { transform: translateY(-2px); border-color: var(--hairline-strong); box-shadow: 0 10px 26px rgba(18, 38, 84, .12); }
.dl-panel .os .ico { flex: none; width: 28px; height: 28px; margin-bottom: 0; border-radius: 8px; }
.dl-panel .os h3 { flex: none; font-size: 15px; color: var(--ink-1); }
.dl-panel .os .files { grid-template-columns: none; grid-auto-flow: column; gap: 4px; margin-top: 0; }
.dl-panel .os .file { justify-content: flex-start; padding: 2px 10px; border-radius: 5px; font-size: 13px; line-height: 1.2; }
.dl-meta { width: min(750px, 100%); margin: 9px auto 0; justify-content: flex-end; flex-wrap: wrap; font-size: 12px; color: var(--ink-4); }
.dl-panel .os > #recommend-tag { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); }
#recommend-tag { display: inline-block; padding: 2px 8px; border: 1px solid var(--accent-border); border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent-deep); font-size: 10.5px; font-weight: 700; line-height: 1.3; letter-spacing: 0; vertical-align: middle; white-space: nowrap; }
.hidden { display: none !important; }

/* ---------- landing responsive ---------- */
@media (max-width: 1100px) {
  .home-feature { grid-template-columns: minmax(0, 1fr); row-gap: 34px; }
  .home-feature.flip .feature-copy, .home-feature.flip .feature-figure { order: 0; }
  .feature-copy { max-width: 720px; }
}
@media (max-width: 720px) {
  .topbar { top: 8px; width: calc(100% - 20px); height: 48px; margin-top: 8px; border-radius: 14px; }
  .topbar-inner { padding: 0 6px; gap: 4px; }
  .brand-mark { height: 22px; }
  .brand-word { font-size: 15px; }
  .topnav { gap: 0; }
  .topnav a { padding: 6px 8px; font-size: 12.5px; white-space: nowrap; }
  .topbar .search-btn { display: none; }
  .lang-switch { padding: 0 6px; font-size: 12px; }
  .topbar .theme-toggle { width: 30px; height: 30px; }
  .hero-lead { max-width: 100%; font-size: 14px; }
  .hero-shot { width: 100%; }
  .home-feature.flip { grid-template-columns: minmax(0, 1fr); }
  .home-feature.flip .feature-copy, .home-feature.flip .feature-figure { order: 0; }
  .home-hero { margin-top: -56px; padding-top: calc(56px + 28px); }
  .hero-wordmark { letter-spacing: 0; }
  .hero-shot { border-radius: 10px; }
  .video-close { top: -12px; right: -12px; width: 30px; height: 30px; }
  .home-feature { padding: 40px 0; }
  .feature-figure img { border-radius: 14px; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-ghost, .cta-solid { width: min(280px, 100%); }
  .footer .wrap { flex-direction: column; align-items: flex-start; justify-content: center; padding: 14px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-download, .cta-ghost, .cta-solid { transition: none; }
}

/* ---------- nav controls (icon-only search, flat theme toggle) ---------- */
.topbar .search-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 0; height: 32px; padding: 0 9px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-1); font-size: 14px; cursor: pointer; }
.topbar .search-btn span, .topbar .search-btn kbd { display: none; }
.topbar .search-btn:hover { background: rgba(16, 24, 40, .05); color: var(--ink-1); }
.topbar .theme-toggle { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-1); cursor: pointer; }
.topbar .theme-toggle:hover { background: rgba(16, 24, 40, .05); }
:root[data-theme="dark"] .topbar .search-btn, :root[data-theme="dark"] .topbar .theme-toggle { color: rgba(255, 255, 255, .82); }
:root[data-theme="dark"] .topbar .search-btn:hover, :root[data-theme="dark"] .topbar .theme-toggle:hover { background: rgba(255, 255, 255, .08); }

/* ---------- download panel base ---------- */
.os-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.os { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--hairline); border-radius: var(--radius-l); background: var(--page); }
.os .ico { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 12px; background: var(--soft); color: var(--ink-1); }
.os h3 { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ink-1); font-size: 18px; }
.os .files { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: auto; }
.file { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--hairline); border-radius: 10px; background: var(--soft); color: var(--ink-1); font-size: 13px; }
a.file:hover { border-color: var(--hairline-strong); background: var(--page); color: var(--ink-1); text-decoration: none; }
.file small { color: var(--ink-4); font-size: 12px; }
.ver-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; color: var(--ink-4); font-size: 13px; }

/* ---------- docs ---------- */
/* The reader column is the point of this page, so the shell is wider than the marketing ones and
   the two rails stay fixed: on a 1440px screen the article gets about 950px instead of 800px. */
.docs { display: grid; grid-template-columns: 268px minmax(0, 1fr) 200px; max-width: 1680px; margin: 0 auto; align-items: start; }
.docs-nav { position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); overflow-y: auto; padding: 18px 12px 32px; border-right: 1px solid var(--border); background: var(--surface-subtle); }
.docs-nav-group { margin: 4px 0; border: 1px solid transparent; border-radius: 12px; }
.docs-nav-group[open] { border-color: var(--border); background: var(--surface); box-shadow: var(--shadow-1); }
.docs-nav summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 10px; border-radius: 11px; list-style: none; color: var(--text-heading); font-size: 14px; font-weight: 700; line-height: 1.35; cursor: pointer; }
.docs-nav summary::-webkit-details-marker { display: none; }
.docs-nav summary::marker { content: ''; }
.docs-nav summary:hover { background: var(--surface-hover); color: var(--text-strong); }
.docs-nav summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.docs-nav-group[open] > summary { color: var(--accent-deep); }
.docs-nav-icon { display: grid; flex: none; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--surface-soft); color: var(--text-secondary); }
.docs-nav-group[open] .docs-nav-icon { background: var(--accent-softer); color: var(--accent-deep); }
.docs-nav-title { flex: 1; min-width: 0; }
.docs-nav-chevron { flex: none; width: 7px; height: 7px; margin-right: 3px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(-45deg); transition: transform .16s ease; }
.docs-nav-group[open] .docs-nav-chevron { transform: rotate(45deg); }
.docs-nav-links { margin: 0 11px 12px 25px; padding-left: 13px; border-left: 1px solid var(--border); }
.docs-nav-links a { position: relative; display: block; margin: 2px 0; padding: 7px 10px; border-radius: 8px; color: var(--text-secondary); font-size: 14px; line-height: 1.4; }
.docs-nav-links a:hover { background: var(--surface-hover); color: var(--text-strong); text-decoration: none; }
.docs-nav-links a.active { background: var(--accent-softer); color: var(--accent-deep); font-weight: 650; }
.docs-nav-links a.active::before { position: absolute; top: 6px; bottom: 6px; left: -14px; width: 2px; border-radius: 2px; background: var(--accent); content: ''; }
.article { min-width: 0; padding: 46px 44px 24px; font-family: var(--serif); }
.article > *:first-child { margin-top: 0; }
.article h1 { margin: 0 0 24px; color: var(--text-strong); font-size: clamp(32px, 3.1vw, 40px); line-height: 1.18; letter-spacing: -.045em; }
.article h2 { margin: 48px 0 16px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--text-strong); font-size: 25px; letter-spacing: -.035em; }
.article h3 { margin: 32px 0 10px; color: var(--text-strong); font-size: 19px; letter-spacing: -.02em; }
.article h4 { margin: 22px 0 6px; color: var(--text-heading); font-size: 15px; }
.article p, .article li { color: var(--text); font-size: 16px; line-height: 1.78; }
.article > p, .article > ul, .article > ol, .article > blockquote { max-width: 96ch; }
.article li { margin: 4px 0; }
.article a { text-decoration: underline; text-decoration-color: var(--accent-border-soft); text-underline-offset: 2px; }
.article a:hover { text-decoration-color: var(--accent-strong); }
.article :not(pre) > code { padding: 1px 6px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); color: var(--accent-deep); font-size: .88em; }
.article pre { position: relative; margin: 14px 0; padding: 14px 16px; border: 1px solid var(--code-border); border-radius: var(--radius-m); background: var(--code-bg); color: #e2e8f0; overflow-x: auto; font-size: 13px; line-height: 1.6; }
.article pre code { background: none; border: 0; padding: 0; color: inherit; }
.article img { display: block; margin: 16px 0; border: 1px solid var(--border); border-radius: var(--radius-m); box-shadow: var(--shadow-1); }
/* Installer screenshots are whole windows, so a rounded corner crops the frame they show. */
.article img[src*="images/install/"] { border-radius: 0; }
.table-wrap { margin: 14px 0; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-m); background: var(--surface); }
.article table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.article th, .article td { padding: 9px 13px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.article th { background: var(--surface-subtle); color: var(--text-heading); font-weight: 650; white-space: nowrap; }
.article tr:last-child td { border-bottom: 0; }
.article blockquote { margin: 16px 0; padding: 4px 16px; border-left: 3px solid var(--border-strong); color: var(--text-secondary); }
.callout { margin: 16px 0; padding: 10px 16px; border: 1px solid var(--accent-border-soft); border-left-width: 4px; border-radius: var(--radius-m); background: var(--accent-soft); }
.callout p { margin: 6px 0; }
.callout .t { font-weight: 700; color: var(--accent-deep); font-size: 13px; }
.callout.warning, .callout.caution { border-color: var(--warning-border); background: var(--warning-soft); }
.callout.warning .t, .callout.caution .t { color: var(--warning); }
.callout.tip { border-color: #a8d5ba; background: var(--success-soft); }
.callout.tip .t { color: var(--success); }
.banner { margin: 0 0 20px; padding: 9px 14px; border: 1px solid var(--warning-border); border-radius: var(--radius-m); background: var(--warning-soft); color: var(--warning); font-size: 13px; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin: 48px 0 0; }
.pager a { flex: 1; padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--radius-m); background: var(--surface); color: var(--text-heading); text-decoration: none !important; }
.pager a:hover { border-color: var(--accent-border-soft); background: var(--accent-soft); }
.pager small { display: block; color: var(--muted); font-size: 12px; }
.pager a.next { text-align: right; }
.toc { position: sticky; top: calc(var(--nav-h) + 24px); padding: 26px 16px 20px 0; font-size: 13px; max-height: calc(100vh - var(--nav-h)); overflow-y: auto; }
.toc b { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; letter-spacing: .04em; }
.toc a { display: block; padding: 3px 0 3px 12px; border-left: 2px solid var(--border); color: var(--muted); line-height: 1.4; }
.toc a.l3 { padding-left: 24px; }
.toc a:hover { color: var(--text-strong); text-decoration: none; }
.toc a.active { border-left-color: var(--accent); color: var(--accent-deep); font-weight: 600; }
.docs-home { max-width: 1040px; margin: 0 auto; padding: 64px 24px 0; }
.docs-home .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; }
.docs-home h2 { margin: 52px 0 0; text-align: left; font-size: 22px; letter-spacing: -.03em; }
.docs-home h1 { margin: 0; font-size: clamp(36px, 4vw, 46px); line-height: 1.12; letter-spacing: -.05em; color: var(--text-strong); }
.docs-home .card { position: relative; display: flex; align-items: center; min-height: 88px; padding: 18px 52px 18px 22px; }
.docs-home .card::after { position: absolute; right: 20px; color: var(--text-faint); font-size: 18px; content: '↗'; transition: color .18s, transform .18s; }
.docs-home .card:hover::after { color: var(--accent); transform: translate(2px, -2px); }
.docs-home .card h3 { margin: 0; font-size: 15px; line-height: 1.5; }

/* highlight.js (dark code blocks) */
.hljs-comment, .hljs-quote { color: #94a3b8; font-style: italic; }
.hljs-keyword, .hljs-selector-tag, .hljs-built_in, .hljs-literal { color: #7dd3fc; }
.hljs-string, .hljs-attr, .hljs-symbol { color: #86efac; }
.hljs-number, .hljs-variable, .hljs-template-variable { color: #fdba74; }
.hljs-title, .hljs-section, .hljs-name, .hljs-type { color: #c4b5fd; }
.hljs-meta { color: #f0abfc; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .docs { grid-template-columns: 250px minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 900px) {
  .grid, .os-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .topbar-inner { gap: 6px; padding: 0 8px; }
  .topnav { gap: 0; }
  .topnav a { padding: 7px; font-size: 13px; }
  .brand-name, .icon-link { display: none; }
  .topbar-actions { gap: 4px; }
  .search-btn, .theme-toggle, .lang-switch { height: 32px; }
  .theme-toggle { width: 32px; }
  .lang-switch { padding: 0 8px; font-size: 12px; }
  .grid, .os-grid, .docs-home .grid { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .docs { grid-template-columns: 1fr; }
  .docs-nav { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--border); display: none; }
  .docs-nav.open { display: block; }
  .btn.menu-toggle { display: inline-flex; margin: 12px 14px 0; }
  .article { padding: 24px 16px; }
  .page-head { padding-top: 46px; }
  .docs-home { padding-top: 42px; }
  .quick-install { padding-top: 44px; }
  .home-video { margin-top: 48px; }
  .feature { padding-top: 56px; }
  .chat { padding: 16px; }
  .turn { gap: 8px; }
  .avatar { width: 32px; height: 32px; border-radius: 9px; }
  .turn.user .avatar { font-size: 13px; }
  .turn.bot .avatar { font-size: 9.5px; }
  .install-route pre { white-space: pre-wrap; overflow-wrap: anywhere; }
  .install-route summary, .install-route-body { padding-left: 18px; padding-right: 18px; }
}

/* theme toggle + shared bits */
.theme-toggle { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-m); background: var(--surface); color: var(--text-secondary); cursor: pointer; }
.theme-toggle:hover { border-color: var(--accent-border-soft); background: var(--accent-soft); color: var(--accent-strong); }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
.sha { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.sha code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; color: var(--text-secondary); }
.sha button { flex: none; padding: 1px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text-secondary); font-size: 11.5px; cursor: pointer; }
.sha button:hover { border-color: var(--accent-border-soft); color: var(--accent-strong); }
.os .file-block { display: block; }

/* deployment page */
.deploy { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.mode-tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-subtle); }
.mode-tabs button { padding: 8px 18px; border: 0; border-radius: 9px; background: transparent; color: var(--text-secondary); font-weight: 600; font-size: 14px; cursor: pointer; }
.mode-tabs button:hover { background: var(--surface-hover); }
.mode-tabs button[aria-selected="true"] { background: var(--surface); color: var(--accent-deep); box-shadow: var(--shadow-1); }
.tabs-row { display: flex; justify-content: center; margin-top: 30px; }
.mode-panel { display: none; margin-top: 20px; padding: 26px; border: 1px solid var(--border); border-radius: var(--radius-l); background: var(--surface); box-shadow: var(--shadow-1); }
.mode-panel.active { display: block; }
.mode-panel h2 { margin: 0 0 4px; color: var(--text-strong); font-size: 20px; }
.mode-panel > p { margin: 0 0 16px; color: var(--muted); }
.mode-panel ol { margin: 0; padding-left: 20px; }
.mode-panel li { margin: 8px 0; }
.mode-panel pre, .deploy pre { margin: 10px 0; padding: 13px 16px; border: 1px solid var(--code-border); border-radius: var(--radius-m); background: var(--code-bg); color: #e2e8f0; overflow-x: auto; font-size: 13px; line-height: 1.6; }
.mode-panel :not(pre) > code, .deploy .card :not(pre) > code { padding: 1px 6px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface-subtle); color: var(--accent-deep); font-size: .88em; }
.reqs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0 4px; }
.req-item { padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-m); background: var(--surface-subtle); font-size: 13px; }
.req-item b { display: block; margin-bottom: 2px; color: var(--text-strong); font-size: 12px; letter-spacing: .04em; }
.deploy h2.h { margin: 48px 0 0; color: var(--text-strong); font-size: 22px; letter-spacing: -.015em; }
.deploy .grid { margin-top: 18px; }
.readmore { display: inline-block; margin-top: 8px; font-weight: 600; font-size: 14px; }
.install-page .page-head { padding-bottom: 26px; }
.install-platform-nav { margin: 0 0 32px; }
.install-platform-nav h2 { margin: 0 0 17px; color: var(--text-strong); font-size: 23px; letter-spacing: -.035em; }
.install-platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.install-platform { min-width: 0; padding: 23px; border: 1px solid var(--border); border-radius: var(--radius-l); background: var(--surface); box-shadow: var(--shadow-1); }
.install-platform-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.install-platform-icon { display: grid; flex: none; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--accent-softer); color: var(--accent-deep); }
.install-platform h3 { margin: 0; color: var(--text-strong); font-size: 19px; line-height: 1.3; letter-spacing: -.03em; }
.install-experimental { display: inline-block; margin-left: 5px; padding: 2px 7px; border: 1px solid var(--warning-border); border-radius: var(--radius-pill); background: var(--warning-soft); color: var(--warning); font-size: 10px; font-weight: 700; line-height: 1.3; letter-spacing: 0; vertical-align: middle; white-space: nowrap; }
.install-platform-heading p { margin: 2px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.install-platform-methods { display: grid; gap: 8px; }
.install-platform-methods a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 39px; padding: 7px 11px; border: 1px solid var(--border); border-radius: var(--radius-m); background: var(--surface-subtle); color: var(--text-heading); font-size: 13px; font-weight: 600; }
.install-platform-methods a:hover, .install-platform-methods a:focus-visible { border-color: var(--accent-border-soft); background: var(--accent-soft); color: var(--accent-deep); text-decoration: none; }
.install-platform-nav > p { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.install-platform-nav > p + p { margin-top: 5px; }
.install-route { margin-top: 16px; border: 1px solid var(--border); border-radius: var(--radius-l); background: var(--surface); box-shadow: var(--shadow-1); }
.install-route summary { display: flex; align-items: center; gap: 10px; padding: 22px 24px; color: var(--text-strong); cursor: pointer; }
.install-route summary:hover { background: var(--surface-subtle); }
.install-route summary::before { content: '▸'; color: var(--accent); font-size: 18px; transition: transform .15s; }
.install-route[open] summary::before { transform: rotate(90deg); }
.install-route summary > span { display: grid; gap: 5px; }
.install-route summary b { font-size: 19px; letter-spacing: -.025em; }
.install-route summary .badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--accent-softer);
  color: var(--accent-deep);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
  vertical-align: 2px;
}
.install-route summary small { color: var(--muted); font-size: 14px; line-height: 1.5; }
.install-route[open] summary { border-bottom: 1px solid var(--border); }
.install-route-body { padding: 22px 24px 24px; }
.install-route-body ol { margin: 20px 0 0; padding-left: 20px; }
.install-route-body li { margin: 8px 0; }
.install-step-note { margin: 10px 0 0; }
.release-files { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.release-file { min-width: 0; }
.release-file .download-file { min-height: 52px; padding: 12px 16px; border-color: #1d4ed8; background: #1d4ed8; color: #fff; font-size: 15px; font-weight: 700; box-shadow: 0 4px 12px rgba(29, 78, 216, .18); transition: background .15s, box-shadow .15s, transform .15s; }
.release-file .download-file small { color: #fff; }
.release-file .download-file:hover { border-color: #1e40af; background: #1e40af; color: #fff; box-shadow: 0 6px 16px rgba(29, 78, 216, .26); transform: translateY(-1px); }
.release-file .download-file:focus-visible { outline: 3px solid var(--accent-border); outline-offset: 2px; }
@media (max-width: 900px) { .install-platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .release-files, .install-platforms { grid-template-columns: 1fr; } }
.install-more { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 28px; text-align: center; }
.redirect { min-height: 50vh; display: grid; place-items: center; }
@media (max-width: 900px) { .reqs { grid-template-columns: 1fr; } }

/* docs search */
.search-btn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px 0 12px; border: 1px solid var(--border); border-radius: var(--radius-m); background: var(--surface); color: var(--muted); font-size: 13px; cursor: pointer; min-width: 150px; }
.search-btn:hover { border-color: var(--accent-border-soft); color: var(--text-secondary); }
.search-btn span { flex: 1; text-align: left; }
.search-btn kbd, .sx-in kbd { padding: 0 6px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface-subtle); color: var(--text-faint); font: 11px var(--font); }
.sx-mask { position: fixed; inset: 0; z-index: 100; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; background: rgba(15, 20, 28, .55); backdrop-filter: blur(3px); animation: sxfade .15s ease; }
@keyframes sxfade { from { opacity: 0; } to { opacity: 1; } }
.sx { width: min(640px, 100%); max-height: 70vh; display: flex; flex-direction: column; border: 1px solid var(--border-strong); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-4); overflow: hidden; }
.sx-in { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--border); color: var(--muted); }
.sx-in input { flex: 1; min-width: 0; height: 52px; border: 0; outline: 0; background: transparent; color: var(--text-strong); font: 16px var(--font); }
.sx-list { overflow-y: auto; padding: 6px; }
.sx-item { display: block; padding: 9px 12px; border-radius: 9px; color: var(--text); text-decoration: none !important; }
.sx-item.on { background: var(--accent-softer); }
.sx-t { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; }
.sx-t b { color: var(--text-strong); }
.sx-t span { color: var(--accent-ink); }
.sx-s { margin-top: 2px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.sx-s mark, .sx-t mark { background: var(--warning-soft); color: var(--warning); border-radius: 3px; padding: 0 1px; }
.sx-msg { padding: 28px 12px; text-align: center; color: var(--muted); font-size: 14px; }
.sx-foot { padding: 8px 14px; border-top: 1px solid var(--border); color: var(--text-faint); font-size: 12px; }
@media (max-width: 900px) { .search-btn { min-width: 0; } .search-btn span, .search-btn kbd { display: none; } .search-btn { padding: 0 10px; } }
.lang-switch, .icon-link, .search-btn { white-space: nowrap; }
.os-grid + .note, .steps { max-width: 860px; margin-left: auto; margin-right: auto; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- shared content components ---------- */
/* The documentation index reuses the card grid that used to live in the old home page, so the
   primitives stay here now that the landing page has its own layout. */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { padding: 22px 24px; border: 1px solid var(--border); border-radius: var(--radius-l); background: var(--surface); box-shadow: var(--shadow-1); transition: box-shadow .18s, border-color .18s, transform .18s; }
a.card { display: block; color: inherit; }
a.card:hover { border-color: var(--accent-border-soft); box-shadow: var(--shadow-card); text-decoration: none; transform: translateY(-2px); }
.card .ico { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 10px; background: var(--accent-softer); color: var(--accent); }
.card h3 { margin: 0 0 7px; color: var(--text-strong); font-size: 16px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.card .more { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600; }
.page-head { padding: 68px 0 10px; text-align: center; }
.page-head h1 { margin: 0; color: var(--text-strong); font-size: clamp(36px, 4vw, 46px); line-height: 1.12; letter-spacing: -.05em; }
.page-head p { margin: 16px auto 0; max-width: 670px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.os .req { margin: 4px 0 16px; color: var(--muted); font-size: 13px; }
.file.off { color: var(--text-faint); border-style: dashed; }
.os.recommended { border-color: var(--accent-border); box-shadow: 0 0 0 3px var(--accent-tint), var(--shadow-card); }

/* The page itself sits on the design's canvas colour; documents used to keep their own grey wash. */
body { background: var(--page); }
