:root {
  --c-bg: #FFFFFF;
  --c-panel: #F7F6F6;
  --c-panel-pink: #FCEBEC;
  --c-border: #E6E3E4;
  --c-accent: #7A1038;
  --c-field: #4A0624;
  --c-coral: #EF6B73;
  --c-text: #1C1519;
  --c-muted: #6B6267;
  --c-success: #2F8A5B;
  --c-warn: #B9800F;
  --c-error: #C42E3E;
  --c-chrome-dot: #D9D4D6;
  --c-dash: #B7AFB3;
  --c-hairline: rgba(28,21,25,.07);
  --c-on-field: #FFFFFF;
  --c-on-field-soft: rgba(255,255,255,.80);
  --c-on-field-faint: rgba(255,255,255,.56);
  --c-on-field-line: rgba(255,255,255,.24);
  --c-on-field-wash: rgba(255,255,255,.09);
  --c-coral-halo: rgba(239,107,115,.55);
  --c-veil: rgba(28,21,25,.48);
  --c-clear: transparent;

  --f-display: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --f-body: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-body: 16px;
  --fs-small: 14px;
  --fs-micro: 12px;
  --fs-page: clamp(34px, 3.35vw, 48px);
  --fs-section: clamp(28px, 4.1vw, 56px);
  --fs-subhead: clamp(19px, 2vw, 24px);
  --fs-control: 15.5px;
  --weight-book: 400;
  --weight-medium: 500;
  --weight-strong: 600;
  --r-card: 24px;
  --r-compact: 20px;
  --r-panel: 28px;
  --r-chip: 4px;
  --r-dot: 50%;
  --r-pill: 999px;

  --gutter: 32px;
  --w-wrap: 1200px;
  --w-nav: 1280px;
  --w-reading: 760px;
  --h-nav: 72px;
  --h-control: 48px;
  --h-touch: 44px;
  --h-field: 560px;
  --h-card: 464px;
  --sheet-offset: 12px;
  --section-space: clamp(48px, 6.5vw, 96px);
  --panel-pad: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2,.7,.2,1);
  --z-fab: 10;
  --z-veil: 20;
  --z-nav: 30;
  --z-skip: 40;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.nav-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font: var(--fs-body)/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
[hidden] { display: none !important; }
:where(img, svg, video) { max-inline-size: 100%; }
img { block-size: auto; }
:where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(a) { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
:where(a, button, summary):focus-visible { border-radius: var(--r-pill); }
:where(.stage, .site-head, .field-panel) :focus-visible { outline-color: var(--c-coral); }
:where(.stage, .site-head) :where(.sheet-card, .note, .mobile-drawer, .lang-popover) :focus-visible {
  outline-color: var(--c-accent);
}
:where(section, article, h2, h3, [role="tabpanel"])[id] { scroll-margin-block-start: 88px; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: var(--weight-book);
  line-height: 1.22;
  letter-spacing: -.018em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-page); }
