:root {
  --c-bg: #f5f4ef;
  --c-panel: #ffffff;
  --c-navy: #10293d;
  --c-navy-soft: #1c3b54;
  --c-border: #e4e2da;
  --c-border-strong: #cdc9bd;
  --c-dash: #d6d2c6;
  --c-accent: #e06c47;
  --c-accent-dark: #b8502f;
  --c-accent-tint: #fbe8df;
  --c-peach: #f0c6b0;
  --c-text: #12293d;
  --c-muted: #5d6b76;
  --c-success: #2f8f5b;
  --c-success-tint: #d9eee2;
  --c-warn: #f2b33d;
  --c-warn-tint: #fbeac6;
  --c-error: #c8322b;
  --c-on-accent: #ffffff;
  --c-clear: transparent;
  --c-veil: rgba(16, 41, 61, 0.34);

  --shadow-soft: 0 1px 2px rgba(18, 41, 61, 0.05), 0 10px 26px -14px rgba(18, 41, 61, 0.22);
  --shadow-card: 0 1px 3px rgba(18, 41, 61, 0.06), 0 18px 40px -18px rgba(18, 41, 61, 0.26);
  --shadow-float: 0 2px 6px rgba(4, 16, 27, 0.22), 0 36px 72px -26px rgba(4, 16, 27, 0.62);
  --shadow-accent: 0 1px 2px rgba(184, 80, 47, 0.28), 0 12px 24px -12px rgba(224, 108, 71, 0.7);

  --r-chip: 10px;
  --r-shot: 10px;
  --r-card: 20px;
  --r-section: 32px;
  --r-frame: 36px;
  --r-pill: 999px;
  --r-circle: 50%;
  --r-quarter: 100%;
  --r-line: 2px;

  --f-display: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --f-body: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-label: 14px;
  --fs-nav: 15px;
  --fs-body: 16px;
  --fs-button: 17px;
  --fs-subtitle: 20px;
  --fs-h3: 24px;
  --fs-h2: clamp(26px, 2.4vw, 34px);
  --fs-h1: clamp(34px, 1.6vw + 25px, 48px);
  --fs-micro: 11px;
  --fs-field-key: 10.5px;
  --fs-field-note: 13px;
  --fs-lede: 16.5px;
  --fs-device: 13.5px;
  --fs-store-pill: 12.5px;
  --fs-verify-title: 19px;
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --ls-heading: -0.02em;
  --ls-brand: -0.015em;
  --ls-value: -0.01em;
  --ls-button: -0.005em;
  --ls-mono: 0.12em;
  --ls-eyebrow: 0.14em;
  --ls-wide: 0.16em;
  --ls-rule: 0.08em;
  --lh-body: 1.6;
  --lh-title: 1.16;
  --lh-prose: 1.85;

  --header-h: 76px;
  --gutter: 48px;
  --bleed: 48px;
  --content-w: 1160px;
  --reading-w: 800px;
  --header-w: 1280px;
  --section-gap: 144px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --speed: 0.2s;
  --speed-reveal: 0.6s;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
html.nav-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img { max-width: 100%; }
svg { flex-shrink: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: var(--c-accent-dark); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
button, a { -webkit-tap-highlight-color: var(--c-clear); }
:focus-visible {
  outline: 2px solid var(--c-warn);
  outline-offset: 3px;
  border-radius: var(--r-chip);
}
::selection { background: var(--c-warn-tint); color: var(--c-text); }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-heading);
  line-height: 1.25;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-title); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin-top: 0; }
