:root {
  color-scheme: dark;
  --bg: #130f03;
  --bg-panel: #211b0e;
  --bg-dark: #0d0a02;
  --bg-dark-2: #1b1509;
  --border: #3b3221;
  --border-strong: #584932;
  --border-dark: #3a2f22;
  --win-border: #4a3d2c;
  --accent: #e8592b;
  --accent-dark: #ff9a70;
  --text: #f3ece0;
  --text-muted: #bcb09b;
  --on-accent: #ffffff;
  --on-dark: #f3ece0;
  --on-dark-muted: #a99f8e;
  --on-dark-faint: #948875;
  --success: #2f8a5a;
  --success-ring: rgba(47, 138, 90, 0.14);
  --warn: #c98318;
  --error: #d9383a;
  --error-text-dark: #ff8585;
  --error-line: rgba(217, 56, 58, 0.55);
  --error-wash: rgba(217, 56, 58, 0.08);
  --seg-bg: #292111;
  --clear: transparent;

  --canvas-top: #efe3cf;
  --canvas-bottom: #e4cdb0;
  --canvas-rim: rgba(255, 255, 255, 0.55);
  --alu-highlight: #fbfaf7;
  --alu-light: #e7e4df;
  --alu: #cdc8c0;
  --alu-shade: #a49e95;
  --alu-deep: #8d877e;
  --bezel: #0e0c09;
  --screen-sky: #fbf7ee;
  --screen-mid: #f5dcc2;
  --screen-horizon: #ec9a68;
  --screen-band: rgba(255, 255, 255, 0.34);
  --screen-band-2: rgba(232, 89, 43, 0.10);
  --floor-shadow: rgba(84, 52, 20, 0.30);
  --rule-type: #f3ece0;
  --rule-value: #cfc4b1;
  --rule-sep: #a99b84;
  --rule-direct: #a99f8e;
  --rule-section: #a99b84;
  --veil: rgba(22, 17, 10, 0.45);

  --shadow-xs: 0 1px 2px rgba(60, 40, 15, 0.05);
  --shadow-card: 0 1px 2px rgba(60, 40, 15, 0.05), 0 14px 34px -14px rgba(60, 40, 15, 0.16);
  --shadow-float: 0 2px 4px rgba(28, 18, 6, 0.10), 0 18px 36px -12px rgba(28, 18, 6, 0.38), 0 42px 80px -32px rgba(28, 18, 6, 0.42);
  --shadow-chip: 0 1px 2px rgba(60, 40, 15, 0.06), 0 16px 32px -14px rgba(60, 40, 15, 0.30);
  --shadow-btn: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 22px -10px rgba(184, 66, 28, 0.65);
  --shadow-lid: 0 30px 50px -28px rgba(60, 36, 12, 0.45);

  --r-canvas: 32px;
  --r-card: 28px;
  --r-window: 20px;
  --r-chip: 18px;
  --r-sm: 10px;
  --r-xs: 6px;
  --r-icon: 12px;
  --r-pill: 999px;
  --r-circle: 50%;
  --r-shot: 10px;
  --r-lid: 20px 20px 6px 6px;
  --r-screen: 9px 9px 2px 2px;
  --r-notch: 0 0 7px 7px;
  --r-base: 3px 3px 18px 18px / 3px 3px 12px 12px;
  --r-trackpad: 0 0 8px 8px;

  --font-display: "Iowan Old Style", "Charter", "Palatino Linotype", Georgia, "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --font-body: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --size-body: 16px;
  --size-small: 14px;
  --size-caption: 12.5px;
  --size-h1: clamp(34px, 3.3vw, 48px);
  --size-h2: clamp(26px, 2.6vw, 38px);
  --size-h3: 22px;
  --weight-display: 400;
  --weight-strong: 600;
  --tracking-display: -0.02em;
  --leading-body: 1.6;

  --masthead-h: 76px;
  --wrap: 1360px;
  --reading: 820px;
  --header-content: 1280px;
  --gutter: 40px;
  --section-space: 160px;
  --ease: cubic-bezier(.2, .65, .3, 1);
  --speed: 200ms;
  --reveal-speed: 650ms;
  --z-header: 50;
  --z-veil: 40;
  --z-fab: 30;
  --z-tip: 80;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}
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(--leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a, input, summary { -webkit-tap-highlight-color: var(--clear); }
button:disabled { cursor: not-allowed; }
img, svg { max-width: 100%; }
img { height: auto; }
svg { flex-shrink: 0; }
button svg, a svg { pointer-events: none; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 4px;
  border-radius: var(--r-sm);
}
::selection { background: var(--accent-dark); color: var(--on-accent); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: var(--size-h1); line-height: 1.16; letter-spacing: var(--tracking-display); }
h2 { font-size: var(--size-h2); line-height: 1.25; letter-spacing: -0.015em; }
h3 { font-size: var(--size-h3); line-height: 1.35; letter-spacing: -0.01em; }
p, li { overflow-wrap: break-word; }
strong, b { font-weight: var(--weight-strong); }
code, pre, kbd { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; font-size: .88em; }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 22px;
  border: 1px solid var(--border-dark);
  border-radius: var(--r-window);
  background: var(--bg-dark);
  color: var(--on-dark);
  line-height: 1.9;
  tab-size: 2;
}
pre code { font-size: var(--size-small); white-space: pre; overflow-wrap: normal; word-break: normal; }
hr { border: 0; border-top: 1px solid var(--border); margin-block: 32px; }
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.reading { max-width: var(--reading); margin-inline: auto; min-width: 0; }
:where(.wrap, .grid, .card-grid, .footer-grid, .hero .wrap) > * { min-width: 0; }
.section { padding-top: var(--section-space); padding-bottom: var(--section-space); }
.section-heading { max-width: 800px; margin-bottom: 48px; }
.section-heading h2 { margin-block: 12px 20px; }
.section-heading p { color: var(--text-muted); }
.prose { min-width: 0; line-height: 1.85; }
.prose :where(h2, h3) { margin-top: 2.2em; scroll-margin-top: 24px; }
.prose p { margin-block: 1.1em; }
.prose a:not(.btn):not(.appstore-button) { text-decoration: underline; text-underline-offset: 4px; color: var(--accent-dark); }
.prose li + li { margin-top: 8px; }
.prose :not(pre) > code {
  padding: 1px 5px;
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  background: var(--bg-panel);
  color: var(--text);
}
.nowrap { white-space: nowrap; }
.hl { color: var(--accent); }
.muted { color: var(--text-muted); }
.mono, .kicker { font-family: var(--font-mono); }
.kicker { font-size: var(--size-caption); letter-spacing: .08em; color: var(--text-muted); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: 8px;
  left: var(--gutter);
  z-index: var(--z-tip);
  padding: 10px 18px;
  background: var(--bg-dark);
  color: var(--on-dark);
  border-radius: var(--r-sm);
}
.skip-link:not(:focus) {
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  max-width: 100%;
  padding: 12px 26px;
  border: 1px solid var(--clear);
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.5;
  font-weight: var(--weight-strong);
  letter-spacing: .005em;
  text-align: center;
  transition: background-color var(--speed) var(--ease), border-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-btn); }
