:root {
  --bg: #ffffff;
  --bg-panel: #f5f5f7;
  --bg-panel-2: #ebedf1;
  --border: #e2e4e8;
  --accent: #0b72ef;
  --accent-dark: #0657c4;
  --accent-soft: #eaf3fe;
  --on-accent: #ffffff;
  --text: #111214;
  --text-muted: #5d636d;
  --text-faint: #a5aab2;
  --success: #1e9a57;
  --warn: #b9800a;
  --error: #d23b2c;
  --frame-from: #ebedf1;
  --frame-to: #dfe2e8;
  --glow: rgba(255, 255, 255, 0.62);
  --clear: rgba(255, 255, 255, 0);
  --veil: rgba(255, 255, 255, 0.66);
  --veil-line: rgba(255, 255, 255, 0.85);
  --shadow-xl: 0 30px 80px rgba(17, 18, 20, 0.08), 0 2px 6px rgba(17, 18, 20, 0.03);
  --shadow-xs: 0 1px 2px rgba(17, 18, 20, 0.05);
  --shadow-paper: 0 1px 2px rgba(17, 18, 20, 0.05), 0 18px 40px rgba(17, 18, 20, 0.08);
  --shadow-tag: 0 1px 2px rgba(17, 18, 20, 0.06), 0 10px 24px rgba(17, 18, 20, 0.10);
  --shadow-cta: 0 10px 24px rgba(11, 114, 239, 0.22);
  --r-frame: 28px;
  --r-paper: 10px;
  --r-tag: 12px;
  --r-strip: 14px;
  --r-mark: 10px;
  --r-card: 22px;
  --r-panel: 40px;
  --r-pill: 999px;
  --r-circle: 50%;
  --font-display: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans", "Apple SD Gothic Neo", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans", "Apple SD Gothic Neo", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-display: 800;
  --size-body: 16px;
  --size-small: 14px;
  --size-label: 13px;
  --size-h1: clamp(34px, 2.4vw + 14px, 48px);
  --size-h2: clamp(28px, 3vw, 40px);
  --size-h3: 22px;
  --leading-body: 1.6;
  --leading-heading: 1.12;
  --tracking-heading: -0.02em;
  --container: 1240px;
  --reading: 800px;
  --gutter: 48px;
  --hero-gap: 64px;
  --section-space: 160px;
  --header-height: 88px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --speed-fast: 150ms;
  --speed-reveal: 550ms;
  --z: 1;
  --layer-header: 40;
  --layer-menu: 45;
  --layer-fab: 20;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-6);
}
html.nav-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: var(--accent-dark); text-underline-offset: 0.2em; }
a:hover { color: var(--accent-dark); }
button, a { -webkit-tap-highlight-color: var(--clear); }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  font-weight: var(--weight-display);
  letter-spacing: var(--tracking-heading);
  line-height: var(--leading-heading);
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: var(--size-h1); }
h2 { font-size: var(--size-h2); }
h3 { font-size: var(--size-h3); }
p { margin-top: 0; margin-bottom: var(--space-5); }
strong { font-weight: var(--weight-bold); }
em { font-style: normal; }
code, pre, kbd { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; }
pre {
  max-width: 100%;
  min-width: 0;
  margin: var(--space-5) 0;
  padding: var(--space-5);
  overflow-x: auto;
  background: var(--bg-panel);
  color: var(--text);
  border-radius: var(--r-paper);
  line-height: 1.8;
  -webkit-overflow-scrolling: touch;
}
pre code { overflow-wrap: normal; white-space: pre; }
fieldset { min-width: 0; }
.wrap {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  padding-inline: var(--gutter);
  margin-inline: auto;
}
.reading {
  width: 100%;
  max-width: calc(var(--reading) + var(--gutter) * 2);
  padding-inline: var(--gutter);
  margin-inline: auto;
}
.section { margin-top: var(--section-space); }
.section-space { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.section__intro { max-width: 42em; margin-bottom: var(--space-7); }
.section__intro h2 { margin-top: 0; }
.muted { color: var(--text-muted); }
.accent { color: var(--accent-dark); }
.keep { white-space: nowrap; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--gutter);
  z-index: var(--layer-menu);
  padding: var(--space-3) var(--space-4);
  background: var(--bg);
  color: var(--accent-dark);
  border-radius: var(--r-tag);
}
.skip-link:not(:focus) {
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}
.grid-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}
.grid-two > *, .grid-three > *, .hero__grid > *, .footer-grid > * { min-width: 0; }
.stack > * + * { margin-top: var(--space-5); }
.card {
  min-width: 0;
  padding: var(--space-6);
  border-radius: var(--r-card);
  background: var(--bg-panel);
  color: var(--text);
}
.card h3 { margin-top: 0; }
.card--raised {
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-paper);
}
.panel {
  margin-inline: var(--space-5);
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
  border-radius: var(--r-panel);
  background: var(--bg-panel);
  color: var(--text);
  overflow-x: clip;
}
.decorated, .hero { overflow-x: clip; }
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: var(--space-6);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  max-width: 100%;
  padding: 12px 28px;
  border: 0;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: var(--size-body);
  font-weight: var(--weight-bold);
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--speed-fast) ease;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-cta);
}
.btn--primary:hover, .btn--primary.is-hover {
  background: var(--accent-dark);
  color: var(--on-accent);
}
.btn--ghost { background: var(--bg-panel); color: var(--text); }
.btn--ghost:hover, .btn--ghost.is-hover { background: var(--bg-panel-2); color: var(--text); }
.btn--ghost svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--bg-panel-2);
  color: var(--text-muted);
  box-shadow: none;
  cursor: not-allowed;
}
.btn.is-focus { outline: 3px solid var(--accent-dark); outline-offset: 4px; }

