:root {
  --bg: #FFFFFF;
  --bg-panel: #F8F7F5;
  --bg-panel-2: #F1F0EC;
  --border: #E7E5E0;
  --border-strong: #D9D6CF;
  --accent: #3A8733;
  --accent-dark: #276324;
  --accent-rgb: 58 135 51;
  --text: #1A1B1E;
  --text-muted: #6B6E75;
  --text-faint: #A3A5AA;
  --success: #1F8A5B;
  --warn: #B7800A;
  --error: #D14545;
  --peach: #FDEBDD;
  --mist: #E3EEFB;
  --lilac: #EFE7FA;
  --cream: #FFF4CC;
  --cream-edge: #F1DE98;
  --cream-ink: #6F5507;
  --metal-hi: #F7F6F3;
  --metal-lo: #C6C4BE;
  --bezel: #1A1B1E;
  --shadow-rgb: 26 27 30;
  --shadow-soft: 0 1px 2px rgb(var(--shadow-rgb) / .05), 0 6px 16px -6px rgb(var(--shadow-rgb) / .10);
  --shadow-card: 0 1px 2px rgb(var(--shadow-rgb) / .04), 0 10px 24px -8px rgb(var(--shadow-rgb) / .10), 0 30px 60px -24px rgb(var(--shadow-rgb) / .16);
  --shadow-phone: 0 2px 6px rgb(var(--shadow-rgb) / .10), 0 28px 50px -18px rgb(var(--shadow-rgb) / .30), 0 60px 100px -40px rgb(var(--shadow-rgb) / .26);
  --shadow-knob: 0 1px 3px rgb(var(--shadow-rgb) / .22), 0 0 0 .5px rgb(var(--shadow-rgb) / .06);
  --shadow-cta: 0 1px 2px rgb(var(--accent-rgb) / .30), 0 10px 22px -8px rgb(var(--accent-rgb) / .55);
  --radius-plate: 32px;
  --radius-xl: 28px;
  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --font-display: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans", "Apple SD Gothic Neo", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans", "Malgun Gothic", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  --nav-h: 64px;
  --peek: 28px;
  --gutter: 32px;
  --content-width: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.nav-open { overflow: hidden; }
html, body { margin: 0; padding: 0; }
body {
  min-width: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
button { font-family: inherit; cursor: pointer; }
img, svg { max-width: 100%; }
img { height: auto; }
svg { vertical-align: middle; }
main, section, article { min-width: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(34px, 3.2vw, 48px); font-weight: 900; letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 2.5vw, 36px); font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.015em; }
.nowrap { white-space: nowrap; }
p { margin-block: 0 1em; }
code, pre, .mono { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; }
pre { max-width: 100%; overflow-x: auto; white-space: pre; }
pre code { overflow-wrap: normal; }
.wrap {
  width: 100%;
  max-width: calc(var(--content-width) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-top: 96px; padding-bottom: 104px; overflow-x: clip; }
.section-muted { background: var(--bg-panel); color: var(--text); }
.section-title { margin: 0 0 14px; }
.section-lead { max-width: 650px; color: var(--text-muted); }
.card, .panel {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-card);
}
.panel { background: var(--bg-panel); color: var(--text); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font: 650 15.5px/1.25 var(--font-body);
  text-align: center;
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--bg); box-shadow: var(--shadow-cta); }
.btn-primary:hover { background: var(--accent-dark); color: var(--bg); }
.btn-ghost { background: var(--bg); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--bg-panel); color: var(--text); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.text-link { color: var(--accent-dark); text-underline-offset: .22em; }
.text-link:hover { color: var(--accent); }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.shown { opacity: 1; transform: none; }