.btn-primary:hover, .btn-primary.is-hover { background: var(--accent-dark); color: var(--on-accent); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: var(--bg-panel); color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-xs); }
.btn-ghost:hover, .btn-ghost.is-hover { border-color: var(--text-muted); }
.btn-ghost svg { width: 16px; height: 16px; color: var(--text-muted); }
.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--seg-bg);
  color: var(--text-muted);
  border-color: var(--border);
  box-shadow: none;
}
.btn-small { min-height: 44px; padding: 9px 18px; font-size: var(--size-small); }
.btn.is-focus { outline: 2px solid var(--accent-dark); outline-offset: 4px; }

.masthead {
  position: relative;
  z-index: var(--z-header);
  min-height: var(--masthead-h);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}
.masthead-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  max-width: min(100%, calc(var(--header-content) + var(--gutter) * 2));
  min-height: var(--masthead-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: var(--r-circle);
  flex-shrink: 0;
}
.brand-placeholder {
  border-radius: var(--r-sm);
  background: var(--bg-panel);
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-xs);
}
.brand-name { font-family: var(--font-display); font-size: 20px; letter-spacing: -.01em; white-space: nowrap; }
.brand-name span { color: var(--text-muted); }
.topnav { margin-left: auto; min-width: 0; }
.topnav ul {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.topnav li { display: flex; align-items: center; flex-shrink: 0; }
.topnav li + li::before { content: "·"; color: var(--text-muted); margin-inline: 14px; font-size: 15px; }
.topnav a {
  display: block;
  padding-block: 5px;
  border-bottom: 1px solid var(--clear);
  font-size: 15px;
  white-space: nowrap;
}
.topnav a:hover { color: var(--accent-dark); }
.topnav a[aria-current="page"] { color: var(--accent-dark); border-bottom-color: var(--accent); }
.header-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.language-control { position: relative; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: var(--clear);
  color: var(--text);
  font-size: var(--size-small);
  white-space: nowrap;
}
.lang-switch:hover { background: var(--bg-panel); color: var(--text); }
.lang-switch .caret { font-size: 11px; color: var(--text-muted); }
.lang-short { display: none; }
.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 190px;
  padding: 8px;
  margin: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--r-chip);
  background: var(--bg-panel);
  color: var(--text);
  box-shadow: var(--shadow-card);
}
.language-menu a { display: block; min-height: 44px; padding: 10px 12px; border-radius: var(--r-sm); }
.language-menu a:hover, .language-menu a[aria-current="true"] { background: var(--seg-bg); color: var(--accent-dark); }
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-circle);
  background: var(--bg-panel);
  color: var(--text);
}
.menu-toggle svg { width: 20px; height: 20px; }
.mobile-drawer { display: none; }
.nav-veil {
  position: fixed;
  inset: var(--masthead-h) 0 0;
  z-index: var(--z-veil);
  border: 0;
  padding: 0;
  background: var(--veil);
  color: var(--text);
}

