:root {
  --c-bg: #FEF0EE;
  --c-panel: #FFFFFF;
  --c-panel-2: #F6E3E6;
  --c-panel-cool: #EEF0F8;
  --c-border: #EAD5DA;
  --c-accent: #5C1A73;
  --c-accent-bright: #8E35AD;
  --c-accent-dark: #2E0B3D;
  --c-text: #1F1024;
  --c-muted: #6B5670;
  --c-success: #1E9E7A;
  --c-success-ink: #146D55;
  --c-warn: #E8A317;
  --c-warn-ink: #755007;
  --c-error: #D93A5B;
  --c-error-ink: #A51E3A;
  --c-lilac: #EED7F7;
  --c-lilac-dim: rgba(238, 215, 247, 0.68);
  --c-frame-glass: rgba(255, 255, 255, 0.15);
  --c-frame-glass-soft: rgba(255, 255, 255, 0.08);
  --c-skeleton: #F1E4E9;
  --c-skeleton-soft: #F7EEF1;
  --c-accent-soft: rgba(92, 26, 115, 0.08);
  --c-accent-ring: rgba(92, 26, 115, 0.22);
  --c-success-soft: rgba(30, 158, 122, 0.12);
  --c-success-ring: rgba(30, 158, 122, 0.18);
  --c-error-soft: rgba(217, 58, 91, 0.11);
  --c-on-dark-muted: rgba(255, 255, 255, 0.74);
  --c-on-dark-faint: rgba(255, 255, 255, 0.5);
  --c-horizon: #FBF6FB;
  --c-clear: transparent;
  --c-veil: rgba(46, 11, 61, 0.32);
  --glow-pink: rgba(250, 178, 206, 0.62);
  --glow-lemon: rgba(252, 240, 168, 0.7);
  --glow-mint: rgba(178, 236, 214, 0.6);
  --code-key: var(--c-accent);
  --code-str: var(--c-success-ink);
  --code-punc: var(--c-muted);
  --shadow-window: 0 46px 90px -34px rgba(46, 11, 61, 0.30), 0 6px 18px -8px rgba(46, 11, 61, 0.12);
  --shadow-knob: 0 1px 3px rgba(31, 16, 36, 0.22);
  --shadow-chip: 0 1px 2px rgba(46, 11, 61, 0.05);
  --shadow-float: 0 8px 24px rgba(46, 11, 61, 0.12);
  --font-display: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 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;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-ui: 14px;
  --text-button: 15px;
  --text-body: 16px;
  --text-lede: 17px;
  --text-lg: 18px;
  --text-xl: 22px;
  --text-h3: clamp(20px, 2vw, 24px);
  --text-h2: clamp(26px, 2.8vw, 38px);
  --text-h1: clamp(34px, 3.6vw, 48px);
  --text-micro: 11px;
  --text-chip: 12.5px;
  --text-rule: 11.5px;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-heavy: 800;
  --weight-black: 900;
  --radius-window: 28px;
  --radius-card: 22px;
  --radius-pane: 20px;
  --radius-code: 16px;
  --radius-rail: 14px;
  --radius-field: 10px;
  --radius-btn: 8px;
  --radius-tag: 6px;
  --radius-bar: 4px;
  --radius-tiny: 2px;
  --radius-pill: 999px;
  --radius-round: 50%;
  --page-max: 1280px;
  --content-max: 1180px;
  --reading-max: 800px;
  --gutter: 24px;
  --header-height: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --duration-ui: 180ms;
  --duration-reveal: 550ms;
}
*, *::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(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img, svg { vertical-align: middle; }
img { max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button, summary, a { -webkit-tap-highlight-color: var(--c-accent-soft); }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--c-accent); }
:focus-visible { outline: 3px solid var(--c-accent-bright); outline-offset: 4px; }
::selection { background: var(--c-lilac); color: var(--c-accent-dark); }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-black);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: var(--text-h1); line-height: 1.12; }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
p { margin-top: 0; }
code, pre, kbd { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  white-space: pre;
  padding: 20px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-code);
  background: var(--c-panel);
  color: var(--c-text);
  font-size: var(--text-sm);
  line-height: 1.7;
  tab-size: 2;
}
pre code { overflow-wrap: normal; word-break: normal; }
button:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.wrap {
  width: 100%;
  max-width: calc(var(--content-max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.reading { max-width: calc(var(--reading-max) + var(--gutter) * 2); }
.section { padding-top: 72px; padding-bottom: 72px; }
.section-title { margin-top: 0; margin-bottom: 24px; }
.keep { white-space: nowrap; }
.muted { color: var(--c-muted); }
.accent { color: var(--c-accent); }
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid > *, .feature-grid > *, .window-body > *, .footer-grid > *, .header-shell > * { min-width: 0; }
.stack > * + * { margin-top: 24px; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.card, .panel {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  background: var(--c-panel);
  color: var(--c-text);
}
.card h3, .panel h3 { margin-top: 0; }
.card p:last-child, .panel p:last-child { margin-bottom: 0; }
.panel--soft { background: var(--c-panel-2); color: var(--c-text); }
.prose { min-width: 0; line-height: 1.85; }
.prose h2 { margin-top: 56px; margin-bottom: 20px; }
.prose h3 { margin-top: 32px; }
.prose a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 4px; }
.prose :not(pre) > code { font-size: .9em; color: var(--c-accent); }
.prose li + li { margin-top: 8px; }
.prose > :first-child { margin-top: 0; }
.prose section { scroll-margin-top: 24px; }
.cta-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 26px;
  border: 2px solid var(--c-accent);
  border-radius: var(--radius-btn);
  background: var(--c-clear);
  color: var(--c-accent);
  font-family: var(--font-display);
  font-size: var(--text-button);
  font-weight: var(--weight-heavy);
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.5;
  text-align: center;
  transition: background-color var(--duration-ui), color var(--duration-ui), border-color var(--duration-ui);
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--c-accent); color: var(--c-panel); }
.btn--primary:hover, .btn--primary.is-hover { background: var(--c-accent-dark); border-color: var(--c-accent-dark); color: var(--c-panel); }
.btn--ghost:hover, .btn--ghost.is-hover { background: var(--c-accent-soft); color: var(--c-accent); }
.btn:active, .btn.is-active { border-color: var(--c-accent-dark); background: var(--c-accent-dark); color: var(--c-panel); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--c-panel-2); border-color: var(--c-border); color: var(--c-muted); }
.btn.is-focus { outline: 3px solid var(--c-accent-bright); outline-offset: 4px; }
.text-link { color: var(--c-accent); font-weight: var(--weight-bold); text-decoration: underline; text-underline-offset: 4px; }

