:root {
  --bg: #f5f5f7;
  --bg-panel: #ffffff;
  --bg-panel2: #eaf2fb;
  --bg-panel3: #f5f8fc;
  --border: #d9d9de;
  --accent: #0066cc;
  --accent-dark: #004f9e;
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --success: #1f8a4c;
  --warn: #b25e00;
  --error: #d70015;
  --device: #e8e8ed;
  --device-hinge: #c9c9cf;
  --device-lip: #dcdce1;
  --nav-glass: rgba(245, 245, 247, 0.82);
  --accent-ring: rgba(0, 102, 204, 0.32);
  --accent-soft: rgba(0, 102, 204, 0.07);
  --accent-line: rgba(0, 102, 204, 0.2);
  --veil: rgba(29, 29, 31, 0.24);
  --clear: transparent;
  --font-display: "Inter", "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius-pill: 999px;
  --radius-icon: 13px;
  --radius-mark: 7px;
  --radius-panel: 28px;
  --radius-card: 20px;
  --radius-shot: 10px;
  --radius-focus: 4px;
  --radius-round: 50%;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --size-body: 16px;
  --size-small: 13px;
  --size-caption: 12.5px;
  --size-lede: 17px;
  --size-h1: clamp(34px, 1.9vw + 21px, 48px);
  --size-h2: clamp(28px, 3vw, 40px);
  --size-h3: 22px;
  --tracking-title: -0.02em;
  --tracking-brand: -0.01em;
  --tracking-button: -0.005em;
  --tracking-code: 0.02em;
  --line-body: 1.75;
  --line-title: 1.1;
  --gutter: 32px;
  --content-width: 1136px;
  --reading-width: 760px;
  --head-width: 1280px;
  --section-space: 144px;
  --nav-h: 52px;
  --peek: 24px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 200ms;
  --reveal-duration: 650ms;
  --reveal-distance: 16px;
  --dot-duration: 2.6s;
  --focus-width: 2px;
  --line-width: 1px;
  --no-shadow: none;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

html.nav-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: var(--line-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[hidden] { display: none !important; }
img, svg { max-width: 100%; vertical-align: middle; }
img { height: auto; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: var(--accent-soft); }
a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: var(--accent-dark); }
button:disabled { cursor: not-allowed; }
:focus-visible {
  outline: var(--focus-width) solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-focus);
}
::selection { background: var(--bg-panel2); color: var(--text); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-title);
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: var(--size-h1); line-height: var(--line-title); margin: 0 0 24px; }
h2 { font-size: var(--size-h2); line-height: 1.2; margin: 0 0 28px; }
h3 { font-size: var(--size-h3); line-height: 1.35; margin: 0 0 16px; }
p { margin: 0 0 20px; }
strong { font-weight: var(--weight-semibold); }
ul, ol { padding-inline-start: 1.5em; }
li + li { margin-top: 6px; }
code, pre, kbd { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; font-size: 0.9em; }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 24px;
  margin: 24px 0;
  border-radius: var(--radius-card);
  background: var(--bg-panel2);
  color: var(--text);
  line-height: 1.8;
  tab-size: 2;
}
pre code { overflow-wrap: normal; word-break: normal; white-space: pre; }
figure { margin: 0; }
blockquote { margin-inline: 0; }
hr { border: 0; margin-block: 48px; }
section, article, aside, nav, main, div { min-width: 0; }
[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }

