:root {
  color-scheme: dark;
  --bg: #141512;
  --panel: #1C1E19;
  --raised: #272A23;
  --border: #42473B;
  --accent: #AFBC91;
  --accent-dark: #77865E;
  --text: #F1F2EA;
  --muted: #B5BAAD;
  --success: #AFBC91;
  --warn: #D0D3C4;
  --error: #C6C8BF;
  --clear: transparent;
  --shade: rgb(0 0 0 / .28);
  --deep-shade: rgb(0 0 0 / .38);
  --edge: rgb(175 188 145 / .12);
  --glow: rgb(119 134 94 / .10);
  --faint: rgb(175 188 145 / .055);
  --veil: rgb(0 0 0 / .65);
  --flag-white: #FFFFFF;
  --flag-red: #DE2939;
  --flag-blue: #3C3B6E;
  --flag-green: #009246;
  --body: 'Inter', 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans KR', system-ui, sans-serif;
  --display-font: 'Inter', 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans KR', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
  --regular: 400;
  --medium: 500;
  --bold: 600;
  --heavy: 800;
  --black: 900;
  --micro: 9px;
  --compact: 10px;
  --tiny: 11px;
  --small: 12px;
  --caption: 13px;
  --base: 14px;
  --nav-size: 15px;
  --body-size: 16px;
  --lead-size: 18px;
  --subheading: 20px;
  --brand-size: 25px;
  --stat: 28px;
  --heading: 36px;
  --price: 42px;
  --display: 64px;
  --display-mid: 52px;
  --mobile-display: 36px;
  --mobile-price: 34px;
  --mobile-stat: 23px;
  --radius: 7px;
  --radius-small: 4px;
  --round: 50%;
  --pill: 99px;
  --outline: 2px solid var(--accent);
  --gutter: 56px;
  --content-width: 1280px;
  --reading-width: 800px;
  --header-height: 92px;
  --anchor-gap: 108px;
  --toc-height: 64px;
  --section-space: 88px;
  --fast: 160ms;
  --reveal-time: 480ms;
  --ease: cubic-bezier(.2, .65, .3, 1);
  --sheet-shadow: 0 2px 3px var(--shade), 0 16px 30px var(--shade), 0 36px 65px var(--deep-shade), 0 0 36px var(--glow);
  --panel-shadow: 0 2px 3px var(--shade), 0 12px 28px var(--shade);
}
* { box-sizing: border-box; }
html {
  background: var(--bg);
  scroll-padding-top: var(--anchor-gap);
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--body);
  font-size: var(--body-size);
  font-weight: var(--regular);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
