:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-panel: #f7f6fb;
  --bg-panel2: #efeafd;
  --border: #e4e1ee;
  --accent: #6e35e8;
  --accent-dark: #5221c4;
  --accent-shade: #8f6cf0;
  --accent-lilac: #c6b4f7;
  --accent-line: rgba(110,53,232,.24);
  --text: #23212b;
  --text-muted: #615c72;
  --sep: #c4bfd4;
  --success: #1f9d6a;
  --warn: #c98a0e;
  --error: #d23b54;
  --paper: var(--bg);
  --on-accent: var(--bg);
  --sky: #cfe4fb;
  --lavender: #ece6fb;
  --blush: #f8d6e4;
  --mint: #7fe3dc;
  --pink: #f4a9cc;
  --azure: #9cc8f5;
  --sun: #f3cf5c;
  --mint-wash: #d4f5f2;
  --pink-wash: #fbe1ec;
  --sky-wash: #d7eafc;
  --veil: rgba(255,255,255,.66);
  --dot: rgba(255,255,255,.72);
  --scrim: rgba(35,33,43,.35);
  --clear: transparent;
  --font-display: "Iowan Old Style","Charter","Georgia","Songti SC","Noto Serif SC","Source Han Serif SC",serif;
  --font-body: "Inter","Noto Sans SC",-apple-system,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  --font-mono: "JetBrains Mono","SF Mono",Menlo,Consolas,monospace;
  --display-size: clamp(34px,3.35vw,48px);
  --heading-size: clamp(26px,3vw,36px);
  --subheading-size: clamp(18px,2vw,22px);
  --body-size: 16px;
  --lede-size: 17px;
  --small-size: 14px;
  --note-size: 13.5px;
  --micro-size: 12.5px;
  --radius-card: 10px;
  --radius-btn: 8px;
  --radius-pill: 999px;
  --radius-shot: 8px;
  --radius-mark-preview: 9px;
  --shadow-btn: inset 0 1px 0 rgba(255,255,255,.22),0 1px 2px rgba(35,33,43,.10),0 12px 24px -12px rgba(82,33,196,.62);
  --shadow-btn-soft: 0 1px 2px rgba(35,33,43,.05),0 8px 18px -12px rgba(82,33,196,.35);
  --shadow-card: 0 1px 2px rgba(35,33,43,.04),0 22px 48px -28px rgba(35,33,43,.22);
  --shadow-pill: 0 1px 2px rgba(35,33,43,.05);
  --wrap: 1328px;
  --head-wrap: 1280px;
  --reading: 74ch;
  --gutter: 56px;
  --head-height: 72px;
  --section-space: 144px;
  --tap: 44px;
  --fab-size: 52px;
  --fab-edge: 10px;
  --ease-time: .2s;
  --layer-head: 5;
  --layer-fab: 4;
  --layer-tip: 8;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: var(--body-size)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
img, svg { max-inline-size: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 3px; }
a:focus-visible, button:focus-visible { border-radius: var(--radius-btn); }
svg[aria-hidden="true"] { flex-shrink: 0; }
:where(h1,h2,h3,p,li,dd,figcaption) { overflow-wrap: anywhere; }
:where(h1,h2,h3) {
  margin: 0 0 .55em;
  line-height: 1.2;
  text-wrap: balance;
}
h1, h2 { font-family: var(--font-display); font-weight: 400; }
h1 { font-size: var(--display-size); letter-spacing: -.02em; }
h2 { font-size: var(--heading-size); letter-spacing: -.015em; }
h3 { font-size: var(--subheading-size); font-weight: 600; }
p { margin: 0 0 1em; }
code, pre, kbd { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; }
:not(pre) > code {
  background: var(--bg-panel2);
  color: var(--text);
  border-radius: var(--radius-btn);
  padding: .12em .34em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
pre {
  max-inline-size: 100%;
  min-inline-size: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 1em;
  background: var(--bg-panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
pre code { white-space: pre; }
:where(main,article,section,aside,figure,nav,div) { min-width: 0; }
:is(.grid, .hero-grid, .footer-grid, .plat-grid, .card-grid) > * { min-width: 0; }
:where([id]) { scroll-margin-block-start: 20px; }
.keep-word { display: inline-block; max-inline-size: 100%; white-space: nowrap; }
.muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); }
.sr-only {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.wrap, .reading-wrap, .head-shell {
  inline-size: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap { max-width: calc(var(--wrap) + var(--gutter) * 2); }
.reading-wrap { max-width: calc(var(--reading) + var(--gutter) * 2); }
.prose { min-width: 0; line-height: 1.78; }
.prose :where(h2,h3):not(:first-child) { margin-block-start: 1.65em; }
.prose :where(ul,ol) { padding-inline-start: 1.5em; }
.prose a:not(.btn) { text-decoration: underline; text-underline-offset: .2em; }
.section { padding-block: var(--section-space); }
.section-tinted { background: var(--bg-panel); color: var(--text); }
.decor-clip { position: relative; overflow-x: clip; }
.decor-fill { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; pointer-events: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--tap);
  max-inline-size: 100%;
  padding: 15px 22px;
  border: 0;
  border-radius: var(--radius-btn);
  font: 500 var(--body-size)/1 var(--font-body);
  text-align: center;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: transform var(--ease-time);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-btn); }
.btn-primary:is(:hover,:active,.is-hover) { background: var(--accent-dark); color: var(--on-accent); }
.btn-primary:is(:hover,.is-hover) { transform: translateY(-1px); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: var(--bg-panel2); color: var(--accent-dark); border: 1px solid var(--accent-line); box-shadow: var(--shadow-btn-soft); }
.btn-ghost:hover { background: var(--paper); color: var(--accent-dark); }
.btn:is(:disabled,[aria-disabled="true"]) {
  background: var(--bg-panel);
  color: var(--text-muted);
  border: 1px solid var(--border);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
.btn.is-focus { outline: 2px solid var(--accent-dark); outline-offset: 3px; }

.card, .panel {
  min-width: 0;
  padding: clamp(18px,3vw,34px);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--paper);
  color: var(--text);
}
.card { box-shadow: var(--shadow-card); }
.panel { background: var(--bg-panel); color: var(--text); }
.card > :last-child, .panel > :last-child { margin-block-end: 0; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,250px),1fr)); gap: 18px; }