strong { font-weight: var(--fw-semibold); }
code, pre, kbd { font-family: var(--f-mono); }
code { overflow-wrap: anywhere; font-size: 0.9em; }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 20px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-chip);
  background: var(--c-panel);
  color: var(--c-text);
  font-size: var(--fs-sm);
  line-height: 1.8;
  overscroll-behavior-inline: contain;
}
pre code { overflow-wrap: normal; white-space: pre; font-size: inherit; }
figure { max-width: 100%; }
:where(.grid, .split, .feature-layout, .footer-grid, .hero) > * { min-width: 0; }
.wrap {
  width: 100%;
  max-width: calc(var(--content-w) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.reading { max-width: calc(var(--reading-w) + var(--gutter) * 2); }
.section { margin-top: var(--section-gap); margin-bottom: var(--section-gap); }
.section-pad { padding-top: 64px; padding-bottom: 64px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.stack > * + * { margin-top: 24px; }
.nowrap { white-space: nowrap; }
.muted { color: var(--c-muted); }
.eyebrow {
  margin: 0 0 10px;
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-accent-dark);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 16px;
  top: 12px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  background: var(--c-panel);
  color: var(--c-text);
  border-radius: var(--r-pill);
  z-index: 100;
  text-decoration: none;
}
.skip:focus {
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  padding: 10px 16px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  max-width: 100%;
  padding: 12px 28px;
  border: 0;
  border-radius: var(--r-pill);
  font-family: var(--f-body);
  font-size: var(--fs-button);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-button);
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--speed) ease, color var(--speed) ease, transform var(--speed) ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--c-accent);
  color: var(--c-on-accent);
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover, .btn-primary.is-hover {
  background: var(--c-accent-dark);
  color: var(--c-on-accent);
  transform: translateY(-1px);
}
.btn-ghost {
  background: var(--c-clear);
  color: var(--c-navy);
  border: 1.5px solid var(--c-navy);
  padding-inline: 26px 24px;
}
.btn-ghost:hover, .btn-ghost.is-hover { background: var(--c-navy); color: var(--c-panel); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--c-border);
  color: var(--c-muted);
  border-color: var(--c-border);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
.btn.is-focus { outline: 2px solid var(--c-warn); outline-offset: 3px; }
.ctas { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }

.card, .panel {
  background: var(--c-panel);
  color: var(--c-text);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-card);
}
.card { border-radius: var(--r-card); padding: 28px; }
.panel { border-radius: var(--r-section); padding: 48px; }
.panel-dark { background: var(--c-navy); color: var(--c-panel); border-color: var(--c-navy); }
.panel-dark :is(h2, h3, p, a) { color: var(--c-panel); }
.panel-dark .eyebrow { color: var(--c-peach); }
.panel-coral { background: var(--c-accent-tint); color: var(--c-text); }
.decorated { position: relative; overflow-x: clip; }
.prose, .article-body { min-width: 0; line-height: var(--lh-prose); }
.prose :is(h2, h3), .article-body :is(h2, h3) { margin-top: 2em; margin-bottom: 0.7em; }
.prose p, .article-body p { margin-bottom: 1.2em; }
.prose li + li, .article-body li + li { margin-top: 0.5em; }
.prose :is(ul, ol), .article-body :is(ul, ol) { padding-left: 1.5em; }
.prose > :first-child, .article-body > :first-child { margin-top: 0; }

.site-header {
  position: relative;
  z-index: 20;
  background: var(--c-bg);
  color: var(--c-text);
  border-bottom: 1px solid var(--c-border);
}
.topbar {
  position: relative;
  z-index: 8;
  height: var(--header-h);
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: min(100%, calc(var(--header-w) + var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
  background: var(--c-bg);
  color: var(--c-text);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--c-text);
  flex-shrink: 0;
}
.brand-mark {
  display: block;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: var(--r-chip);
  background: var(--c-panel);
  color: var(--c-text);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-soft);
}
.brand-name {
  font-family: var(--f-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-button);
  letter-spacing: var(--ls-brand);
}
.desktop-nav { margin-left: auto; min-width: 0; display: flex; }
.tabs, .tabs ul {
  display: flex;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
}
.tabs ul { align-items: center; height: 100%; }
.tabs li { display: flex; align-self: stretch; }
.tabs a {
  position: relative;
  display: flex;
  align-items: center;
  padding-inline: 16px;
  font-size: var(--fs-nav);
  font-weight: var(--fw-medium);
  color: var(--c-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--speed) ease;
}
.tabs a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -1px;
  height: 2px;
  border-radius: var(--r-line);
  background: var(--c-accent);
  color: var(--c-text);
  transform: scaleX(0);
  opacity: 0.4;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.tabs a:hover { color: var(--c-text); }
