:root {
  --ink: #17201d;
  --paper: #f6f8f4;
  --surface: #ffffff;
  --surface-soft: #edf1eb;
  --line: #dbe2da;
  --muted: #5d6862;
  --green: #1f6b55;
  --green-soft: #dbece4;
  --coral: #c44f3c;
  --blue: #356b9d;
  --gold: #a46f16;
  --shadow: 0 14px 34px rgba(23, 32, 29, .09);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

html[data-theme="dark"] {
  --ink: #f0f4ee;
  --paper: #17201d;
  --surface: #202b27;
  --surface-soft: #26342e;
  --line: #3b4942;
  --muted: #b6c1b9;
  --green: #77c4a4;
  --green-soft: #294a3c;
  --coral: #ef8876;
  --blue: #8bb7dc;
  --gold: #e2b55a;
  --shadow: 0 14px 34px rgba(0, 0, 0, .2);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { color: var(--surface); background: var(--green); }

.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 20;
  padding: 8px 12px; color: var(--surface); background: var(--ink);
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(12px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 70px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; font-weight: 700; }
.brand-mark {
  display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px;
  color: var(--surface); background: var(--ink); border-radius: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0;
}
.brand-name { white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: 14px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-link, .theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; min-height: 36px;
  padding: 0 9px; border: 1px solid transparent; color: var(--muted); background: transparent;
}
.lang-link:hover, .theme-toggle:hover { color: var(--ink); border-color: var(--line); }
.theme-toggle { cursor: pointer; }
.menu-toggle { display: none; min-height: 38px; padding: 0 10px; color: var(--ink); border: 1px solid var(--line); background: var(--surface); cursor: pointer; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--green); font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--coral); }
.status {
  display: inline-flex; align-items: center; width: fit-content; gap: 8px;
  padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); font-size: 12px; font-weight: 600;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

.hero { padding: 70px 0 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr); align-items: center; gap: 54px; }
.hero-copy { min-width: 0; }
.hero h1 { max-width: 650px; margin-top: 18px; font-size: 4.625rem; line-height: 1.04; letter-spacing: 0; }
.hero h1 .accent { color: var(--green); }
.hero-lede { max-width: 590px; margin-top: 24px; color: var(--muted); font-size: 20px; line-height: 1.65; }
.hero-note { max-width: 590px; margin-top: 16px; color: var(--muted); font-size: 13px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 0 17px; border: 1px solid transparent; border-radius: 6px;
  font-size: 14px; font-weight: 700; line-height: 1.2; cursor: pointer;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: var(--surface); background: var(--ink); }