html.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button {
  color: inherit;
  cursor: pointer;
}
button:disabled { cursor: not-allowed; }
a, button, summary { -webkit-tap-highlight-color: var(--edge); }
:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: var(--outline);
  outline-offset: 5px;
}
img { display: block; max-width: 100%; height: auto; }
svg { display: block; flex-shrink: 0; }
[hidden] { display: none !important; }
:where(main, section, article, aside, nav, figure, div) { min-width: 0; }
h1, h2, h3, h4 {
  font-family: var(--display-font);
  color: var(--text);
  text-wrap: balance;
}
h1 {
  margin: 0;
  font-size: var(--display);
  font-weight: var(--black);
  line-height: 1.22;
  letter-spacing: -.9px;
}
h2 {
  margin: 0 0 24px;
  font-size: var(--heading);
  font-weight: var(--heavy);
  line-height: 1.3;
  letter-spacing: -.02em;
}
h3 {
  margin: 0 0 14px;
  font-size: var(--subheading);
  font-weight: var(--bold);
  line-height: 1.5;
}
p { margin: 0 0 20px; }
ul, ol { padding-left: 24px; }
figure { margin: 0; }
code {
  font-family: var(--mono);
  font-size: var(--base);
  overflow-wrap: anywhere;
  color: var(--text);
  background: var(--raised);
  border-radius: var(--radius-small);
  padding: 2px 5px;
}
pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}
pre code {
  padding: 0;
  background: var(--clear);
  white-space: pre;
  overflow-wrap: normal;
}
hr { border: 0; border-top: 1px solid var(--border); margin-block: 32px; }
::selection { color: var(--bg); background: var(--accent); }
.no-break { white-space: nowrap; }
.shell, .wrap {
  width: 100%;
  max-width: calc(var(--content-width) + var(--gutter) * 2);
  padding-inline: var(--gutter);
  margin-inline: auto;
}
.reading { max-width: var(--reading-width); margin-inline: auto; }
.section { padding-top: var(--section-space); padding-bottom: var(--section-space); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.text-link {
  text-decoration: underline;
  text-decoration-color: var(--accent-dark);
  text-underline-offset: 5px;
}
.text-link:hover { color: var(--accent); }
.prose { overflow-wrap: anywhere; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); font-weight: var(--bold); }
.prose h2 { margin-top: 56px; }
.prose h3 { margin-top: 32px; }
.prose a { text-decoration: underline; text-underline-offset: 4px; }
.prose li + li { margin-top: 10px; }
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--panel-shadow);
}
.panel-raised { background: var(--raised); }
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.cta {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 29px;
  padding: 10px 27px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--body-size);
  font-weight: var(--bold);
  line-height: 1.5;
  text-align: center;
  background: var(--clear);
  transition: background var(--fast), border-color var(--fast), transform var(--fast);
}
.cta-primary, .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  box-shadow: 0 3px 0 var(--shade);
}
.cta-primary:hover, .btn-primary:hover, .cta.demo-hover {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}
.cta-secondary { background: var(--clear); color: var(--text); }
.cta-secondary:hover { background: var(--panel); border-color: var(--accent-dark); }
.cta:active, .cta.demo-active { transform: translateY(2px); box-shadow: none; }
.cta:disabled, .cta[aria-disabled="true"] {
  background: var(--raised);
  color: var(--muted);
  border-color: var(--border);
  box-shadow: none;
}
.cta.demo-focus { outline: var(--outline); outline-offset: 5px; }
.cta-small { min-height: 44px; padding: 9px 18px; font-size: var(--base); gap: 12px; }
.mast {
  height: var(--header-height);
  border-bottom: 1px solid var(--edge);
  position: relative;
  z-index: 40;
  background: var(--bg);
}
.mast-inner { height: 100%; display: flex; align-items: center; gap: 36px; }
.wordmark { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.wordmark img { width: 29px; height: 34px; object-fit: contain; }
.brand-name { font-size: var(--brand-size); font-weight: var(--heavy); letter-spacing: -.6px; }
.brand-translation { color: var(--muted); font-size: var(--body-size); font-weight: var(--medium); }
.primary-nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 27px;
  margin-left: auto;
}
.primary-nav a {
  position: relative;
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-size: var(--nav-size);
  color: var(--muted);
  min-height: 44px;
}
.primary-nav a[aria-current="page"] { color: var(--text); }
.primary-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
}
.primary-nav a:hover { color: var(--text); }
.account-tools { display: flex; gap: 23px; align-items: center; flex-shrink: 0; }
.language-picker { position: relative; }
.language {
  color: var(--muted);
  font-size: var(--caption);
  white-space: nowrap;
  border: 0;
  background: var(--clear);
  padding: 10px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  padding: 8px;
  margin: 0;
  list-style: none;
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--panel-shadow);
  z-index: 45;
}
.language-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  font-size: var(--base);
  border-radius: var(--radius-small);
}
.language-menu a:hover, .language-menu a[aria-current="true"] { background: var(--panel); color: var(--accent); }
.login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 10px 23px;
  min-height: 44px;
  border-radius: var(--radius);
  font-size: var(--base);
  font-weight: var(--medium);
  line-height: 1.5;
  white-space: nowrap;
}
.login:hover { border-color: var(--accent-dark); }
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.menu-toggle svg { width: 20px; height: 20px; }
.mobile-drawer { display: none; }
.nav-veil {
  position: fixed;
  inset: var(--header-height) 0 0;
  border: 0;
  padding: 0;
  background: var(--veil);
  z-index: 30;
}
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 8px;
  transform: translateY(-180%);
  padding: 10px 18px;
  color: var(--bg);
  background: var(--accent);
  z-index: 60;
  border-radius: var(--radius-small);
}
.skip-link:focus { transform: none; }
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--panel);
  padding-top: 56px;
  padding-bottom: 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand p { font-size: var(--base); color: var(--muted); margin: 20px 0 0; max-width: 320px; }
