:root {
  --bg: #0b0b0b;
  --surface: #101010;
  --surface-2: #151515;
  --text: #f2f2f2;
  --text-secondary: #9a9a9a;
  --text-muted: #6a6a6a;
  --border: rgba(255, 255, 255, 0.1);
  --max: 1080px;
  --font: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
}
img, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
code { font-family: var(--font); }

.jump-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 90;
  background: #fff;
  color: #000;
  padding: 0.4rem 0.6rem;
}
.jump-link:focus { top: 0.7rem; }

.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 46% at 50% -12%, rgba(255, 255, 255, 0.07), transparent 58%),
    radial-gradient(ellipse 36% 28% at 86% 12%, rgba(255, 255, 255, 0.035), transparent 70%);
  animation: ambience 14s ease-in-out infinite alternate;
}
body > * { position: relative; z-index: 1; }

.mast {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}
.mast::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  background: rgba(11, 11, 11, 0.62);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  z-index: -1;
  transition: border-color 220ms ease, background-color 220ms ease;
}
body.is-scrolled .mast::before {
  background: rgba(11, 11, 11, 0.86);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.mast-brand {
  display: flex;
  align-items: center;
  gap: 0;
  font-weight: 600;
  letter-spacing: -0.04em;
  font-size: 18px;
  position: relative;
  z-index: 1;
}
.mast-brand img { height: 18px; width: auto; filter: invert(1); margin-right: 2px; }
.mast-brand span { display: none; }
.mast-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  color: var(--text-secondary);
}
.mast-links a { position: relative; transition: color 150ms ease; }
.mast-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 1px;
  background: #f2f2f2;
  transition: width 220ms ease;
}
.mast-links a:hover,
.mast-links a[aria-current="page"] { color: var(--text); }
.mast-links a:hover::after,
.mast-links a[aria-current="page"]::after { width: 100%; }
.mast-tools { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
#menu-btn { display: none; }

.act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  background: #f2f2f2;
  background-image: linear-gradient(110deg, #f2f2f2 28%, #fff 46%, #f2f2f2 62%);
  background-size: 220% 100%;
  background-position: 100% 0;
  color: #0b0b0b;
  border: 1px solid #f2f2f2;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease, background-position 500ms ease, background-color 180ms ease, border-color 180ms ease;
}
.act:hover {
  background-color: #fff;
  background-position: 0 0;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(242, 242, 242, 0.2);
}
.corner-dl {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  animation: pulse-ring 2.8s ease-out infinite;
}
.act.alt {
  background: transparent;
  background-image: none;
  color: var(--text);
  border-color: var(--border);
  font-weight: 500;
}
.act.alt:hover {
  border-color: #f2f2f2;
  background: #161616;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 24px rgba(0, 0, 0, 0.35);
}
.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.tiny { min-height: 28px; padding: 0 8px; font-size: 12px; }

.hero { padding: 96px 0 48px; text-align: center; }
.note {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 auto 36px;
  color: var(--text-secondary);
  font-size: 13px;
}
.chip {
  background: #f2f2f2;
  color: #111;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 3px;
  animation: chip-pulse 2.4s ease-out infinite;
}
.display {
  margin: 0 auto;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.05em;
  max-width: 16ch;
  text-align: center;
  animation: ledger-in 0.8s 0.06s ease both, title-glow 4.2s 0.8s ease-in-out infinite;
}
.lede {
  margin: 22px auto 0;
  max-width: 36rem;
  color: var(--text-secondary);
  font-size: 15px;
  animation: ledger-in 0.8s 0.12s ease both;
}
.note { animation: ledger-in 0.65s ease both; }
.dl-row {
  animation: ledger-in 0.8s 0.18s ease both;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.dl-more {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
  animation: ledger-in 0.8s 0.22s ease both;
}
.dl-more a { color: var(--text); }

.term {
  position: relative;
  margin: 40px auto 0;
  max-width: 560px;
  background: #161616;
  border-radius: 10px;
  overflow: hidden;
  text-align: start;
  animation: ledger-in 0.85s 0.26s ease both;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 22px 50px rgba(0, 0, 0, 0.42);
  transition: box-shadow 250ms ease;
}
.term:hover {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 0 42px rgba(255, 255, 255, 0.05), 0 22px 50px rgba(0, 0, 0, 0.42);
}
.term::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 2px,
    rgba(255, 255, 255, 0.018) 2px 3px
  );
  animation: scan-drift 7s linear infinite;
}
.term-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px 0;
}
.term-tabs { display: flex; padding: 0; gap: 16px; }
.term-tabs button {
  background: none;
  border: 0;
  padding: 6px 0 10px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
}
.term-tabs button { transition: color 160ms ease; }
.term-tabs button[aria-selected="true"] {
  color: var(--text);
  box-shadow: inset 0 -1px 0 #f2f2f2;
}
.term-line {
  display: flex;
  align-items: center;
  padding: 4px 14px 14px;
  font-size: 13px;
}
.term-line code { flex: 1; color: var(--text-secondary); overflow-x: auto; }
.term-line code::after {
  content: "▌";
  display: inline-block;
  margin-left: 5px;
  color: #f2f2f2;
  animation: caret-blink 1.1s steps(1) infinite;
}
#term-copy { border: 0; color: var(--text-muted); min-height: 28px; }

