:root {
  --bg: #ffffff;
  --bg-panel: #f7f6fb;
  --bg-panel-2: #efedf7;
  --border: #e6e4ee;
  --border-strong: #d3d0e2;
  --accent: #6022d6;
  --accent-dark: #3f1397;
  --accent-line: rgba(96,34,214,.32);
  --accent-soft: rgba(96,34,214,.07);
  --on-accent: #ffffff;
  --text: #14112b;
  --text-muted: #556080;
  --text-faint: #8b91aa;
  --success: #12946b;
  --success-ink: #086348;
  --warn: #c7790a;
  --warn-ink: #805000;
  --error: #d6334a;
  --error-ink: #ac2035;
  --rb-apricot: #ffb38a;
  --rb-rose: #f2589c;
  --rb-violet: #6022d6;
  --rb-ice: #9fd8ff;
  --rb-white: #ffffff;
  --rb-apricot-halo: rgba(255,179,138,.32);
  --rb-ice-halo: rgba(159,216,255,.45);
  --rb-violet-halo: rgba(96,34,214,.16);
  --field-apricot: rgba(255,179,138,.20);
  --field-rose: rgba(242,88,156,.11);
  --field-violet: rgba(96,34,214,.07);
  --field-ice: rgba(159,216,255,.20);
  --mask-solid: #000000;
  --clear: transparent;
  --veil: rgba(20,17,43,.22);
  --font-display: "Inter","Noto Sans SC","PingFang SC","Hiragino Sans","Apple SD Gothic Neo","Microsoft YaHei",system-ui,sans-serif;
  --font-body: "Inter","Noto Sans SC","PingFang SC","Hiragino Sans","Apple SD Gothic Neo","Microsoft YaHei",system-ui,sans-serif;
  --font-mono: "JetBrains Mono",ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  --r-card: 8px;
  --r-btn: 6px;
  --r-pill: 999px;
  --r-shot: 8px;
  --r-code: 4px;
  --r-mark: 7px;
  --r-dot: 50%;
  --shadow-soft: 0 1px 2px rgba(42,30,92,.05);
  --shadow-card: 0 1px 2px rgba(42,30,92,.06),0 12px 32px rgba(42,30,92,.06);
  --shadow-lift: 0 2px 4px rgba(42,30,92,.07),0 18px 40px rgba(42,30,92,.09);
  --shadow-btn: 0 1px 2px rgba(63,19,151,.22),0 8px 18px rgba(96,34,214,.22);
  --ease: cubic-bezier(.4,0,.2,1);
  --speed: .2s;
  --gutter: 48px;
  --wrap: 1240px;
  --reading: 820px;
  --header-width: 1280px;
  --nav-h: 64px;
  --hero-h: 752px;
  --section-space: 80px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
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;
}
main, section, article, aside, nav, div, figure { min-width: 0; }
[hidden] { display: none !important; }
a { color: var(--accent-dark); text-underline-offset: .2em; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: var(--accent-soft); }
button svg, a svg, .dot { flex-shrink: 0; }
img { max-width: 100%; }
svg { vertical-align: middle; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-btn); }
::selection { background: var(--bg-panel-2); color: var(--text); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; text-wrap: balance; overflow-wrap: break-word; }
h1, .h1 { font-size: clamp(34px,2.2vw + 10px,42px); line-height: 1.2; letter-spacing: -.02em; }
h2, .h2 { font-size: clamp(24px,2vw,28px); line-height: 1.3; letter-spacing: -.02em; }
h3 { font-size: 21px; line-height: 1.4; }
p { margin-top: 0; }
strong { font-weight: 600; }
code, pre, kbd { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; font-size: .88em; }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--bg-panel);
  color: var(--text);
  font-size: 14px;
  line-height: 1.8;
  tab-size: 2;
}
pre code { font-size: inherit; overflow-wrap: normal; word-break: normal; white-space: pre; }
hr { border: 0; border-top: 1px solid var(--border); }
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.reading { max-width: calc(var(--reading) + var(--gutter) * 2); }
.section { padding-top: var(--section-space); padding-bottom: var(--section-space); border-top: 1px solid var(--border); }
.section-panel { background: var(--bg-panel); color: var(--text); }
.section-head { max-width: 780px; margin-bottom: 32px; }
.section-head h2 { margin: 16px 0; }
.eyebrow { margin: 0; color: var(--text-muted); font: 500 12px/1.4 var(--font-mono); letter-spacing: .04em; }
.slate, .h1-slate { color: var(--text-muted); }
.ink, .h1-ink { color: var(--text); }
.keep { white-space: nowrap; }
.muted { color: var(--text-muted); }
.small { font-size: 13px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--bg);
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: var(--r-btn);
  font-size: 14px;
  text-decoration: none;
}
.skip:not(:focus) {
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  max-width: 100%;
  padding: 12px 20px;
  border: 1px solid var(--clear);
  border-radius: var(--r-btn);
  font: 500 15px/1.35 var(--font-body);
  letter-spacing: -.005em;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--speed) var(--ease),color var(--speed) var(--ease),box-shadow var(--speed) var(--ease);
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-btn); }
.btn-primary:hover, .btn-primary:active { background: var(--accent-dark); color: var(--on-accent); }
.btn-ghost { background: var(--bg); color: var(--accent); border-color: var(--accent-line); }
.btn-ghost:hover, .btn-ghost:active { background: var(--accent-soft); color: var(--accent-dark); }
.btn-subtle { background: var(--bg-panel); color: var(--text); border-color: var(--border); }
.btn-subtle:hover { background: var(--bg-panel-2); color: var(--text); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--bg-panel-2); color: var(--text-muted); border-color: var(--border); box-shadow: none; cursor: not-allowed; }
.btn[aria-disabled="true"] { pointer-events: none; }
.card, .panel {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-card);
}
.panel { background: var(--bg-panel); color: var(--text); box-shadow: var(--shadow-soft); }
.card h3, .panel h3 { margin-top: 0; }
.card p:last-child, .panel p:last-child { margin-bottom: 0; }
.gradient-card { position: relative; isolation: isolate; overflow: hidden; }
.gradient-card::after {
  content: "";
  position: absolute;
  inset: 55% 0 0;
  z-index: -1;
  background: linear-gradient(110deg,var(--field-apricot),var(--field-rose),var(--field-violet),var(--field-ice));
}
.grid-two, .grid-three { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.grid-three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.prose { min-width: 0; }
.prose h2 { margin-top: 56px; margin-bottom: 20px; }
.prose h3 { margin-top: 32px; margin-bottom: 12px; }
.prose p, .prose li { line-height: 1.85; }
.prose li + li { margin-top: 8px; }
.prose :not(pre) > code { padding: 2px 5px; border-radius: var(--r-code); background: var(--bg-panel); color: var(--accent-dark); }
.decorated, .hero, .visual-region { position: relative; overflow-x: clip; }
.reveal { opacity: 1; transform: none; }
html.reveal-ready .reveal:not(.shown) { opacity: 0; transform: translateY(14px); }
.reveal { transition: opacity .6s var(--ease),transform .6s var(--ease); }
.topbar { position: relative; z-index: 40; min-height: var(--nav-h); background: var(--bg); color: var(--text); border-bottom: 1px solid var(--border); }
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--nav-h);
  width: 100%;
  max-width: min(100%,calc(var(--header-width) + var(--gutter) * 2));
  padding-inline: var(--gutter);
  margin-inline: auto;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand img { display: block; width: 30px; height: 30px; border-radius: var(--r-mark); flex-shrink: 0; }
