:root {
  color-scheme: light;
  --bg: #FAF3E8;
  --bg-panel: #FFFCF6;
  --bg-panel-2: #F3E9D8;
  --bubble: #FFFFFF;
  --border: #E8DCC8;
  --border-strong: #DCCAB0;
  --accent: #E2671C;
  --accent-2: #EF8A3C;
  --accent-dark: #B44A0C;
  --text: #2B1F15;
  --text-muted: #6E5E4E;
  --success: #2E8B57;
  --warn: #C98A10;
  --error: #D0443A;
  --on-accent: var(--bg-panel);
  --hero-top: #FDF8F0;
  --hero-bottom: #F4EADB;
  --apricot: rgb(242 146 76 / .11);
  --apricot-0: rgb(242 146 76 / 0);
  --core-hi: #4C3828;
  --core-edge: rgb(255 236 210 / .20);
  --core-gloss: rgb(255 252 246 / .10);
  --accent-a10: rgb(226 103 28 / .10);
  --accent-a18: rgb(226 103 28 / .18);
  --accent-a30: rgb(226 103 28 / .30);
  --accent-a40: rgb(226 103 28 / .40);
  --ink-a05: rgb(43 31 21 / .05);
  --ink-a08: rgb(43 31 21 / .08);
  --ink-a14: rgb(43 31 21 / .14);
  --veil: rgb(43 31 21 / .38);
  --hi-white: rgb(255 255 255 / .82);
  --hi-white-soft: rgb(255 255 255 / .55);
  --hi-white-0: rgb(255 255 255 / 0);
  --gloss: rgb(255 252 246 / .62);
  --gloss-0: rgb(255 252 246 / 0);
  --panel-a72: rgb(255 252 246 / .72);
  --success-a14: rgb(46 139 87 / .14);
  --error-a14: rgb(208 68 58 / .14);
  --flag-red: #C8352C;
  --flag-white: #FFFDF8;
  --flag-blue: #2C407C;
  --flag-navy: #1F2D63;
  --flag-edge: rgb(43 31 21 / .16);
  --clear: transparent;
  --paper-grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .17 0 0 0 0 .12 0 0 0 0 .08 0 0 0 1.1 -.1'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  --radius-card: 12px;
  --radius-tray: 14px;
  --radius-brick: 10px;
  --radius-btn: 10px;
  --radius-small: 8px;
  --radius-marker: .08em;
  --radius-flag: 4px;
  --radius-pill: 999px;
  --shadow-lift: 0 1px 2px var(--ink-a05), 0 12px 24px -14px var(--accent-a10), 0 34px 70px -18px var(--accent-a10);
  --shadow-float: 0 1px 2px var(--ink-a05), 0 16px 34px -14px var(--accent-a18);
  --shadow-inset: inset 0 1px 0 var(--hi-white);
  --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", "Apple SD Gothic Neo", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --body-size: 16px;
  --small-size: 13px;
  --hero-size: clamp(52px, 6vw, 68px);
  --title-size: clamp(28px, 4vw, 40px);
  --heading-weight: 800;
  --gutter: 32px;
  --measure: 42em;
  --content-width: 1200px;
  --section-gap: clamp(44px, 7vw, 92px);
  --card-padding: clamp(16px, 3vw, 32px);
  --bar-height: 68px;
  --anchor-space: calc(var(--bar-height) + 14px);
  --ease-out: cubic-bezier(.2, .75, .25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--anchor-space); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: var(--body-size)/1.6 var(--font-body);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .06;
  background-image: var(--paper-grain);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 3px;
}
img { max-width: 100%; height: auto; }
svg { vertical-align: middle; }
:where(.btn, .kicker, .topbar-tools, .nav-list, .chip, .tray-strip) svg { flex-shrink: 0; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--heading-weight);
  line-height: 1.15;
  letter-spacing: -.02em;
}
h1 { font-size: var(--hero-size); }
h2 { font-size: var(--title-size); }
h3 { font-size: 1.25rem; text-wrap: pretty; }
h1, h2 { text-wrap: balance; }
p { max-width: var(--measure); text-wrap: pretty; }
small { color: var(--text-muted); font-size: var(--small-size); }
code, pre, .mono, .price { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg-panel-2);
}
pre code { white-space: pre; }
.price { white-space: nowrap; font-variant-numeric: tabular-nums; }
:where(.nav-list, .more-panel, .lang-panel, .drawer-list, .footer-links, .flags, .trust, .compare-list) {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.no-break { white-space: nowrap; }
.wrap {
  width: 100%;
  max-width: calc(var(--content-width) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-width: 0;
}
.reading-wrap { max-width: calc(48em + 2 * var(--gutter)); }
.min-grid > *, .hero-grid > *, .footer-grid > * { min-width: 0; }
.sec { padding-block: var(--section-gap); }
.prose :where(h2, h3) { margin-block: 1.4em .55em; }
.prose a:not(.btn) { color: var(--accent-dark); text-decoration: underline; text-underline-offset: .18em; }
.prose p { margin-block: .8em 1.15em; }

.hl-marker { position: relative; z-index: 0; display: inline-block; }
.hl-marker::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset-inline: -.05em -.06em;
  bottom: .04em;
  height: .46em;
  border-radius: var(--radius-marker);
  background: var(--accent-a30);
  transform-origin: left center;
  transform: rotate(-1.5deg) scaleX(1);
}
.hl-word { color: var(--accent-dark); }
.stage {
  position: relative;
  max-width: 100%;
  overflow-x: clip;
  background: linear-gradient(180deg, var(--hero-top), var(--hero-bottom));
}
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(42% 58% at 80% 14%, var(--apricot), var(--apricot-0) 70%);
}
.decor-clip { position: relative; max-width: 100%; overflow-x: clip; }
.card, .panel {
  min-width: 0;
  padding: var(--card-padding);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg-panel);
  box-shadow: var(--shadow-inset), var(--shadow-lift);
}
.panel-sunk { background: var(--bg-panel-2); }
.reveal { transition: opacity .35s var(--ease-out), transform .35s var(--ease-out); }
.reveal.pending { opacity: 0; transform: translateY(16px); }
.reveal.shown { opacity: 1; transform: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 8px;
  min-height: 54px;
  max-width: 100%;
  padding: 0 24px;
  border: 1px solid var(--clear);
  border-radius: var(--radius-btn);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: transform .2s, box-shadow .2s, background-color .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: inset 0 1px 0 var(--hi-white-soft), 0 1px 2px var(--ink-a08), 0 14px 28px -12px var(--accent-a40);
}
.btn-primary:not(:disabled):is(:hover, .demo-hover) { transform: translateY(-1px); }
.btn-ghost, .btn-secondary {
  color: var(--text);
  background: var(--bg-panel);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-inset), 0 6px 14px -10px var(--ink-a14);
}
:is(.btn-ghost, .btn-secondary):not(:disabled):is(:hover, .demo-hover) { background: var(--bubble); }
.btn:not(:disabled):is(:active, .demo-active) { transform: translateY(1px); box-shadow: var(--shadow-inset); }
.btn.demo-focus { outline: 2px solid var(--accent-dark); outline-offset: 3px; }
.btn:disabled { color: var(--text-muted); background: var(--bg-panel-2); border-color: var(--border); box-shadow: none; cursor: not-allowed; }
.btn-compact { min-height: 42px; padding-inline: 14px; font-size: 14px; }

