:root {
  --bg: #FFFFFF;
  --bg-panel: #F6F6F6;
  --bg-panel-2: #EEEEEE;
  --border: #E4E4E4;
  --accent: #7E0B3F;
  --accent-dark: #3F0620;
  --coral: #FF6B61;
  --coral-wash: #FDECEC;
  --field-raised: #52102F;
  --text: #171717;
  --text-muted: #666666;
  --success: #2F8F5B;
  --warn: #B7791F;
  --error: #C62F3A;
  --on-dark: #FFFFFF;
  --on-dark-88: rgba(255, 255, 255, 0.88);
  --on-dark-80: rgba(255, 255, 255, 0.8);
  --on-dark-62: rgba(255, 255, 255, 0.62);
  --on-dark-line: rgba(255, 255, 255, 0.14);
  --on-dark-line-strong: rgba(255, 255, 255, 0.34);
  --on-dark-line-hover: rgba(255, 255, 255, 0.28);
  --on-dark-wash: rgba(255, 255, 255, 0.07);
  --shadow-wine: rgba(63, 6, 32, 0.3);
  --shadow-menu: rgba(23, 23, 23, 0.12);
  --veil: rgba(23, 23, 23, 0.48);
  --clear: transparent;
  --font-display: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --font-path: 'JetBrains Mono', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', ui-monospace, monospace;
  --weight-normal: 400;
  --weight-medium: 500;
  --radius-card: 24px;
  --radius-wrap: 32px;
  --radius-menu: 16px;
  --radius-item: 10px;
  --radius-pill: 999px;
  --radius-circle: 50%;
  --container: 1200px;
  --reading: 800px;
  --header-container: 1280px;
  --gutter: 32px;
  --nav-h: 72px;
  --overlap: 48px;
  --space-section: 88px;
  --motion-short: 180ms;
  --motion-reveal: 500ms;
}
*, *::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(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
img, svg, video { max-width: 100%; vertical-align: middle; }
img { height: auto; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: var(--clear); }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
::selection { background: var(--coral-wash); color: var(--accent-dark); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-normal);
  line-height: 1.25;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(34px, 2vw + 20px, 48px); letter-spacing: -0.02em; line-height: 1.12; }
h2 { font-size: clamp(26px, 1.4vw + 18px, 38px); letter-spacing: -0.02em; }
h3 { font-size: 23px; }
p, li, dd { overflow-wrap: break-word; }
code { font-family: var(--font-path); overflow-wrap: anywhere; }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-menu);
  background: var(--bg-panel);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  tab-size: 2;
}
pre code { 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: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.reading { max-width: calc(var(--reading) + var(--gutter) * 2); }
.section { padding-top: var(--space-section); padding-bottom: var(--space-section); }
.section-title { margin: 0 0 24px; }
.section-intro { max-width: 660px; color: var(--text-muted); }
.center { text-align: center; }
.keep { white-space: nowrap; }
.muted { color: var(--text-muted); }
.accent-text { color: var(--accent); }
.eyebrow { margin: 0; color: var(--text-muted); font-size: 14px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--accent);
  font-size: 14px;
  text-decoration: none;
}
.skip:focus { top: 12px; }
.grid { display: grid; gap: 24px; }
.grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid > *, .index-grid > *, .footer-grid > *, .topbar-inner > *, .prose > * { min-width: 0; }
.card, .panel {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg);
  color: var(--text);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.panel {
  padding: 40px;
  border-radius: var(--radius-wrap);
  background: var(--bg-panel);
  color: var(--text);
}
.card-link { display: block; text-decoration: none; }
.card-link:hover { border-color: var(--accent); }
.prose { min-width: 0; }
.prose h2 { margin-top: 56px; margin-bottom: 22px; }
.prose h3 { margin-top: 32px; margin-bottom: 14px; }
.prose p { margin-block: 18px; }
.prose a { color: var(--accent); }
.prose li + li { margin-top: 8px; }
.prose :is(h2, h3, h4), [id] { scroll-margin-top: 24px; }
.prose img { display: block; height: auto; }
.prose blockquote { margin-inline: 0; }
.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 10px 26px;
  border: 1px solid var(--accent-dark);
  border-radius: var(--radius-pill);
  background: var(--accent-dark);
  color: var(--on-dark);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: var(--weight-medium);
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  transition: background var(--motion-short), border-color var(--motion-short);
}
.btn:hover, .btn.is-hover { background: var(--accent); color: var(--on-dark); border-color: var(--accent); }
.btn:active, .btn.is-active { background: var(--field-raised); color: var(--on-dark); border-color: var(--field-raised); }
.btn svg, .icon {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn-solid { background: var(--bg); color: var(--accent); border-color: var(--bg); }
.btn-solid:hover { background: var(--coral-wash); color: var(--accent); border-color: var(--coral-wash); }
.btn-outline { background: var(--bg); color: var(--accent-dark); border-color: var(--accent-dark); }
.btn-outline:hover { background: var(--coral-wash); color: var(--accent-dark); border-color: var(--accent); }
.btn-ghost { background: var(--clear); color: var(--on-dark); border-color: var(--on-dark-line-strong); }
.btn-ghost:hover { background: var(--on-dark-wash); color: var(--on-dark); border-color: var(--on-dark-80); }
.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--bg-panel-2);
  color: var(--text-muted);
  border-color: var(--border);
  cursor: not-allowed;
}
.btn-small { min-height: 44px; font-size: 14px; padding-inline: 20px; }
.field { position: relative; background: var(--accent-dark); color: var(--on-dark); isolation: isolate; }
.field-atmos { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.field-atmos::before {
  content: "";
  position: absolute;
  width: 1100px;
  height: 1100px;
  right: -480px;
  bottom: -430px;
  border-radius: var(--radius-circle);
  background: radial-gradient(circle at center, var(--coral) 0%, var(--clear) 60%);
  opacity: 0.18;
}
.decorated { position: relative; overflow-x: clip; }
.topbar, #site-header { position: relative; z-index: 30; background: var(--accent-dark); color: var(--on-dark); }
.field .topbar, .field #site-header { background: var(--clear); color: var(--on-dark); }
.topbar-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
  width: 100%;
  max-width: min(100%, calc(var(--header-container) + var(--gutter) * 2));
  padding-inline: var(--gutter);
  margin-inline: auto;
}
.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 11px;
  color: var(--on-dark);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: var(--weight-medium);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand img { display: block; flex-shrink: 0; width: 34px; height: 34px; }