.hero {
  height: calc(100vh - var(--masthead-h) - 36px);
  min-height: 700px;
  max-height: 920px;
  display: flex;
  align-items: center;
  overflow-x: clip;
}
.hero .wrap { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: center; }
.hero-copy { max-width: 590px; }
.hero h1 { margin: 24px 0 22px; font-size: var(--size-h1); }
.hero h1 .line { display: block; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  max-width: 100%;
  padding: 6px 14px 6px 11px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg-panel);
  color: var(--text-muted);
  box-shadow: var(--shadow-xs);
  font-size: 13px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: var(--r-circle); background: var(--success); box-shadow: 0 0 0 3px var(--success-ring); flex-shrink: 0; }
.eyebrow b { color: var(--text); }
.lede { margin: 0; font-size: 17px; line-height: 1.78; color: var(--text-muted); }
.lede strong { color: var(--text); }
.lede .kw {
  font-family: var(--font-mono);
  font-size: .84em;
  color: var(--text);
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  background: var(--bg-panel);
  overflow-wrap: anywhere;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.card, .panel {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--bg-panel);
  color: var(--text);
  box-shadow: var(--shadow-card);
  min-width: 0;
}
.card h3, .panel h3 { margin-top: 0; }
.card p:last-child, .panel p:last-child { margin-bottom: 0; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.panel-dark { background: var(--bg-dark); color: var(--on-dark); border-color: var(--border-dark); }
.panel-dark p { color: var(--on-dark-muted); }

.risk { background: var(--bg-dark); color: var(--on-dark); padding-top: 150px; padding-bottom: 170px; }
.risk-kicker { margin: 0 0 18px; font-family: var(--font-mono); font-size: var(--size-caption); letter-spacing: .08em; color: var(--on-dark-muted); }
.risk h2 { margin: 0; max-width: 820px; }
.risk .warn-word { color: var(--error-text-dark); }
.risk-lede { margin-top: 22px; max-width: 760px; font-size: 17px; line-height: 1.8; color: var(--on-dark-muted); }
.risk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 64px; }
.risk-card { padding: 28px 28px 32px; border-radius: var(--r-card); border: 1px solid var(--border-dark); background: var(--bg-dark-2); color: var(--on-dark); }
.risk-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: var(--r-icon); border: 1px solid var(--error-line); background: var(--error-wash); color: var(--error-text-dark); }
.risk-icon svg { width: 20px; height: 20px; }
.risk-card h3 { margin: 22px 0 10px; }
.risk-card p { margin: 0; font-size: 15px; line-height: 1.75; color: var(--on-dark-muted); }
.risk-card code { color: var(--on-dark); }

