:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-panel: #f6f7f9;
  --bg-panel-2: #14161b;
  --stage-end: #1b1e25;
  --code-bg: #0f1115;
  --code-line: #2a2e36;
  --border: #e6e8ec;
  --border-strong: #d5d9e0;
  --accent: #275df5;
  --accent-dark: #1a44c4;
  --accent-on-dark: #6f93ff;
  --text: #111318;
  --text-muted: #5b6170;
  --text-faint: #a3a8b3;
  --success: #1fae5b;
  --warn: #f08a1c;
  --error: #d93a3a;
  --dot: #e3e6ec;
  --on-dark: #e9ecf1;
  --on-dark-muted: #a3a8b3;
  --on-dark-faint: #8b919d;
  --ink-hover: #262a33;
  --mask-ink: #000000;
  --clear: transparent;
  --shot-top: #262b36;
  --shot-bottom: #191c23;
  --shot-dot: rgba(255,255,255,.07);
  --veil: rgba(10,11,14,.38);
  --font-display: "Inter","Noto Sans SC","Noto Sans JP","Noto Sans KR",-apple-system,BlinkMacSystemFont,"PingFang SC","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;
  --weight-body: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-display: 800;
  --size-body: 15px;
  --size-small: 13px;
  --size-micro: 12px;
  --size-h1: clamp(34px,4vw,48px);
  --size-h2: clamp(26px,3vw,38px);
  --size-h3: 22px;
  --r-section: 36px;
  --r-stage: 28px;
  --r-float: 18px;
  --r-pill: 999px;
  --r-circle: 50%;
  --r-shot: 8px;
  --r-shot-limit: 10px;
  --r-small: 6px;
  --r-mark: 9px;
  --r-square: 0;
  --shadow-wide: 0 40px 120px rgba(10,11,14,.18);
  --shadow-float: 0 1px 2px rgba(10,11,14,.10),0 18px 40px rgba(10,11,14,.22),0 50px 110px rgba(10,11,14,.30);
  --shadow-btn: 0 1px 0 rgba(255,255,255,.12) inset,0 10px 24px rgba(17,19,24,.18);
  --shadow-soft: 0 1px 2px rgba(17,19,24,.05);
  --shadow-slider: 0 2px 8px rgba(17,19,24,.12);
  --hairline-dark: inset 0 1px 0 rgba(255,255,255,.06);
  --wrap: 1180px;
  --reading: 800px;
  --header-wrap: 1280px;
  --header-height: 68px;
  --gutter: 24px;
  --section-gap: 160px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --speed: .15s;
  --reveal-speed: .6s;
  --focus-width: 3px;
}
*, *::before, *::after { box-sizing: border-box; }
html { margin: 0; padding: 0; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--size-body);
  font-weight: var(--weight-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
html.nav-open { overflow: hidden; }
main, section, article, aside, nav, header, footer, div, figure { min-width: 0; }
img { max-width: 100%; }
svg { display: block; flex-shrink: 0; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: var(--clear); }
button { color: inherit; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: var(--focus-width) solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--bg); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  line-height: 1.2;
  letter-spacing: -.02em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1, .h1 { font-size: var(--size-h1); line-height: 1.12; }
h2 { font-size: var(--size-h2); }
h3 { font-size: var(--size-h3); }
h1, h2, h3, p, ul, ol, dl, figure { margin-top: 0; }
p { margin-bottom: 1.2em; }
strong { font-weight: var(--weight-semibold); }
small, .small { font-size: var(--size-small); }
.muted { color: var(--text-muted); }
.mono, code, pre, kbd { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 24px;
  border: 1px solid var(--code-line);
  border-radius: var(--r-float);
  background: var(--code-bg);
  color: var(--on-dark);
  font-size: var(--size-small);
  line-height: 1.9;
  tab-size: 2;
}
pre code { white-space: pre; overflow-wrap: normal; word-break: normal; }
.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 { padding-top: var(--section-gap); padding-bottom: 0; }
.section:last-child { padding-bottom: var(--section-gap); }
.section-heading { max-width: 760px; margin-inline: auto; margin-bottom: 44px; text-align: center; }
.section-heading p { color: var(--text-muted); }
.prose { min-width: 0; line-height: 1.9; }
.prose h2 { margin-top: 2.4em; margin-bottom: .8em; }
.prose h3 { margin-top: 1.8em; }
.prose a:not(.btn):not(.appstore-btn) { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.prose :where(ul,ol) { padding-left: 1.6em; }
.prose li + li { margin-top: .55em; }
.prose :where(h2,h3,section,[id]) { scroll-margin-top: 28px; }
.keep { white-space: nowrap; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  max-width: 100%;
  padding: 12px 26px;
  border: 1px solid var(--clear);
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: var(--weight-semibold);
  line-height: 1.45;
  letter-spacing: -.005em;
  text-align: center;
  transition: transform var(--speed) var(--ease),background-color var(--speed),border-color var(--speed);
}
.btn svg { width: 17px; height: 17px; }
.btn--ink { background: var(--text); color: var(--bg); box-shadow: var(--shadow-btn); }
.btn--ink:hover, .btn--ink.is-hover { background: var(--ink-hover); color: var(--bg); transform: translateY(-1px); }
.btn--line { background: var(--bg); color: var(--text); border-color: var(--border-strong); }
.btn--line:hover, .btn--line.is-hover { border-color: var(--text-muted); transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: var(--bg); }
.btn--accent:hover { background: var(--accent-dark); color: var(--bg); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--bg-panel); color: var(--text-muted); border-color: var(--border); box-shadow: none; transform: none; }
.is-focus { outline: var(--focus-width) solid var(--accent); outline-offset: 4px; }
.card, .panel {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--r-section);
  background: var(--bg);
  color: var(--text);
}
.card--raised { box-shadow: var(--shadow-wide); }
.panel--soft { background: var(--bg-panel); color: var(--text); }
.panel--dark { background: var(--bg-panel-2); color: var(--on-dark); border-color: var(--code-line); }
.panel--dark p { color: var(--on-dark-muted); }
.grid-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.grid-pair > * { min-width: 0; }
.decorated, [data-hero-visual] { overflow-x: clip; }
.reveal { opacity: 1; transform: none; }
.reveal-ready .reveal:not(.shown) { opacity: 0; transform: translateY(18px); }
.reveal-ready .reveal { transition: opacity var(--reveal-speed) var(--ease),transform var(--reveal-speed) var(--ease); }
.topbar, #site-header { position: relative; z-index: 50; background: var(--bg); color: var(--text); }
.topbar { border-bottom: 1px solid var(--border); }
.topbar__in {
  position: relative;
  width: 100%;
  max-width: min(100%,calc(var(--header-wrap) + var(--gutter) * 2));
  min-height: var(--header-height);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: var(--weight-display);
  letter-spacing: -.02em;
}
.topbar__in > .brand { min-width: 0; flex-shrink: 1; }
.topbar__in > .brand > span { min-width: 0; overflow-wrap: anywhere; line-height: 1.35; }
.brand__mark { width: 30px; height: 30px; border-radius: var(--r-circle); flex-shrink: 0; }
.brand__mark--placeholder { display: block; border-radius: var(--r-mark); background: var(--bg-panel); color: var(--text); border: 1px solid var(--border-strong); }
.desktop-nav { min-width: 0; margin-left: auto; }
.dotnav {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--text-muted);
  font-size: 14px;
}
.dotnav li { display: flex; align-items: center; flex-shrink: 0; }
.dotnav li + li::before { content: "·"; color: var(--text-muted); padding-inline: 11px; }
.dotnav a { display: block; padding-block: 22px; transition: color var(--speed); }
.dotnav a:hover, .dotnav a[aria-current="page"] { color: var(--text); }
.dotnav a[aria-current="page"] { font-weight: var(--weight-semibold); }
.header-tools { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.language { position: relative; }
.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 13px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--text-muted);
  font-size: var(--size-small);
  white-space: nowrap;
}
.lang svg { width: 14px; height: 14px; }
.lang-short { display: none; }
.language-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 190px;
  padding: 8px;
  margin: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--r-float);
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-wide);
  z-index: 5;
}
.language-menu a { display: flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: var(--r-small); }
.language-menu a:hover { background: var(--bg-panel); color: var(--text); }
.language-menu [aria-current] { color: var(--accent-dark); font-weight: var(--weight-semibold); }
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
}
.menu-toggle svg { width: 20px; height: 20px; }
.mobile-drawer {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 4;
  max-height: calc(100dvh - var(--header-height));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px var(--gutter) 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}