.topbar { position: relative; z-index: 20; min-height: var(--bar-height); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--bar-height); }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; flex-shrink: 0; min-height: 36px; }
.brand-mark { width: 28px; height: 28px; flex-shrink: 0; }
.brand-en { font-family: var(--font-display); font-weight: var(--heading-weight); font-size: 20px; letter-spacing: -.02em; color: var(--text); }
.nav { flex: 1; min-width: 0; }
.nav-list { display: flex; align-items: center; justify-content: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-list a, .nav-more summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px clamp(6px, 1vw, 14px);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color .2s, background-color .2s;
}
.nav-list a:hover, .nav-more summary:hover, .lang:hover { color: var(--text); background: var(--panel-a72); }
.nav-list a.is-current, .nav-more summary.is-current {
  color: var(--text);
  font-weight: 600;
  background: var(--bg-panel);
  box-shadow: var(--shadow-inset), 0 0 0 1px var(--border), 0 6px 14px -8px var(--accent-a18);
}
.nav-more, .lang-box { position: relative; }
:is(.nav-more, .lang-box, .preview-menu) summary { list-style: none; }
:is(.nav-more, .lang-box, .preview-menu) summary::-webkit-details-marker { display: none; }
.caret { width: 10px; height: 10px; flex-shrink: 0; }
.more-panel, .lang-panel {
  position: absolute;
  z-index: 24;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  padding: 6px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-float);
}
.nav-more details:not([open]) > .more-panel { display: none; }
.more-panel a, .lang-panel a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: var(--radius-small);
}
.lang-panel a:is(:hover, [aria-current]), .drawer-list a:is(:hover, [aria-current]) { background: var(--bg-panel-2); color: var(--text); }
.topbar-tools { display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; flex-shrink: 0; }
.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  min-width: 36px;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-btn);
  background: var(--clear);
  font-size: 14px;
  color: var(--text-muted);
  white-space: nowrap;
}
.lang-text { white-space: nowrap; }
.lang svg { width: 16px; height: 16px; }
.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: var(--radius-btn);
  background: var(--text);
  color: var(--bg-panel);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 var(--core-edge), 0 6px 14px -8px var(--ink-a14);
}
.btn-login:hover { background: var(--core-hi); }
.hamburger, .preview-menu { display: none; }
.hamburger {
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 6px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-btn);
  background: var(--bg-panel);
}
.hamburger svg { width: 20px; height: 20px; }
.hamburger[aria-expanded="true"] { background: var(--bg-panel-2); }
.drawer-veil { position: fixed; z-index: 1; inset: var(--bar-height) 0 0; background: var(--veil); }
.mobile-drawer {
  --drawer-height: calc(100dvh - var(--bar-height));
  position: fixed;
  z-index: 2;
  inset: var(--bar-height) 0 auto auto;
  width: min(340px, 100%);
  height: var(--drawer-height);
  max-height: var(--drawer-height);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px var(--gutter) 24px;
  border: 1px solid var(--border);
  background: var(--bg-panel);
  box-shadow: var(--shadow-float);
}
.drawer-list { list-style: none; margin: 0; padding: 0; }
.drawer-list + .drawer-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.drawer-list a {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius-small);
  color: var(--text-muted);
}
html.nav-open { overflow: hidden; }
.nav-open .topbar-in {
  position: fixed;
  z-index: 3;
  inset: 0 0 auto;
  background: var(--hero-top);
}

