
@import '@fontsource-variable/inter';
@import '@fontsource-variable/jetbrains-mono';

:root {
  color-scheme: light;
  --acc-1: #4f9dff;
  --acc-2: #7a6bff;
  --acc-3: #c46bff;
  --accent: oklch(0.55 0.17 257);
  --accent-deep: oklch(0.48 0.17 257);
  --accent-line: color-mix(in oklch, var(--accent) 30%, var(--line));
  --accent-soft: color-mix(in oklch, var(--accent) 8%, var(--bg));
  --bg: #ffffff;
  --bg-soft: oklch(0.976 0.0025 247);
  --ink: oklch(0.21 0.006 260);
  --ink-2: oklch(0.45 0.008 260);
  --ink-3: oklch(0.6 0.008 260);
  --line: oklch(0.905 0.004 247);
  --card: #ffffff;
  --term-bg: oklch(0.21 0.006 260);
  --term-edge: oklch(0.31 0.008 260);
  --radius: 13px;
  --radius-sm: 9px;
  --shadow-1: 0 1px 2px oklch(0.35 0.01 260 / 0.08);
  --shadow-2: 0 1px 2px oklch(0.35 0.01 260 / 0.06), 0 12px 32px -16px oklch(0.35 0.01 260 / 0.24);
  --font-sans: "Inter Variable", "Inter", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono Variable", "JetBrains Mono", "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --accent: oklch(0.66 0.16 257);
  --accent-deep: oklch(0.73 0.14 257);
  --accent-soft: color-mix(in oklch, var(--accent) 16%, var(--bg));
  --bg: oklch(0.19 0.006 260);
  --bg-soft: oklch(0.225 0.008 260);
  --ink: oklch(0.93 0.004 260);
  --ink-2: oklch(0.78 0.008 260);
  --ink-3: oklch(0.63 0.008 260);
  --line: oklch(0.31 0.008 260);
  --card: oklch(0.222 0.008 260);
  --term-bg: oklch(0.155 0.005 260);
  --term-edge: oklch(0.28 0.008 260);
  --shadow-1: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-2: 0 1px 2px oklch(0 0 0 / 0.28), 0 12px 32px -16px oklch(0 0 0 / 0.6);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; background: var(--bg); }

body {
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  font-feature-settings: "cv11", "ss01";
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: oklch(0.88 0.05 257); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 40px; }


body[data-lang="en"] .l-zh { display: none !important; }
body[data-lang="zh"] .l-en { display: none !important; }
body[data-lang="zh"] h1,
body[data-lang="zh"] h2,
body[data-lang="zh"] h3 { letter-spacing: 0; }
body[data-lang="zh"] .hero h1 { font-size: clamp(38px, 4.6vw, 62px); line-height: 1.24; }