.desktop-nav { min-width: 0; margin-left: auto; }
.navlist {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.navlink, .more-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--clear);
  color: var(--on-dark-80);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.navlink:hover, .more-toggle:hover, .more[open] .more-toggle { background: var(--on-dark-wash); color: var(--on-dark); }
.navlink[aria-current="page"] { color: var(--on-dark); }
.navlink[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: var(--radius-circle);
  background: var(--coral);
}
.more, .language-control { position: relative; }
.more summary { cursor: pointer; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more-toggle svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; flex-shrink: 0; }
.more-menu, .language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 264px;
  max-width: calc(100vw - var(--gutter) * 2);
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-menu);
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 18px 40px -24px var(--shadow-menu);
  z-index: 5;
}
.more-menu a, .language-menu a {
  display: block;
  min-height: 44px;
  padding: 11px 14px;
  border-radius: var(--radius-item);
  color: var(--text);
  text-decoration: none;
}
.more-menu a:hover, .language-menu a:hover { background: var(--bg-panel); color: var(--text); }
.more-menu a[aria-current="page"], .language-menu a[aria-current="true"] { background: var(--coral-wash); color: var(--accent-dark); }
.more-menu strong { display: block; font-size: 14.5px; font-weight: var(--weight-medium); }
.more-menu span { display: block; margin-top: 3px; color: var(--text-muted); font-size: 12.5px; line-height: 1.5; }
.header-tools { display: flex; flex-shrink: 0; align-items: center; gap: 12px; }
.lang, .menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--on-dark-line-strong);
  border-radius: var(--radius-pill);
  background: var(--clear);
  color: var(--on-dark-88);
  font-family: var(--font-body);
  font-size: 14px;
  white-space: nowrap;
}
.lang:hover, .menu-toggle:hover { border-color: var(--on-dark-80); color: var(--on-dark); }
.lang svg { width: 15px; height: 15px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.4; }
.menu-toggle { display: none; min-width: 44px; min-height: 44px; padding: 10px; }
.menu-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.mobile-drawer { display: none; }
.nav-veil {
  position: fixed;
  inset: var(--nav-h) 0 0;
  border: 0;
  background: var(--veil);
  color: var(--on-dark);
  z-index: -1;
}
.hero { position: relative; z-index: 2; padding-top: 36px; text-align: center; }
.hero-mark { display: block; width: 44px; height: 44px; margin: 0 auto 18px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 32px;
  max-width: 100%;
  padding: 5px 15px 5px 13px;
  border: 1px solid var(--on-dark-line);
  border-radius: var(--radius-pill);
  background: var(--on-dark-wash);
  color: var(--on-dark-88);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.01em;
}
.badge-dot { flex-shrink: 0; width: 7px; height: 7px; border-radius: var(--radius-circle); background: var(--coral); }
.hero h1 {
  margin: 22px 0 0;
  font-size: clamp(34px, 2vw + 20px, 48px);
  font-weight: var(--weight-normal);
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--on-dark);
}
.h1-line { display: block; }
.hero .h1-accent { color: var(--coral); }
.lead { max-width: 640px; margin: 22px auto 0; font-size: 16.5px; line-height: 1.65; color: var(--on-dark-80); }
.lead strong { font-weight: var(--weight-medium); color: var(--on-dark); }
.platforms { display: flex; justify-content: center; flex-wrap: wrap; list-style: none; margin: 28px 0 0; padding: 0; }
.platforms li + li { border-left: 1px solid var(--on-dark-line); }
.platforms a { display: inline-flex; align-items: center; gap: 9px; min-height: 24px; padding: 0 24px; color: var(--on-dark-80); font-size: 14px; text-decoration: none; }
.platforms a:hover { color: var(--on-dark); }
.platforms svg { display: block; flex-shrink: 0; height: 17px; width: 17px; }
.index-board { position: relative; z-index: 3; margin-top: 44px; margin-bottom: calc(var(--overlap) * -1); }
.index-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; text-align: left; }
.index-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px 24px 20px;
  border: 1px solid var(--on-dark-line);
  border-radius: var(--radius-card);
  background: var(--field-raised);
  color: var(--on-dark);
  text-decoration: none;
  box-shadow: 0 30px 44px -36px var(--shadow-wine);
}
.index-card:hover { border-color: var(--on-dark-line-hover); }
.index-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.index-tag { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 12px; border-radius: var(--radius-pill); background: var(--coral); color: var(--accent-dark); font-size: 13px; font-weight: var(--weight-medium); letter-spacing: 0.02em; }
.index-kind { font-family: var(--font-path); font-size: 12px; color: var(--on-dark-62); letter-spacing: 0.02em; }
.index-path { margin: 18px 0 0; min-height: 3.2em; font-family: var(--font-path); font-size: 15px; line-height: 1.6; color: var(--on-dark); overflow-wrap: anywhere; }
.index-path .sep { color: var(--coral); margin: 0 0.4em; }
.index-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--on-dark-line); font-size: 13px; color: var(--on-dark-62); }
.index-foot svg { flex-shrink: 0; width: 16px; height: 16px; fill: none; stroke: var(--coral); stroke-width: 1.8; }
.site-footer { margin-top: 32px; padding-top: 64px; padding-bottom: 28px; border-top: 1px solid var(--border); background: var(--bg-panel); color: var(--text); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1.2fr 0.7fr; gap: 40px; }
.site-footer .brand { color: var(--text); }
.footer-description { max-width: 320px; color: var(--text-muted); font-size: 14px; }
.footer-heading { margin: 0 0 16px; font-size: 15px; font-weight: var(--weight-medium); }
.footer-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.footer-list a { display: inline-block; padding-block: 4px; color: var(--text-muted); text-decoration: none; }
.footer-list a:hover { color: var(--accent); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 13px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 20px; }
.reveal { opacity: 1; transform: none; }
.reveal.reveal-ready { opacity: 0; transform: translateY(16px); transition: opacity var(--motion-reveal) ease, transform var(--motion-reveal) ease; }
.reveal.shown { opacity: 1; transform: none; }
@media (max-width: 1100px) {
  .navlink, .more-toggle { padding-inline: 11px; }
  .topbar-inner { gap: 16px; }
}
@media (max-width: 900px) {
  :root { --gutter: 20px; --overlap: 32px; --space-section: 64px; }
  .desktop-nav { display: none; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .mobile-drawer:not([hidden]) {
    display: block;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px var(--gutter) 24px;
    border-top: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    z-index: 3;
  }
  .mobile-drawer ul { list-style: none; margin: 0; padding: 0; }
  .mobile-drawer a { display: flex; align-items: center; width: 100%; min-height: 48px; padding: 12px 16px; border-radius: var(--radius-item); color: var(--text); text-decoration: none; }
  .mobile-drawer a:hover, .mobile-drawer a[aria-current] { background: var(--coral-wash); color: var(--accent-dark); }
  .drawer-heading { margin: 16px 16px 8px; color: var(--text-muted); font-size: 13px; }
  .index-grid, .grid-three { grid-template-columns: 1fr; }
  .index-grid { gap: 14px; }
  .index-path { min-height: 0; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  h1, .hero h1 { font-size: clamp(24px, 4vw, 30px); line-height: 1.16; letter-spacing: -0.02em; }
  .grid-two { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .tilt, [data-tilt] { transform: none !important; }
  .panel { padding: 24px; }
  .card { padding: 24px; }
  .badge-row { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .topbar-inner { gap: 10px; }
}
@media (max-width: 560px) {
  .brand-name { display: none; }
  .header-tools { gap: 8px; }
  .platforms { gap: 12px 0; }
  .platforms li + li { border-left: 0; }
  .platforms a { padding-inline: 12px; }
  .lead { font-size: 15.5px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal.reveal-ready { opacity: 1; transform: none; }
}