.btn-primary:hover { background: var(--green); }
.btn-secondary { border-color: var(--line); background: var(--surface); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-small { min-height: 38px; padding: 0 12px; font-size: 13px; }
.hero-media { min-width: 0; }
.screenshot-frame { padding: 8px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.screenshot-frame img { width: 100%; aspect-ratio: 1591 / 895; object-fit: cover; object-position: center top; border: 1px solid var(--line); }
.media-caption { display: flex; justify-content: space-between; gap: 14px; padding: 11px 2px 0; color: var(--muted); font-family: var(--mono); font-size: 11px; }

.section { padding: 76px 0; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(180px, .35fr) minmax(0, 1fr); gap: 32px; margin-bottom: 36px; }
.section-head h2 { max-width: 760px; font-size: 3.25rem; line-height: 1.12; letter-spacing: 0; }
.section-head p { max-width: 650px; margin-top: 16px; color: var(--muted); }
.section-intro { max-width: 700px; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.feature { min-height: 210px; padding: 22px; border: 1px solid var(--line); background: var(--surface); }
.feature:nth-child(2) { border-top: 3px solid var(--coral); }
.feature:nth-child(3) { border-top: 3px solid var(--blue); }
.feature:nth-child(4) { border-top: 3px solid var(--green); }
.feature:nth-child(5) { border-top: 3px solid var(--gold); }
.feature:nth-child(6) { border-top: 3px solid var(--ink); }
.feature-index { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.feature h3 { margin-top: 34px; font-size: 20px; line-height: 1.25; }
.feature p { margin-top: 9px; color: var(--muted); font-size: 14px; line-height: 1.65; }

.split-section { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 54px; align-items: start; }
.split-section h2 { max-width: 520px; font-size: 3.125rem; line-height: 1.12; }
.split-section > div > p { max-width: 520px; margin-top: 18px; color: var(--muted); }
.facts { border-top: 1px solid var(--line); }
.fact { display: grid; grid-template-columns: minmax(120px, .4fr) minmax(0, 1fr); gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.fact dt { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.fact dd { min-width: 0; font-weight: 700; }
.fact dd span { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; font-weight: 400; }

.boundary { padding: 30px; border: 1px solid var(--line); background: var(--surface); }
.boundary-grid { display: grid; grid-template-columns: minmax(0, 1fr) 52px minmax(0, .72fr); gap: 20px; align-items: stretch; }
.boundary-zone { min-width: 0; padding: 22px; border: 1px solid var(--line); }
.boundary-zone.local { background: var(--green-soft); border-color: color-mix(in srgb, var(--green) 32%, var(--line)); }
.boundary-zone.remote { background: var(--surface-soft); }
.boundary-zone h3 { font-size: 15px; }
.boundary-zone p { margin-top: 10px; color: var(--muted); font-size: 13px; }
.boundary-items { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.boundary-items li { padding: 5px 8px; border: 1px solid var(--line); background: var(--surface); font-family: var(--mono); font-size: 11px; }
.boundary-arrow { display: grid; place-items: center; color: var(--coral); font-family: var(--mono); font-size: 24px; }
.disclaimer { margin-top: 14px; color: var(--muted); font-size: 12px; }

.workflow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.workflow-step { min-width: 0; padding: 22px 18px 24px 0; border-right: 1px solid var(--line); }
.workflow-step + .workflow-step { padding-left: 18px; }
.workflow-step:last-child { border-right: 0; }
.workflow-num { color: var(--coral); font-family: var(--mono); font-size: 12px; }
.workflow-step h3 { margin-top: 30px; font-size: 18px; }
.workflow-step p { margin-top: 7px; color: var(--muted); font-size: 13px; }

.proof-strip { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: var(--surface); }
.proof { min-width: 0; padding: 24px; border-right: 1px solid var(--line); }
.proof:last-child { border-right: 0; }
.proof strong { display: block; font-family: var(--mono); font-size: 28px; font-weight: 700; }
.proof span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }

.cta-band { padding: 70px 0; border-top: 1px solid var(--line); }
.cta-panel { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: 34px; background: var(--ink); color: var(--surface); }
.cta-panel h2 { max-width: 650px; font-size: 3.125rem; line-height: 1.1; }
.cta-panel p { max-width: 620px; margin-top: 12px; color: color-mix(in srgb, var(--surface) 72%, transparent); font-size: 14px; }
.cta-panel .btn-primary { color: var(--ink); background: var(--surface); white-space: nowrap; }
.cta-panel .btn-primary:hover { color: var(--surface); background: var(--green); }

.page-hero { padding: 66px 0 50px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 800px; margin-top: 16px; font-size: 4.375rem; line-height: 1.08; }
.page-hero p { max-width: 690px; margin-top: 18px; color: var(--muted); font-size: 18px; }
.prose { max-width: 850px; padding: 58px 0 84px; }
.prose section + section { margin-top: 42px; }
.prose h2 { margin-bottom: 12px; font-size: 24px; line-height: 1.25; }
.prose h3 { margin: 22px 0 7px; font-size: 17px; }
.prose p, .prose li { color: var(--muted); font-size: 15px; line-height: 1.8; }
.prose ul, .prose ol { padding-left: 22px; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 6px; }
.prose code { padding: 2px 5px; color: var(--ink); background: var(--surface-soft); font-family: var(--mono); font-size: .9em; }
.callout { margin: 22px 0; padding: 18px 20px; border-left: 3px solid var(--coral); background: var(--surface); }
.callout p { color: var(--ink); }

.install-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: 50px; padding: 58px 0 84px; }
.install-main h2 { margin-bottom: 14px; font-size: 28px; }
.install-main section + section { margin-top: 42px; }
.install-main p, .install-main li { color: var(--muted); font-size: 15px; line-height: 1.8; }
.install-main ol { padding-left: 22px; list-style: decimal; }
.install-main li + li { margin-top: 10px; }
.install-main strong { color: var(--ink); }
.command { overflow-x: auto; margin-top: 16px; padding: 16px; color: #edf7ee; background: #1d2924; font-family: var(--mono); font-size: 13px; white-space: pre; }
.install-aside { align-self: start; padding: 22px; border: 1px solid var(--line); background: var(--surface); }
.install-aside h2 { font-size: 19px; }
.install-aside p { margin-top: 10px; color: var(--muted); font-size: 14px; }
.install-aside .btn { width: 100%; margin-top: 18px; }
.placeholder { color: inherit; font-family: inherit; font-size: inherit; overflow-wrap: anywhere; }

.changelog-list { padding: 58px 0 84px; }
.release { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 36px; padding: 28px 0; border-top: 1px solid var(--line); }
.release:last-child { border-bottom: 1px solid var(--line); }
.release-meta { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.release h2 { font-size: 26px; }
.release p { max-width: 700px; margin-top: 8px; color: var(--muted); }
.release ul { margin-top: 18px; padding-left: 20px; list-style: disc; color: var(--muted); }
.release li + li { margin-top: 8px; }

.not-found { min-height: calc(100vh - 170px); display: grid; place-items: center; padding: 60px 0; }
.not-found-inner { max-width: 630px; }
.not-found h1 { margin-top: 16px; font-size: 6.25rem; line-height: 1; }
.not-found p { margin-top: 18px; color: var(--muted); font-size: 18px; }
.not-found .hero-actions { margin-top: 26px; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; padding: 42px 0 28px; }
.footer-brand p { max-width: 280px; margin-top: 12px; color: var(--muted); font-size: 13px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; font-size: 13px; }
.footer-col strong { margin-bottom: 5px; color: var(--muted); font-family: var(--mono); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 11px; }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
@media (max-width: 900px) {
  .hero-grid, .split-section, .install-layout { grid-template-columns: 1fr; gap: 34px; }
  .hero { padding-top: 48px; }
  .hero h1 { max-width: 680px; }
  .hero-media { max-width: 760px; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .boundary-grid { grid-template-columns: 1fr; gap: 12px; }
  .boundary-arrow { min-height: 28px; transform: rotate(90deg); }
  .workflow { grid-template-columns: repeat(2, 1fr); }
  .workflow-step:nth-child(2) { border-right: 0; }
  .workflow-step:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .workflow-step:nth-child(3) { padding-left: 0; }
  .footer-inner { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-col:last-child { grid-column: 2 / 4; }
}
@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1180px); }
  .header-inner { min-height: 62px; }
  .brand-name { font-size: 14px; }
  .site-nav { display: none; position: absolute; left: 14px; right: 14px; top: 61px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 10px; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-actions { margin-left: auto; }
  .lang-link, .theme-toggle { min-height: 34px; padding: 0 6px; font-size: 12px; }
  .hero { padding: 42px 0 50px; }
  .hero h1 { font-size: 3.625rem; }
  .hero-lede { font-size: 17px; }
  .hero-actions .btn { flex: 1 1 190px; }
  .media-caption { display: block; }
  .media-caption span + span { display: block; margin-top: 5px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 26px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { min-height: auto; }
  .feature h3 { margin-top: 24px; }
  .fact { grid-template-columns: 1fr; gap: 5px; }
  .boundary { padding: 14px; }
  .boundary-zone { padding: 16px; }
  .workflow { grid-template-columns: 1fr; }
  .workflow-step, .workflow-step + .workflow-step { padding: 18px 0; border-right: 0; }
  .workflow-step + .workflow-step { border-top: 1px solid var(--line); }
  .proof-strip { grid-template-columns: 1fr; }
  .proof { padding: 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .proof:last-child { border-bottom: 0; }
  .cta-band { padding: 50px 0; }
  .cta-panel { display: block; padding: 26px 20px; }
  .cta-panel .btn { width: 100%; margin-top: 24px; }
  .page-hero { padding: 46px 0 38px; }
  .page-hero h1 { font-size: 3.75rem; }
  .not-found h1 { font-size: 3rem; }
  .page-hero p { font-size: 16px; }
  .prose, .install-layout, .changelog-list { padding: 40px 0 58px; }
  .release { grid-template-columns: 1fr; gap: 8px; }
  .release h2 { font-size: 23px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .footer-col:last-child { grid-column: auto; }
  .footer-bottom { display: block; }
  .footer-bottom span + span { display: block; margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