.site-footer {
  padding-block: 44px 22px;
  background: var(--bg-panel-2);
  border-top: 1px solid var(--border);
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, .55fr); gap: 24px 36px; }
.footer-brand p { margin: 10px 0 0; color: var(--text-muted); }
.footer-label { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--text); }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; }
.footer-languages { grid-template-columns: 1fr; }
.footer-links a, .footer-legal a { display: inline-flex; align-items: center; min-height: 28px; color: var(--text-muted); font-size: 14px; }
.footer-links a:is(:hover, [aria-current]), .footer-legal a:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: .18em; }
.footer-keywords { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border-strong); }
.footer-chips, .footer-legal { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  max-width: 100%;
  padding: 3px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--bg-panel);
  color: var(--text-muted);
  font-size: var(--small-size);
  overflow-wrap: anywhere;
}
a.chip:hover { border-color: var(--accent-dark); color: var(--accent-dark); }
.footer-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 20px;
}
.footer-legal { gap: 8px 16px; }

#server-status {
  margin-block: 24px;
  padding: 12px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

@media (max-width: 1080px) {
  .nav { display: none; }
  .topbar-tools { margin-left: auto; }
  .hamburger { display: inline-flex; }
  .preview-menu { display: block; }
}
@media (max-width: 768px) {
  :root { --hero-size: clamp(28px, 8vw, 40px); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .65fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .no-break { white-space: normal; }
  .tilt { transform: none; }
  .topbar-in { gap: 8px; }
  .topbar-tools { gap: 6px; }
  .brand { gap: 6px; }
  .brand-en { font-size: 18px; }
  .brand-mark { width: 24px; height: 24px; }
  .lang { justify-content: center; min-width: 44px; min-height: 44px; padding-inline: 6px; }
  .lang-text { display: none; }
  .btn-login { min-height: 38px; padding-inline: 12px; }
  .btn { min-height: 50px; padding-inline: 18px; }
  .btn-compact { min-height: 42px; padding-inline: 12px; }
}
@media (max-width: 480px) {
  .mobile-drawer { inset-inline: 0; width: 100%; border-inline: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.pending { opacity: 1; transform: none; transition: none; }
  .btn, .nav-list a { transition: none; }
}