.viewport {
  margin-top: 56px;
  background: #111;
  border-radius: 8px;
  overflow: hidden;
  animation: ledger-in 0.95s 0.32s ease both;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 36px 80px rgba(0, 0, 0, 0.5);
  transition: box-shadow 320ms ease, transform 320ms ease;
}
.viewport:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 0 56px rgba(255, 255, 255, 0.06), 0 36px 80px rgba(0, 0, 0, 0.5);
}
.viewport img,
.viewport video { display: block; width: 100%; height: auto; }

.band { padding: 80px 0; border-top: 0; }
html.fx .band:not(.is-in) {
  opacity: 0;
  transform: translateY(18px);
}
html.fx .band.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 700ms ease, transform 700ms ease;
}
.kicker {
  margin: 0 auto 16px;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  max-width: 36rem;
}
.band p { margin: 0 auto; max-width: 40rem; color: var(--text-secondary); text-align: center; }
.note a,
.band p a { color: var(--text); }
.note a:hover,
.band p a:hover { color: #fff; }

.stars { list-style: none; margin: 28px auto 0; padding: 0; max-width: 40rem; text-align: start; }
.stars li {
  padding: 7px 0;
  color: var(--text-secondary);
  transition: color 180ms ease, transform 180ms ease;
}
.stars li:hover { color: #f2f2f2; transform: translateX(6px); }
.stars b { color: var(--text); font-weight: 500; margin-right: 8px; }
.stars b::before { content: "[*] "; color: var(--text-muted); font-weight: 400; }

.docs-link {
  display: flex;
  width: fit-content;
  margin: 28px auto 0;
  background: #f2f2f2;
  color: #111;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.docs-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(242, 242, 242, 0.18);
}

main h1, main h2, main h3 {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 36px; margin-top: 48px; }
.stats figure { margin: 0; min-width: 0; }
html.fx .stats:not(.is-in) figure {
  opacity: 0;
  transform: translateY(12px);
}
html.fx .stats.is-in figure {
  opacity: 1;
  transform: none;
  transition: opacity 600ms ease, transform 600ms ease;
}
.stats.is-in figure:nth-child(2) { transition-delay: 90ms; }
.stats.is-in figure:nth-child(3) { transition-delay: 180ms; }
html.fx .stats:not(.is-in) polyline {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
}
html.fx .stats.is-in polyline {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.5s ease;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.35));
}
html.fx .stats svg circle {
  transform-box: fill-box;
  transform-origin: center;
}
html.fx .stats:not(.is-in) svg circle {
  opacity: 0;
  transform: scale(0.2);
}
html.fx .stats.is-in svg circle { animation: dot-in 0.4s ease forwards; }
html.fx .stats svg rect {
  transform-box: fill-box;
  transform-origin: center bottom;
}
html.fx .stats:not(.is-in) svg rect {
  transform: scaleY(0.08);
  opacity: 0.3;
}
html.fx .stats.is-in svg rect { animation: bar-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.stats svg {
  width: 100%;
  height: 128px;
  display: block;
  overflow: visible;
}
.stats figcaption {
  margin-top: 16px;
  color: #9a9a9a;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-align: center;
  white-space: nowrap;
}

.sheet-faq { margin-top: 20px; }
[data-acc-item] {
  border-top: 1px solid var(--border);
  transition: background-color 200ms ease, box-shadow 200ms ease;
}
[data-acc-item]:last-child { border-bottom: 1px solid var(--border); }
[data-acc-item]:hover,
[data-acc-item][data-open] {
  background: #141414;
  box-shadow: inset 2px 0 0 #f2f2f2;
}
[data-acc] {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: 0;
  padding: 16px 10px;
  text-align: start;
  cursor: pointer;
  font-size: 14px;
  transition: color 180ms ease;
}
[data-acc] span { color: var(--text-muted); }
[data-acc-panel] { max-height: 0; overflow: hidden; transition: max-height 180ms ease; }
[data-acc-item][data-open] [data-acc-panel] { max-height: 240px; }
[data-acc-panel] p { margin: 0 0 16px; color: var(--text-secondary); }

.colophon {
  border-top: 0;
  padding: 28px 0 40px;
  color: var(--text-secondary);
  font-size: 13px;
}

.band::before,
main > section + section::before,
.colophon::before {
  content: "◆";
  display: block;
  width: 148px;
  margin: 0 auto 52px;
  color: #8a8a8a;
  font-size: 8px;
  line-height: 1;
  text-align: center;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent) center / 40% 1px no-repeat;
  animation: divider-shimmer 3.6s linear infinite;
}