.lang-switch, .theme-switch {
  display: inline-flex; gap: 2px; padding: 3px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 9px;
}
.lang-switch button, .theme-switch button {
  font-family: var(--font-sans); font-size: 12.5px; font-weight: 500;
  color: var(--ink-2); background: transparent; border: none; cursor: pointer;
  padding: 6px 12px; border-radius: 6px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.theme-switch button { display: inline-flex; align-items: center; justify-content: center; }
.theme-switch svg { display: block; }
.lang-switch button:hover, .theme-switch button:hover { color: var(--ink); }
.lang-switch button.active, .theme-switch button.active { background: var(--card); color: var(--accent); box-shadow: var(--shadow-1); }


.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.4s, box-shadow 0.4s;
}
.nav.scrolled {
  background: color-mix(in oklch, var(--bg) 92%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  display: flex; align-items: center; gap: 18px;
  height: 68px; max-width: 1480px; margin: 0 auto; padding: 0 40px;
}
.brand { display: flex; flex: none; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-picture { display: block; flex: none; }
.brand img { width: 28px; height: 28px; border-radius: 8px; display: block; }
.nav .brand img { width: 90px; height: auto; border-radius: 0; }
.brand span { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.nav-links { display: flex; min-width: 0; gap: 6px; margin-right: auto; margin-left: 18px; }
.nav-links a {
  flex: none; white-space: nowrap;
  color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: 7px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-soft); }
.nav-links a.here { color: var(--accent); background: var(--accent-soft); }
.nav-github {
  display: inline-flex; flex: none; align-items: center; gap: 8px;
  color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 8px 10px; border-radius: 7px;
  transition: color 0.2s, background 0.2s;
}
.nav-github svg { width: 18px; height: 18px; display: block; }
.nav-github:hover { color: var(--ink); background: var(--bg-soft); }
.nav-github:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-size: 14.5px; font-weight: 550; letter-spacing: -0.005em;
  padding: 11px 20px; border-radius: 9px; text-decoration: none; cursor: pointer;
  border: none; transition: background 0.2s, box-shadow 0.25s, color 0.2s, border-color 0.2s;
}
.btn-dark { background: var(--accent); color: #fff; }
.btn-dark:hover { background: var(--accent-deep); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: color-mix(in oklch, var(--accent) 45%, var(--line)); color: var(--accent); }
.nav .btn { padding: 9px 20px; font-size: 14px; }
.nav .btn, .nav .lang-switch, .nav .theme-switch, .nav-acct { flex: none; }

.nav-menu-toggle {
  display: none; flex: none; align-items: center; justify-content: center;
  width: 38px; height: 38px; padding: 0; color: var(--ink);
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 9px;
  cursor: pointer; transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.nav-menu-toggle:hover { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.nav-menu-toggle:focus-visible, .mobile-nav-close:focus-visible, .mobile-nav-backdrop:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav-menu-toggle svg, .mobile-nav-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body.mobile-nav-open { overflow: hidden; }
.mobile-nav { position: fixed; inset: 0; z-index: 100; height: 100vh; min-height: 100dvh; opacity: 0; transition: opacity 0.22s ease; }
.mobile-nav.is-open { opacity: 1; }
.mobile-nav-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: oklch(0.12 0.01 260 / 0.42); cursor: pointer; }
.mobile-nav-panel {
  position: absolute; top: 0; right: 0; display: flex; flex-direction: column;
  width: min(360px, calc(100% - 24px)); height: 100%; padding: 24px;
  color: var(--ink); background: var(--bg); border-left: 1px solid var(--line);
  box-shadow: -18px 0 40px oklch(0.12 0.01 260 / 0.16);
  transform: translateX(100%); transition: transform 0.28s var(--ease); overflow-y: auto;
}
.mobile-nav.is-open .mobile-nav-panel { transform: translateX(0); }
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; min-height: 38px; font-size: 15px; font-weight: 600; }
.mobile-nav-close { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; color: var(--ink-2); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.mobile-nav-close:hover { color: var(--accent); border-color: var(--accent-line); }
.mobile-nav-links { display: flex; flex-direction: column; gap: 4px; margin-top: 26px; }
.mobile-nav-links a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; color: var(--ink-2); text-decoration: none; font-size: 16px; font-weight: 500; border-radius: 8px; }
.mobile-nav-links a:hover, .mobile-nav-links a.here { color: var(--accent); background: var(--accent-soft); }
.mobile-nav-actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 28px; }
.mobile-nav-actions > a, .mobile-nav-actions > .nav-acct, .mobile-nav-actions > span { width: 100%; }
.mobile-nav-actions > span .btn, .mobile-nav-actions > .nav-acct .btn { width: 100%; }
.mobile-nav-actions .btn { min-height: 44px; }
.mobile-nav-github { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; color: var(--ink-2); font-size: 14px; font-weight: 500; border: 1px solid var(--line); border-radius: 9px; }
.mobile-nav-github:hover { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.mobile-nav-github svg { width: 18px; height: 18px; }

@media (prefers-reduced-motion: reduce) {
  .mobile-nav, .mobile-nav-panel { transition: none; }
}

@media (max-width: 1260px) {
  .nav-link--secondary { display: none; }
}

@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-github { margin-left: auto; padding-inline: 8px; }
  .nav-github-label { display: none; }
  .nav-menu-toggle { display: inline-flex; }
}


.hero { position: relative; padding: 150px 0 0; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
  color: var(--accent); margin-bottom: 26px; letter-spacing: 0.01em;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: oklch(0.7 0.16 150); box-shadow: 0 0 0 3px oklch(0.7 0.16 150 / 0.18); }

.hero h1 {
  max-width: 13em; margin: 0 auto;
  font-size: clamp(44px, 5.4vw, 76px);
  line-height: 1.06; letter-spacing: -0.035em; font-weight: 600;
  text-wrap: balance;
}
.hero h1 .grad { color: var(--accent); }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero h1 .tt {
  color: var(--accent);
  box-shadow: inset 0 -0.06em 0 color-mix(in oklch, var(--accent) 30%, transparent);
}
.hero .sub {
  margin: 26px auto 0; max-width: 640px;
  font-size: 17.5px; line-height: 1.62; color: var(--ink-2); font-weight: 400;
  text-wrap: pretty;
}
.hero .sub b { color: var(--ink); font-weight: 600; }


.hero-install {
  width: min(960px, 100%);
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0;
  background: #f6f7f9;
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
}


:root[data-theme="dark"] .hero-install {
  background: var(--bg-soft);
}


.hero-install::before {
  content: "";
  grid-column: 2;
  grid-row: 1;
  background: var(--line);
  align-self: stretch;
  margin: 32px 0;
  opacity: 0.7;
}

.install-option {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
  padding: 36px 44px;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: hidden;
  cursor: default;
}


.install-option--desktop {
  background: transparent;
  border-color: transparent;
}


.install-option canvas.particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.install-option > * {
  position: relative;
  z-index: 1;
}

.install-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.install-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.install-option strong {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--ink);
  max-width: 340px;
}


.install-option .btn,
.install-option .install {
  margin-top: auto;
  padding-top: 20px;
  align-self: stretch;
  width: 100%;
  height: 40px;
  box-sizing: border-box;
}


.hero-install .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}

.hero-install .btn:hover {
  background: var(--accent-deep);
}


.hero-install .install {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px 0 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
}

.hero-install .install-command {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-install .install .ps1 {
  color: var(--accent);
  user-select: none;
  flex: none;
}


.hero-install .install button {
  flex: none;
  height: 28px;
  margin-left: auto;
  padding: 0 14px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.hero-install .install button:hover {
  background: var(--accent-deep);
}

.hero-install .install button.copied {
  background: oklch(0.55 0.14 155);
}


.install-option__more,
.install-option a[href*="原生"],
.install-option a[href*="安装包"] {
  display: none !important;
}

.install {
  display: inline-flex; align-items: center; gap: 14px; min-width: 0;
  font-family: var(--font-mono); font-size: 13.5px; color: var(--ink);
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 8px 10px 16px;
  white-space: nowrap;
}
.install .ps1 { color: var(--accent); user-select: none; }
.install button {
  flex: none;
  font-family: var(--font-sans); font-size: 12.5px; font-weight: 600;
  background: var(--card); color: var(--ink-2); border: 1px solid var(--line); cursor: pointer;
  padding: 6px 13px; border-radius: 6px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.install button:hover { color: var(--accent); border-color: color-mix(in oklch, var(--accent) 45%, var(--line)); }


.also {
  max-width: 960px;
  margin: 18px auto 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-3);
}

.also-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.also-label {
  flex: none;
  font-weight: 600;
  color: var(--ink-2);
}

.also-links {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0 10px;
  flex-wrap: wrap;
}

.also a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
}

.also a:hover {
  opacity: 0.75;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.also a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.also-sep {
  color: var(--ink-3);
}

.also code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 5px;
}


.hero-cta { margin-top: 38px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.cold-blocks { display: flex; justify-content: center; gap: 8px; margin-top: 46px; }
.cold-blocks i {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--accent) 26%, transparent);
}
.cold-blocks i.new { background: var(--accent); box-shadow: none; }


