:root {
  --bg: #FFFFFF;
  --bg-panel: #F6F4FA;
  --bg-panel-2: #EFE8FD;
  --border: #E7E2F0;
  --accent: #7E22E8;
  --accent-dark: #4C12A1;
  --text: #1E0B3A;
  --text-muted: #5F5672;
  --success: #12976A;
  --warn: #D98200;
  --error: #D6334A;
  --hero-a: #FF9EC8;
  --hero-b: #FFA23F;
  --hero-c: #F2552E;
  --blob-a: #FF9A2E;
  --blob-m: #E8589C;
  --blob-z: #8E2EEA;
  --white: #FFFFFF;
  --toggle-off: #D9D1E6;
  --dot-off: #C4BAD4;
  --metal-lo: #CFC6DE;
  --glass-92: rgba(255,255,255,.92);
  --glass-70: rgba(255,255,255,.70);
  --glass-55: rgba(255,255,255,.55);
  --glass-38: rgba(255,255,255,.38);
  --glass-20: rgba(255,255,255,.20);
  --glass-0: rgba(255,255,255,0);
  --ink-28: rgba(30,11,58,.28);
  --ink-12: rgba(30,11,58,.12);
  --plum-06: rgba(76,18,161,.06);
  --plum-12: rgba(76,18,161,.12);
  --plum-20: rgba(76,18,161,.20);
  --plum-30: rgba(76,18,161,.30);
  --accent-35: rgba(126,34,232,.35);
  --success-22: rgba(18,151,106,.22);
  --candy-violet: rgba(146,64,240,.82);
  --candy-violet-hi: rgba(222,196,255,.92);
  --candy-peach: rgba(255,122,70,.86);
  --candy-peach-hi: rgba(255,214,232,.95);
  --candy-shade: rgba(76,18,161,.32);
  --candy-warm-shade: rgba(194,52,24,.28);
  --veil: rgba(30,11,58,.38);

  --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", "Malgun Gothic", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --weight-body: 400;
  --weight-medium: 600;
  --weight-bold: 700;
  --weight-heavy: 800;
  --weight-display: 900;
  --size-body: 16px;
  --size-small: 14px;
  --size-caption: 12px;
  --size-h1: clamp(34px, 1.4vw + 28px, 48px);
  --size-h2: clamp(28px, 2.5vw, 40px);
  --size-h3: clamp(22px, 2vw, 30px);
  --line-body: 1.7;
  --line-heading: 1.16;
  --tracking-heading: -.02em;

  --r-hero: 56px;
  --r-section: 32px;
  --r-card-lg: 28px;
  --r-card: 24px;
  --r-code: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --r-xs: 8px;
  --r-tiny: 6px;
  --r-pixel: 2px;
  --r-candy: 22px;
  --r-plug: 16px;
  --r-pin: 4px;
  --r-pane: 5px;
  --r-neck: 9px;
  --r-pill: 999px;
  --r-circle: 50%;
  --r-paw: 50% 50% 46% 46% / 58% 58% 42% 42%;
  --gutter: 48px;
  --content-width: 1400px;
  --reading-width: 860px;
  --head-h: 76px;
  --section-space: 88px;
  --shadow-card: 0 0 0 1px var(--plum-06), 0 6px 0 -1px var(--bg-panel-2), 0 2px 4px var(--plum-06), 0 10px 22px var(--plum-12), 0 30px 60px var(--plum-20), 0 64px 120px var(--plum-12);
  --shadow-soft: 0 2px 4px var(--plum-06), 0 12px 26px var(--plum-12), 0 30px 54px var(--plum-12);
  --shadow-btn: 0 2px 4px var(--plum-12), 0 14px 30px var(--plum-20);
  --shadow-btn-hover: 0 4px 8px var(--plum-12), 0 22px 40px var(--plum-30);
  --ease-out: cubic-bezier(.2,.7,.2,1);
  --duration-fast: .2s;
  --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: var(--line-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
[hidden] { display: none !important; }
img, svg { vertical-align: middle; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: var(--glass-0); }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: var(--accent-dark); }
button:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 3px; }
::selection { background: var(--bg-panel-2); color: var(--accent-dark); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  line-height: var(--line-heading);
  letter-spacing: var(--tracking-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); }