.mobile-drawer ul { margin: 0; padding: 0; list-style: none; }
.mobile-drawer a { display: flex; align-items: center; width: 100%; min-height: 46px; padding: 11px 8px; }
.mobile-drawer a[aria-current] { color: var(--accent-dark); font-weight: var(--weight-semibold); }
.drawer-languages { margin-top: 12px !important; padding-top: 12px !important; border-top: 1px solid var(--border); }
.menu-veil { position: fixed; inset: var(--header-height) 0 0; z-index: 40; background: var(--veil); color: var(--bg); border: 0; }
.static-menu { display: none; }
.site-footer { margin-top: var(--section-gap); padding-top: 64px; padding-bottom: 28px; border-top: 1px solid var(--border); background: var(--bg); color: var(--text); }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1.3fr; gap: 60px; }
.footer-brand p { max-width: 350px; margin-top: 20px; color: var(--text-muted); }
.footer-heading { margin-bottom: 18px; font-size: 15px; font-weight: var(--weight-semibold); }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; color: var(--text-muted); font-size: var(--size-small); }
.footer-links a { display: inline-block; padding-block: 5px; }
.footer-links a:hover { color: var(--accent-dark); text-decoration: underline; }
.footer-languages { margin-top: 40px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: var(--size-small); }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 20px; }
@media (max-width:1279px) {
  .desktop-nav { display: none; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .static-menu { display: block; }
  .static-menu summary { list-style: none; }
  .static-menu summary::-webkit-details-marker { display: none; }
}
@media (min-width:1280px) {
  .mobile-drawer, .menu-veil { display: none !important; }
}
@media (max-width:768px) {
  :root { --size-h1: clamp(24px,4.5vw,30px); --size-h2: clamp(24px,4vw,30px); }
  .grid-pair { grid-template-columns: minmax(0,1fr); }
  .footer-grid { grid-template-columns: minmax(0,1fr); gap: 32px; }
}
@media (max-width:640px) {
  :root { --gutter: 16px; --section-gap: 160px; }
  .topbar__in { gap: 8px; }
  .brand { font-size: 13px; gap: 7px; }
  .brand__mark { width: 26px; height: 26px; }
  .header-tools { gap: 6px; margin-left: auto; }
  .lang { min-height: 44px; padding-inline: 10px; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .card, .panel { padding: 24px 20px; }
  .tilt, [data-tilt] { transform: none !important; }
  .section-heading { margin-bottom: 30px; }
  pre { padding: 18px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-ready .reveal:not(.shown) { opacity: 1; transform: none; }
}