:root {
  --bg: #F7F8F4;
  --bg-panel: #EEEFEA;
  --bg-panel-2: #E3E4DE;
  --border: #D9DAD3;
  --border-strong: #C4C5BD;
  --accent: #6E1F1B;
  --accent-dark: #4C1411;
  --text: #151513;
  --text-muted: #5E605A;
  --success: #3F7A4E;
  --warn: #A8741A;
  --error: #B3261E;
  --card-mist: #8FA6D6;
  --card-olive: #B0A877;
  --mist-ink: #2C3955;
  --mist-paper: #E6ECF8;
  --mist-paper-soft: rgba(230, 236, 248, .66);
  --olive-ink: #45412B;
  --olive-paper: #EFECDA;
  --olive-paper-soft: rgba(239, 236, 218, .66);
  --paper: #FCFCFA;
  --editor-paper: #FFFFFF;
  --on-accent: #FFFFFF;
  --hairline: rgba(21, 21, 19, .07);
  --line-dark: rgba(21, 21, 19, .11);
  --line-light: rgba(255, 255, 255, .15);
  --line-light-strong: rgba(255, 255, 255, .28);
  --track-off-light: rgba(255, 255, 255, .18);
  --focus-ring: rgba(110, 31, 27, .35);
  --veil: rgba(21, 21, 19, .28);
  --transparent: transparent;
  --shadow-card: 0 1px 1px rgba(21, 21, 19, .03), 0 34px 60px -44px rgba(21, 21, 19, .28);
  --shadow-sheet: 0 1px 0 rgba(21, 21, 19, .04);
  --font-display: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --weight-body: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-display: 800;
  --size-body: 16px;
  --size-small: 14px;
  --size-note: 12.5px;
  --size-h1: clamp(34px, 2.2vw + 16px, 48px);
  --size-h2: clamp(24px, 1.4vw + 14px, 34px);
  --size-h3: 21px;
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 10px;
  --r-mark: 9px;
  --r-dot: 2px;
  --r-circle: 50%;
  --r-pill: 999px;
  --nav-h: 72px;
  --gutter: 40px;
  --reading-width: 820px;
  --content-width: 1200px;
  --wide-width: 1360px;
  --section-space: 120px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --duration-fast: .2s;
  --duration-slide: .28s;
  --duration-reveal: .6s;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.nav-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--size-body);
  font-weight: var(--weight-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
img, video { display: block; max-width: 100%; height: auto; }
svg { display: block; flex-shrink: 0; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: var(--weight-display); text-wrap: balance; }
h1 { font-size: var(--size-h1); line-height: 1.1; letter-spacing: -.02em; }
h2 { font-size: var(--size-h2); line-height: 1.2; letter-spacing: -.02em; }
h3 { font-size: var(--size-h3); line-height: 1.3; letter-spacing: -.02em; }
code, pre, kbd { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; font-size: .9em; }
pre {
  margin: 24px 0;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 24px;
  border-radius: var(--r-md);
  background: var(--bg-panel);
  color: var(--text);
  font-size: var(--size-small);
  line-height: 1.8;
  tab-size: 2;
}
pre code { overflow-wrap: normal; word-break: normal; white-space: pre; font-size: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-sm); }
::selection { background: var(--accent); color: var(--on-accent); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: 8px;
  left: var(--gutter);
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  z-index: 100;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--on-accent);
}
.skip-link:focus {
  width: auto;
  height: auto;
  padding: 12px 20px;
  clip-path: none;
}
.wrap, .reading, .wide {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-width: 0;
}
.wrap { max-width: calc(var(--content-width) + var(--gutter) * 2); }
.reading { max-width: calc(var(--reading-width) + var(--gutter) * 2); }
.wide { max-width: var(--wide-width); }
.section { padding-top: var(--section-space); padding-bottom: var(--section-space); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { margin-top: 16px; color: var(--text-muted); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid > *, .feature-browser > *, .footer-grid > *, .topbar__inner > *, .podium > * { min-width: 0; }
.stack > * + * { margin-top: 24px; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.keep { white-space: nowrap; }
.muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); font-size: var(--size-note); }
.text-link { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; text-decoration-thickness: 1px; }
.text-link:hover { color: var(--accent); }
.prose, .article-body { min-width: 0; }
.prose p, .article-body p { margin-block: 20px; }
.prose h2, .article-body h2 { margin-top: 56px; margin-bottom: 20px; scroll-margin-top: 24px; }
.prose h3, .article-body h3 { margin-top: 32px; margin-bottom: 16px; }
.prose ul, .article-body ul { list-style: disc; padding-left: 24px; margin-block: 20px; }
.prose ol, .article-body ol { padding-left: 24px; margin-block: 20px; }
.prose li + li, .article-body li + li { margin-top: 8px; }
.prose a:not(.btn), .article-body a:not(.btn) { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.prose :not(pre) > code, .article-body :not(pre) > code { background: var(--bg-panel); color: var(--text); padding: 2px 5px; border-radius: var(--r-dot); }
.panel, .card { border-radius: var(--r-lg); padding: 32px; background: var(--bg-panel); color: var(--text); }
.panel--canvas { background: var(--bg-panel-2); color: var(--text); border-radius: var(--r-xl); }
.panel--paper { background: var(--paper); color: var(--text); border: 1px solid var(--border); }
.card h3 + p { margin-top: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 10px 28px;
  border: 1px solid var(--transparent);
  border-radius: var(--r-pill);
  background: var(--transparent);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: var(--weight-semibold);
  letter-spacing: -.005em;
  line-height: 1.4;
  text-align: center;
  transition: background-color var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease), color var(--duration-fast) var(--ease);
}
.btn svg { width: 17px; height: 17px; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover, .btn--primary.is-hover { background: var(--accent-dark); color: var(--on-accent); }
.btn--ghost { border-color: var(--border-strong); color: var(--text); padding-inline: 26px 24px; }
.btn--ghost:hover, .btn--ghost.is-hover { border-color: var(--text); }
.btn--ghost svg { width: 15px; height: 15px; transition: transform var(--duration-fast) var(--ease); }
.btn--ghost:hover svg { transform: translateX(2px); }
.btn.is-focus { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--bg-panel-2); color: var(--text-muted); border-color: var(--border-strong); }
.topbar, #site-header { position: relative; z-index: 30; }
.topbar__inner {
  position: relative;
  max-width: min(100%, calc(1280px + var(--gutter) * 2));
  padding-inline: var(--gutter);
  height: var(--nav-h);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; flex-shrink: 0; }
.brand__mark { width: 32px; height: 32px; flex-shrink: 0; border-radius: var(--r-mark); }
.brand__name { font-family: var(--font-display); font-weight: var(--weight-display); font-size: 18px; letter-spacing: -.02em; color: var(--text); white-space: nowrap; }
.tabs { min-width: 0; }
.tabs ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 2px; height: var(--nav-h); }
.tabs li { height: 100%; }
.tabs a {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding-inline: 15px;
  font-size: 14.5px;
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  letter-spacing: -.005em;
  white-space: nowrap;
  transition: color var(--duration-fast) var(--ease);
}
.tabs a::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 14px;
  height: 2px;
  border-radius: var(--r-dot);
  background: var(--border-strong);
  color: var(--text);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--duration-slide) var(--ease);
}
.tabs a:hover { color: var(--text); }
.tabs a:hover::after { transform: scaleX(1); }
.tabs a[aria-current="page"] { color: var(--text); font-weight: var(--weight-semibold); anchor-name: --selected-nav; }
.tabs a[aria-current="page"]::after { background: var(--accent); color: var(--on-accent); transform: scaleX(1); }
.tabs__slider { display: none; }
@supports (position-anchor: --selected-nav) {
  .tabs:has(a[aria-current="page"]) .tabs__slider {
    display: block;
    position: absolute;
    position-anchor: --selected-nav;
    left: calc(anchor(left) + 15px);
    top: calc(anchor(bottom) - 16px);
    width: calc(anchor-size(width) - 30px);
    height: 2px;
    border-radius: var(--r-dot);
    background: var(--accent);
    color: var(--on-accent);
    pointer-events: none;
    transition: left var(--duration-slide) var(--ease), width var(--duration-slide) var(--ease);
  }
  .tabs:has(.tabs__slider) a[aria-current="page"]::after { transform: scaleX(0); }
}
.topbar__tools { justify-self: end; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.language-control { position: relative; }
.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--transparent);
  color: var(--text);
  font: var(--weight-medium) 13.5px/1 var(--font-body);
  white-space: nowrap;
  cursor: pointer;
}
.lang:hover { border-color: var(--border-strong); background: var(--bg-panel); color: var(--text); }
.lang svg { width: 15px; height: 15px; color: var(--text-muted); }
.lang__caret { font-size: 10px; color: var(--text-muted); }
.lang__short { display: none; }
.language-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  min-width: 184px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--paper);
  color: var(--text);
  box-shadow: var(--shadow-card);
  z-index: 5;
}
.language-menu a { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 10px 14px; border-radius: var(--r-sm); }
.language-menu a:hover, .language-menu a[aria-current] { background: var(--bg-panel); color: var(--text); }
.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-pill);
  background: var(--bg);
  color: var(--text);
}
.menu-toggle svg { width: 20px; height: 20px; }
.mobile-drawer { display: none; }
.nav-veil { position: fixed; inset: var(--nav-h) 0 0; z-index: 20; border: 0; background: var(--veil); color: var(--text); }
.preview-language { position: relative; }
.preview-language summary { list-style: none; }
.preview-language summary::-webkit-details-marker { display: none; }
.hero { padding-top: 40px; overflow-x: clip; }
.hero__copy {
  max-width: 980px;
  margin-inline: auto;
  padding-inline: 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: var(--size-note); line-height: 18px; font-weight: var(--weight-medium); letter-spacing: .04em; color: var(--text-muted); }
