:root {
  --bg: #FFFFFF;
  --bg-panel: #F7F8FB;
  --bg-panel-2: #EFF1F6;
  --line: #E3E6EE;
  --line-strong: #CDD2DE;
  --accent: #4F2BD9;
  --accent-dark: #3A1EAA;
  --accent-soft: #EDE8FC;
  --accent-ring: rgba(79, 43, 217, .22);
  --ink: #0D1530;
  --muted: #5A6787;
  --success: #138A5B;
  --warn: #C77A0A;
  --error: #D23A4A;
  --ribbon-a: #FF9F43;
  --ribbon-b: #FF5C8A;
  --ribbon-c: #9B6BFF;
  --on-accent: #FFFFFF;
  --sheen: #FFFFFF;
  --veil: rgba(255, 255, 255, .74);
  --glass: rgba(255, 255, 255, .90);
  --menu-glass: rgba(250, 250, 252, .95);
  --scrim: rgba(13, 21, 48, .28);
  --clear: transparent;

  --shadow-soft: 0 1px 2px rgba(13, 21, 48, .05);
  --shadow-card: 0 1px 2px rgba(13, 21, 48, .06), 0 6px 18px -6px rgba(13, 21, 48, .10);
  --shadow-lift: 0 2px 5px rgba(13, 21, 48, .08), 0 12px 24px -8px rgba(13, 21, 48, .18);
  --shadow-seg: 0 1px 1px rgba(13, 21, 48, .08), 0 2px 6px -2px rgba(13, 21, 48, .12);
  --shadow-window: 0 1px 2px rgba(13, 21, 48, .10), 0 14px 32px -10px rgba(13, 21, 48, .18), 0 52px 100px -24px rgba(79, 43, 217, .32);
  --shadow-menu: 0 1px 1px rgba(13, 21, 48, .10), 0 10px 28px -6px rgba(13, 21, 48, .22), 0 30px 60px -18px rgba(155, 107, 255, .40);
  --shadow-btn: 0 1px 2px rgba(58, 30, 170, .25), 0 8px 18px -8px rgba(79, 43, 217, .55);

  --r-line: 2px;
  --r-xs: 4px;
  --r-sm: 6px;
  --r: 8px;
  --r-pill: 999px;
  --font-display: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-strong: 600;
  --type-body: 16px;
  --type-small: 13px;
  --type-label: 14px;
  --type-action: 15px;
  --type-brand: 17px;
  --type-h1: clamp(34px, 1.3vw + 22px, 40px);
  --type-h1-mobile: 28px;
  --type-h2: clamp(24px, 2vw + 8px, 32px);
  --type-h3: 21px;
  --type-tab: 14.5px;
  --type-caret: 11px;

  --nav-h: 72px;
  --wrap: 1280px;
  --measure: 76ch;
  --gutter: 32px;
  --track: min(100% - var(--gutter) * 2, var(--wrap));
  --tab-w: 92px;
  --tap: 44px;
  --section-space: clamp(48px, 6vw, 96px);
  --ease: cubic-bezier(.22, .7, .18, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.nav-open { overflow: hidden; }
body {
  position: relative;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: var(--type-body)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: .19em; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button, input { font: inherit; color: inherit; }
button:not(:disabled), summary { cursor: pointer; }
img, svg { max-width: 100%; }
img { vertical-align: middle; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, pre { margin: 0; }
ul, ol { padding-inline-start: 1.45em; }
.clean-list { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  letter-spacing: -.012em;
  line-height: 1.22;
  text-wrap: balance;
}
h1 { font-size: var(--type-h1); }
h2 { font-size: var(--type-h2); }
h3 { font-size: var(--type-h3); }
strong, b { font-weight: var(--weight-strong); }
code, pre, kbd { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; }
pre {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg-panel);
  color: var(--ink);
}
pre code { overflow-wrap: normal; }
.grid > *, .cluster > *, .prose, .wrap, .reading { min-width: 0; }
.cluster { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.cluster svg, .btn svg, .badge-dot, .plat-ico, .lang svg, .brand-mark, .app-icon { flex-shrink: 0; }
.word { white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: var(--type-small); }
.wrap { width: var(--track); margin-inline: auto; padding-inline: var(--gutter); }
.reading { max-width: var(--measure); }
.prose { overflow-wrap: break-word; }
.prose > * + * { margin-top: 1em; }
.prose :is(h2, h3) { margin-top: 1.55em; }
main [id] { scroll-margin-top: 18px; }
.section { padding-block: var(--section-space); border-bottom: 1px solid var(--line); }
.panel-band { background: var(--bg-panel); color: var(--ink); }
.section-head { margin-bottom: 28px; }
.section-head > * + * { margin-top: 10px; }

.rails {
  position: absolute;
  inset-block: 0;
  left: 50%;
  width: var(--track);
  transform: translateX(-50%);
  border-inline: 1px solid var(--line);
  pointer-events: none;
  z-index: 0;
}
.first, .decor-frame { position: relative; overflow-x: clip; }
.first { z-index: 3; }
.page-body, .site-foot { position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: var(--type-small); color: var(--muted); }
.eyebrow::before { content: ""; flex: 0 0 18px; height: 1px; background: var(--line-strong); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 8px 22px;
  border: 1px solid var(--clear);
  border-radius: var(--r-sm);
  font-size: var(--type-action);
  font-weight: var(--weight-medium);
  text-decoration: none;
  text-align: center;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn svg { width: 14px; height: 14px; }
.btn-main { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-btn); }
.btn-main:is(:hover, :active, .demo-hover) { background: var(--accent-dark); color: var(--on-accent); }
.btn-ghost { background: var(--bg); color: var(--accent); border-color: var(--line-strong); }
.btn-ghost:is(:hover, .demo-hover) { border-color: var(--accent); color: var(--accent-dark); }
.btn-ghost:is(:active, .demo-active) { background: var(--bg-panel-2); color: var(--accent-dark); }
.btn:is(:focus-visible, .demo-focus) { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn:disabled { background: var(--bg-panel-2); color: var(--muted); border-color: var(--line); box-shadow: none; }

.card, .panel {
  min-width: 0;
  padding: clamp(16px, 2.5vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
  color: var(--ink);
}
.card { box-shadow: var(--shadow-card); }
.panel { background: var(--bg-panel); color: var(--ink); }
.card > * + *, .panel > * + * { margin-top: 12px; }
.badge, .tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  min-height: 30px;
  padding: 3px 13px 3px 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--muted);
  font-size: var(--type-small);
  overflow-wrap: anywhere;
}
.badge { box-shadow: var(--shadow-soft); }
.badge b { color: var(--ink); }
.badge-dot { width: 7px; height: 7px; border-radius: var(--r-pill); background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.site-head {
  position: relative;
  z-index: 5;
  height: var(--nav-h);
  border-bottom: 1px solid var(--line);
}
.site-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--veil);
  pointer-events: none;
  -webkit-backdrop-filter: saturate(1.3) blur(18px);
  backdrop-filter: saturate(1.3) blur(18px);
}
.head-in {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: min(100%, calc(var(--wrap) + var(--gutter) * 2));
  height: 100%;
  margin-inline: auto;
  padding-inline: 24px;
}
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { display: block; width: 32px; height: 32px; border-radius: var(--r-pill); box-shadow: var(--shadow-soft); }
.brand-name { font: var(--weight-strong) var(--type-brand)/1.2 var(--font-display); letter-spacing: -.01em; }
.head-tabs { align-self: stretch; position: relative; margin-inline-start: auto; min-width: 0; }
.tabs { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; height: 100%; }
.tabs li { height: 100%; }
.tab {
  display: grid;
  place-items: center;
  text-align: center;
  width: var(--tab-w);
  height: 100%;
  padding-inline: 4px;
  font-size: var(--type-tab);
  color: var(--muted);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.tab:is(:hover, [aria-current="page"]) { color: var(--ink); }
.tab:focus-visible { outline-offset: -5px; border-radius: var(--r-sm); }
.tab-slider {
  --slot: 0;
  position: absolute;
  bottom: -1px;
  left: calc(var(--tab-w) / 2 - 14px);
  width: 28px;
  height: 2px;
  border-radius: var(--r-line);
  background: var(--accent);
  opacity: 0;
  pointer-events: none;
  transform: translateX(calc(var(--slot) * var(--tab-w)));
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.tabs:has([aria-current], a:hover, a:focus-visible) + .tab-slider { opacity: 1; }
.head-tabs:has(li:nth-child(2) [aria-current]) .tab-slider { --slot: 1; }
.head-tabs:has(li:nth-child(3) [aria-current]) .tab-slider { --slot: 2; }
.head-tabs:has(li:nth-child(4) [aria-current]) .tab-slider { --slot: 3; }
.head-tabs:has(li:nth-child(5) [aria-current]) .tab-slider { --slot: 4; }
.head-tabs:has(li:nth-child(1) a:is(:hover, :focus-visible)) .tab-slider { --slot: 0; }
.head-tabs:has(li:nth-child(2) a:is(:hover, :focus-visible)) .tab-slider { --slot: 1; }
.head-tabs:has(li:nth-child(3) a:is(:hover, :focus-visible)) .tab-slider { --slot: 2; }
.head-tabs:has(li:nth-child(4) a:is(:hover, :focus-visible)) .tab-slider { --slot: 3; }
.head-tabs:has(li:nth-child(5) a:is(:hover, :focus-visible)) .tab-slider { --slot: 4; }
.head-tools { display: flex; flex-shrink: 0; align-items: center; gap: 14px; }
.head-sep { width: 1px; height: 20px; background: var(--line-strong); }
.locale-control { position: relative; }
.lang, .menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--clear);
  border-radius: var(--r-sm);
  background: var(--clear);
  color: var(--ink);
  font-size: var(--type-label);
  list-style: none;
}
.lang::-webkit-details-marker, .menu-toggle::-webkit-details-marker { display: none; }
.lang { min-height: 34px; padding-inline: 10px; white-space: nowrap; }
.lang:hover, .menu-toggle:hover { background: var(--bg); color: var(--ink); border-color: var(--line); }
.lang svg { width: 15px; height: 15px; color: var(--muted); }
.lang-caret { font-size: var(--type-caret); color: var(--muted); }
.lang-short, .menu-toggle, .mobile-preview { display: none; }
.menu-toggle { min-width: var(--tap); min-height: var(--tap); }
.menu-toggle svg { width: 20px; height: 20px; }
.locale-list, .mobile-nav {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  box-shadow: var(--shadow-lift);
}
.locale-list { position: absolute; inset: calc(100% + 8px) 0 auto auto; min-width: 156px; padding: 4px; border-radius: var(--r); z-index: 3; }
.locale-list a, .mobile-nav a {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  color: var(--ink);
  text-decoration: none;
}
.locale-list a:is(:hover, [aria-current]), .mobile-nav a:is(:hover, [aria-current]) { background: var(--bg-panel-2); color: var(--ink); }
.mobile-nav {
  display: none;
  position: absolute;
  inset: 100% 0 auto;
  max-height: calc(100dvh - var(--nav-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px var(--gutter);
  z-index: 2;
}
.mobile-nav .clean-list + .clean-list { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.menu-veil { position: fixed; inset: var(--nav-h) 0 0; z-index: 1; background: var(--scrim); }
[lang="en"] .head-tabs { --tab-w: 126px; }
:is([lang="ja"], [lang="ko"]) .head-tabs { --tab-w: 106px; }

.site-foot { border-top: 1px solid var(--line); background: var(--bg-panel); color: var(--ink); }
.foot-grid { display: grid; grid-template-columns: 1.25fr .75fr 1.25fr .75fr; gap: 32px; padding-block: 48px; }
.foot-grid > * { min-width: 0; }
.foot-grid h2 { font: var(--weight-strong) var(--type-action)/1.35 var(--font-body); margin-bottom: 12px; }
.foot-grid p { margin-top: 12px; color: var(--muted); }
.foot-grid li + li { margin-top: 6px; }
.site-foot a:not(.brand) { color: var(--muted); overflow-wrap: anywhere; }
.site-foot a:hover:not(.brand), .site-foot [aria-current] { color: var(--accent); }
.foot-end { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; border-top: 1px solid var(--line); padding-block: 16px; color: var(--muted); font-size: var(--type-small); }

.reveal-pending:not(.shown):not(:focus-within) { opacity: 0; }
.reveal { transition: opacity .42s var(--ease); }

@media (max-width: 960px) {
  :root { --track: 100%; }
  .rails { display: none; }
  .head-tabs, .head-sep { display: none; }
  .head-tools { margin-left: auto; }
  .menu-toggle, .mobile-preview { display: inline-flex; }
  .mobile-nav { display: block; }
  .mobile-preview:not([open]) .mobile-nav { display: none; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 961px) and (max-width: 1080px) {
  [lang="en"] .head-tabs { --tab-w: 112px; }
}
@media (max-width: 768px) {
  :root { --type-h1: var(--type-h1-mobile); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .tilt, .device { transform: none; }
}
@media (max-width: 560px) {
  .head-in { padding-inline: 14px; gap: 8px; }
  .head-tools { gap: 4px; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .lang { min-height: var(--tap); }
  .foot-grid { gap: 25px 18px; }
  .foot-intro, .foot-search { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .tab-slider, .tab, .btn { transition: none; }
  .reveal-pending:not(.shown):not(:focus-within) { opacity: 1; }
}