:root {
  --bg: #FFFFFF;
  --bg-fade: rgba(255,255,255,0);
  --bg-panel: #F6F6F9;
  --bg-panel-2: #EEEDFB;
  --border: #E3E3EA;
  --border-strong: #CDCDD8;
  --chrome-dot: #D4D4DD;
  --accent: #3D3BE0;
  --accent-dark: #2A28B0;
  --accent-2: #0E9F9A;
  --accent-2-soft: #E2F4F3;
  --accent-2-ink: #08716D;
  --text: #111114;
  --text-muted: #5D5E6B;
  --text-faint: #9091A0;
  --on-accent: #FFFFFF;
  --on-accent-soft: rgba(255,255,255,.72);
  --success: #1F8A5B;
  --warn: #B26A12;
  --error: #C93636;
  --warn-ink: #85500D;
  --veil: rgba(17,17,20,.24);
  --font-display: "Inter","Noto Sans SC",-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;
  --font-body: "Inter","Noto Sans SC",-apple-system,"PingFang SC","Microsoft YaHei","Segoe UI",sans-serif;
  --font-mono: "JetBrains Mono",ui-monospace,"SFMono-Regular",Menlo,Consolas,monospace;
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 10px;
  --r-round: 50%;
  --stroke: 1.6px;
  --shadow-float: 0 24px 44px -20px rgba(17,17,20,.24),0 6px 14px -6px rgba(17,17,20,.10);
  --head-h: 72px;
  --peek: 56px;
  --gutter: 48px;
  --wrap-width: 1376px;
  --reading-width: 860px;
  --time-fast: .15s;
  --time-reveal: .45s;
  --section-space: 96px;
  --heading-tracking: -.02em;
  --size-h1: clamp(34px,calc(2.2vw + 16px),48px);
  --size-h2: clamp(26px,calc(1.2vw + 14px),36px);
  --size-h3: 22px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
html.nav-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
img, svg, video { max-width: 100%; }
img { display: block; height: auto; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, input, select, textarea { max-width: 100%; }
button { color: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: var(--heading-tracking);
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: var(--size-h1); line-height: 1.14; font-weight: 800; }
h2 { font-size: var(--size-h2); line-height: 1.25; font-weight: 800; }
h3 { font-size: var(--size-h3); line-height: 1.4; font-weight: 700; }
ul, ol { padding-left: 1.5em; }
li + li { margin-top: .35em; }
code, pre, kbd { font-family: var(--font-mono); }
code { font-size: .9em; overflow-wrap: anywhere; }
pre {
  margin: 24px 0;
  padding: 20px;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  background: var(--bg-panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 14px;
  line-height: 1.8;
  tab-size: 2;
}
pre code { font-size: inherit; overflow-wrap: normal; white-space: pre; word-break: normal; }
button:focus-visible, a:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
::selection { background: var(--bg-panel-2); color: var(--text); }
.wrap {
  width: 100%;
  max-width: var(--wrap-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.reading { max-width: calc(var(--reading-width) + var(--gutter) * 2); }
.section { padding-top: var(--section-space); padding-bottom: var(--section-space); }
.section--panel { background: var(--bg-panel); color: var(--text); }
.section-heading { max-width: 760px; margin-bottom: 40px; }
.section-heading p { margin-top: 16px; color: var(--text-muted); }
.grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.grid > *, .hero__grid > *, .footer-grid > *, .feature-browser > * { min-width: 0; }
.grid--three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.stack > * + * { margin-top: 20px; }
.flow > * + * { margin-top: 16px; }
.nowrap { white-space: nowrap; }
.muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); }
.eyebrow { margin-bottom: 12px; color: var(--text-muted); font-size: 13px; font-weight: 600; }
.text-link { font-weight: 600; }
.ico {
  width: 18px; height: 18px; flex-shrink: 0;
  fill: none; stroke: currentColor;
  stroke-linecap: round; stroke-linejoin: round;
}
.ico path, .ico circle, .ico rect, .ico line, .ico polyline {
  stroke-width: var(--stroke); vector-effect: non-scaling-stroke;
}
.ico .dotfill { fill: currentColor; stroke: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 10px 22px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg); color: var(--text);
  font-family: var(--font-body);
  font-size: 15px; font-weight: 600; letter-spacing: .005em;
  text-align: center; line-height: 1.6;
  transition: background-color var(--time-fast) ease,border-color var(--time-fast) ease;
}
.btn:hover { text-decoration: none; border-color: var(--text); }
.btn--primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn--primary:hover, .btn--primary.is-hover { background: var(--accent-dark); color: var(--on-accent); border-color: var(--accent-dark); }
.btn--ghost { background: var(--bg); color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover, .btn--ghost.is-hover { border-color: var(--text); }
.btn:active, .btn.is-active { background: var(--bg-panel-2); color: var(--text); border-color: var(--accent); }
.btn--primary:active, .btn--primary.is-active { background: var(--accent-dark); color: var(--on-accent); }
.btn:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; background: var(--bg-panel); color: var(--text-muted); border-color: var(--border); }
.btn.is-focus { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn--small { min-height: 40px; padding: 7px 16px; font-size: 14px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.panel, .card {
  padding: 28px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  min-width: 0;
}
.card p, .panel p { color: var(--text-muted); }
.card h3 + p, .panel h3 + p { margin-top: 12px; }
.prose { min-width: 0; overflow-wrap: break-word; }
.prose > * + * { margin-top: 20px; }
.prose h2 { margin-top: 56px; }
.prose h3 { margin-top: 32px; }
.prose p, .prose li { line-height: 1.85; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose :not(pre) > code { background: var(--bg-panel); color: var(--text); padding: 2px 5px; border-radius: var(--r-xs); }
.prose img { margin-inline: auto; }
.reveal { opacity: 1; transform: none; }
html.reveal-ready .reveal:not(.shown) { opacity: 0; transform: translateY(12px); }
.reveal { transition: opacity var(--time-reveal) ease,transform var(--time-reveal) ease; }
.reveal.shown { opacity: 1; transform: none; }
.site-head, #site-header {
  position: relative; z-index: 50;
  background: var(--bg); color: var(--text);
  border-bottom: 1px solid var(--border);
}
.head-wrap {
  display: flex; align-items: center; gap: 28px;
  min-height: var(--head-h);
  width: 100%;
  max-width: min(100%,calc(1280px + var(--gutter) * 2));
  padding-inline: var(--gutter);
  margin-inline: auto;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0;
  color: var(--text); font-family: var(--font-display);
  font-weight: 800; font-size: 18px; letter-spacing: -.01em;
}
.brand:hover { text-decoration: none; }
.brand__mark { width: 32px; height: 32px; flex-shrink: 0; }
.tabs { margin-left: auto; align-self: stretch; min-width: 0; }
.tabs ul {
  display: flex; align-items: center; list-style: none; margin: 0; padding: 0;
  height: 100%; gap: 2px;
}
.tabs li { margin: 0; height: 100%; }
.tabs a {
  position: relative; display: flex; align-items: center; height: 100%;
  padding: 0 16px; min-height: 44px;
  font-size: 15px; font-weight: 500; color: var(--text-muted); white-space: nowrap;
}
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a[aria-current="page"] { color: var(--text); font-weight: 600; }
.tabs a[aria-current="page"]::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px;
  height: 2px; background: var(--accent); border-radius: var(--r-xs) var(--r-xs) 0 0;
}
.head-tools { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.head-sep { width: 1px; height: 20px; background: var(--border); flex-shrink: 0; }
.language-control { position: relative; }
.lang {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--bg); color: var(--text); font-size: 14px; font-weight: 500;
  white-space: nowrap;
}
.lang .ico { width: 16px; height: 16px; }
.lang__caret { color: var(--text-muted); font-size: 11px; }
.lang__short { display: none; }
.language-menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 188px;
  padding: 6px; margin: 0; list-style: none;
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--bg); color: var(--text);
}
.language-menu li { margin: 0; }
.language-menu a {
  display: flex; align-items: center; min-height: 44px; padding: 8px 12px;
  color: var(--text); border-radius: var(--r-xs);
}
.language-menu a:hover, .language-menu a[aria-current="true"] { background: var(--bg-panel); color: var(--text); text-decoration: none; }
.menu-toggle {
  display: none; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--bg); color: var(--text);
}
.menu-toggle .ico { width: 22px; height: 22px; }
.mobile-drawer {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 3;
  padding: 16px var(--gutter) 24px;
  max-height: calc(100dvh - var(--head-h)); overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-drawer ul { list-style: none; padding: 0; margin: 0; }
.mobile-drawer li { margin: 0; }
.mobile-drawer a {
  display: flex; align-items: center; width: 100%; min-height: 48px; padding: 12px;
  color: var(--text); border-bottom: 1px solid var(--border);
}
.mobile-drawer a[aria-current] { font-weight: 600; }
.mobile-drawer a:hover { background: var(--bg-panel); color: var(--text); text-decoration: none; }
.mobile-drawer__label { margin: 24px 12px 8px; color: var(--text-muted); font-size: 13px; }
.nav-veil {
  position: fixed; inset: var(--head-h) 0 0; z-index: 1;
  width: 100%; border: 0; padding: 0; background: var(--veil); color: var(--text);
}
.site-footer, #site-footer {
  background: var(--bg-panel); color: var(--text);
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid; grid-template-columns: 1.3fr .7fr 1.2fr .7fr; gap: 48px;
  padding-top: 64px; padding-bottom: 48px;
}
.footer-brand p { max-width: 30em; margin-top: 18px; color: var(--text-muted); font-size: 14px; }
.footer-title { margin-bottom: 16px; font-size: 14px; font-weight: 700; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: 0; }
.footer-links a { display: inline-block; padding-block: 6px; color: var(--text-muted); font-size: 14px; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  border-top: 1px solid var(--border); padding-top: 24px; padding-bottom: 88px;
  color: var(--text-muted); font-size: 13px;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-legal a { color: var(--text-muted); }
.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  padding: 12px 20px; background: var(--bg); color: var(--accent);
}
.skip-link:focus { top: 8px; }
.hero { overflow-x: clip; }
.decorated { position: relative; overflow-x: clip; }
@media (max-width: 1180px) {
  .head-wrap { gap: 16px; }
  .desktop-nav { display: none; }
  .head-tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .head-sep { display: none; }
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px; }
}
@media (max-width: 768px) {
  :root { --gutter: 20px; --section-space: 64px; --size-h1: clamp(24px,4vw,30px); --size-h2: 26px; --size-h3: 20px; }
  .grid, .grid--three { grid-template-columns: minmax(0,1fr); }
  .panel, .card { padding: 22px; }
  .section-heading { margin-bottom: 28px; }
}
@media (max-width: 640px) {
  .tilt, .float-card, [data-tilt] { transform: none !important; }
  .footer-grid { grid-template-columns: minmax(0,1fr); }
  .brand { font-size: 16px; gap: 8px; }
  .head-wrap { gap: 10px; }
  .head-tools { gap: 8px; margin-left: auto; }
  .lang__full { display: none; }
  .lang__short { display: inline; }
  .lang { padding-inline: 9px; }
  .language-menu { width: 176px; }
  .prose pre { padding: 16px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html.reveal-ready .reveal:not(.shown) { opacity: 1; transform: none; }
}