:root {
  color-scheme: light;
  --bg: #f6f7f4;
  --surface: #ffffff;
  --surface-2: #eef1ec;
  --ink: #14201d;
  --muted: #596863;
  --line: #dbe1dc;
  --brand: #0b766e;
  --brand-dark: #075b56;
  --accent: #d9ff78;
  --code: #0f1d1b;
  --code-ink: #e7f6ef;
  --warning: #a84a11;
  --shadow: 0 22px 60px rgba(24, 45, 39, .1);
  --radius: 18px;
  --max: 1180px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1211;
  --surface: #111b19;
  --surface-2: #172320;
  --ink: #edf5f1;
  --muted: #a3b2ad;
  --line: #293a35;
  --brand: #61d9cb;
  --brand-dark: #9bece3;
  --accent: #cfff63;
  --code: #07100e;
  --code-ink: #e7f6ef;
  --warning: #ff9b64;
  --shadow: 0 22px 60px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.68 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-dark); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .14em; }
img, svg { max-width: 100%; }
button, input { font: inherit; }
code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
code { font-size: .91em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 9px 13px; background: var(--ink); color: var(--bg); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.shell { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(16px); }
.nav-wrap { min-height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.025em; }
.brand svg { width: 32px; height: 32px; }
.brand-word { font-size: 19px; }
.beta { border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.primary-nav { display: flex; align-items: center; gap: 25px; margin-left: auto; }
.primary-nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 650; }
.primary-nav a[aria-current="page"], .primary-nav a:hover { color: var(--ink); }
.nav-actions { display: flex; gap: 8px; }
.icon-button { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; }
.menu-button { display: none; }

.eyebrow { margin: 0 0 14px; color: var(--brand-dark); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.035em; }
h1 { font-size: clamp(42px, 7vw, 76px); max-width: 14ch; }
h2 { font-size: clamp(30px, 4.2vw, 49px); }
h3 { font-size: 21px; }
p { margin: 1em 0; }
.lede { color: var(--muted); font-size: clamp(18px, 2.2vw, 22px); line-height: 1.55; max-width: 66ch; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hero { position: relative; overflow: hidden; padding: 105px 0 90px; border-bottom: 1px solid var(--line); }
.hero::after { content: ""; position: absolute; inset: -40% -20% auto 42%; height: 650px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 34%, transparent), transparent 68%); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.hero h1 span { color: var(--brand-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 750; box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.button.primary { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.button.accent { border-color: #a9d638; background: var(--accent); color: #14201d; }
.button:hover { transform: translateY(-1px); box-shadow: var(--shadow); text-decoration: none; }
.install-card { position: relative; border: 1px solid var(--line); border-radius: 22px; background: color-mix(in srgb, var(--surface) 93%, transparent); box-shadow: var(--shadow); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 7px; padding: 14px 17px; border-bottom: 1px solid var(--line); }
.window-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.window-bar span { margin-left: 7px; color: var(--muted); font-size: 12px; }
.install-card pre { margin: 0; border: 0; border-radius: 0; }
.proof-row { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.proof-row div { padding: 16px 18px; border-right: 1px solid var(--line); }
.proof-row div:last-child { border-right: 0; }
.proof-row strong { display: block; font-size: 14px; }
.proof-row span { color: var(--muted); font-size: 12px; }

.section { padding: 88px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 38px; }
.section-head p { max-width: 55ch; color: var(--muted); }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.card p { color: var(--muted); }
.card .number { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 34px; border-radius: 50%; background: var(--surface-2); color: var(--brand-dark); font-weight: 800; }
.status-strip { padding: 20px 0; border-block: 1px solid var(--line); background: var(--surface-2); }
.status-strip .shell { display: flex; align-items: center; gap: 18px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--warning); }
.status-strip p { margin: 0; color: var(--muted); }
.split-panel { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.split-panel > div { padding: clamp(30px, 5vw, 58px); }
.split-panel > div + div { border-left: 1px solid var(--line); background: var(--surface-2); }
.check-list { padding: 0; list-style: none; }
.check-list li { position: relative; margin: 12px 0; padding-left: 28px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-dark); font-weight: 900; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.tag { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); font-size: 13px; }

pre { position: relative; margin: 18px 0 26px; padding: 21px 52px 21px 21px; overflow: auto; border: 1px solid #263b36; border-radius: 14px; background: var(--code); color: var(--code-ink); font-size: 13px; line-height: 1.7; }
pre code { font-size: inherit; }
.copy-button { position: absolute; top: 10px; right: 10px; padding: 5px 9px; border: 1px solid #385149; border-radius: 7px; background: #132420; color: #cce7df; font-size: 11px; cursor: pointer; }
.copy-button:hover { background: #1d302b; }
.callout { margin: 24px 0; padding: 18px 20px; border-left: 4px solid var(--brand); border-radius: 0 12px 12px 0; background: var(--surface-2); }
.callout.warning { border-left-color: var(--warning); }
.callout strong { display: block; margin-bottom: 3px; }

.page-hero { padding: 76px 0 52px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(40px, 6vw, 64px); }
.docs-layout { display: grid; grid-template-columns: 245px minmax(0, 790px); gap: 58px; align-items: start; padding: 48px 0 90px; }
.docs-sidebar { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow: auto; }
.docs-sidebar strong { display: block; margin: 20px 0 7px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.docs-sidebar a { display: block; padding: 5px 9px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 14px; }
.docs-sidebar a:hover, .docs-sidebar a[aria-current="page"] { background: var(--surface-2); color: var(--ink); }
.doc { min-width: 0; }
.doc h1 { font-size: clamp(38px, 5vw, 58px); max-width: none; }
.doc h2 { margin-top: 56px; padding-top: 8px; font-size: 31px; }
.doc h3 { margin-top: 34px; font-size: 20px; }
.doc > p:first-of-type { color: var(--muted); font-size: 19px; }
.doc li { margin: 7px 0; }
.doc table { width: 100%; margin: 20px 0 32px; border-collapse: collapse; font-size: 14px; }
.doc th, .doc td { padding: 11px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc th { background: var(--surface-2); }
.doc details { margin: 14px 0; padding: 0 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.doc summary { padding: 15px 0; cursor: pointer; font-weight: 750; }
.doc .next-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 58px; }
.doc .next-links a { padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; }
.platform { display: flex; gap: 14px; align-items: start; }
.platform-mark { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 12px; background: var(--surface-2); color: var(--brand-dark); font-weight: 850; }
.table-wrap { overflow-x: auto; }

.search-dialog { width: min(660px, calc(100% - 30px)); padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.search-dialog::backdrop { background: rgba(4, 12, 10, .62); backdrop-filter: blur(3px); }
.search-head { display: flex; gap: 10px; padding: 14px; border-bottom: 1px solid var(--line); }
.search-head input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); }
.search-results { min-height: 120px; max-height: 55vh; overflow: auto; padding: 10px; }
.search-result { display: block; padding: 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.search-result:hover { background: var(--surface-2); }
.search-result strong { display: block; }
.search-result span { color: var(--muted); font-size: 13px; }

.site-footer { padding: 55px 0; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px; }
.footer-grid strong { display: block; margin-bottom: 10px; }
.footer-grid a { display: block; margin: 6px 0; color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 45px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

@media (max-width: 900px) {
  .primary-nav { display: none; position: absolute; top: 72px; left: 20px; right: 20px; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 10px; }
  .menu-button { display: inline-grid; }
  .nav-actions { margin-left: auto; }
  .hero-grid, .split-panel { grid-template-columns: 1fr; }
  .hero::after { inset: 30% -60% auto 20%; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .docs-layout { grid-template-columns: 1fr; gap: 22px; }
  .docs-sidebar { position: static; display: flex; gap: 5px; overflow-x: auto; padding-bottom: 10px; }
  .docs-sidebar strong { display: none; }
  .docs-sidebar a { flex: 0 0 auto; border: 1px solid var(--line); }
  .split-panel > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .shell { width: min(100% - 28px, var(--max)); }
  .hero { padding: 70px 0 62px; }
  .section { padding: 65px 0; }
  .section-head { display: block; }
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .proof-row { grid-template-columns: 1fr; }
  .proof-row div { border-right: 0; border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { display: block; }
  .brand-word { display: none; }
  .doc .next-links { grid-template-columns: 1fr; }
  .doc table { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  .site-header, .docs-sidebar, .site-footer, .copy-button { display: none !important; }
  .docs-layout { display: block; }
  body { background: white; color: black; }
  a { color: black; }
}