.colophon::before { margin-bottom: 22px; }
main > section:has(.pack)::before { display: none; content: none; margin: 0; }

main > section.border-b {
  border-bottom-width: 0 !important;
}
.colophon-row {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 12px;
}
.colophon a:hover { color: #fff; }

.locale { position: relative; }
.locale-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 11rem;
  border: 1px solid var(--border);
  background: #161616;
  z-index: 70;
}
.locale-menu:not([hidden]) { display: block; }
.locale-menu a { display: block; padding: 8px 10px; font-size: 12px; color: var(--text-secondary); }
.locale-menu a:hover,
.locale-menu a[aria-current="true"] { color: var(--text); }

.sheet { display: none; padding: 8px 24px 20px; }
.sheet a { display: block; padding: 8px 0; color: var(--text-secondary); }

.inner-pad { padding: 72px 0 96px; }
#lang-btn.ghost { border-color: transparent; color: var(--text-secondary); }
main > section + section:not(.band),
footer > div > div,
main dl > div,
main ol > li { opacity: 1 !important; transform: none !important; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 11, 11, 0.92);
  padding: 24px;
}
.lightbox[hidden] { display: none !important; }
.lightbox img { max-height: 90vh; }
.lightbox button {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f2f2f2;
  color: #111;
  border: 0;
  padding: 6px 10px;
}

.dl-hero {
  display: grid;
  grid-template-columns: minmax(200px, 0.85fr) 1.35fr;
  width: min(var(--max), calc(100% - 48px));
  margin: 40px auto 64px;
  background: #141414;
  border-radius: 18px;
  overflow: hidden;
}
.dl-hero-visual { min-height: 240px; background: #0d0d0d; }
.dl-hero-visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dl-hero-copy { padding: 40px 36px; }
.dl-hero-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.04em;
  text-align: start;
}
.dl-hero-copy p {
  margin: 0 0 22px;
  max-width: 28rem;
  color: var(--text-secondary);
  text-align: start;
}

