:root {
  color-scheme: dark;
  --bg: #101010;
  --bg-sink: #141414;
  --bg-panel: #181818;
  --bg-panel-2: #1F1F1F;
  --border: #2B2B2B;
  --border-strong: #3A3A3A;
  --accent: #D883F0;
  --accent-dark: #8A3FC0;
  --text: #DCDCDC;
  --text-strong: #F2F2F2;
  --text-muted: #959595;
  --text-faint: #959595;
  --success: #6FBF8E;
  --warn: #D9A54A;
  --error: #E0645C;
  --screen: #000000;
  --on-accent: #FFFFFF;
  --clear: transparent;
  --grad-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 78%);
  --grad-accent-v: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  --accent-edge: rgba(216, 131, 240, .30);
  --accent-haze: rgba(216, 131, 240, .16);
  --accent-wash: rgba(216, 131, 240, .06);
  --accent-ring: rgba(216, 131, 240, .42);
  --btn-hl: rgba(255, 255, 255, .26);
  --hl: rgba(255, 255, 255, .035);
  --sidelight: rgba(255, 255, 255, .065);
  --shade-1: rgba(0, 0, 0, .45);
  --shade-2: rgba(0, 0, 0, .72);
  --shade-3: rgba(0, 0, 0, .88);
  --radius-ctl: 4px;
  --radius-option: 3px;
  --radius-panel: 8px;
  --radius-win: 10px;
  --radius-phone: 28px;
  --radius-screen: 21px;
  --radius-pill: 999px;
  --radius-circle: 50%;
  --font-display: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, 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;
  --wrap: 1200px;
  --reading: 800px;
  --header-wrap: 1280px;
  --gutter: 32px;
  --nav-h: 64px;
  --section-gap: 160px;
  --shadow-panel: inset 0 1px 0 var(--hl), 0 18px 40px -26px var(--shade-2);
  --shadow-raised: inset 0 1px 0 var(--hl), 0 26px 50px -24px var(--shade-2);
  --ease: cubic-bezier(.2, .65, .3, 1);
  --time-fast: .18s;
  --time-reveal: .65s;
}
*, *::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(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; flex-shrink: 0; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--text-strong); font-family: var(--font-display); font-weight: 400; text-wrap: balance; }
h1 { font-size: clamp(34px, 3.2vw, 48px); line-height: 1.12; letter-spacing: -.02em; }
h2 { font-size: clamp(25px, 2.7vw, 36px); line-height: 1.25; letter-spacing: -.015em; }
h3 { font-size: 21px; line-height: 1.4; }
h4 { font-size: 17px; line-height: 1.5; }
ul, ol { padding-left: 1.5em; }
code, pre, kbd { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-ctl);
  background: var(--bg-sink);
  color: var(--text);
  font-size: 13px;
  line-height: 1.8;
  tab-size: 2;
}
pre code { white-space: pre; overflow-wrap: normal; word-break: normal; }
hr { border: 0; border-top: 1px solid var(--border); margin-block: 40px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-ctl); }
::selection { background: var(--accent); color: var(--bg); }
.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, .decorated { overflow-x: clip; }
section { padding-top: 0; padding-bottom: 0; }
.section { margin-top: var(--section-gap); }
.section-heading { margin-bottom: 32px; }
.section-heading p { max-width: 660px; margin-top: 14px; color: var(--text-muted); }
.grid { display: grid; gap: 24px; }
.grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid > *, .bento > *, .topbar-in > *, .footer-grid > *, .feature-tabs > *, .prose > * { min-width: 0; }
.stack > * + * { margin-top: 20px; }
.row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.nowrap { white-space: nowrap; }
.muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); }
.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: -80px;
  z-index: 100;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-ctl);
  background: var(--bg-panel-2);
  color: var(--text-strong);
}
.skip:focus { top: 12px; }
.prose { min-width: 0; line-height: 1.9; }
.prose :is(h2, h3, h4) { margin-top: 2.5em; margin-bottom: .8em; }
.prose :is(p, ul, ol, pre, details, blockquote) { margin-block: 1.2em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.prose li + li { margin-top: .5em; }
.prose strong { color: var(--text-strong); font-weight: 500; }
.prose code { font-size: .9em; }
.prose :is(div, figure) { min-width: 0; max-width: 100%; }
.prose figure { margin-inline: 0; }
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 20px;
  max-width: 100%;
  border: 1px solid var(--clear);
  border-radius: var(--radius-ctl);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .005em;
  line-height: 1.4;
  text-align: center;
  transition: transform var(--time-fast) var(--ease), box-shadow var(--time-fast) var(--ease), border-color var(--time-fast) var(--ease);
}
.btn-primary {
  background: linear-gradient(135deg, #A34DBB 0%, var(--accent-dark) 78%);
  color: var(--on-accent);
  box-shadow: inset 0 1px 0 var(--btn-hl), 0 10px 28px -12px var(--accent-haze);
}
.btn-primary svg, .btn-secondary svg { width: 16px; height: 16px; }
.btn-primary:hover, .btn-primary.is-hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 var(--btn-hl), 0 14px 34px -12px var(--accent-edge);
}
.btn-secondary { background: var(--bg-panel); color: var(--text); border-color: var(--border); }
.btn-secondary:hover, .btn-secondary.is-hover { border-color: var(--border-strong); background: var(--bg-panel-2); color: var(--text-strong); }
.btn-primary:active, .btn-secondary:active, .is-active { transform: translateY(1px); }
:is(.btn-primary, .btn-secondary):disabled { background: var(--bg-panel-2); color: var(--text-muted); border-color: var(--border); box-shadow: none; transform: none; }
.is-focus { outline: 2px solid var(--accent); outline-offset: 3px; }
.link-accent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 15px;
  border-bottom: 1px solid var(--clear);
  transition: border-color var(--time-fast) var(--ease);
}
.link-accent:hover { border-bottom-color: var(--accent-ring); }
.link-accent svg { width: 14px; height: 14px; }
.panel, .card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background: var(--bg-panel);
  color: var(--text);
  box-shadow: var(--shadow-panel);
}
.card { transition: border-color var(--time-fast) var(--ease), box-shadow var(--time-fast) var(--ease); }
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-raised); }
.card p { margin-top: 12px; color: var(--text-muted); }
.topbar, #site-header {
  position: relative;
  z-index: 40;
  min-height: var(--nav-h);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}