h2 { font-size: var(--fs-section); }
h3 { font-size: var(--fs-subhead); }
p { margin: 0 0 1em; }
strong { font-weight: var(--weight-strong); }
code, pre, .mono { font-family: var(--f-mono); }
code {
  font-size: .92em;
  overflow-wrap: anywhere;
  word-break: normal;
}
pre {
  min-inline-size: 0;
  max-inline-size: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-compact);
  background: var(--c-panel);
  color: var(--c-text);
}
pre code { white-space: pre; }
:where(.wrap, .reading, .prose, .card, .panel, .grid, .grid > *, .hero > *, .feature-panel > *, .foot-grid > *) {
  min-width: 0;
}
:where(.wrap, .reading) {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap { max-width: calc(var(--w-wrap) + 2 * var(--gutter)); }
.reading { max-width: calc(var(--w-reading) + 2 * var(--gutter)); }
.section { padding-block: var(--section-space); }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 20px;
}
.prose, .card, .panel { overflow-wrap: break-word; }
.prose :where(h2, h3) { margin-block: 1.4em .55em; }
.prose :where(p, li) { line-height: 1.8; }
.prose ul, .prose ol { padding-inline-start: 1.5em; }
.prose a:not([class]), .text-link {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: .22em;
}
.text-link:hover { text-decoration-thickness: 2px; }
.keep { white-space: nowrap; }
.muted { color: var(--c-muted); }
.eyebrow {
  margin: 0 0 12px;
  color: var(--c-accent);
  font: var(--fs-micro)/1.5 var(--f-mono);
  letter-spacing: .06em;
}
.section-title { margin-block-end: 28px; }
.section-title .accent-line { display: block; color: var(--c-accent); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  inset: 8px auto auto var(--gutter);
  z-index: var(--z-skip);
  transform: translateY(-160%);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--c-bg);
  color: var(--c-accent);
  font-size: var(--fs-small);
}
.skip:focus { transform: none; }
.clip-decor { position: relative; overflow-x: clip; }
.decor-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.dot, .pulse, .chrome-dot, .brand-mark, .nav-ico, .os-ico, .btn-ico, .mark, .swatch, .app-icon {
  flex-shrink: 0;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  max-width: 100%;
  min-height: var(--h-control);
  padding: 0 26px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--c-accent);
  color: var(--c-on-field);
  font-size: var(--fs-control);
  font-weight: var(--weight-medium);
  letter-spacing: -.005em;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.btn:is(:hover, .is-hover), .btn:active { background: var(--c-field); color: var(--c-on-field); }
.btn-secondary { border: 1px solid var(--c-accent); background: var(--c-bg); color: var(--c-accent); }
.btn-secondary:is(:hover, .is-hover), .btn-secondary:active { background: var(--c-panel); color: var(--c-accent); }
.btn-solid { background: var(--c-bg); color: var(--c-accent); }
.btn-solid:is(:hover, .is-hover), .btn-solid:active { background: var(--c-panel); color: var(--c-accent); }
.btn-line { border: 1px solid var(--c-on-field-soft); background: var(--c-clear); color: var(--c-on-field); }
.btn-line:is(:hover, .is-hover), .btn-line:active { background: var(--c-on-field-wash); color: var(--c-on-field); }
.btn.is-focus, .btn:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
.field-panel .btn:focus-visible, .stage .copy .btn:focus-visible { outline-color: var(--c-coral); }
.btn:disabled { border: 1px solid var(--c-border); background: var(--c-panel); color: var(--c-muted); cursor: not-allowed; }
.btn-ico, .nav-ico {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-ico { width: 16px; height: 16px; stroke-width: 1.5; }

.card, .panel {
  padding: var(--panel-pad);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  background: var(--c-bg);
  color: var(--c-text);
}
.card h3 { margin-block-end: 10px; }
.card > :last-child, .panel > :last-child { margin-block-end: 0; }
.panel { border-radius: var(--r-panel); background: var(--c-panel); color: var(--c-text); }
.field-panel { background: var(--c-field); color: var(--c-on-field); }

.site-head { position: relative; z-index: var(--z-nav); background: var(--c-field); color: var(--c-on-field); }
.stage .site-head { background: var(--c-clear); color: var(--c-on-field); }
.masthead {
  width: 100%;
  max-width: min(100%, calc(var(--w-nav) + var(--gutter) * 2));
  height: var(--h-nav);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.design-preview .masthead { max-width: calc(var(--w-wrap) + 2 * var(--gutter)); }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { display: block; width: 34px; height: 34px; }
.brand-name { font-size: 17px; font-weight: var(--weight-medium); letter-spacing: -.01em; }
.topnav { display: flex; align-items: center; min-width: 0; margin-inline-start: auto; }
.topnav ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
}
.topnav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding-inline: 14px;
  border-radius: var(--r-pill);
  color: var(--c-on-field-soft);
  font-size: 15px;
  white-space: nowrap;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.topnav a:is(:hover, [aria-current="page"]) { background: var(--c-on-field-wash); color: var(--c-on-field); }
.head-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.lang-box { position: relative; margin-inline-start: 6px; }
.lang, .nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding-inline: 16px;
  border: 1px solid var(--c-on-field-line);
  border-radius: var(--r-pill);
  background: var(--c-clear);
  color: var(--c-on-field);
  font-size: var(--fs-small);
  white-space: nowrap;
  cursor: pointer;
}
.lang { background: var(--c-field); }
.lang:is(:hover, [aria-expanded="true"]) { background: var(--c-accent); }
.nav-toggle:hover { background: var(--c-on-field-wash); color: var(--c-on-field); }
.lang-caret { font-size: 11px; color: var(--c-on-field-faint); }
.lang-short, .nav-toggle, .preview-mobile { display: none; }
.nav-toggle { min-width: var(--h-touch); min-height: var(--h-touch); padding-inline: 8px; }
.lang-popover {
  position: absolute;
  z-index: 2;
  inset: calc(100% + 8px) 0 auto auto;
  min-width: 158px;
  padding: 6px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-compact);
  background: var(--c-bg);
  color: var(--c-text);
}
.lang-popover a, .mobile-drawer a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: var(--h-touch);
  padding: 8px 12px;
}
.lang-popover a { border-radius: var(--r-pill); }
.lang-popover a:is(:hover, [aria-current]), .mobile-drawer a:is(:hover, [aria-current]) {
  background: var(--c-panel);
  color: var(--c-accent);
}
.nav-veil { position: fixed; inset: 0; z-index: var(--z-veil); background: var(--c-veil); color: var(--c-on-field); }
.mobile-drawer { display: none; }
.mobile-drawer ul, .foot-links { margin: 0; padding: 0; list-style: none; }
.drawer-label { margin: 12px 12px 4px; color: var(--c-muted); font-size: var(--fs-small); }