#site-header { position: relative; z-index: 50; }
.header-shell, .site-header {
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-height);
  max-width: min(100%, calc(1280px + var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-black);
  letter-spacing: -.02em;
  color: var(--c-text);
}
.brand-mark { display: block; width: 30px; height: 30px; flex-shrink: 0; }
.desktop-nav { margin-left: auto; min-width: 0; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  display: block;
  padding-block: 12px;
  font-size: var(--text-button);
  font-weight: var(--weight-medium);
  white-space: nowrap;
}
.nav-list a[aria-current="page"], .mobile-drawer a[aria-current="page"] { color: var(--c-accent); font-weight: var(--weight-heavy); }
.header-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.language { position: relative; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-btn);
  background: var(--c-panel);
  color: var(--c-text);
  font-size: var(--text-ui);
  font-weight: var(--weight-semibold);
  white-space: nowrap;
}
.caret { font-size: var(--text-micro); color: var(--c-muted); }
.lang-short { display: none; }
.language-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 180px;
  padding: 8px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-field);
  background: var(--c-panel);
  color: var(--c-text);
  box-shadow: var(--shadow-float);
}
.language-menu a { display: block; min-height: 44px; padding: 10px 12px; border-radius: var(--radius-btn); }
.language-menu a:hover, .language-menu a[aria-current] { background: var(--c-panel-2); color: var(--c-accent); }
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-btn);
  background: var(--c-panel);
  color: var(--c-accent-dark);
}
.menu-toggle svg { width: 22px; height: 22px; }
.mobile-drawer {
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  z-index: 52;
  max-height: calc(100dvh - var(--header-height));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px var(--gutter) 24px;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-panel);
  color: var(--c-text);
}
.mobile-drawer ul { list-style: none; margin: 0; padding: 0; }
.mobile-drawer a { display: block; width: 100%; min-height: 44px; padding: 11px 12px; }
.drawer-languages { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--c-border); }
.drawer-label { margin: 0; padding: 8px 12px; color: var(--c-muted); font-size: var(--text-sm); }
.nav-veil { position: fixed; inset: var(--header-height) 0 0; z-index: 40; border: 0; background: var(--c-veil); color: var(--c-panel); }
.preview-menu { display: none; }
.site-footer { padding-top: 64px; padding-bottom: 28px; border-top: 1px solid var(--c-border); background: var(--c-panel-2); color: var(--c-text); }
.footer-grid { display: grid; grid-template-columns: 1.1fr .8fr 1.4fr .7fr; gap: 36px; }
.footer-brand p { max-width: 300px; margin-top: 18px; color: var(--c-muted); font-size: var(--text-ui); }
.footer-heading { margin: 0 0 14px; font-size: var(--text-body); font-weight: var(--weight-heavy); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { display: block; padding-block: 6px; font-size: var(--text-ui); overflow-wrap: anywhere; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--c-border); font-size: var(--text-sm); color: var(--c-muted); }
.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); }
.reveal.shown { opacity: 1; transform: none; }
.decorated, .hero, .band { overflow-x: clip; }

@media (max-width: 1279px) {
  .desktop-nav { display: none; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .preview-menu { display: block; }
  .preview-menu summary { display: flex; align-items: center; min-width: 44px; min-height: 44px; cursor: pointer; }
  .preview-menu .mobile-drawer { left: var(--gutter); right: var(--gutter); }
}
@media (min-width: 1280px) {
  .mobile-drawer, .nav-veil { display: none !important; }
}
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  h1, .hero-title { font-size: clamp(24px, 5vw, 30px); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .header-shell, .site-header { gap: 8px; }
  .brand { gap: 6px; font-size: var(--text-button); }
  .brand-mark { width: 26px; height: 26px; }
  .header-tools { gap: 6px; margin-left: auto; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .lang-switch { padding-inline: 10px; min-height: 44px; }
  .section { padding-top: 48px; padding-bottom: 48px; }
  .grid--2, .grid--3, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .card, .panel { padding: 20px; }
  .tilt, [data-tilt] { transform: none !important; }
  .cluster { flex-direction: row; flex-wrap: wrap; }
  .footer-grid { gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
  html.reveal-ready .reveal:not(.shown) { opacity: 1; transform: none; }
}