.tabs a:hover::after { transform: scaleX(1); }
.tabs a[aria-current="page"] { color: var(--c-text); font-weight: var(--fw-semibold); }
.tabs a[aria-current="page"]::after { transform: scaleX(1); opacity: 1; }
.header-tools { display: flex; align-items: center; gap: 10px; margin-left: 20px; flex-shrink: 0; }
.language { position: relative; align-self: center; }
.lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 16px 8px 13px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  background: var(--c-panel);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: var(--fs-label);
  font-weight: var(--fw-medium);
  white-space: nowrap;
}
.lang svg { width: 16px; height: 16px; color: var(--c-muted); }
.lang-short { display: none; }
.language-list {
  position: absolute;
  z-index: 12;
  right: 0;
  top: calc(100% + 10px);
  min-width: 180px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  background: var(--c-panel);
  color: var(--c-text);
  box-shadow: var(--shadow-card);
}
.language-list a { display: flex; align-items: center; min-height: 44px; padding: 10px 14px; border-radius: var(--r-chip); color: var(--c-text); text-decoration: none; }
.language-list a:hover, .language-list a[aria-current="true"] { background: var(--c-bg); color: var(--c-text); }
.menu-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  background: var(--c-panel);
  color: var(--c-text);
}
.menu-toggle svg { width: 20px; height: 20px; }
.mobile-drawer { display: none; }
.menu-veil {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 7;
  border: 0;
  padding: 0;
  background: var(--c-veil);
  color: var(--c-panel);
}

.site-footer {
  margin-top: var(--section-gap);
  padding-top: 64px;
  padding-bottom: 28px;
  border-top: 1px solid var(--c-border);
  background: var(--c-panel);
  color: var(--c-text);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 0.8fr);
  gap: 40px;
}
.footer-brand .brand { margin-bottom: 20px; }
.footer-brand p { color: var(--c-muted); font-size: var(--fs-label); max-width: 29em; }
.footer-heading { margin: 0 0 16px; font-size: var(--fs-label); font-weight: var(--fw-semibold); }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li + li { margin-top: 8px; }
.footer-links a { display: inline-block; padding-block: 4px; color: var(--c-muted); font-size: var(--fs-label); text-decoration: none; }
.footer-links a:hover { color: var(--c-accent-dark); text-decoration: underline; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--c-border); color: var(--c-muted); font-size: var(--fs-sm); }
.footer-bottom p { margin-bottom: 8px; }

.reveal { opacity: 1; transform: none; }
.reveal-pending {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--speed-reveal) var(--ease), transform var(--speed-reveal) var(--ease);
}
.reveal.shown { opacity: 1; transform: none; }

@media (max-width: 1199px) {
  .desktop-nav { display: none; }
  .topbar > .brand { min-width: 0; flex-shrink: 1; }
  .topbar .brand-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .header-tools { margin-left: auto; flex-shrink: 0; }
  .menu-toggle { display: inline-flex; }
  .mobile-drawer:not([hidden]) {
    display: block;
    position: absolute;
    z-index: 9;
    top: var(--header-h);
    left: 0;
    right: 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px var(--gutter) 24px;
    border-bottom: 1px solid var(--c-border);
    background: var(--c-panel);
    color: var(--c-text);
    box-shadow: var(--shadow-card);
  }
  .mobile-drawer ul { display: block; list-style: none; margin: 0; padding: 0; }
  .mobile-drawer a {
    display: flex;
    align-items: center;
    min-height: 48px;
    width: 100%;
    padding: 12px 16px;
    color: var(--c-text);
    text-decoration: none;
    border-bottom: 1px solid var(--c-border);
  }
  .mobile-drawer a[aria-current] { font-weight: var(--fw-semibold); background: var(--c-bg); color: var(--c-text); }
  .drawer-label { margin: 24px 16px 8px; font-size: var(--fs-xs); font-family: var(--f-mono); color: var(--c-muted); }
}
@media (max-width: 1060px) {
  :root { --gutter: 28px; --bleed: 24px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel { padding: 32px; }
}
@media (max-width: 768px) {
  :root { --fs-h1: clamp(24px, 4.2vw, 30px); }
  .split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; --section-gap: 144px; }
  .grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .brand { gap: 8px; }
  .brand-name { font-size: var(--fs-label); }
  .brand-mark { width: 32px; height: 32px; }
  .header-tools { margin-left: auto; gap: 6px; }
  .lang { min-height: 44px; padding-inline: 12px; gap: 6px; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .lang svg { display: none; }
  .card { padding: 22px; }
  .panel { padding: 26px 20px; }
  .btn { min-height: 50px; padding: 12px 22px; font-size: var(--fs-body); }
  .section-pad { padding-top: 40px; padding-bottom: 40px; }
  .tilt, .rule-card, [data-tilt] { transform: none !important; }
  .footer-grid { gap: 28px; }
}
@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .brand-name { font-size: var(--fs-sm); }
  .brand-mark { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-pending { opacity: 1; transform: none; }
}