.site-foot { border-top: 1px solid var(--c-border); background: var(--c-panel); color: var(--c-text); }
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding-block: 48px 36px;
}
.foot-grid h2 { margin-block-end: 12px; font-size: var(--fs-body); font-weight: var(--weight-medium); }
.foot-brand p { margin: 12px 0 0; max-width: 26em; color: var(--c-muted); }
.foot-links { display: grid; gap: 6px; }
.foot-links a, .foot-end a { color: var(--c-accent); }
.foot-links a:hover, .foot-end a:hover { text-decoration: underline; text-underline-offset: .24em; }
.foot-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  padding-block: 16px 28px;
  border-top: 1px solid var(--c-border);
  color: var(--c-muted);
  font-size: var(--fs-small);
}
.foot-end small { font-size: inherit; }

.reveal { transition: opacity .45s var(--ease); }
.reveal.reveal-ready:not(.shown):not(:focus-within) { opacity: 0; }

@media (width < 1280px) {
  html:not(.preview-desktop) .site-head:not(.preview-head) .topnav { display: none; }
  .site-head:not(.preview-head) .nav-toggle { display: inline-flex; }
  .head-tools { margin-inline-start: auto; }
  .mobile-drawer {
    position: absolute;
    z-index: 1;
    inset: var(--h-nav) 0 auto;
    display: block;
    max-height: calc(100vh - var(--h-nav));
    max-height: calc(100dvh - var(--h-nav));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 10px var(--gutter) 18px;
    border-bottom: 1px solid var(--c-border);
    background: var(--c-bg);
    color: var(--c-text);
  }
}
@media (max-width: 960px) {
  .stage .site-head { background: var(--c-field); color: var(--c-on-field); }
  .preview-head .topnav { display: none; }
  .preview-mobile { display: block; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  :root { --fs-page: clamp(24px, 5vw, 30px); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .masthead { gap: 8px; }
  .brand { gap: 8px; }
  .brand-name { font-size: var(--fs-small); }
  .lang-box { margin-inline-start: 0; }
  .lang { min-height: var(--h-touch); padding-inline: 10px; }
  .lang-full, .lang .nav-ico { display: none; }
  .lang-short { display: inline; }
  .tilt, .tilt-decor { transform: none !important; rotate: none !important; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; }
  .reveal.reveal-ready:not(.shown) { opacity: 1; }
  .btn, .topnav a { transition: none; }
}