.footer-heading { font-size: var(--caption); font-weight: var(--bold); margin: 0 0 16px; color: var(--accent); }
.footer-links { display: grid; gap: 5px; list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 28px; padding-block: 3px; color: var(--muted); font-size: var(--caption); }
.footer-links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 40px;
  color: var(--muted);
  font-size: var(--small);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-legal a { display: inline-flex; min-height: 24px; align-items: center; }
.reveal { transition: opacity var(--reveal-time) var(--ease), transform var(--reveal-time) var(--ease); }
.reveal.pending { opacity: 0; transform: translateY(16px); }
.reveal.shown { opacity: 1; transform: none; }
body:has(.toc-tabs) section[id] { scroll-margin-top: calc(var(--toc-height) + 24px); }
@media (max-width: 1180px) {
  :root { --gutter: 32px; }
  .mast-inner { gap: 24px; }
  .primary-nav { gap: 18px; }
  .account-tools { gap: 16px; }
  h1 { font-size: var(--display-mid); }
}
@media (max-width: 960px) {
  :root { --header-height: 76px; --anchor-gap: 92px; }
  .mast-inner { gap: 16px; }
  .primary-nav { display: none; }
  .account-tools { margin-left: auto; gap: 14px; }
  .menu-toggle { display: inline-flex; }
  .mobile-drawer {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 16px var(--gutter) 24px;
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--panel);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--panel-shadow);
    z-index: 42;
  }
  .mobile-drawer a {
    display: flex;
    align-items: center;
    min-height: 48px;
    width: 100%;
    padding: 12px 16px;
    color: var(--text);
    font-size: var(--body-size);
    border-bottom: 1px solid var(--edge);
  }
  .mobile-drawer a[aria-current="page"], .mobile-drawer a[aria-current="true"] {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 8px;
  }
  .drawer-languages { margin-top: 20px; border-top: 1px solid var(--border); padding-top: 12px; }
  .drawer-heading { padding: 8px 16px; margin: 0; color: var(--muted); font-size: var(--small); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  h1 { font-size: var(--mobile-display); letter-spacing: 0; line-height: 1.25; }
  h2 { font-size: var(--stat); }
  :root { --section-space: 56px; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .tilt, .guide-sheet { transform: none; }
  .brand-name { font-size: var(--subheading); }
  .wordmark img { width: 23px; height: 27px; }
  .account-tools { gap: 6px; }
  .language { font-size: var(--tiny); gap: 4px; }
  .login { padding: 8px 12px; font-size: var(--small); }
  .mast-inner { gap: 8px; }
  .cta { min-height: 49px; padding-inline: 21px; font-size: var(--base); gap: 18px; }
  .actions { margin-top: 23px; gap: 12px; }
  .panel { padding: 20px; }
  .footer-grid { gap: 28px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .prose h2 { margin-top: 40px; }
}
@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .account-tools { gap: 4px; }
  .language { font-size: var(--compact); }
  .brand-name { font-size: var(--lead-size); }
  .wordmark { gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
  .reveal, .reveal.pending, .reveal.shown { opacity: 1; transform: none; }
}