:root {
  --bg: #fefefe;
  --bg-panel: #efeff1;
  --bg-panel-2: #ffffff;
  --line: #e4e4e8;
  --line-soft: #eeeef1;
  --line-strong: #b4b5c0;
  --grid-dot: #e7e7eb;
  --hover-wash: #f3f3f5;
  --lane-bg: #f8f8fa;
  --accent: #4a50f0;
  --accent-2: #8b5cf6;
  --accent-dark: #3036c8;
  --on-accent: #ffffff;
  --grad: linear-gradient(135deg, var(--accent), var(--accent-2));
  --grad-hover: linear-gradient(135deg, var(--accent-dark), var(--accent-2));
  --accent-halo: rgba(74, 80, 240, .16);
  --text: #1b1b22;
  --text-muted: #5e5f6e;
  --text-faint: #a3a4b2;
  --success: #1f9e5a;
  --success-ink: #187844;
  --success-halo: rgba(31, 158, 90, .16);
  --warn: #e08a1e;
  --warn-ink: #86500e;
  --error: #d8434d;
  --error-ink: #ad2632;
  --brand-yellow: #ffd84a;
  --pink: #f27aa6;
  --green: #59c27a;
  --orange: #f59d4c;
  --ink-pink: #b8346a;
  --glow-violet: #e6dcff;
  --glow-peach: #ffe6d2;
  --note-blue: #e8eafd;
  --note-blue-edge: #c8ccf7;
  --note-yellow: #fff3bd;
  --note-yellow-edge: #ecd57c;
  --note-green: #ddf2e4;
  --note-green-edge: #a6dab6;
  --note-pink: #fde3ed;
  --note-pink-edge: #f2b2ca;
  --note-gray: #f7f7f9;
  --note-gray-edge: #dcdce2;
  --exit-proxy: #ecebfe;
  --exit-proxy-edge: #b8b7f5;
  --veil: rgba(27, 27, 34, .24);
  --clear: transparent;
  --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, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r-peek: 48px;
  --r-section: 32px;
  --r-float: 20px;
  --r-btn: 12px;
  --r-tab: 10px;
  --r-chip: 6px;
  --r-pill: 999px;
  --r-shot: 8px;
  --r-focus: 4px;
  --r-round: 50%;
  --shadow-sm: 0 1px 2px rgba(27, 27, 34, .05);
  --shadow-float: 0 1px 2px rgba(27, 27, 34, .05), 0 12px 32px rgba(27, 27, 34, .08);
  --shadow-note: 0 1px 2px rgba(27, 27, 34, .06), 0 4px 10px rgba(27, 27, 34, .04);
  --shadow-accent: 0 1px 2px rgba(48, 54, 200, .2), 0 10px 24px rgba(74, 80, 240, .22);
  --nav-h: 72px;
  --content-max: 1296px;
  --reading-max: 800px;
  --header-max: 1280px;
  --gutter: 48px;
  --section-gap: 140px;
  --route-time: 7.5s;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --motion-fast: 180ms;
  --motion-reveal: 600ms;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 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;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: var(--accent-halo); }
button:disabled { cursor: not-allowed; }
img, svg { max-width: 100%; }
svg { flex-shrink: 0; }
img { height: auto; }
figure { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(34px, 3.2vw, 48px); letter-spacing: -.02em; }
h2 { font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -.02em; }
h3 { font-size: 24px; letter-spacing: -.01em; }
p { margin-block: 0 1em; }
strong { font-weight: 600; }
code { font-family: var(--font-mono); font-size: .9em; overflow-wrap: anywhere; }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 22px;
  background: var(--lane-bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  tab-size: 2;
}
pre code { overflow-wrap: normal; word-break: normal; white-space: pre; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-focus); }
::selection { background: var(--note-blue); color: var(--text); }
:where(section, article, aside, div, nav, li) { min-width: 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); }
.nowrap { white-space: nowrap; }
.muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); }
.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;
  top: 8px;
  left: var(--gutter);
  z-index: 100;
  transform: translateY(-160%);
  padding: 12px 18px;
  border-radius: var(--r-btn);
  background: var(--text);
  color: var(--on-accent);
}
.skip-link:focus { transform: none; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 22px;
  border: 1px solid var(--clear);
  border-radius: var(--r-btn);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  text-align: center;
  max-width: 100%;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--grad); color: var(--on-accent); box-shadow: var(--shadow-accent); }