.term-stage { position: relative; margin: 58px auto 0; max-width: 880px; }
.fig {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-3);
  margin-bottom: 12px; text-align: left;
}
.term {
  position: relative; text-align: left;
  background: var(--term-bg);
  border: 1px solid var(--term-edge);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-2);
}
.term-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 20px; border-bottom: 1px solid var(--term-edge);
}
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: oklch(0.42 0.008 260); }
.term-bar .title {
  margin: 0 auto; transform: translateX(-20px);
  font-family: var(--font-mono); font-size: 12px; color: oklch(0.62 0.008 260);
}
.term-body {
  padding: 26px 30px 28px; min-height: 312px;
  font-family: var(--font-mono); font-size: 13.5px; line-height: 2.05;
  color: oklch(0.9 0.004 260); white-space: pre-wrap;
}
.term-body .tl { display: block; opacity: 0; transform: translateY(4px); }
.term-body .tl.on { opacity: 1; transform: none; transition: opacity 0.4s, transform 0.4s var(--ease); }
.t-dim { color: oklch(0.6 0.008 260); }
.t-acc { color: var(--acc-1); }
.t-vio { color: var(--acc-2); }
.t-ok  { color: oklch(0.78 0.13 160); }
.t-warm{ color: oklch(0.82 0.11 80); }
.t-add { color: oklch(0.78 0.13 160); }
.caret {
  display: inline-block; width: 8px; height: 16px; vertical-align: -3px;
  background: var(--acc-1); animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.term-stat {
  display: flex; gap: 26px; justify-content: space-between; flex-wrap: wrap;
  border-top: 1px solid var(--term-edge); padding: 14px 30px;
  font-family: var(--font-mono); font-size: 12px; color: oklch(0.6 0.008 260);
}
.term-stat b { color: oklch(0.86 0.02 260); font-weight: 500; }


section { padding: 118px 0 0; }
.sec-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  font-family: var(--font-mono); font-size: 13.5px; font-weight: 500; letter-spacing: 0.02em;
  color: var(--accent); display: block; margin-bottom: 18px;
}
.kicker::before { content: "$ "; color: var(--ink-3); }
.sec-head h2 {
  font-size: clamp(32px, 3.8vw, 48px); line-height: 1.12;
  letter-spacing: -0.02em; font-weight: 600; text-wrap: balance;
}
.sec-head h2 .em { color: var(--accent); }
.sec-head p { margin-top: 18px; font-size: 17px; line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }

.sec-head.split {
  max-width: none; margin: 0 0 56px; text-align: left;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 20px 90px; align-items: end;
}
.sec-head.split .kicker { grid-column: 1 / -1; margin-bottom: 4px; }
.sec-head.split h2 { margin: 0; }
.sec-head.split p { margin: 0 0 6px; }


.feat-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.feat { grid-column: span 6; }
.feat:nth-child(1) { grid-column: span 7; }
.feat:nth-child(2) { grid-column: span 5; }
.feat:nth-child(3) { grid-column: span 5; }
.feat:nth-child(4) { grid-column: span 7; }
.feat:nth-child(5) { grid-column: span 6; }
.feat:nth-child(6) { grid-column: span 6; }
.feat-viz { display: flex; gap: 6px; margin-top: 30px; }
.feat-viz i {
  width: 20px; height: 20px; border-radius: 6px;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--accent) 26%, transparent);
}
.feat-viz i.n { background: var(--accent); box-shadow: none; }
.feat-chip {
  display: inline-block; margin-top: 26px;
  font-family: var(--font-mono); font-size: 12px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 7px;
  padding: 8px 12px; color: var(--ink-2);
}
.feat {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 30px 32px;
  transition: border-color 0.25s;
}
.feat:hover { border-color: color-mix(in oklch, var(--accent) 38%, var(--line)); }
.feat .tag {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3);
  letter-spacing: 0.04em; display: block; margin-bottom: 18px;
}
.feat:hover .tag { color: var(--accent); }
.feat h3 { font-size: 20px; letter-spacing: -0.018em; font-weight: 600; margin-bottom: 10px; }
.feat p { font-size: 15px; line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }
.feat code { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink); }