.eyebrow__dot { width: 6px; height: 6px; border-radius: var(--r-dot); background: var(--accent); color: var(--on-accent); flex-shrink: 0; }
.hero h1 { margin-top: 18px; font-size: clamp(28px, 2.2vw + 16px, 48px); line-height: 1.1; letter-spacing: -.02em; }
.h1__line { display: block; text-wrap: balance; }
.hero__lede { margin-top: 16px; max-width: 640px; font-size: 16px; line-height: 1.7; color: var(--text-muted); text-wrap: pretty; }
.hero__lede strong { color: var(--text); font-weight: var(--weight-semibold); }
.cta-row { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.platforms { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.platform {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  line-height: 20px;
  transition: color var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease), background-color var(--duration-fast) var(--ease);
}
.platform svg { width: 15px; height: 15px; color: var(--text); }
.platform:hover { color: var(--text); border-color: var(--border-strong); background: var(--bg-panel); }
.site-footer { margin-top: 80px; padding-top: 64px; padding-bottom: 100px; border-top: 1px solid var(--border); background: var(--bg-panel); color: var(--text); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.4fr; gap: 56px; }
.footer-brand p { max-width: 320px; margin-top: 20px; color: var(--text-muted); font-size: var(--size-small); }
.footer-title { font-family: var(--font-mono); font-size: var(--size-note); font-weight: var(--weight-medium); color: var(--text-muted); margin-bottom: 18px; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; font-size: var(--size-small); }
.footer-links a { display: inline-block; padding-block: 4px; }
.footer-links a:hover, .footer-languages a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.footer-languages { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 40px; font-size: var(--size-small); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: var(--size-note); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 20px; }
.reveal { opacity: 1; transform: none; }
html.reveal-ready .reveal:not(.shown) { opacity: 0; transform: translateY(16px); }
html.reveal-ready .reveal { transition: opacity var(--duration-reveal) var(--ease), transform var(--duration-reveal) var(--ease); }
html.reveal-ready .reveal.shown { opacity: 1; transform: none; }
.decoration-host, [data-hero-visual] { overflow-x: clip; }
@media (max-width: 1100px) {
  .topbar__inner { display: flex; gap: 20px; }
  .topbar__inner > .tabs { display: none; }
  .topbar__tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .mobile-drawer:not([hidden]) {
    display: block;
    position: absolute;
    top: var(--nav-h);
    inset-inline: 0;
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px var(--gutter) 28px;
    background: var(--bg);
    color: var(--text);
    border-bottom: 1px solid var(--border);
  }
  .mobile-drawer a { display: flex; align-items: center; width: 100%; min-height: 48px; padding: 12px 16px; border-radius: var(--r-sm); }
  .mobile-drawer a:hover, .mobile-drawer a[aria-current] { background: var(--bg-panel); color: var(--text); }
  .mobile-drawer a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; }
  .mobile-drawer__languages { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 16px; }
  .mobile-drawer__label { padding: 8px 16px; color: var(--text-muted); font-size: var(--size-note); }
  .preview-topbar .topbar__inner { height: auto; min-height: var(--nav-h); flex-wrap: wrap; padding-top: 14px; }
  .preview-topbar .topbar__inner > .tabs { display: block; order: 3; width: 100%; overflow-x: auto; }
  .preview-topbar .tabs ul { height: 48px; width: max-content; }
  .preview-topbar .tabs a::after { bottom: 6px; }
}
@media (max-width: 900px) {
  :root { --gutter: 24px; --section-space: 72px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding-top: 32px; }
  .hero__copy { padding-inline: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  h1, .hero h1 { font-size: 28px; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; --section-space: 56px; }
  .grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-brand { grid-column: auto; }
  .panel, .card { padding: 24px; }
  .hero__lede { font-size: 15px; }
  .btn { min-height: 48px; padding-inline: 22px; }
  .brand__name { font-size: 16px; }
  .brand { gap: 8px; }
  .topbar__inner { gap: 8px; }
  .lang { min-height: 34px; gap: 6px; padding-inline: 10px; }
  .lang__full { display: none; }
  .lang__short { display: inline; }
  .tilt, [data-tilt] { transform: none !important; }
  pre { padding: 18px; font-size: var(--size-note); }
  .footer-links { gap: 8px 16px; }
  .site-footer { padding-top: 48px; }
  .platforms { flex-direction: row; flex-wrap: wrap; }
}
@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; }
}