:root {
  --bg: #f5f9fc;
  --bg-fade: #fafcfe;
  --panel: #ffffff;
  --panel-2: #eef3f8;
  --neutral: #eff1f4;
  --border: #e1e7ef;
  --border-soft: #e9eef4;
  --line: #c4cedb;
  --accent: #3f63e6;
  --accent-2: #8b7cf2;
  --accent-dark: #2c47c2;
  --accent-30: rgba(63, 99, 230, 0.32);
  --accent-12: rgba(63, 99, 230, 0.12);
  --accent-8: rgba(63, 99, 230, 0.08);
  --accent-5: rgba(63, 99, 230, 0.05);
  --text: #11151c;
  --text-muted: #5a6472;
  --text-faint: #8a94a3;
  --on-accent: #ffffff;
  --success: #1f9d6b;
  --warn: #c98a12;
  --error: #d6453d;
  --clear: transparent;
  --veil: rgba(27, 42, 74, 0.28);
  --grad: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  --hero-wash: linear-gradient(180deg, var(--bg) 0%, var(--bg) 48%, var(--bg-fade) 100%);
  --shadow-card: 0 0 0 1px rgba(27, 42, 74, 0.05), 0 2px 6px rgba(27, 42, 74, 0.06), 0 40px 90px rgba(27, 42, 74, 0.11);
  --shadow-menu: 0 0 0 1px rgba(27, 42, 74, 0.05), 0 2px 6px rgba(27, 42, 74, 0.06), 0 24px 52px rgba(27, 42, 74, 0.13);
  --shadow-chip: 0 1px 2px rgba(27, 42, 74, 0.05);
  --shadow-cta: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 1px 2px rgba(44, 71, 194, 0.34), 0 12px 26px -10px rgba(63, 99, 230, 0.62);
  --shadow-cta-hover: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 2px rgba(44, 71, 194, 0.4), 0 16px 30px -10px rgba(44, 71, 194, 0.66);
  --r-card: 28px;
  --r-menu: 18px;
  --r-btn: 14px;
  --r-tile: 12px;
  --r-snip: 10px;
  --r-nav: 10px;
  --r-logo: 8px;
  --r-focus: 6px;
  --r-icon: 9px;
  --r-pill: 999px;
  --r-circle: 50%;
  --font-display: 'Inter', 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans', 'Apple SD Gothic Neo', 'Microsoft YaHei', sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans', 'Apple SD Gothic Neo', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --size-body: 16px;
  --size-small: 13.5px;
  --weight-normal: 400;
  --weight-title: 500;
  --weight-strong: 600;
  --gutter: 24px;
  --w-shell: 1248px;
  --w-header: 1280px;
  --w-plate: 1200px;
  --w-reading: 800px;
  --header-height: 68px;
  --gap-lane: 22px;
  --section-space: 140px;
  --reveal-duration: 420ms;
  --reveal-ease: ease-out;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
html.nav-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--panel);
  color: var(--text);
  font: var(--weight-normal) var(--size-body)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button, summary, a { -webkit-tap-highlight-color: var(--accent-12); }