.pack {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px 40px;
  align-items: start;
}
.pack h2 {
  margin: 6px 0 0;
  font-size: 15px;
  font-weight: 500;
  text-align: start;
}
.pack-list { display: flex; flex-direction: column; gap: 2px; }
html.fx .pack:not(.is-in),
html.fx .dl-hero:not(.is-in) {
  opacity: 0;
  transform: translateY(16px);
}
html.fx .pack.is-in,
html.fx .dl-hero.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 650ms ease, transform 650ms ease;
}
.dl-hero {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: opacity 650ms ease, transform 650ms ease, box-shadow 280ms ease;
}
.dl-hero.is-in:hover {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 24px 60px rgba(0, 0, 0, 0.4);
}
.pack-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 6px 8px 6px 6px;
  border-radius: 10px;
  transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.pack-row:hover,
.pack-row.is-on {
  background: #161616;
  transform: translateX(4px);
  box-shadow: inset 2px 0 0 #f2f2f2;
}
.pack-row .name,
.pack-row code {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 13px;
}
.pack-row .act {
  min-width: 108px;
  min-height: 32px;
  border-radius: 8px;
  font-weight: 500;
}
.pack-ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  object-fit: contain;
}
img.pack-ico.ink { filter: invert(1); }

@media (max-width: 800px) {
  .mast-links { display: none; }
  #menu-btn { display: inline-flex; }
  .sheet:not([hidden]) { display: block; }
  .wrap, .mast, .colophon-row { width: calc(100% - 32px); }
  .hero { padding: 56px 0 32px; }
  .band, .inner-pad { padding: 48px 0; }
  .stats { grid-template-columns: 1fr; }
  .dl-hero, .pack { grid-template-columns: 1fr; width: calc(100% - 32px); }
  .dl-hero-copy { padding: 28px 22px; }
}

@keyframes ledger-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes caret-blink { 50% { opacity: 0; } }
@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(242, 242, 242, 0.32), 0 10px 28px rgba(0, 0, 0, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(242, 242, 242, 0), 0 10px 28px rgba(0, 0, 0, 0.45); }
}
@keyframes chip-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(242, 242, 242, 0.38); }
  70% { box-shadow: 0 0 0 8px rgba(242, 242, 242, 0); }
}
@keyframes title-glow {
  0%, 100% { text-shadow: 0 0 18px rgba(255, 255, 255, 0.04); }
  50% { text-shadow: 0 0 42px rgba(255, 255, 255, 0.18); }
}
@keyframes ambience {
  from { opacity: 0.7; transform: scale(1); }
  to { opacity: 1; transform: scale(1.06); }
}
@keyframes scan-drift {
  from { background-position: 0 0; }
  to { background-position: 0 24px; }
}
@keyframes divider-shimmer {
  0% { background-position: -60% center; }
  100% { background-position: 160% center; }
}
@keyframes bar-rise {
  to { transform: scaleY(1); opacity: 1; }
}
@keyframes dot-in {
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  body::before,
  .band,
  .pack,
  .dl-hero,
  .stats figure,
  .stats svg circle,
  .stats svg rect { opacity: 1 !important; transform: none !important; }
  .stats polyline { stroke-dashoffset: 0 !important; }
}

[dir="rtl"] .locale-menu { right: auto; left: 0; }
[dir="rtl"] .corner-dl { right: auto; left: 24px; }
[dir="rtl"] .stars li:hover,
[dir="rtl"] .pack-row:hover,
[dir="rtl"] .pack-row.is-on { transform: translateX(-4px); }
[dir="rtl"] .mast-links a::after { left: auto; right: 0; }
html[lang="zh-CN"] .mast-links { letter-spacing: 0.08em; }