.brand-name { font-size: 15px; font-weight: 500; letter-spacing: -.01em; }
.brand-mark {
  display: inline-block;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: var(--r-mark);
  border: 1px solid var(--border-strong);
  background: linear-gradient(160deg,var(--bg),var(--bg-panel-2));
  box-shadow: inset 0 0 0 3px var(--bg),var(--shadow-soft);
}
.desktop-nav { min-width: 0; margin-left: auto; }
.nav-list { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-list li { display: flex; align-items: center; flex-shrink: 0; }
.nav-list li + li::before { content: "·"; margin-inline: 11px; color: var(--border-strong); line-height: 1; }
.nav-list a { position: relative; display: inline-flex; align-items: center; min-height: var(--nav-h); color: var(--text-muted); font-size: 14px; text-decoration: none; white-space: nowrap; }
.nav-list a:hover { color: var(--text); }
.nav-list a[aria-current="page"] { color: var(--text); font-weight: 500; }
.nav-list a[aria-current="page"]::after { content: ""; position: absolute; left: calc(50% - 9px); bottom: -1px; width: 18px; height: 2px; border-radius: var(--r-code); background: var(--accent); }
.header-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: auto; }
.language { position: relative; }
.lang { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 7px 10px; font: 400 13px/1.2 var(--font-body); color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-btn); }
.lang svg { width: 14px; height: 14px; color: var(--text-muted); }
.lang-caret { font-size: 11px; color: var(--text-muted); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 190px; padding: 6px; list-style: none; margin: 0; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-card); z-index: 4; }
.lang-menu a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; text-decoration: none; color: var(--text-muted); border-radius: var(--r-btn); }
.lang-menu a:hover, .lang-menu a[aria-current="true"] { background: var(--bg-panel); color: var(--accent-dark); }
.menu-toggle { display: none; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px; border: 1px solid var(--border); border-radius: var(--r-btn); background: var(--bg); color: var(--text); }
.menu-toggle svg { width: 22px; height: 22px; }
.mobile-drawer { display: none; }
.nav-veil { position: fixed; inset: var(--nav-h) 0 0; border: 0; background: var(--veil); color: var(--text); z-index: 35; cursor: default; }
html.nav-open { overflow: hidden; }
.site-footer { border-top: 1px solid var(--border); padding-top: 56px; padding-bottom: 28px; background: var(--bg); color: var(--text); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .7fr 1.4fr .7fr; gap: 32px; }
.footer-brand p { margin: 18px 0 0; max-width: 320px; font-size: 14px; color: var(--text-muted); }
.footer-title { margin: 0 0 16px; font-size: 14px; font-weight: 500; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links a { display: inline-block; padding-block: 3px; font-size: 13px; text-decoration: none; color: var(--text-muted); }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-muted); }
.footer-bottom p { margin: 5px 0; }
@media (max-width: 1100px) {
  .desktop-nav { display: none; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .mobile-drawer {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px var(--gutter) 24px;
    background: var(--bg);
    color: var(--text);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    z-index: 3;
  }
  .mobile-drawer ul { list-style: none; padding: 0; margin: 0; }
  .mobile-drawer a { display: flex; align-items: center; width: 100%; min-height: 46px; padding: 11px 12px; border-radius: var(--r-btn); color: var(--text-muted); text-decoration: none; }
  .mobile-drawer a:hover, .mobile-drawer a[aria-current] { background: var(--bg-panel); color: var(--accent-dark); }
  .drawer-languages { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
}
@media (max-width: 900px) {
  :root { --gutter: 20px; --section-space: 56px; }
  .grid-three { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 768px) {
  h1, .h1 { font-size: 28px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --section-space: 44px; }
  .grid-two, .grid-three { grid-template-columns: minmax(0,1fr); }
  .card, .panel { padding: 20px; }
  .tilt, [data-tilt] { transform: none !important; }
  .brand { flex-shrink: 1; min-width: 0; }
  .brand-name { min-width: 0; font-size: 13px; overflow-wrap: anywhere; line-height: 1.3; }
  .header-inner { gap: 8px; }
  .header-tools { margin-left: auto; gap: 6px; }
  .lang { padding-inline: 8px; }
  .lang svg { display: none; }
  .footer-grid { gap: 28px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { margin-top: 28px; }
}
@media (max-width: 360px) {
  .brand-name { max-width: 132px; overflow-wrap: anywhere; line-height: 1.3; }
  .brand { gap: 6px; }
  .brand img, .brand-mark { width: 26px; height: 26px; }
  .lang { font-size: 12px; gap: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.reveal-ready .reveal:not(.shown) { opacity: 1; transform: none; }
}