.btn--primary:hover, .btn--primary.is-hover { background: var(--grad-hover); color: var(--on-accent); }
.btn--ghost { background: var(--bg-panel-2); color: var(--text); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--ghost:hover, .btn--ghost.is-hover { background: var(--hover-wash); color: var(--text); }
.btn--dark { background: var(--text); color: var(--on-accent); border-radius: var(--r-pill); }
.btn--dark:hover { background: var(--text-muted); color: var(--on-accent); }
.btn:active { box-shadow: var(--shadow-sm); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--bg-panel); color: var(--text-muted); border-color: var(--line); box-shadow: none; }
.topbar, #site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 1px 0 var(--line-soft);
}
.topbar__in {
  position: relative;
  width: 100%;
  max-width: min(100%, calc(var(--header-max) + var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  color: var(--text);
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -.01em;
}
.brand:hover { color: var(--text); }
.brand__mark { width: 34px; height: 34px; flex-shrink: 0; display: block; border-radius: var(--r-shot); }
.brand__placeholder { background: var(--bg-panel-2); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; }
.brand__placeholder::after { content: ""; position: absolute; inset: 7px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-focus); }
.brand__short { display: none; }
.mainnav { margin-left: auto; min-width: 0; }
.mainnav ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 2px; }
.mainnav a {
  display: block;
  padding: 8px 13px;
  border-radius: var(--r-pill);
  color: var(--text-muted);
  font-size: 14.5px;
  white-space: nowrap;
  text-decoration: none;
}
.mainnav a:hover { background: var(--hover-wash); color: var(--text); }
.mainnav a[aria-current="page"], .mobile-nav a[aria-current="page"] { background: var(--brand-yellow); color: var(--text); }
.header-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.language { position: relative; }
.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--bg-panel-2);
  color: var(--text);
  font-size: 14px;
  white-space: nowrap;
  text-decoration: none;
}
.lang svg { width: 16px; height: 16px; color: var(--text-muted); }
.lang__short { display: none; }
.lang__caret { color: var(--text-muted); font-size: 11px; }
.language-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 180px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-float);
  background: var(--bg-panel-2);
  color: var(--text);
  box-shadow: var(--shadow-float);
}
.language-menu a { display: block; padding: 10px 14px; min-height: 44px; border-radius: var(--r-btn); color: var(--text-muted); text-decoration: none; }
.language-menu a:hover, .language-menu a[aria-current] { background: var(--hover-wash); color: var(--text); }
.nav-toggle { display: none; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--bg-panel-2); color: var(--text); }
.nav-toggle svg { width: 18px; height: 18px; }
.mobile-nav {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 3;
  padding: 16px var(--gutter) 24px;
  max-height: calc(100dvh - var(--nav-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg-panel-2);
  color: var(--text);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-float);
}
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav a { display: flex; align-items: center; width: 100%; min-height: 46px; padding: 11px 16px; color: var(--text); border-radius: var(--r-btn); text-decoration: none; }
.mobile-nav a:hover { background: var(--hover-wash); color: var(--text); }
.mobile-nav__languages { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
.mobile-nav__languages p { padding-inline: 16px; font-size: 13px; color: var(--text-muted); }
.nav-veil { position: fixed; inset: var(--nav-h) 0 0; z-index: 2; background: var(--veil); color: var(--text); border: 0; width: 100%; }
html.nav-open { overflow: hidden; }
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow-x: clip;
  min-height: clamp(720px, calc(100svh - var(--nav-h) + 8px), 920px);
  display: flex;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 88px;
}
.hero__atmos { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.glow { position: absolute; border-radius: var(--r-round); }
.glow--violet { width: 900px; height: 720px; left: 20%; bottom: -270px; background: radial-gradient(closest-side, var(--glow-violet), var(--clear)); color: var(--text); }
.glow--peach { width: 840px; height: 780px; right: -220px; top: -60px; background: radial-gradient(closest-side, var(--glow-peach), var(--clear)); color: var(--text); }
.dots { position: absolute; inset: 0; background-image: radial-gradient(circle, var(--grid-dot) 1.1px, var(--clear) 1.6px); background-size: 22px 22px; background-position: 11px 11px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { margin: 22px 0 20px; font-size: clamp(28px, 3.2vw, 46px); line-height: 1.14; letter-spacing: -.02em; }
.hero h1 > span { display: block; }
.lede { margin: 0; max-width: 31em; font-size: 17px; line-height: 1.75; color: var(--text-muted); }
.lede strong { font-weight: 500; color: var(--text); }
.section { position: relative; padding-top: var(--section-gap); padding-bottom: var(--section-gap); }
.section--gray, .panel { background: var(--bg-panel); color: var(--text); }
.section--white { background: var(--bg); color: var(--text); }
.panel { position: relative; z-index: 3; margin-top: calc(-1 * var(--r-peek)); padding-top: 140px; padding-bottom: 160px; border-radius: var(--r-peek) var(--r-peek) 0 0; }
.section h2, .panel h2 { margin-top: 0; margin-bottom: 16px; }
.panel__lede { margin: 16px 0 0; max-width: 40em; font-size: 16.5px; line-height: 1.75; color: var(--text-muted); }
.card { padding: 32px; border: 1px solid var(--line); border-radius: var(--r-section); background: var(--bg-panel-2); color: var(--text); box-shadow: var(--shadow-float); }
.card h3 { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.prose { overflow-wrap: break-word; }
.prose :is(h2, h3) { scroll-margin-top: calc(var(--nav-h) + 24px); margin-top: 2em; }
.prose p, .prose li { line-height: 1.85; }
.prose li + li { margin-top: .5em; }
.prose :is(ul, ol) { padding-left: 1.5em; }
.prose img { max-width: 100%; }
.reveal { opacity: 1; transform: none; }
html.reveal-ready .reveal:not(.shown) { opacity: 0; transform: translateY(18px); }
.reveal { transition: opacity var(--motion-reveal) var(--ease), transform var(--motion-reveal) var(--ease); }
.reveal.shown { opacity: 1; transform: none; }
.site-footer { background: var(--bg-panel); color: var(--text); padding-top: 80px; padding-bottom: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr 1fr; gap: 40px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 18px; max-width: 28em; }
.site-footer h2 { font-size: 15px; font-weight: 500; margin: 0 0 18px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 8px; }
.site-footer li a { display: inline-block; padding-block: 3px; color: var(--text-muted); text-decoration: none; font-size: 14px; }
.site-footer a:hover { color: var(--accent-dark); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-muted); }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--text-muted); }
@media (max-width: 1360px) {
  .topbar__in { gap: 18px; }
  .mainnav a { padding-inline: 10px; font-size: 14px; }
}
@media (max-width: 1200px) {
  .mainnav { display: none; }
  .header-tools { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
  html.nav-open .mobile-nav:not([hidden]) { display: block; }
}
@media (min-width: 1201px) {
  .nav-veil { display: none; }
}
@media (max-width: 1200px) {
  .hero__grid { grid-template-columns: minmax(0, 470px) minmax(0, 1fr); gap: 44px; }
}
@media (max-width: 1080px) {
  .hero { min-height: 0; padding-top: 56px; padding-bottom: 128px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 52px; }
  .hero__copy { max-width: 640px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  h1 { font-size: clamp(24px, 5vw, 30px); }
}
@media (max-width: 720px) {
  :root { --gutter: 20px; --nav-h: 62px; }
  .brand__full { display: none; }
  .brand__short { display: inline; }
  .brand { font-size: 15px; }
  .topbar__in { gap: 12px; }
  .lang { min-height: 36px; font-size: 13px; padding-inline: 11px; }
  .hero { padding-top: 28px; padding-bottom: 112px; }
  .hero h1 { font-size: clamp(26px, 7.4vw, 30px); margin: 18px 0 14px; }
  .lede { font-size: 15.5px; line-height: 1.72; }
  .glow--violet { width: 560px; height: 520px; left: -20%; bottom: -200px; }
  .glow--peach { width: 520px; height: 520px; right: -240px; top: 120px; }
}
@media (max-width: 640px) {
  .lang__full { display: none; }
  .lang__short { display: inline; }
  .header-tools { gap: 8px; margin-left: auto; }
  .brand { gap: 8px; font-size: 13px; }
  .brand__mark { width: 30px; height: 30px; }
  .card-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 24px; }
  .tilt, [data-tilt] { transform: none !important; }
  .site-footer { padding-top: 60px; }
  .footer-grid { gap: 32px; }
  .footer-bottom { margin-top: 36px; }
}
@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .topbar__in { gap: 8px; }
  .brand { font-size: 12px; gap: 6px; }
  .lang { padding-inline: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, html.reveal-ready .reveal:not(.shown) { opacity: 1; transform: none; transition: none; }
}