.topbar {
  position: relative;
  z-index: var(--layer-head);
  background: var(--bg);
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.head-shell {
  position: relative;
  z-index: 1;
  max-width: min(100%,calc(var(--head-wrap) + var(--gutter) * 2));
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: var(--head-height);
  background: var(--bg);
  color: var(--text);
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); flex: 0 0 auto; }
.brand-mark { display: block; width: 34px; height: 34px; border-radius: var(--radius-pill); flex: none; }
.brand-name { font-size: var(--body-size); font-weight: 600; letter-spacing: -.005em; }
.mainnav { margin-inline-start: auto; min-width: 0; }
.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 14px; }
.mainnav li { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.mainnav li + li::before { content: "·"; color: var(--sep); font-weight: 600; flex-shrink: 0; }
.mainnav a { color: var(--text-muted); font-size: 15px; padding: 6px 2px; }
.mainnav a:hover { color: var(--text); }
.mainnav a[aria-current="page"] { color: var(--accent); font-weight: 500; }
.head-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-inline-start: auto; }
.mainnav + .head-tools { margin-inline-start: 0; }
.language-box { position: relative; }
.lang, .nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  cursor: pointer;
}
.lang { padding: 7px 12px; font-size: var(--small-size); white-space: nowrap; }
.lang-caret { color: var(--text-muted); font-size: 11px; }
.lang-short, .nav-toggle, .nav-drawer, .preview-mobile { display: none; }
.nav-toggle { min-width: var(--tap); min-height: var(--tap); }
.nav-toggle svg { width: 20px; height: 20px; }
.lang-list, .nav-drawer {
  position: absolute;
  z-index: 1;
  background: var(--paper);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.lang-list {
  inset-block-start: calc(100% + 8px);
  inset-inline-end: 0;
  min-inline-size: 160px;
  border-radius: var(--radius-card);
  padding: 4px;
}
:is(.lang-list,.nav-drawer) ul { list-style: none; margin: 0; padding: 0; }
:is(.lang-list,.nav-drawer) a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: var(--tap);
  padding: 9px 12px;
  color: var(--text);
}
:is(.lang-list,.nav-drawer) a:is(:hover,[aria-current]) {
  background: var(--bg-panel2);
  color: var(--accent-dark);
  border-radius: var(--radius-btn);
}
:is(.lang-list,.nav-drawer) a:focus-visible { outline-offset: -2px; }
.nav-drawer {
  inset-block-start: 100%;
  inset-inline: 0;
  padding: 12px var(--gutter) 18px;
  max-height: calc(100vh - var(--head-height));
  max-height: calc(100dvh - var(--head-height));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.drawer-caption {
  margin: 10px 0 4px;
  padding-block-start: 12px;
  border-block-start: 1px solid var(--border);
  color: var(--text-muted);
  font-size: var(--small-size);
}
.nav-veil { position: fixed; inset: 0; background: var(--scrim); color: var(--on-accent); }
html.nav-open { overflow: hidden; }

.site-foot {
  background: var(--bg-panel);
  color: var(--text);
  border-top: 1px solid var(--border);
  padding-block: 56px 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0,2fr) repeat(3,minmax(0,1fr));
  gap: clamp(20px,4vw,54px);
}
.footer-grid h2 { font: 600 var(--body-size)/1.4 var(--font-body); letter-spacing: normal; margin-block-end: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid a:not(.brand) { display: inline-block; padding-block: 3px; }
.footer-intro { margin-block: 12px; color: var(--text-muted); }
.footer-platforms { color: var(--text-muted); font-size: var(--small-size); }
.footer-tail {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-block-start: 28px;
  padding-block-start: 18px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: var(--small-size);
}
.footer-tail > * { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; }

@media (prefers-reduced-motion: no-preference) {
  .reveal-watch .reveal { transition: opacity .48s ease-out, transform .48s ease-out; }
  .reveal-watch .reveal:not(.shown):not(:focus-within) { opacity: 0; transform: translateY(10px); }
}
@media (max-width: 1279px) {
  .head-shell { gap: 16px; }
  .mainnav { display: none; }
  .mainnav + .head-tools { margin-inline-start: auto; }
  .nav-toggle, .preview-mobile { display: inline-flex; }
  .nav-drawer:not([hidden]) { display: block; }
}
@media (max-width: 960px) {
  :root { --gutter: 24px; --head-height: 64px; --section-space: 84px; }
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 768px) {
  :root { --display-size: clamp(24px,7vw,30px); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --section-space: 64px; }
  .tilt, .decor-tilt, [data-tilt] { transform: none !important; rotate: none !important; }
  .head-shell { gap: 8px; }
  .brand { gap: 8px; }
  .brand-name { font-size: var(--small-size); }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn-primary:is(:hover,:active,.is-hover) { transform: none; }
}