.wrap {
  width: 100%;
  max-width: calc(var(--content-width) + var(--gutter) * 2);
  padding-inline: var(--gutter);
  margin-inline: auto;
}
.reading {
  width: 100%;
  max-width: calc(var(--reading-width) + var(--gutter) * 2);
  padding-inline: var(--gutter);
  margin-inline: auto;
}
.section {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}
.section--white { background: var(--bg-panel); color: var(--text); }
.section--blue {
  background: linear-gradient(135deg, var(--bg-panel2), var(--bg-panel3));
  color: var(--text);
}
.section--gray { background: var(--bg); color: var(--text); }
.section-heading { max-width: 800px; margin-inline: auto; text-align: center; margin-bottom: 48px; }
.muted, .prose figcaption { color: var(--text-muted); }
.keep { white-space: nowrap; }
.center { text-align: center; }
.accent { color: var(--accent); }
.prose { min-width: 0; }
.prose h2 { margin-top: 72px; }
.prose h3 { margin-top: 40px; }
.prose p, .prose li { overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: var(--gutter);
  z-index: 100;
  transform: translateY(-200%);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--bg-panel);
  color: var(--accent);
}
.skip-link:focus { transform: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 22px;
  border: 0;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 24px;
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-button);
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease);
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn--solid { background: var(--accent); color: var(--bg-panel); }
.btn--solid:hover, .btn--solid.is-hover { background: var(--accent-dark); color: var(--bg-panel); }
.btn--ghost {
  background: var(--clear);
  color: var(--accent);
  box-shadow: inset 0 0 0 var(--line-width) var(--accent);
}
.btn--ghost:hover, .btn--ghost.is-hover { background: var(--accent-soft); color: var(--accent-dark); }
.btn:active { background: var(--accent-dark); color: var(--bg-panel); }
.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--device);
  color: var(--text-muted);
  box-shadow: var(--no-shadow);
}
.btn[aria-disabled="true"] { pointer-events: none; }
.btn.is-focus { outline: var(--focus-width) solid var(--accent); outline-offset: 3px; }
.text-link { display: inline-block; padding-block: 10px; font-weight: var(--weight-medium); }

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  background: var(--nav-glass);
  color: var(--text);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
}
.site-head__inner {
  position: relative;
  max-width: min(100%, calc(var(--head-width) + var(--gutter) * 2));
  height: 100%;
  padding-inline: var(--gutter);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 36px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  flex-shrink: 0;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-brand);
  white-space: nowrap;
}
.brand:hover { color: var(--text); }
.brand__mark {
  display: block;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: var(--radius-mark);
}
.brand__mark--placeholder, .hero-icon--placeholder {
  background: linear-gradient(160deg, var(--bg-panel), var(--bg-panel3));
  color: var(--text);
  box-shadow: inset 0 0 0 var(--line-width) var(--border);
}
.primary-nav { min-width: 0; }
.primary-nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 26px;
}
.primary-nav li { margin: 0; }
.primary-nav a {
  display: block;
  padding-block: 12px;
  color: var(--text-muted);
  font-size: var(--size-small);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--duration) var(--ease);
}
.primary-nav a:hover { color: var(--text); }
.primary-nav a[aria-current="page"] { color: var(--text); font-weight: var(--weight-semibold); }
.head-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.language { position: relative; }
.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: var(--clear);
  color: var(--text);
  font-size: var(--size-small);
  white-space: nowrap;
}
.lang__short { display: none; }
.lang__caret { font-size: 10px; color: var(--text-muted); }
.language__list {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  width: 184px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: var(--line-width) solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg-panel);
  color: var(--text);
}
.language__list li { margin: 0; }
.language__list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--radius-shot);
  color: var(--text);
  text-decoration: none;
}
.language__list a:hover, .language__list a[aria-current="true"] {
  background: var(--bg-panel2);
  color: var(--accent-dark);
}
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  border: 0;
  background: var(--clear);
  color: var(--text);
}
.menu-toggle svg { width: 22px; height: 22px; flex-shrink: 0; }
.mobile-nav { display: none; }
.nav-veil {
  position: fixed;
  inset: var(--nav-h) 0 0;
  z-index: 30;
  border: 0;
  background: var(--veil);
  color: var(--text);
}
.card, .panel {
  min-width: 0;
  padding: 32px;
  border-radius: var(--radius-card);
  background: var(--bg-panel);
  color: var(--text);
  box-shadow: var(--no-shadow);
}
.panel { border-radius: var(--radius-panel); background: var(--bg); color: var(--text); }
.card > :last-child, .panel > :last-child { margin-bottom: 0; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card-grid > * { min-width: 0; }
.reveal { opacity: 1; transform: none; }
.reveal.reveal-pending {
  opacity: 0;
  transform: translateY(var(--reveal-distance));
  transition: opacity var(--reveal-duration) var(--ease), transform var(--reveal-duration) var(--ease);
}
.reveal.shown { opacity: 1; transform: none; }

.site-foot {
  padding-top: 80px;
  padding-bottom: 32px;
  background: var(--bg);
  color: var(--text);
}
.foot-grid { display: grid; grid-template-columns: 1.3fr 0.7fr 1fr; gap: 56px; }
.foot-brand p { max-width: 32em; margin-top: 20px; color: var(--text-muted); font-size: 14px; }
.foot-title { font-size: 14px; margin-bottom: 16px; }
.foot-links { list-style: none; padding: 0; margin: 0; }
.foot-links li { margin: 0; }
.foot-links a {
  display: inline-block;
  padding-block: 7px;
  color: var(--text-muted);
  font-size: var(--size-small);
  text-decoration: none;
}
.foot-links a:hover { color: var(--accent); }
.foot-languages { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 48px; }
.foot-languages a { padding-block: 8px; font-size: var(--size-small); color: var(--text-muted); }
.foot-languages a[aria-current="true"] { color: var(--text); font-weight: var(--weight-semibold); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; font-size: var(--size-small); color: var(--text-muted); }
.foot-bottom p { margin: 0; }
.foot-bottom a { color: var(--text-muted); }

@media (max-width: 1024px) {
  .site-head__inner { gap: 24px; }
  .primary-nav { display: none; }
  .head-tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .mobile-nav:not([hidden]) {
    display: block;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    z-index: 2;
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px var(--gutter) 28px;
    background: var(--bg-panel);
    color: var(--text);
  }
  .mobile-nav ul { list-style: none; margin: 0; padding: 0; }
  .mobile-nav li { margin: 0; }
  .mobile-nav a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 10px 8px;
    color: var(--text);
    text-decoration: none;
  }
  .mobile-nav a:hover, .mobile-nav a[aria-current] {
    background: var(--bg-panel2);
    color: var(--accent-dark);
    border-radius: var(--radius-shot);
  }
  .mobile-nav__languages { margin-top: 20px; }
  .mobile-nav__label { margin: 0 8px 8px; font-size: var(--size-small); color: var(--text-muted); }
}
@media (max-width: 768px) {
  :root { --size-h1: clamp(24px, 4vw, 30px); --gutter: 24px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --gutter: 18px; }
  .site-head__inner { gap: 8px; }
  .brand { font-size: 14px; gap: 8px; }
  .head-tools { margin-left: auto; gap: 4px; }
  .card-grid, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .card, .panel { padding: 24px; }
  .foot-brand { grid-column: auto; }
  .foot-grid { gap: 28px; }
  .section-heading { margin-bottom: 32px; }
  .tilt, [data-tilt] { transform: none !important; }
  pre { padding: 18px; }
}
@media (max-width: 420px) {
  .brand__suffix, .lang__full { display: none; }
  .lang__short { display: inline; }
  .lang { min-width: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal.reveal-pending { opacity: 1; transform: none; }
}