.site-footer {
  padding-top: 76px;
  padding-bottom: 30px;
  border-top: 1px solid var(--border);
  background: var(--seg-bg);
  color: var(--text);
}
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr 1.4fr .7fr; gap: 36px; }
.footer-brand p { max-width: 340px; font-size: var(--size-small); color: var(--text-muted); }
.footer-heading { margin: 0 0 18px; font-family: var(--font-body); font-size: var(--size-small); font-weight: var(--weight-strong); }
.footer-links { padding: 0; margin: 0; list-style: none; }
.footer-links li + li { margin-top: 8px; }
.footer-links a { display: inline-block; padding-block: 4px; font-size: var(--size-small); color: var(--text-muted); }
.footer-links a:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { border-top: 1px solid var(--border-strong); margin-top: 48px; padding-top: 24px; font-size: var(--size-caption); color: var(--text-muted); }
.reveal { opacity: 1; transform: none; }
html.reveal-ready .reveal:not(.shown) { opacity: 0; transform: translateY(18px); }
html.reveal-ready .reveal { transition: opacity var(--reveal-speed) var(--ease), transform var(--reveal-speed) var(--ease); }
.reveal.shown { opacity: 1; transform: none; }

@media (max-width: 1280px) {
  .masthead-inner { gap: 20px; }
  .topnav li + li::before { margin-inline: 10px; }
}
@media (max-width: 1180px) {
  .topnav { display: none; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .mobile-drawer:not([hidden]) {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100dvh - var(--masthead-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px var(--gutter) 28px;
    border-bottom: 1px solid var(--border-strong);
    background: var(--bg);
    color: var(--text);
    box-shadow: var(--shadow-card);
  }
  .mobile-drawer ul { list-style: none; padding: 0; margin: 0; }
  .mobile-drawer a { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 8px; border-bottom: 1px solid var(--border); }
  .mobile-drawer a[aria-current] { color: var(--accent-dark); }
  .drawer-languages { margin-top: 12px; }
  .drawer-languages p { margin: 0 0 4px; font-size: var(--size-small); color: var(--text-muted); }
  .hero .wrap { gap: 48px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  :root { --gutter: 24px; }
  .hero { height: auto; min-height: 0; max-height: none; padding-top: 40px; padding-bottom: 80px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-copy { max-width: none; }
  .risk-grid, .card-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
  :root { --size-h1: clamp(24px, 6.6vw, 30px); }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; --section-space: 150px; --masthead-h: 72px; }
  .masthead-inner { gap: 8px; }
  .brand { gap: 8px; }
  .brand-name { font-size: 18px; }
  .brand-mark { width: 30px; height: 30px; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .lang-switch { min-height: 44px; padding-inline: 11px; }
  .header-tools { gap: 6px; margin-left: auto; }
  .lede { font-size: var(--size-body); }
  .btn { min-height: 48px; padding: 11px 20px; font-size: 15px; }
  .cta-row { margin-top: 24px; }
  .card, .panel { padding: 24px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .tilt, [data-tilt] { transform: none !important; }
}
@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .brand-name { font-size: 16px; }
  .brand-mark { width: 26px; height: 26px; }
  .header-tools { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.reveal-ready .reveal:not(.shown) { opacity: 1; transform: none; }
}