h4 { font-size: var(--size-body); }
p { margin-block: 0 1.2em; }
h1, h2, h3, h4 { margin-block: 0  .65em; }
ul, ol { padding-inline-start: 1.5em; }
li + li { margin-top: .3em; }
hr { border: 0; border-top: 1px solid var(--border); margin-block: 32px; }
strong { font-weight: var(--weight-heavy); }
code, pre, kbd, samp { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; font-size: .9em; }
:not(pre) > code {
  padding: .12em .35em;
  border-radius: var(--r-tiny);
  background: var(--bg-panel);
  color: var(--accent-dark);
}
pre {
  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;
  overscroll-behavior-inline: contain;
  tab-size: 2;
}
pre code { white-space: pre; overflow-wrap: normal; word-break: normal; font-size: inherit; }
section[id], h2[id], h3[id], [role="tabpanel"][id] { scroll-margin-top: 28px; }
.wrap {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.reading {
  width: 100%;
  max-width: calc(var(--reading-width) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-top: var(--section-space); padding-bottom: var(--section-space); }
.section-compact { padding-top: 40px; padding-bottom: 40px; }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head p { color: var(--text-muted); }
.grid { display: grid; gap: 28px; }
.grid-two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid > *, .hero-grid > *, .feature-detail > *, .footer-grid > *, .win-body > * { min-width: 0; }
.word { white-space: nowrap; }
.kw { color: var(--accent); }
.muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); }
.eyebrow { font-size: var(--size-small); font-weight: var(--weight-heavy); color: var(--text-muted); }
.icon { width: 20px; height: 20px; flex-shrink: 0; }
.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: fixed;
  z-index: 100;
  top: 12px;
  left: var(--gutter);
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: var(--text);
  color: var(--white);
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; color: var(--white); }
.card, .panel {
  padding: 32px;
  border-radius: var(--r-card);
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}
.panel { background: var(--bg-panel); color: var(--text); box-shadow: none; }
.lilac-section {
  position: relative;
  overflow-x: clip;
  border-radius: var(--r-section);
  background: var(--bg-panel-2);
  color: var(--text);
}
.prose { min-width: 0; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { line-height: 1.85; }
.prose img { border-radius: var(--r-md); }
.prose > :first-child { margin-top: 0; }
.tilt { transform: rotate(-1deg); }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  max-width: 100%;
  padding: 14px 28px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--white);
  text-align: center;
  text-decoration: none;
  font: var(--weight-heavy) 17px/1.3 var(--font-display);
  letter-spacing: -.005em;
  transition: transform var(--duration-fast), box-shadow var(--duration-fast), background-color var(--duration-fast);
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover, .btn.is-hover { background: var(--accent-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-btn-hover); }
.btn:active, .btn.is-active { transform: translateY(0); box-shadow: none; }
.btn-primary { padding-left: 12px; background: var(--white); color: var(--accent); box-shadow: var(--shadow-btn); }
.btn-primary:hover { background: var(--white); color: var(--accent-dark); }
.btn-primary .ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: var(--r-circle);
  background: var(--accent);
  color: var(--white);
}
.btn-primary .ico svg { width: 16px; height: 16px; }
.btn-ghost { background: var(--glass-20); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--ink-28); }
.btn-ghost:hover { background: var(--glass-55); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--ink-28); }
.btn-ink { background: var(--text); color: var(--white); box-shadow: var(--shadow-btn); }
.btn-ink:hover { background: var(--accent-dark); color: var(--white); }
.btn-small { min-height: 44px; padding: 11px 20px; font-size: var(--size-small); }
.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--bg-panel-2);
  color: var(--text-muted);
  box-shadow: none;
  transform: none;
}
.btn[aria-disabled="true"] { pointer-events: none; }
.btn.is-focus { outline: 3px solid var(--accent-dark); outline-offset: 3px; }

.site-head, #site-header { position: relative; z-index: 40; background: var(--bg); color: var(--text); }
.head-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--head-h);
  width: 100%;
  max-width: min(100%, calc(1280px + var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: var(--text);
  text-decoration: none;
  font: var(--weight-display) 19px/1.2 var(--font-display);
  letter-spacing: -.02em;
}
.brand:hover { color: var(--text); }
.brand img { width: 38px; height: 38px; flex-shrink: 0; }
.nav { min-width: 0; margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav li { margin: 0; min-width: 0; }
.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  font-size: 15.5px;
  line-height: 1.2;
  font-weight: var(--weight-bold);
  transition: color var(--duration-fast), background-color var(--duration-fast);
}
.nav a:hover { background: var(--bg-panel); color: var(--text); }
.nav a[aria-current="page"], .mobile-drawer a[aria-current="page"] {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 6px 16px var(--accent-35);
}
.head-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.language-box { position: relative; }
.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 15px 10px 12px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--bg-panel);
  color: var(--text);
  font: var(--weight-medium) 14.5px/1.2 var(--font-body);
  white-space: nowrap;
  text-decoration: none;
}
.lang:hover { background: var(--bg-panel-2); color: var(--text); }
.lang svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--text-muted); }
.lang-short { display: none; }
.language-menu {
  position: absolute;
  z-index: 6;
  right: 0;
  top: calc(100% + 12px);
  min-width: 190px;
  padding: 8px;
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}
.language-menu a { display: flex; align-items: center; min-height: 44px; padding: 10px 14px; border-radius: var(--r-sm); color: var(--text-muted); text-decoration: none; }
.language-menu a:hover, .language-menu a[aria-current="true"] { background: var(--bg-panel-2); color: var(--accent-dark); }
.menu-toggle {
  display: none;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  border: 0;
  border-radius: var(--r-circle);
  background: var(--bg-panel);
  color: var(--text);
}
.menu-toggle svg { width: 22px; height: 22px; }
.mobile-drawer { display: none; }
.nav-veil { position: fixed; inset: var(--head-h) 0 0; z-index: 39; border: 0; background: var(--veil); color: var(--white); }