.surf-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.surf {
  display: flex; flex-direction: column; gap: 10px;
  padding: 20px 20px 24px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.surf:hover { border-color: color-mix(in oklch, var(--accent) 38%, var(--line)); transform: translateY(-2px); }
.surf h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.surf p { flex: 1; font-size: 14px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.surf code {
  align-self: flex-start;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-2);
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 7px; padding: 6px 10px;
}
.surf-art {
  display: grid; place-items: center;
  height: 132px; margin-bottom: 4px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft); overflow: hidden;
}
.surf-win {
  display: grid; grid-template-rows: auto 1fr;
  width: 78%; height: 88px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); overflow: hidden;
}
.surf-win .bar { height: 12px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.surf-win .bar.url { position: relative; }
.surf-win .bar.url::after {
  content: ""; position: absolute; left: 8px; top: 3px;
  width: 58%; height: 6px; border-radius: 999px;
  background: color-mix(in oklch, var(--ink) 12%, transparent);
}
.surf-win .body { display: flex; flex-direction: column; gap: 6px; padding: 9px 10px; }
.surf-win .l { height: 5px; width: var(--w, 60%); border-radius: 999px; background: color-mix(in oklch, var(--ink) 14%, transparent); }
.surf-win .l.ok { background: color-mix(in oklch, var(--accent) 55%, transparent); }
.surf-win .l.add { background: color-mix(in oklch, oklch(0.65 0.15 155) 62%, transparent); }
.surf-win .cur { width: 5px; height: 8px; background: var(--accent); }
.surf-win.app .body, .surf-win.ide .body { flex-direction: row; gap: 8px; }
.surf-win .side, .surf-win .tree {
  display: flex; flex-direction: column; gap: 5px;
  width: 24px; flex: none; padding-right: 7px;
  border-right: 1px solid var(--line);
}
.surf-win .side i, .surf-win .tree i { height: 5px; width: 100%; border-radius: 999px; background: color-mix(in oklch, var(--ink) 12%, transparent); }
.surf-win .side i:first-child { background: color-mix(in oklch, var(--accent) 50%, transparent); }
.surf-win .tree i:nth-child(2) { width: 68%; }
.surf-win .tree i:nth-child(3) { width: 86%; }
.surf-win .main { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.surf-win.cli { background: var(--term-bg); border-color: var(--term-edge); }
.surf-win.cli .bar { background: color-mix(in oklch, #fff 6%, var(--term-bg)); border-bottom-color: var(--term-edge); }
.surf-win.cli .l { background: color-mix(in oklch, #fff 22%, transparent); }
.surf-win.cli .l.ok { background: oklch(0.72 0.13 160); }


.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.step { padding: 6px 40px 6px 0; }
.step + .step { padding-left: 40px; border-left: 1px solid var(--line); }
.step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 7px;
  background: var(--accent-soft);
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; color: var(--accent);
  margin-bottom: 18px;
}
.step h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.018em; margin-bottom: 10px; }
.step p { font-size: 14.5px; line-height: 1.62; color: var(--ink-2); }
.step code {
  display: inline-block; margin-top: 16px; font-family: var(--font-mono); font-size: 12.5px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 7px;
  padding: 7px 12px; color: var(--ink);
}


.crew {
  margin-top: 8px; display: grid; gap: 18px; overflow: hidden; padding: 24px 0 10px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.crew-row { display: flex; width: max-content; }
.crew-set { display: flex; align-items: center; gap: 16px; padding-right: 16px; }
@media (prefers-reduced-motion: no-preference) {
  body[data-motion="rich"] .crew-row { animation: crew-slide 60s linear infinite; }
  body[data-motion="rich"] .crew-row.rev { animation-duration: 74s; animation-direction: reverse; }
  .crew-row:hover { animation-play-state: paused !important; }
}
@keyframes crew-slide { to { transform: translateX(-50%); } }

.av {
  position: relative; flex: none; display: flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 50%;
  color: #fff; font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  border: 2px solid var(--bg); box-shadow: var(--shadow-1);
  text-decoration: none; overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.sm { width: 44px; height: 44px; font-size: 12px; }
.av.lg { width: 64px; height: 64px; font-size: 16px; }
.av:hover { transform: translateY(-6px) scale(1.1); box-shadow: var(--shadow-2); z-index: 2; }
.av::after {
  content: attr(data-h);
  position: absolute; bottom: calc(100% + 9px); left: 50%; transform: translateX(-50%) translateY(4px);
  font-size: 12px; font-weight: 500; white-space: nowrap;
  background: var(--ink); color: var(--bg); padding: 5px 12px; border-radius: 8px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s var(--ease);
}
.av:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.av.you {
  background: transparent; border: 1.5px dashed var(--ink-3); color: var(--ink-2);
  font-size: 18px; box-shadow: none;
}
.av.you:hover { border-color: var(--accent); color: var(--accent); }

.crew-cta { display: flex; justify-content: center; gap: 14px; margin-top: 38px; flex-wrap: wrap; }
.crew-note {
  margin-top: 26px; text-align: center;
  font-size: 13.5px; color: var(--ink-3);
}


@media (prefers-reduced-motion: no-preference) {
  body[data-motion="rich"] .reveal {
    opacity: 0; transform: translateY(10px);
    transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
    transition-delay: var(--d, 0s);
  }
  body[data-motion="rich"] .reveal.in { opacity: 1; transform: none; }
}


.os-card::after, .doc-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%),
    color-mix(in oklch, var(--accent) 45%, transparent), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0; transition: opacity 0.35s; pointer-events: none;
}
.os-card:hover::after, .doc-card:hover::after { opacity: 1; }


.divider { position: relative; height: 24px; margin-top: 84px; pointer-events: none; }
.divider + section { padding-top: 52px; }
.divider .line {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(1100px, calc(100% - 80px)); height: 1px;
  background: var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
}


.cta {
  margin-top: 150px; position: relative;
  background: var(--bg-soft); color: var(--ink); text-align: center;
  padding: 110px 40px 120px;
}
.cta h2 { font-size: clamp(34px, 4.2vw, 52px); letter-spacing: -0.02em; font-weight: 600; text-wrap: balance; }
.cta h2 .em { color: var(--accent); }
.cta p { margin: 20px auto 0; max-width: 560px; font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.cta .install { background: var(--card); box-shadow: var(--shadow-1); }
.cta .install button { background: var(--accent-soft); box-shadow: none; }
.cta .install button:hover { background: color-mix(in oklch, var(--accent) 16%, var(--bg)); }
.cta .install button.copied { background: oklch(0.55 0.14 155); color: #fff; }


.dl { margin-top: 44px; }
.dl-tabs {
  display: inline-flex; gap: 2px; padding: 3px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 9px;
}
.dl-tab {
  font-family: var(--font-sans); font-size: 13.5px; font-weight: 500;
  color: var(--ink-2); background: transparent; border: none; cursor: pointer;
  padding: 8px 18px; border-radius: 6px;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}
.dl-tab:hover { color: var(--ink); }
.dl-tab.active { background: var(--card); color: var(--accent); box-shadow: var(--shadow-1); }

.dl-pane { display: none; margin-top: 36px; }
.dl-pane.active { display: block; animation: pane-in 0.45s var(--ease); }
@keyframes pane-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.release-channel-switch {
  display: inline-grid; grid-template-columns: repeat(2, minmax(112px, 1fr)); gap: 3px;
  padding: 4px; margin: 0 auto 10px;
  background: color-mix(in oklch, var(--ink) 6%, var(--bg));
  border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.release-channel-switch button {
  min-height: 36px; padding: 7px 18px;
  border: 0; border-radius: 7px; cursor: pointer;
  background: transparent; color: var(--ink-2);
  font-family: var(--font-sans); font-size: 13px; font-weight: 600;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.release-channel-switch button:hover { color: var(--ink); }
.release-channel-switch button.active {
  background: var(--card); color: var(--accent); box-shadow: var(--shadow-1);
}
.release-channel-switch button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.release-channel-summary {
  min-height: 24px; margin: 0 auto 22px;
  color: var(--ink-3); font-size: 13px; line-height: 1.55;
}
.release-upgrade-command { margin: 12px auto 24px; }
.cli-os-grid { margin-top: 0; }

.dl-note { margin-top: 22px; font-size: 13px; color: var(--ink-3); }
.dl-note .mono { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); }
.dl-note a { color: var(--accent); text-decoration: none; }
.dl-note a:hover { text-decoration: underline; }


.chan {
  max-width: 660px; margin: 26px auto 0; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden;
}
.chan-row {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 16px 22px; font-size: 13.5px;
  color: var(--ink-3);
}
.chan-row + .chan-row { border-top: 1px solid var(--line); }
.chan-row code { font-family: var(--font-mono); font-size: 13px; color: var(--ink); width: 185px; flex: none; }
.chan-row .v { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-2); width: 92px; flex: none; }
.chan-row .s { flex: 1; min-width: 200px; }
.chan-row.rec { background: var(--accent-soft); }
.chan-row.rec code { color: var(--accent); font-weight: 500; }
.chan-row.rec .s { color: var(--ink-2); }
.chan-badge {
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  color: #fff; background: var(--accent);
  padding: 4px 9px; border-radius: 5px; flex: none;
}
.chan-badge.pre { color: var(--ink-3); background: var(--bg-soft); box-shadow: inset 0 0 0 1px var(--line); }
.chan-row:not(.rec) code, .chan-row:not(.rec) .v { text-decoration: line-through; text-decoration-color: var(--ink-3); }

.os-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  max-width: 900px; margin: 0 auto; text-align: left;
}
.os-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 24px;
  transition: border-color 0.25s;
}
.os-card:hover { border-color: color-mix(in oklch, var(--accent) 38%, var(--line)); }
.os-card h4 { font-size: 19px; font-weight: 600; letter-spacing: -0.018em; color: var(--ink); }
.os-card .meta { font-family: var(--font-mono); font-size: 11.5px; line-height: 1.7; color: var(--ink-3); }
.os-card .btn { margin-top: 16px; }
.os-options {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 4px;
}
.os-options a {
  display: inline-flex; align-items: center; min-height: 28px;
  padding: 5px 9px; border-radius: 7px;
  background: var(--bg-soft); border: 1px solid var(--line);
  color: var(--ink-2); text-decoration: none;
  font-size: 12px; font-weight: 600; line-height: 1.2;
}
.os-options a:hover {
  border-color: color-mix(in oklch, var(--accent) 40%, var(--line));
  color: var(--accent); text-decoration: none;
}
.os-card .alt {
  font-size: 12.5px; color: var(--ink-3); text-align: center; margin-top: 2px;
}
.os-card .alt a { color: var(--accent); text-decoration: none; font-weight: 500; }
.os-card .alt a:hover { text-decoration: underline; }
.editor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
.editor-card { min-height: 190px; }
.editor-card--primary {
  background: linear-gradient(180deg, color-mix(in oklch, var(--accent) 10%, var(--card)), var(--card) 82%);
  border: 1px solid color-mix(in oklch, var(--accent) 24%, var(--line));
}
.editor-card .btn { margin-top: auto; align-self: flex-start; }
.editor-note { max-width: 820px; margin-inline: auto; line-height: 1.65; }
.editor-note code { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); }
.btn-light { background: var(--accent-soft); color: var(--accent); }
.btn-light:hover { background: color-mix(in oklch, var(--accent) 16%, var(--bg)); }
.dl-help {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px 12px; align-items: center;
  max-width: 900px; margin: 18px auto 0; padding: 16px 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-1); text-align: left;
  color: var(--ink-2); font-size: 13.5px; line-height: 1.5;
}
.dl-help strong { grid-column: 1 / -1; color: var(--ink); font-size: 14.5px; }
.dl-help code {
  grid-column: 1 / 2; min-width: 0; overflow-x: auto;
  font-family: var(--font-mono); font-size: 12.5px;
  background: var(--bg-soft); border-radius: 8px; padding: 8px 10px;
  color: var(--ink); white-space: nowrap;
}
.dl-help button {
  font-family: var(--font-sans); font-size: 12.5px; font-weight: 600;
  color: var(--accent); background: var(--accent-soft);
  border: none; border-radius: 7px; padding: 7px 13px; cursor: pointer;
}
.dl-help button.copied { background: oklch(0.55 0.14 155); color: #fff; }
.dl-help a { color: var(--accent); text-decoration: none; font-weight: 600; }
.dl-help a:hover { text-decoration: underline; }
.os-card.detected { box-shadow: 0 0 0 2px var(--accent), var(--shadow-1); }
@keyframes cardFlash {
  0%, 100% { box-shadow: 0 0 0 2px var(--accent), var(--shadow-1); }
  25%, 65% { box-shadow: 0 0 0 3px var(--accent), 0 18px 44px -18px color-mix(in oklch, var(--accent) 55%, transparent); transform: translateY(-3px); }
}
.os-card.flash { animation: cardFlash 2s var(--ease); }
.os-chip {
  position: absolute; top: -11px; right: 16px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em;
  color: #fff; background: var(--accent);
  padding: 4px 10px; border-radius: 5px;
}


.docs-layout {
  display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 56px;
  max-width: 1240px; margin: 0 auto; padding: 124px 40px 110px;
}
.docs-side {
  position: sticky; top: 110px; align-self: start;
  display: flex; flex-direction: column; gap: 16px;
  max-height: calc(100dvh - 132px); overflow-y: auto; padding-right: 4px;
}
.docs-side-links {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  padding: 16px;
}
.side-card-kicker {
  display: block; margin-bottom: 8px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent);
}
.side-group a small {
  display: block; margin-top: 3px;
  font-size: 12px; font-weight: 500; line-height: 1.35;
  color: var(--ink-3);
}
.docs-main { min-width: 0; }
.side-nav {
  display: flex; flex-direction: column; gap: 18px;
  padding: 2px 0;
}
.side-group .gh {
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-3); display: block; margin: 0 0 8px; padding-left: 16px;
}
.side-group a {
  display: block; padding: 9px 16px; border-radius: 14px;
  color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.side-group a strong { display: block; color: inherit; font-size: 14px; line-height: 1.25; }
.side-group a code {
  font-family: var(--font-mono); font-size: 11px;
  background: transparent; color: inherit; padding: 0;
}
.side-group a:hover { color: var(--ink); background: var(--bg-soft); }
.side-group a.active { color: var(--accent); background: var(--accent-soft); }
.side-group a.active small { color: color-mix(in oklch, var(--accent) 72%, var(--ink-3)); }
.docs-side-links {
  display: grid; gap: 8px; margin-top: 2px;
}
.docs-side-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  color: var(--ink-2); text-decoration: none; font-size: 13.5px; font-weight: 600;
}
.docs-side-links a::after { content: "->"; color: var(--ink-3); font-size: 12px; }
.docs-side-links a:hover { color: var(--accent); }
.docs-hero {
  padding: 8px 0 36px; margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.docs-kicker {
  display: inline-flex; align-items: center; margin-bottom: 12px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--accent);
}
.docs-kicker::before { content: "$ "; color: var(--ink-3); }
.docs-main h1 { font-size: 42px; line-height: 1.12; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 14px; max-width: 760px; }
.docs-main .lede { font-size: 17px; color: var(--ink-2); line-height: 1.65; margin: 0 0 26px; max-width: 760px; text-wrap: pretty; }
.docs-path-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px; margin-top: 24px;
}
.docs-path-grid a {
  display: flex; flex-direction: column; gap: 7px;
  min-height: 148px; padding: 17px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--ink-2); text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.docs-path-grid a:hover {
  border-color: color-mix(in oklch, var(--accent) 38%, var(--line));
  background: var(--card); transform: translateY(-1px); text-decoration: none;
}
.docs-path-grid strong {
  color: var(--ink); font-size: 14.5px; line-height: 1.25;
}
.docs-path-grid span {
  font-size: 13px; line-height: 1.55;
}
.docs-main h2 {
  font-size: 25px; letter-spacing: -0.012em; font-weight: 600;
  margin: 56px 0 8px; padding-top: 28px; border-top: 1px solid var(--line);
  scroll-margin-top: 88px;
}
.docs-main h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.docs-main h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin: 28px 0 6px; }
.docs-main p { font-size: 15.5px; line-height: 1.75; color: var(--ink-2); margin: 12px 0; text-wrap: pretty; }
.docs-main a { color: var(--accent); text-decoration: none; }
.docs-main a:hover { text-decoration: underline; }
.docs-main ul { margin: 12px 0 12px 22px; color: var(--ink-2); font-size: 15.5px; line-height: 1.85; }
.docs-main p code, .docs-main li code, .docs-main td code {
  font-family: var(--font-mono); font-size: 13px;
  background: var(--bg-soft); border-radius: 6px;
  padding: 2.5px 8px; color: var(--ink);
}
.codeblock {
  position: relative; margin: 18px 0; padding: 20px 24px;
  background: var(--term-bg); border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-size: 13.5px; line-height: 1.85;
  color: oklch(0.9 0.004 260); overflow-x: auto; white-space: pre;
}
.codeblock--copy { padding-top: 52px; }
.codeblock .c { color: oklch(0.58 0.008 260); }
.codeblock .a { color: var(--acc-1); }
.codeblock button {
  position: absolute; top: 12px; right: 12px;
  font-family: var(--font-sans); font-size: 12.5px; font-weight: 600;
  background: oklch(0.34 0.008 260); color: oklch(0.85 0.005 260);
  border: none; border-radius: 7px; padding: 6px 12px; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.codeblock button:hover { background: oklch(0.4 0.01 260); color: #fff; }
.codeblock button.copied { background: oklch(0.55 0.14 155); color: #fff; }
.callout {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--accent-soft);
  border-radius: var(--radius-sm); padding: 18px 22px; margin: 22px 0;
  font-size: 14.5px; line-height: 1.65; color: var(--ink-2);
}
.callout .ico {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 13px; font-weight: 700;
}
.tui-panel {
  margin: 18px 0 20px; padding: 20px 22px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-soft);
}
.tui-panel .desktop-feature-list { margin-top: 10px !important; }
.doc-choice-grid,
.doc-note-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px; margin: 18px 0;
}
.doc-choice-grid > div,
.doc-note-grid > div {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  padding: 17px 18px;
}
.doc-choice-grid strong,
.doc-note-grid strong {
  display: block; color: var(--ink);
  font-size: 14px; line-height: 1.3; margin-bottom: 5px;
}
.doc-choice-grid p {
  margin: 0; font-size: 13.5px; line-height: 1.6;
}
.doc-note-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.doc-note-grid > div {
  display: flex; flex-direction: column; gap: 4px;
}
.doc-note-grid span { font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.desktop-panel,
.web-panel {
  margin: 20px 0 8px; padding: 24px;
  border: 1px solid color-mix(in oklch, var(--accent) 18%, var(--line));
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, color-mix(in oklch, var(--accent) 9%, var(--bg)), var(--bg) 72%);
}
.desktop-panel-head { max-width: 680px; }
.desktop-kicker {
  display: inline-flex; align-items: center; margin-bottom: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent);
}
.docs-main .desktop-panel h3,
.docs-main .web-panel h3 {
  margin: 0 0 8px; font-size: 21px; line-height: 1.25;
  letter-spacing: -0.012em; color: var(--ink);
}
.docs-main .desktop-panel p { margin: 0; max-width: 720px; }
.desktop-downloads {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px; margin-top: 20px;
}
.desktop-downloads--secondary { margin-top: 10px; }
.desktop-downloads--secondary .desktop-download {
  box-shadow: none; background: var(--bg-soft);
}
.desktop-download {
  display: flex; flex-direction: column; gap: 4px;
  min-width: 0; padding: 15px 16px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none;
  box-shadow: var(--shadow-1);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}