/* The header uses a wider measure than reading content. */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  background: var(--bg);
  color: var(--text);
  border-bottom: 1px solid var(--bg-panel-2);
}
.topbar-inner {
  width: 100%;
  height: 100%;
  max-width: min(100%, calc(1280px + var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; flex-shrink: 0; text-decoration: none; }
.brand img { display: block; width: 30px; height: 30px; flex-shrink: 0; }
.brand-name { color: var(--text); font: 800 17px/1 var(--font-display); letter-spacing: -.02em; white-space: nowrap; }
.nav { min-width: 0; }
.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14.5px;
  white-space: nowrap;
}
.nav-list li { display: flex; align-items: center; }
.nav-list li + li::before { content: "·"; margin-inline: 13px; color: var(--text-faint); font-weight: 700; }
.nav-list a { padding-block: 6px; color: var(--text-muted); text-decoration: none; transition: color .18s ease; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--text); }
.nav-list a[aria-current="page"] { font-weight: 650; }
.header-tools { justify-self: end; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.lang-control { position: relative; }
.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--text);
  font: 500 13.5px/1 var(--font-body);
}
.lang svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--text-muted); }
.lang-caret { color: var(--text-muted); font-size: 11px; }
.lang-short { display: none; }
.lang-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 70;
  width: 170px;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-card);
}
.lang-menu[hidden], .mobile-drawer[hidden], .menu-veil[hidden] { display: none; }
.lang-menu a { display: block; padding: 9px 12px; border-radius: var(--radius-sm); text-decoration: none; font-size: 14px; }
.lang-menu a:hover, .lang-menu a[aria-current="page"] { background: var(--bg-panel); color: var(--accent-dark); }
.menu-toggle { display: none; width: 44px; min-width: 44px; height: 44px; min-height: 44px; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); }
.menu-toggle svg { width: 21px; height: 21px; }
.mobile-drawer { display: none; }
.menu-veil { position: fixed; inset: var(--nav-h) 0 0; z-index: 55; background: rgb(var(--shadow-rgb) / .18); }

.site-footer { padding-top: 72px; background: var(--bg-panel); color: var(--text); border-top: 1px solid var(--border); }
.footer-inner { max-width: min(100%, calc(1280px + var(--gutter) * 2)); margin-inline: auto; padding-inline: var(--gutter); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 48px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; }
.footer-brand img { width: 34px; height: 34px; flex-shrink: 0; }
.footer-about { max-width: 270px; margin-top: 16px; color: var(--text-muted); font-size: 14px; }
.footer-col h2 { margin: 0 0 15px; font-size: 14px; letter-spacing: 0; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li + li { margin-top: 9px; }
.footer-col a { color: var(--text-muted); font-size: 14px; text-decoration: none; }
.footer-col a:hover { color: var(--accent-dark); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 64px; padding-block: 23px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 13px; }
.footer-bottom a { color: var(--text-muted); }

@media (max-width: 1024px) {
  .topbar-inner { grid-template-columns: 1fr auto; }
  .topbar .nav { display: none; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .mobile-drawer {
    display: block;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 65;
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 14px var(--gutter) 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    box-shadow: var(--shadow-card);
  }
  .mobile-drawer ul { list-style: none; margin: 0; padding: 0; }
  .mobile-drawer a { display: flex; align-items: center; width: 100%; min-height: 46px; padding: 11px 14px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; }
  .mobile-drawer a:hover, .mobile-drawer a[aria-current="page"] { background: var(--bg-panel); color: var(--accent-dark); }
  .drawer-languages { margin-top: 10px !important; padding-top: 10px !important; border-top: 1px solid var(--border); }
}
@media (max-width: 760px) {
  :root { --gutter: 20px; }
  h1 { font-size: 30px; }
  .section { padding-top: 68px; padding-bottom: 76px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .topbar-inner { gap: 8px; }
  .brand-name { font-size: 15px; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .lang { padding-inline: 10px; }
  .lang svg { display: none; }
  .card, .panel { padding: 20px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 27px 16px; }
  .footer-grid > * { min-width: 0; }
  .tilt, [class*="tilt-"] { transform: none !important; }
}
@media (max-width: 360px) {
  .brand-name { font-size: 13px; }
  .header-tools { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .nav-list a { transition: none; }
  .btn:hover { transform: none; }
}