.site-footer, #site-footer { background: var(--bg-panel); color: var(--text); }
.footer-inner { padding-top: 64px; padding-bottom: 28px; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .8fr 1.2fr .75fr; gap: 40px; }
.footer-brand p { margin-top: 20px; max-width: 330px; color: var(--text-muted); font-size: var(--size-small); }
.footer-title { margin-bottom: 16px; font-size: var(--size-body); letter-spacing: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 38px; color: var(--text-muted); text-decoration: none; font-size: var(--size-small); overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--accent); }
.footer-links a[aria-current="true"] { color: var(--accent-dark); font-weight: var(--weight-bold); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: var(--size-small); }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-legal a { color: var(--text-muted); }
.reveal { opacity: 1; transform: none; }
.reveal-ready .reveal:not(.shown) { opacity: 0; transform: translateY(18px); }
.reveal-ready .reveal { transition: opacity var(--duration-reveal) var(--ease-out), transform var(--duration-reveal) var(--ease-out); }
.reveal-ready .reveal.shown { opacity: 1; transform: none; }

@media (max-width: 1280px) {
  .head-inner { gap: 20px; }
  .nav a { padding-inline: 14px; }
}
@media (max-width: 1100px) {
  .head-inner { gap: 16px; }
  .head-inner > .nav { display: none; }
  .head-tools { margin-left: auto; }
  .menu-toggle { display: grid; }
  .mobile-drawer:not([hidden]) {
    position: absolute;
    display: block;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 5;
    max-height: calc(100vh - var(--head-h));
    max-height: calc(100dvh - var(--head-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px var(--gutter) 28px;
    border-top: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    box-shadow: var(--shadow-soft);
  }
  .mobile-drawer ul { list-style: none; margin: 0; padding: 0; }
  .mobile-drawer li { margin: 0 0 4px; }
  .mobile-drawer a { display: flex; align-items: center; width: 100%; min-height: 48px; padding: 12px 18px; border-radius: var(--r-md); color: var(--text-muted); text-decoration: none; font-weight: var(--weight-bold); }
  .mobile-drawer a:hover { background: var(--bg-panel); color: var(--text); }
  .drawer-label { margin: 20px 18px 8px; font-size: var(--size-small); color: var(--text-muted); }
  .mobile-drawer a[aria-current="true"] { background: var(--bg-panel-2); color: var(--accent-dark); }
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 768px) {
  :root { --gutter: 24px; --section-space: 56px; --size-h1: 30px; --size-h2: 28px; --size-h3: 23px; }
  .grid-three { grid-template-columns: 1fr; }
  .card, .panel { padding: 24px; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; --size-h1: 28px; }
  .grid-two { grid-template-columns: 1fr; }
  .brand { gap: 8px; font-size: 15px; }
  .brand img { width: 32px; height: 32px; }
  .head-inner { gap: 8px; }
  .head-tools { gap: 6px; margin-left: auto; }
  .lang { min-height: 44px; padding-inline: 10px; gap: 5px; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .lang svg { width: 15px; height: 15px; }
  .btn { min-height: 52px; padding-inline: 23px; font-size: var(--size-body); }
  .btn-primary { padding-left: 10px; }
  .btn-small { min-height: 44px; font-size: var(--size-small); }
  .cta-row { gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand p { max-width: none; }
  .footer-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
  .footer-bottom { margin-top: 28px; }
  .tilt, .tilt-card { transform: none; }
  pre { padding: 18px; }
}
@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .brand { font-size: 13px; gap: 6px; }
  .brand img { width: 28px; height: 28px; }
  .lang { padding-inline: 8px; }
  .lang > svg { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-ready .reveal:not(.shown) { opacity: 1; transform: none; }
}