.desktop-download:hover {
  border-color: color-mix(in oklch, var(--accent) 42%, var(--line));
  box-shadow: var(--shadow-2); transform: translateY(-1px); text-decoration: none;
}
.desktop-download strong { font-size: 15px; font-weight: 700; color: var(--ink); }
.desktop-download span { font-size: 13px; color: var(--ink-2); line-height: 1.35; }
.desktop-feature-list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 16px; margin: 18px 0 0 !important; padding: 0; list-style: none;
}
.desktop-feature-list li {
  position: relative; padding-left: 16px;
  font-size: 13.5px; line-height: 1.55; color: var(--ink-2);
}
.desktop-feature-list li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.doc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.doc-card {
  position: relative; display: block; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 22px 24px; transition: border-color 0.25s;
}
.doc-card:hover { border-color: color-mix(in oklch, var(--accent) 38%, var(--line)); text-decoration: none; }
.doc-card h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 6px; }
.doc-card p { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); margin: 0; }


footer { background: var(--bg); border-top: 1px solid var(--line); margin-top: 0; }
.foot-inner {
  max-width: 1180px; margin: 0 auto; padding: 36px 40px 28px;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  font-size: 14px; color: var(--ink-3);
}
.foot-sub {
  max-width: 1180px; margin: 0 auto; padding: 16px 40px 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-3);
}
.foot-sub .ver { font-family: var(--font-mono); font-size: 12px; }
.foot-inner .brand {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  color: var(--ink);
}
.foot-inner .brand img { width: 90px; height: auto; border-radius: 0; display: block; }
.foot-inner .brand span { display: none; }
.foot-links { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.foot-links a {
  color: var(--ink-2); text-decoration: none; font-weight: 500;
  padding: 7px 11px; border-radius: 7px;
  transition: color 0.2s, background 0.2s;
}
.foot-links a:hover { color: var(--ink); background: var(--bg-soft); }

@media (max-width: 900px) {
  .wrap { padding: 0 24px; }
  .nav-github { display: none; }
  .lang-switch { margin-left: auto; }
  .docs-layout { grid-template-columns: 1fr; gap: 36px; padding: 110px 24px 80px; }
  .docs-side { position: static; max-height: none; overflow: visible; padding-right: 0; }
  .docs-path-grid { grid-template-columns: 1fr 1fr; }
  .doc-choice-grid, .doc-note-grid { grid-template-columns: 1fr; }
  .desktop-downloads, .desktop-feature-list { grid-template-columns: 1fr; }
  .doc-cards { grid-template-columns: 1fr; }
  .divider { display: none; }
  .divider + section { padding-top: 100px; }
  .feat-grid, .os-grid, .steps { grid-template-columns: 1fr; }
  .surf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat, .feat:nth-child(1), .feat:nth-child(2), .feat:nth-child(3),
  .feat:nth-child(4), .feat:nth-child(5), .feat:nth-child(6) { grid-column: auto; }
  .sec-head.split { grid-template-columns: 1fr; align-items: start; }
  .steps { gap: 28px; }
  .step { padding: 0; }
  .step + .step { padding-left: 0; border-left: none; border-top: 1px solid var(--line); padding-top: 28px; }
  .dl-tab { padding: 9px 14px; font-size: 13px; }
  .dl-help { grid-template-columns: 1fr; }
  .dl-help code { grid-column: auto; white-space: normal; overflow-wrap: anywhere; }
  .dl-help button { justify-self: start; }
  .hero { padding-top: 130px; }
  section { padding-top: 100px; }
}

@media (max-width: 640px) {
  .nav-inner { padding: 0 16px; gap: 10px; }
  .nav-sign-in { display: none; }
  .nav .brand img { width: 64px; }
  .nav .brand span { display: none; }
  .theme-switch button { padding: 6px 9px; }
  .docs-path-grid { grid-template-columns: 1fr; }
  .surf-grid { grid-template-columns: 1fr; }
  .docs-main h1 { font-size: 34px; }
  .dl-tabs {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%; max-width: 360px; border-radius: var(--radius-sm);
  }
  .release-channel-switch { width: 100%; max-width: 360px; }
  .release-channel-switch button { min-width: 0; padding-inline: 12px; }
  .release-upgrade-command {
    width: 100%; max-width: 520px;
    white-space: normal;
    display: flex;
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .release-upgrade-command [data-release-command="cli"] {
    min-width: 0;
    flex: 1 1 180px;
    overflow-wrap: anywhere;
  }
}


@media (max-width: 700px) {
  .hero-install {
    grid-template-columns: 1fr;
    border-radius: var(--radius-sm);
    margin-top: 40px;
  }
  .hero-install::before {
    display: none;
  }
  .install-option {
    padding: 28px;
    min-height: 0;
  }
  .install-option + .install-option {
    border-top: 1px solid var(--line);
  }
  .also-row {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
}

@media (max-width: 400px) {
  .nav .brand img { width: 28px; height: 28px; border-radius: 8px; }
}

@media (max-width: 360px) {
  .nav-inner { padding: 0 12px; gap: 6px; }
  .lang-switch button { padding: 6px 8px; }
  .theme-switch button { padding: 6px 7px; }
  .nav .btn { padding: 9px 14px; }
  .hero-install .install { gap: 6px; padding-inline: 6px; }
  .hero-install .install button { padding-inline: 10px; }
  .nav-install { display: none; }
  .nav-menu-toggle { width: 36px; height: 36px; }
}


.auth-nav { background: color-mix(in oklch, var(--bg) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--line); }
.auth-main { min-height: 100vh; display: grid; place-items: center; padding: 116px 24px 72px; }
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow-2); padding: 42px 40px 36px;
}
.auth-card.wide { max-width: 560px; }
.auth-head { text-align: center; }
.auth-head h1 { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.auth-head p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.auth-form { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.field { display: flex; flex-direction: column; gap: 7px; text-align: left; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 12px; font-weight: 400; color: var(--ink-3); }
.field input, .field textarea {
  width: 100%; font-family: var(--font-sans); font-size: 15px; color: var(--ink);
  background: var(--bg-soft); border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 12px 14px; resize: vertical;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus {
  outline: none; background: var(--card);
  border-color: color-mix(in oklch, var(--accent) 45%, var(--line));
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field input:disabled, .field textarea:disabled { opacity: 0.55; }
.auth-form .btn { width: 100%; margin-top: 4px; }
.btn[disabled], .btn.loading { opacity: 0.55; pointer-events: none; }
.auth-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.auth-small { font-size: 12.5px; color: var(--accent); text-decoration: none; font-weight: 500; }
.auth-small:hover { text-decoration: underline; }
.auth-msg { margin-top: 20px; font-size: 13.5px; line-height: 1.55; border-radius: var(--radius-sm); padding: 11px 14px; text-align: left; }
.auth-msg.error { background: color-mix(in oklch, oklch(0.63 0.21 25) 10%, var(--card)); color: oklch(0.5 0.19 25); }
.auth-msg.ok { background: color-mix(in oklch, oklch(0.65 0.16 155) 13%, var(--card)); color: oklch(0.44 0.12 155); }
:root[data-theme="dark"] .auth-msg.error { color: oklch(0.75 0.16 25); }
:root[data-theme="dark"] .auth-msg.ok { color: oklch(0.78 0.14 155); }
.auth-alt { margin-top: 24px; text-align: center; font-size: 14px; color: var(--ink-3); }
.auth-alt a { color: var(--accent); text-decoration: none; font-weight: 500; }
.auth-alt a:hover { text-decoration: underline; }

.acct-id { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 8px; }
.acct-handle { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.acct-email { margin-top: 3px; font-size: 13.5px; color: var(--ink-3); }
.acct-role {
  font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--accent); background: var(--accent-soft); padding: 5px 10px; border-radius: 6px;
}
.acct-h2 {
  font-size: 15px; font-weight: 600; color: var(--ink);
  margin: 30px 0 4px; padding-top: 24px; border-top: 1px solid var(--line);
}
.acct-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.acct-foot .btn { width: auto; margin: 0; }
.acct-danger { font-family: var(--font-sans); font-size: 14px; font-weight: 500; color: oklch(0.55 0.19 25); background: none; border: none; cursor: pointer; padding: 8px 4px; }
.acct-danger:hover { text-decoration: underline; }

.device-code { font-family: var(--font-mono); font-size: 20px; letter-spacing: 0.16em; text-transform: uppercase; text-align: center; }
.device-meta { margin-top: 16px; text-align: center; font-size: 13.5px; color: var(--ink-2); }
.device-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.device-actions .btn { width: 100%; margin: 0; }





body, .btn, .lang-switch button, .theme-switch button,
.nav-links a, .nav-github, .dl-tab,
.release-channel-switch button, .field input, .field textarea,
.brand span, .foot-inner, .foot-sub,
.hero h1, .hero .sub, .sec-head h2, .sec-head p,
.feat h3, .feat p, .surf h3, .surf p,
.step h3, .step p, .cta h2, .cta p,
.docs-main h1, .docs-main h2, .docs-main h3,
.docs-main p, .docs-main ul, .callout,
.auth-head h1, .auth-head p, .auth-form, .auth-alt,
.acct-handle, .acct-email, .acct-h2 {
  font-family: var(--font-sans);
}


.eyebrow, .kicker, .install-kicker, .feat .tag, .feat-chip,
.step .num, .docs-kicker, .os-card .meta, .acct-role,
.chan-badge, .side-group .gh {
  font-family: var(--font-sans);
  font-weight: 500;
}


.install, .term-bar .title, .term-body, .term-stat,
.codeblock, .chan-row code, .chan-row .v,
.docs-main p code, .docs-main li code, .docs-main td code,
.side-group a code, .dl-help code, .editor-note code,
.device-code, .surf code, .step code, .also code,
.install .ps1 {
  font-family: var(--font-mono);
}


.eyebrow        { font-size: 12px; letter-spacing: 0.02em; }
.kicker         { font-size: 13px; letter-spacing: 0.02em; }
.kicker::before { font-family: var(--font-mono); }
.docs-kicker    { font-size: 12px; letter-spacing: 0.06em; font-weight: 700; }
.docs-kicker::before { font-family: var(--font-mono); }
.feat .tag      { font-size: 11.5px; letter-spacing: 0.04em; }
.feat-chip      { font-size: 12px; letter-spacing: 0; }
.step .num      { font-size: 12.5px; font-weight: 500; }
.os-card .meta  { font-size: 11.5px; line-height: 1.7; }
.acct-role      { font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; }

@media (max-width: 640px) {
  .foot-inner .brand img {
    width: 72px;
  }
}



.surf-grid + .divider {
  margin-top: 48px;
  height: 16px;
}

.surf-grid + .divider + section {
  padding-top: 36px;
}


.surf-grid + section {
  padding-top: 48px;
}