#site-header { position: relative; z-index: var(--layer-header); }
.masthead {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  width: 100%;
  max-width: min(100%, calc(1280px + var(--gutter) * 2));
  min-height: var(--header-height);
  margin-inline: auto;
  padding-inline: var(--gutter);
  background: var(--bg);
  color: var(--text);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  text-decoration: none;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand__mark {
  display: block;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: var(--r-circle);
}
.brand__mark--placeholder {
  border-radius: var(--r-mark);
  background: linear-gradient(160deg, var(--bg-panel), var(--bg-panel-2));
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border);
}
.brand__name {
  font-size: 17px;
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  letter-spacing: -0.01em;
}
.topnav { min-width: 0; margin-left: auto; }
.topnav__list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}
.topnav__list a {
  display: block;
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
  font-size: 15px;
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
}
.topnav__list a:hover { color: var(--text); }
.topnav__list a[aria-current="page"] { color: var(--text); font-weight: var(--weight-bold); }
.header-tools {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}
.language-picker { position: relative; }
.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 8px 14px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--bg-panel);
  color: var(--text);
  font: var(--weight-medium) 14px/1.2 var(--font-body);
  white-space: nowrap;
}
.lang:hover { background: var(--bg-panel-2); color: var(--text); }
.lang__short { display: none; }
.language-menu {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  z-index: var(--layer-menu);
  width: 196px;
  padding: var(--space-2);
  margin: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--r-tag);
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-tag);
}
.language-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--r-paper);
  text-decoration: none;
  color: var(--text);
}
.language-menu a:hover, .language-menu a[aria-current] {
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: var(--space-2);
  border: 0;
  border-radius: var(--r-pill);
  background: var(--bg-panel);
  color: var(--text);
}
.menu-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}
.mobile-drawer {
  position: fixed;
  inset: var(--header-height) 0 0;
  z-index: var(--layer-menu);
  max-height: calc(100dvh - var(--header-height));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-4) var(--gutter) var(--space-7);
  background: var(--bg);
  color: var(--text);
}
.mobile-drawer ul { margin: 0; padding: 0; list-style: none; }
.mobile-drawer a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--r-paper);
  color: var(--text);
  text-decoration: none;
}
.mobile-drawer a:hover, .mobile-drawer a[aria-current] {
  background: var(--bg-panel);
  color: var(--accent-dark);
}
.mobile-drawer__label { margin: var(--space-5) var(--space-4) var(--space-2); color: var(--text-muted); font-size: var(--size-small); }