button { border: 0; }
img { max-width: 100%; }
svg { flex-shrink: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-focus); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: var(--weight-title); text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: clamp(34px, 2.4vw + 14px, 48px); line-height: 1.12; letter-spacing: -0.02em; }
h2 { font-size: clamp(24px, 2vw + 8px, 32px); line-height: 1.3; letter-spacing: -0.02em; }
h3 { font-size: 21px; line-height: 1.4; }
p, ul, ol, figure { margin-top: 0; }
strong { font-weight: var(--weight-strong); }
code, kbd, pre { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; }
pre { max-width: 100%; min-width: 0; overflow-x: auto; white-space: pre; }
pre code { overflow-wrap: normal; word-break: normal; }
:where(main, section, article, aside, div, li) { min-width: 0; }
.wrap {
  width: 100%;
  max-width: var(--w-shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.reading { max-width: var(--w-reading); }
.nowrap { white-space: nowrap; }
.muted { color: var(--text-muted); }
.text-link { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover { color: var(--text); }
.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: 10px 16px; border-radius: var(--r-nav);
  background: var(--panel); color: var(--accent-dark);
  box-shadow: var(--shadow-menu); font-size: 14px;
}
.skip:focus { top: 12px; }
.section { padding-top: var(--section-space); padding-bottom: var(--section-space); }
.section--white { background: var(--panel); color: var(--text); }
.section--soft { background: var(--panel-2); color: var(--text); }
.section--cool { background: var(--bg); color: var(--text); }
.section-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--text-muted); }
.eyebrow { color: var(--accent-dark); font: var(--weight-title) 12.5px/1.5 var(--font-mono); letter-spacing: 0.02em; }
.card {
  padding: 32px; border-radius: var(--r-card);
  background: var(--panel); color: var(--text); box-shadow: var(--shadow-card);
}
.panel { padding: 24px; border-radius: var(--r-menu); background: var(--panel-2); color: var(--text); }
.card > :last-child, .panel > :last-child { margin-bottom: 0; }
.grid-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.stack-space > * + * { margin-top: 24px; }
.prose { line-height: 1.85; overflow-wrap: break-word; }
.prose h2 { margin-top: 64px; margin-bottom: 22px; }
.prose h3 { margin-top: 36px; }
.prose p, .prose ul, .prose ol { margin-bottom: 22px; }
.prose a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.prose :not(pre) > code { padding: 2px 5px; border-radius: var(--r-focus); background: var(--panel-2); color: var(--text); font-size: 0.9em; }
.prose pre { padding: 22px; border-radius: var(--r-menu); background: var(--panel-2); color: var(--text); font-size: 13px; line-height: 1.8; }
.prose img { height: auto; }
.cta-row { margin-top: 28px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 12px 24px; border: 0; border-radius: var(--r-btn);
  font: var(--weight-title) 15.5px/1.35 var(--font-body); letter-spacing: -0.005em;
  text-align: center; max-width: 100%;
}
.btn svg { width: 17px; height: 17px; }
.btn--solid { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-cta); }
.btn--solid:hover, .btn--solid.is-hover { background: var(--accent-dark); color: var(--on-accent); box-shadow: var(--shadow-cta-hover); }
.btn--solid:active, .btn--solid.is-active { background: var(--accent-dark); color: var(--on-accent); box-shadow: var(--shadow-chip); }
.btn--line { background: var(--panel); color: var(--text); box-shadow: inset 0 0 0 1px var(--border), var(--shadow-chip); }
.btn--line:hover, .btn--line.is-hover { background: var(--panel); color: var(--text); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-chip); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--panel-2); color: var(--text-muted); box-shadow: none; cursor: not-allowed; }
.btn.is-focus { outline: 2px solid var(--accent); outline-offset: 3px; }
.masthead, #site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--panel); color: var(--text); border-bottom: 1px solid var(--border-soft);
}
.masthead__in {
  max-width: min(100%, calc(var(--w-header) + var(--gutter) * 2));
  margin-inline: auto; padding-inline: var(--gutter); height: var(--header-height);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0;
  font: var(--weight-title) 16px/1 var(--font-display); letter-spacing: -0.01em;
}
.wordmark__mark { display: block; width: 34px; height: 34px; flex-shrink: 0; border-radius: var(--r-logo); }
.wordmark__placeholder { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border), var(--shadow-chip); }
.wordmark__sub { color: var(--text-muted); margin-left: 1px; }
.navbar { display: flex; align-items: center; min-width: 0; margin-left: auto; }
.navbar__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.navbar__link, .more__btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 7px 13px; border-radius: var(--r-nav);
  font-size: 14.5px; color: var(--text-muted); white-space: nowrap;
  background: var(--clear); border: 0; cursor: pointer; list-style: none;
}
summary::-webkit-details-marker { display: none; }
.navbar__link:hover, .more__btn:hover { color: var(--text); background: var(--panel-2); }
.navbar__link[aria-current="page"], .more__item[aria-current="page"] { color: var(--text); background: var(--panel-2); font-weight: var(--weight-title); }
.more { position: relative; }
.more__caret { width: 10px; height: 10px; }
.more__panel, .language__panel {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 65;
  width: 312px; max-width: calc(100vw - var(--gutter) * 2);
  padding: 10px; border-radius: var(--r-menu);
  background: var(--panel); color: var(--text); box-shadow: var(--shadow-menu);
}
.more__label { margin: 6px 10px; font-size: 11.5px; letter-spacing: 0.04em; color: var(--text-muted); }
.more__group { list-style: none; margin: 0; padding: 0; border-radius: var(--r-tile); background: var(--panel-2); color: var(--text); }
.more__group + .more__label { margin-top: 12px; }
.more__group li + li { border-top: 1px solid var(--border); }
.more__item { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; padding: 11px 14px; }
.more__item:hover { color: var(--accent-dark); }
.more__name { display: block; font-size: 14px; line-height: 1.35; }
.more__desc { display: block; font-size: 12px; line-height: 1.4; color: var(--text-muted); margin-top: 2px; }
.more__chev { width: 7px; height: 12px; color: var(--text-muted); flex-shrink: 0; }
.header-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.language { position: relative; }
.lang {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px;
  padding: 7px 13px; border: 0; border-radius: var(--r-pill);
  background: var(--panel); color: var(--text-muted); font-size: 13.5px;
  box-shadow: inset 0 0 0 1px var(--border); white-space: nowrap; list-style: none;
}
.lang svg { width: 15px; height: 15px; }
.lang__short { display: none; }
.language__panel { width: 200px; }
.language__panel a { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--r-nav); }
.language__panel a:hover, .language__panel a[aria-current="true"] { background: var(--panel-2); color: var(--accent-dark); }
.menu-toggle { display: none; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border-radius: var(--r-nav); background: var(--panel-2); color: var(--text); }
.menu-toggle svg { width: 22px; height: 22px; }
.mobile-drawer {
  position: absolute; top: 100%; inset-inline: 0; z-index: 63;
  padding: 16px var(--gutter) 28px;
  max-height: calc(100dvh - var(--header-height)); overflow-y: auto; overscroll-behavior: contain;
  background: var(--panel); color: var(--text); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-menu);
}
.mobile-drawer ul { list-style: none; padding: 0; margin: 0; }
.mobile-drawer a { display: flex; align-items: center; width: 100%; min-height: 48px; padding: 12px 16px; border-radius: var(--r-nav); }
.mobile-drawer a:hover, .mobile-drawer a[aria-current] { background: var(--panel-2); color: var(--accent-dark); }
.mobile-drawer__languages { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--border); }
.nav-veil { position: fixed; inset: var(--header-height) 0 0; z-index: 55; background: var(--veil); color: var(--text); cursor: pointer; }
.preview-mobile { display: none; }
.hero { overflow-x: clip; background: var(--hero-wash); color: var(--text); padding: 48px var(--gutter) 112px; }
.hero__copy { max-width: 760px; margin-inline: auto; text-align: center; }
.title { margin: 20px 0 0; font: var(--weight-title) clamp(28px, 2.4vw + 14px, 48px)/1.12 var(--font-display); letter-spacing: -0.02em; }
.title__grad { background: var(--grad); color: var(--accent-dark); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: var(--clear); padding-bottom: 0.04em; }
.lede { margin: 16px auto 0; max-width: 660px; font-size: 16.5px; line-height: 1.7; color: var(--text-muted); text-wrap: balance; }
.lede strong { color: var(--text); }
.site-footer { background: var(--bg); color: var(--text); border-top: 1px solid var(--border); padding-top: 72px; padding-bottom: 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.25fr 0.7fr; gap: 40px; }
.footer-brand p { max-width: 300px; margin-top: 20px; color: var(--text-muted); font-size: 14px; }
.footer-heading { margin: 0 0 16px; font-size: 14px; font-weight: var(--weight-title); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links a { display: block; padding-top: 6px; padding-bottom: 6px; font-size: 13.5px; color: var(--text-muted); overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--accent-dark); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-muted); }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; }
.reveal { opacity: 1; transform: none; }
.reveal-pending { opacity: 0; transform: translateY(16px); transition: opacity var(--reveal-duration) var(--reveal-ease), transform var(--reveal-duration) var(--reveal-ease); }
.reveal.shown { opacity: 1; transform: none; }
@media (max-width: 1279px) {
  .navbar { display: none; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .preview-mobile { display: block; }
  .preview-mobile > summary { display: flex; list-style: none; }
  .preview-mobile .mobile-drawer { position: absolute; }
}
@media (min-width: 1280px) {
  .mobile-drawer, .nav-veil { display: none !important; }
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  h1, .title { font-size: clamp(24px, 4vw, 30px); line-height: 1.2; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --section-space: 96px; }
  .tilt, [data-tilt] { transform: none !important; }
  .masthead__in { gap: 8px; }
  .wordmark { font-size: 15px; gap: 8px; }
  .wordmark__sub { display: none; }
  .lang { padding-inline: 10px; }
  .lang__full { display: none; }
  .lang__short { display: inline; }
  .hero { padding-top: 36px; padding-bottom: 80px; }
  .lede { font-size: 15.5px; }
  .hero .cta-row { flex-direction: column; align-items: stretch; max-width: 320px; margin-inline: auto; }
  .grid-two { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 24px; }
  .panel { padding: 20px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer-brand p { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-pending { opacity: 1; transform: none; transition: none; }
}