.topbar-in {
  position: relative;
  width: 100%;
  max-width: min(100%, calc(var(--header-wrap) + var(--gutter) * 2));
  min-height: calc(var(--nav-h) - 1px);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--text-strong); }
.brand img { width: 28px; height: 28px; flex-shrink: 0; }
.brand-name { font-size: 17px; letter-spacing: -.01em; font-weight: 500; }
.tabs { margin-left: auto; min-width: 0; align-self: stretch; }
.tabs ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; height: 100%; gap: 0; }
.tabs li { align-self: stretch; flex-shrink: 0; }
.tabs a {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  min-height: 44px;
  padding: 0 13px;
  font-size: 14px;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--time-fast) var(--ease);
}
.tabs a::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: -1px;
  height: 2px;
  border-radius: var(--radius-ctl);
  background: var(--border-strong);
  opacity: 0;
  transform: scaleX(.4);
  transition: opacity var(--time-fast) var(--ease), transform var(--time-fast) var(--ease);
}
.tabs a:hover { color: var(--text); }
.tabs a:hover::after { opacity: 1; transform: scaleX(1); }
.tabs a[aria-current="page"] { color: var(--text-strong); }
.tabs a[aria-current="page"]::after { background: var(--grad-accent); opacity: 1; transform: none; }
.header-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.language-picker { position: relative; }
.lang {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-ctl);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 13px;
}
.lang:hover { border-color: var(--border-strong); color: var(--text); }
.lang svg { width: 15px; height: 15px; }
.lang-caret { font-size: 10px; line-height: 1; }
.lang-short { display: none; }
.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background: var(--bg-panel);
  color: var(--text);
  box-shadow: 0 20px 50px var(--shade-2);
}
.language-menu a { display: flex; align-items: center; min-height: 44px; padding: 9px 12px; }
.language-menu a:hover, .language-menu a[aria-current="true"] { background: var(--bg-panel-2); color: var(--text-strong); }
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-ctl);
  background: var(--bg);
  color: var(--text);
}
.menu-toggle svg { width: 20px; height: 20px; }
.mobile-drawer { display: none; }
.menu-veil {
  position: fixed;
  inset: var(--nav-h) 0 0;
  z-index: 30;
  border: 0;
  background: var(--shade-2);
  color: var(--text);
}
.site-footer, #site-footer { margin-top: var(--section-gap); border-top: 1px solid var(--border); }
.footer-content { padding-top: 56px; padding-bottom: 28px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.3fr; gap: 48px; }
.footer-brand p { max-width: 310px; margin-top: 18px; color: var(--text-muted); font-size: 13px; }
.footer-heading { margin-bottom: 16px; color: var(--text-strong); font-size: 14px; font-weight: 400; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 0; margin: 0; list-style: none; }
.footer-links li { min-width: 0; }
.footer-links a { color: var(--text-muted); font-size: 13px; overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--accent); }
.footer-languages { margin-top: 36px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 12px; }
.footer-bottom a:hover { color: var(--accent); }
.reveal { opacity: 1; transform: none; }
.reveal-pending { opacity: 0; transform: translateY(18px); transition: opacity var(--time-reveal) var(--ease), transform var(--time-reveal) var(--ease); }
.reveal.shown { opacity: 1; transform: none; }
@media (max-width: 1100px) {
  .topbar-in { gap: 18px; }
  .topbar-in > .tabs { display: none; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .mobile-drawer {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 45;
    padding: 16px var(--gutter) 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-panel);
    color: var(--text);
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .mobile-drawer:not([hidden]) { display: block; }
  .mobile-drawer ul { list-style: none; margin: 0; padding: 0; }
  .mobile-drawer a { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 12px 16px; color: var(--text-muted); border-bottom: 1px solid var(--border); }
  .mobile-drawer a:hover, .mobile-drawer a[aria-current] { background: var(--bg-panel-2); color: var(--text-strong); }
  .mobile-drawer a[aria-current="page"] { box-shadow: inset 2px 0 var(--accent); }
  .drawer-label { margin: 24px 16px 8px; color: var(--text-muted); font-size: 12px; }
}
@media (max-width: 768px) {
  :root { --gutter: 16px; --section-gap: 96px; }
  h1 { font-size: clamp(24px, 6.2vw, 30px); }
  .grid-three { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .topbar-in { gap: 14px; }
  .brand-name { display: none; }
  .footer-brand .brand-name { display: inline; }
  .lang { min-height: 44px; }
  .lang-text { display: none; }
  .lang-short { display: inline; }
  .grid-two, .footer-grid { grid-template-columns: 1fr; }
  .panel, .card { padding: 22px; }
  .tilt, [data-tilt] { transform: none !important; }
  .footer-bottom { padding-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-pending { opacity: 1; transform: none; }
  .cell:hover, .btn-primary:hover { transform: none; }
}