.hero { padding-top: var(--space-8); padding-bottom: 96px; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  gap: var(--hero-gap);
  align-items: center;
}
.hero__title {
  margin: var(--space-5) 0 0;
  font-family: var(--font-display);
  font-size: var(--size-h1);
  font-weight: var(--weight-display);
  line-height: var(--leading-heading);
  letter-spacing: -0.03em;
  color: var(--text);
}
.hero__title > span { display: block; }
.hero__key { color: var(--accent); }
.lede {
  max-width: 31em;
  margin: 28px 0 0;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--text-muted);
}
.lede strong { color: var(--text); font-weight: var(--weight-bold); }
.prose { min-width: 0; line-height: 1.85; }
.prose h2 { margin-top: var(--space-8); margin-bottom: var(--space-5); }
.prose h3 { margin-top: var(--space-7); }
.prose li + li { margin-top: var(--space-2); }
.prose a { overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose :is(div, section, article) { min-width: 0; max-width: 100%; }

.site-footer {
  margin-top: var(--section-space);
  padding-top: var(--space-8);
  padding-bottom: 104px;
  background: var(--bg-panel);
  color: var(--text);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.7fr 1.4fr 0.65fr;
  gap: var(--space-7);
}
.footer-brand p { max-width: 24em; margin-top: var(--space-5); color: var(--text-muted); }
.footer-title { margin: 0 0 var(--space-4); font-size: var(--size-body); font-weight: var(--weight-bold); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links a {
  display: block;
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
  color: var(--text-muted);
  font-size: var(--size-small);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.footer-links a:hover, .footer-links a[aria-current] { color: var(--accent-dark); }
.copyright { margin: var(--space-8) 0 0; font-size: var(--size-small); color: var(--text-muted); }
.reveal { opacity: 1; transform: none; }
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--speed-reveal) ease, transform var(--speed-reveal) ease;
}
.reveal-ready .reveal.shown { opacity: 1; transform: none; }

@media (max-width: 1335px) {
  :root { --z: 0.9; }
  .topnav__list { gap: 22px; }
}
@media (max-width: 1200px) {
  .topnav { display: none; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
}
@media (min-width: 1201px) {
  .mobile-drawer { display: none !important; }
  html.nav-open { overflow: auto; }
}
@media (max-width: 1200px) {
  :root { --z: 0.8; --hero-gap: 48px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1060px) {
  :root { --z: 1; }
  .hero { padding-top: 40px; padding-bottom: 80px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
}
@media (max-width: 768px) {
  :root { --size-h1: clamp(24px, 4vw, 30px); }
  .hero__title { letter-spacing: var(--tracking-heading); }
  .grid-three { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 740px) {
  :root { --z: 0.52; --gutter: 20px; }
  .btn { min-height: 52px; padding: 12px 22px; font-size: 15px; }
  .lede { font-size: 15.5px; }
}
@media (max-width: 640px) {
  .grid-two, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .panel { margin-inline: var(--space-4); border-radius: var(--r-frame); }
  .card { padding: var(--space-5); }
  .brand__name { font-size: 14px; }
  .brand { gap: var(--space-2); }
  .masthead { gap: var(--space-2); }
  .lang__full { display: none; }
  .lang__short { display: inline; }
  .lang { padding-inline: var(--space-3); }
  .tilt, [class*="tilt--"] { transform: none; rotate: none; }
  .footer-grid { gap: var(--space-6); }
}
@media (max-width: 380px) {
  :root { --z: 0.44; }
  .brand__name { font-size: 13px; }
  .brand__mark { width: 30px; height: 30px; }
  .header-tools { gap: var(--space-1); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-ready .reveal { opacity: 1; transform: none; }
}