/* ==========================================================================
   DSH MUSIC — product site
   Palette and type follow the "计量体" artwork: black-green, phosphor,
   amber, graph paper. No rounded cards, no decorative gradients for their
   own sake.
   ========================================================================== */

:root {
  --bg: #06100b;
  --bg-2: #08150e;
  --panel: #0b1a12;
  --panel-2: #0e2117;
  --paper: #ece7da;
  --paper-2: #e3ddce;
  --ink: #07100b;
  --text: #e9f2ea;
  --muted: #8fa89a;
  --muted-2: #60776b;
  --line: rgba(166, 224, 187, 0.15);
  --line-strong: rgba(166, 224, 187, 0.3);
  --accent: #93ffb0;
  --accent-soft: rgba(147, 255, 176, 0.1);
  --accent-2: #ffc35c;
  --danger: #ff6b57;
  --wechat: #07c160;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", "Cascadia Mono", "Consolas", monospace;
  --max: 1240px;
  --pad: clamp(20px, 4vw, 56px);
  --header-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(147, 255, 176, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 255, 176, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 100%);
}

body.modal-open { overflow: hidden; }

::selection { background: var(--accent); color: var(--bg); }

img { max-width: 100%; display: block; }

[hidden] { display: none !important; }

a { color: inherit; }

button,
input { font: inherit; }

button { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-160%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.skip:focus {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.container {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

.mono {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(6, 16, 11, 0.86);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--accent);
  background: rgba(147, 255, 176, 0.03);
}

.brand-mark svg { width: 24px; height: 24px; }

.brand-text b {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
}

.brand-text small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.18em;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 34px);
}

.nav a {
  position: relative;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right 0.25s ease;
}

.nav a:hover,
.nav a[aria-current="page"] { color: var(--text); }
.nav a:hover::after,
.nav a[aria-current="page"]::after { right: 0; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.version {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  position: relative;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  position: absolute;
  left: 10px;
  width: 18px;
  height: 1px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle span { top: 19px; }
.menu-toggle span::before { content: ""; top: -6px; left: 0; }
.menu-toggle span::after { content: ""; top: 6px; left: 0; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Buttons and links
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--bg);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover { background: #c0ffd0; transform: translateY(-1px); }

.btn svg { width: 16px; height: 16px; flex: none; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 11px;
}

.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 12px;
  text-decoration: none;
  border-bottom: 1px solid rgba(147, 255, 176, 0.35);
  padding-bottom: 4px;
  transition: border-color 0.2s ease, gap 0.2s ease;
}

.link-arrow:hover { border-color: var(--accent); gap: 12px; }
.link-arrow svg { width: 14px; height: 14px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(128px, 17vh, 184px) 0 clamp(56px, 8vw, 88px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 8%;
  right: -18%;
  width: 56vw;
  height: 56vw;
  max-width: 780px;
  max-height: 780px;
  border: 1px solid var(--line);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.55;
}

.hero::after {
  content: "";
  position: absolute;
  top: 18%;
  right: -8%;
  width: 36vw;
  height: 36vw;
  max-width: 520px;
  max-height: 520px;
  border: 1px solid rgba(147, 255, 176, 0.09);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}

.hero h1 {
  margin: 22px 0 26px;
  font-family: var(--serif);
  font-size: clamp(3.1rem, 5.9vw, 5.4rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.hero h1 .accent { color: var(--accent); }

.lede {
  max-width: 46ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.85;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-note {
  margin: 18px 0 0;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  line-height: 1.8;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 44px 0 0;
  border-top: 1px solid var(--line);
}

.stats > div {
  padding: 16px 14px 0 0;
  border-right: 1px solid var(--line);
}

.stats > div:last-child { border-right: 0; padding-right: 0; }

.stats dt {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  line-height: 1;
}

.stats dd {
  margin: 7px 0 0;
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 600;
  line-height: 1;
}

/* console */

.console {
  position: relative;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(120% 90% at 70% 0%, rgba(147, 255, 176, 0.06), transparent 55%),
    linear-gradient(180deg, rgba(14, 33, 23, 0.92), rgba(6, 16, 11, 0.98));
  box-shadow:
    0 50px 120px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.console::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(147, 255, 176, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 255, 176, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 78%);
  mask-image: linear-gradient(180deg, #000, transparent 78%);
}

.console-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(147, 255, 176, 0.05) 50%, transparent 100%);
  height: 30%;
  animation: scan 7s linear infinite;
  opacity: 0.5;
}

.console-top,
.console-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.console-top { border-bottom: 1px solid var(--line); }
.console-bottom { border-top: 1px solid var(--line); }

.rec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-2);
}

.rec i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 10px var(--danger);
  animation: pulse 1.6s ease-in-out infinite;
}

.console-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
}

.tracks { padding: 12px 16px 16px; }

.track {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 10px;
  height: 32px;
}

.track + .track { border-top: 1px solid rgba(166, 224, 187, 0.08); }

.t-name {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.t-bars {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 20px;
  overflow: hidden;
}

.t-bars span {
  flex: 1 1 0;
  min-width: 1px;
  height: calc(var(--h) * 1%);
  background: var(--accent);
  opacity: 0.45;
  transform-origin: center;
  transition: height 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.track.is-lead .t-bars span {
  background: var(--accent-2);
  opacity: 0.85;
}

.track.is-harmony .t-bars span {
  background: var(--accent);
  opacity: 0.3;
}

.t-val {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  text-align: right;
}

.master {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 12px;
  border-left: 1px solid var(--line);
  background: rgba(3, 10, 6, 0.35);
}

.master-label {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.meter {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.meter i {
  height: 5px;
  background: rgba(147, 255, 176, 0.08);
}

.meter i.on { background: var(--accent); }
.meter i.hot { background: var(--accent-2); }

.master-read {
  display: grid;
  gap: 7px;
  margin: auto 0 0;
}

.master-read div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  border-top: 1px solid rgba(166, 224, 187, 0.1);
  padding-top: 6px;
}

.master-read dt {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.master-read dd {
  margin: 0;
  color: var(--text);
  font-family: var(--mono);
  font-size: 9px;
}

.signal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
}

.signal::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.hero-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.hero-foot a {
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-foot a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(147, 255, 176, 0.02);
  padding: 13px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee span {
  position: relative;
  padding-right: 52px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.marquee span::after {
  content: "✳";
  position: absolute;
  right: 18px;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Section shell
   -------------------------------------------------------------------------- */

.section {
  padding: clamp(76px, 10vw, 126px) 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(220px, 330px);
  gap: 24px;
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-index {
  align-self: start;
  padding-top: 9px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.section-note {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   Pipeline
   -------------------------------------------------------------------------- */

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.stage {
  position: relative;
  min-height: 206px;
  padding: 22px 22px 26px;
  background: var(--bg);
  overflow: hidden;
  transition: background 0.25s ease;
}

.stage:hover { background: var(--panel); }

.stage::after {
  content: attr(data-no);
  position: absolute;
  right: 10px;
  bottom: -22px;
  color: var(--text);
  opacity: 0.035;
  font-family: var(--serif);
  font-size: 92px;
  line-height: 1;
  pointer-events: none;
}

.stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stage-no {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.stage-tool {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-align: right;
}

.stage h3 {
  margin: 36px 0 8px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.stage p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.72;
}

.stage.is-listen {
  background:
    linear-gradient(180deg, rgba(255, 195, 92, 0.05), transparent 55%),
    var(--bg);
}

.listen-flag {
  position: absolute;
  left: 22px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.listen-flag::before {
  content: "";
  border-left: 5px solid var(--accent-2);
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
}

.pipeline-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.pipeline-foot b {
  color: var(--accent-2);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Features
   -------------------------------------------------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.feature {
  display: flex;
  flex-direction: column;
  min-height: 298px;
  padding: 28px 26px;
  background: var(--bg);
  transition: background 0.25s ease;
}

.feature:hover { background: var(--panel); }

.feature-icon {
  width: 26px;
  height: 26px;
  color: var(--accent);
}

.feature-kicker {
  margin: 22px 0 0;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.feature h3 {
  margin: 10px 0 10px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.feature-specs {
  display: grid;
  gap: 7px;
  margin-top: auto;
  padding-top: 22px;
}

.feature-spec {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 7px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.feature-spec b {
  color: var(--text);
  font-weight: 500;
  text-align: right;
}

.feature-grid.small {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1px;
  border-top: 0;
}

.feature.small { min-height: 206px; padding: 24px 22px; }
.feature.small h3 { margin-top: 8px; font-size: 17px; }
.feature.small p { font-size: 12px; }

.ecosystem {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  margin-top: 24px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  background: rgba(147, 255, 176, 0.018);
}

.ecosystem-label {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  line-height: 1.8;
}

.ecosystem-label b {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}

.eco-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.eco-item strong {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.eco-item span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.eco-item em {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 5px;
  border: 1px solid rgba(255, 195, 92, 0.35);
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 7px;
  font-style: normal;
  letter-spacing: 0.1em;
}

/* --------------------------------------------------------------------------
   Listen / demo
   -------------------------------------------------------------------------- */

.listen-section { background: linear-gradient(180deg, rgba(147, 255, 176, 0.015), transparent 45%); }

.listen-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.cover {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-strong);
  overflow: hidden;
  background: #030a06;
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.3) saturate(0.95) contrast(1.04);
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cover:hover img { transform: scale(1.025); }

.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 64%, rgba(3, 10, 6, 0.88) 100%);
  pointer-events: none;
}

.cover-meta {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.cover-meta b {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.cover-meta span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.cover-meta em {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.player-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.player-title h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.player-title p {
  margin: 8px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.badge-master {
  flex: none;
  padding: 5px 7px;
  border: 1px solid rgba(147, 255, 176, 0.3);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.wave {
  position: relative;
  height: 104px;
  margin: 24px 0 16px;
  cursor: pointer;
  touch-action: none;
}

.wave-base,
.wave-played {
  position: absolute;
  inset: 0;
  -webkit-mask: url("../img/waveform.svg") center / 100% 100% no-repeat;
  mask: url("../img/waveform.svg") center / 100% 100% no-repeat;
  pointer-events: none;
}

.wave-base { background: rgba(147, 255, 176, 0.2); }
.wave-played { width: var(--p, 0%); background: var(--accent); }

.wave::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--p, 0%);
  width: 1px;
  background: var(--text);
  opacity: 0.85;
  pointer-events: none;
}

.controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.play-btn {
  width: 56px;
  height: 56px;
  flex: none;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.play-btn:hover { transform: scale(1.04); background: #c0ffd0; }
.play-btn svg { width: 18px; height: 18px; }
.play-btn .icon-pause { display: none; }
.play-btn.is-playing .icon-play { display: none; }
.play-btn.is-playing .icon-pause { display: block; }

.time {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.time b { color: var(--text); font-weight: 500; }

.player-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-left: auto;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.player-meta span::before {
  content: "·";
  margin-right: 7px;
  color: var(--accent);
}

.player-meta span:first-child::before { content: none; margin: 0; }

.player-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.player-foot p {
  margin: 0;
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.6;
}

.lyric {
  margin: 32px 0 0;
  padding-left: 18px;
  border-left: 2px solid var(--accent);
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

.lyric cite {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.14em;
}

/* --------------------------------------------------------------------------
   Measured / paper band
   -------------------------------------------------------------------------- */

.measured {
  position: relative;
  padding: clamp(64px, 8vw, 96px) 0;
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid rgba(7, 16, 11, 0.15);
  overflow: hidden;
}

.measured::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(7, 16, 11, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 16, 11, 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, 0.25));
  mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, 0.25));
}

.measured .container { position: relative; z-index: 1; }

.measured-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(7, 16, 11, 0.22);
}

.measured-head .mono { color: #2e6b45; }

.measured-head h2 {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.measured-head p {
  max-width: 36ch;
  margin: 0;
  color: #4c5f53;
  font-size: 12px;
  line-height: 1.7;
  text-align: right;
}

.measured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid rgba(7, 16, 11, 0.22);
}

.measure {
  padding: 28px 24px 26px;
  border-right: 1px solid rgba(7, 16, 11, 0.18);
}

.measure:last-child { border-right: 0; }

.measure .big {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.6vw, 4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.measure .big .arrow {
  color: #2e6b45;
  font-size: 0.5em;
  vertical-align: 0.12em;
  margin: 0 0.08em;
}

.measure .unit {
  margin-top: 10px;
  color: #2e6b45;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.measure p {
  margin: 14px 0 0;
  color: #4c5f53;
  font-size: 11px;
  line-height: 1.65;
}

.measured-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 16px;
  color: #5f7065;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  line-height: 1.7;
}

.measured-foot b { color: var(--ink); font-weight: 500; }

.measured a {
  color: #2e6b45;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Fit / cost
   -------------------------------------------------------------------------- */

.fit-section {
  background:
    radial-gradient(55% 45% at 80% 10%, rgba(255, 195, 92, 0.045), transparent 70%),
    var(--bg);
}

.fit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.fit-card {
  padding: 30px 30px 32px;
  background: var(--bg);
}

.fit-good { box-shadow: inset 0 2px 0 var(--accent); }
.fit-bad { box-shadow: inset 0 2px 0 var(--accent-2); }

.fit-card .mono { color: var(--muted-2); }

.fit-card h3 {
  margin: 12px 0 20px;
  font-size: clamp(1.18rem, 1.8vw, 1.5rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.fit-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fit-card li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
}

.fit-card li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
}

.fit-bad li::before { color: var(--accent-2); }

.fit-card li b {
  color: var(--text);
  font-weight: 500;
}

.fit-bad li b { color: #ffe0b0; }

.token-band {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 24px 40px;
  align-items: start;
  margin-top: 26px;
  padding: 30px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgba(147, 255, 176, 0.05), transparent 55%),
    var(--panel);
}

.token-copy h3 {
  margin: 10px 0 12px;
  font-size: clamp(1.2rem, 1.9vw, 1.55rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.token-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.token-table-wrap { min-width: 0; }

.token-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.token-table th {
  padding: 0 10px 10px 0;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-align: left;
  white-space: nowrap;
}

.token-table td {
  padding: 12px 10px 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.55;
  vertical-align: top;
}

.token-table tr:last-child td { border-bottom: 0; }

.token-table td:first-child {
  color: var(--text);
  font-weight: 500;
}

.token-table td:nth-child(3),
.token-table td:nth-child(4) {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  white-space: nowrap;
}

.token-foot {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.8;
}

.scope-note {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 22px;
  padding: 20px 24px;
  border: 1px solid rgba(255, 195, 92, 0.35);
  background: rgba(255, 195, 92, 0.055);
}

.scope-note .mono { color: var(--accent-2); }

.scope-note strong {
  display: block;
  margin-top: 7px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.scope-note p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */

.pricing-section {
  background:
    radial-gradient(70% 50% at 50% 0%, rgba(147, 255, 176, 0.06), transparent 70%),
    var(--bg);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 30px 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 33, 23, 0.55), rgba(6, 16, 11, 0.6));
}

.plan.is-featured { border-color: rgba(147, 255, 176, 0.48); }

.plan.is-featured::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 2px;
  background: var(--accent);
}

.plan-badge {
  position: absolute;
  top: 0;
  right: 26px;
  padding: 7px 9px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.plan h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.plan-desc {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 26px 0 6px;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 4.2vw, 4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
}

.price small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.price-note {
  min-height: 18px;
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.price-extra {
  margin-top: 5px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.plan-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 28px;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.plan-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.55;
}

.plan-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
}

.plan .btn { margin-top: auto; }

.pay-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin-top: 20px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  background: rgba(7, 16, 11, 0.55);
}

.pay-qr {
  position: relative;
  width: 54px;
  height: 54px;
  flex: none;
  border: 1px solid var(--line);
  background: rgba(4, 16, 10, 0.7);
}

.pay-qr-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 4px;
  background: rgba(4, 16, 10, 0.92);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-align: center;
}

.pay-qr-cover[hidden] { display: none; }

.pay-strip img {
  width: 54px;
  height: auto;
  border: 1px solid var(--line);
}

.pay-strip strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
}

.pay-strip p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.pay-strip .mono { color: var(--muted-2); white-space: nowrap; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.faq-grid details {
  background: var(--bg);
  padding: 22px 24px;
}

.faq-grid summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}

.faq-grid summary::-webkit-details-marker { display: none; }

.faq-grid summary::after {
  content: "+";
  flex: none;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-grid details[open] summary::after {
  content: "−";
}

.faq-grid details p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
}

.faq-grid details p a { color: var(--accent); text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   Maker / footer
   -------------------------------------------------------------------------- */

.maker {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 52px 0;
  border-top: 1px solid var(--line);
}

.maker-mark {
  width: 82px;
  height: 82px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--accent);
  background:
    radial-gradient(circle at 50% 45%, rgba(147, 255, 176, 0.12), transparent 62%),
    var(--panel);
}

.maker-mark svg {
  width: 42px;
  height: 42px;
}

.maker-copy h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
}

.maker-copy p {
  max-width: 62ch;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.maker-copy a { color: var(--accent); text-underline-offset: 3px; }

.site-footer {
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand .brand-mark { width: 32px; height: 32px; }
.footer-brand .brand-mark svg { width: 20px; height: 20px; }
.footer-brand b { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; }
.footer-brand span { display: block; margin-top: 4px; color: var(--muted-2); font-size: 10px; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--muted);
  font-size: 11px;
  text-decoration: none;
}

.footer-links a:hover { color: var(--accent); }

.legal {
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.8;
}

.legal b { color: var(--muted); font-weight: 500; }

/* --------------------------------------------------------------------------
   Payment modal
   -------------------------------------------------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.is-open { display: flex; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 5, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  box-shadow: 0 50px 140px rgba(0, 0, 0, 0.65);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--line);
}

.modal-head .mono { color: var(--accent); }

.modal-head h2 {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.modal-close {
  width: 36px;
  height: 36px;
  flex: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover { color: var(--text); border-color: var(--line-strong); }

.pay-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  gap: 28px;
  padding: 26px 28px 24px;
}

.pay-summary h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
}

.pay-scope {
  margin: 8px 0 0;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: 0.03em;
}

.pay-summary .price {
  margin: 16px 0 0;
  font-size: 42px;
}

.order-meta {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.order-meta div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.order-meta dt { color: var(--muted-2); }
.order-meta dd { margin: 0; color: var(--text); text-align: right; }

.pay-steps {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: pay;
}

.pay-steps li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
  counter-increment: pay;
}

.pay-steps li::before {
  content: counter(pay, decimal-leading-zero);
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8px;
  top: 2px;
}

.pay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.pay-actions .btn { flex: 1 1 auto; }

.qr-wrap {
  position: relative;
  align-self: start;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px;
}

.qr-wrap img { width: 100%; height: auto; }

.qr-lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px;
  background: rgba(3, 8, 5, 0.8);
  color: var(--text);
  text-align: center;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.qr-lock strong { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.qr-lock span { color: var(--muted); font-size: 11px; line-height: 1.6; }
.qr-wrap.is-unlocked .qr-lock { display: none; }

.qr-caption {
  margin: 10px 0 0;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  line-height: 1.7;
  text-align: center;
}

.modal-foot {
  padding: 16px 28px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.75;
}

.modal-foot b { color: var(--accent-2); font-weight: 500; }

/* --------------------------------------------------------------------------
   Docs page
   -------------------------------------------------------------------------- */

.docs-hero {
  padding: clamp(120px, 15vh, 160px) 0 48px;
  border-bottom: 1px solid var(--line);
}

.docs-hero h1 {
  max-width: 18ch;
  margin: 18px 0 16px;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.docs-hero p {
  max-width: 60ch;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.docs-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(36px, 6vw, 80px);
  padding: 48px 0 100px;
}

.docs-nav {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
}

.docs-nav .mono {
  display: block;
  margin-bottom: 12px;
  color: var(--muted-2);
}

.docs-nav a {
  display: block;
  padding: 6px 0 6px 12px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.docs-nav a:hover,
.docs-nav a.is-active {
  color: var(--accent);
  border-left-color: var(--accent);
}

.docs-content { max-width: 820px; min-width: 0; }

.docs-content h2 {
  margin: 56px 0 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.docs-content h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.docs-content h3 {
  margin: 30px 0 8px;
  font-size: 17px;
  font-weight: 600;
}

.docs-content p,
.docs-content li {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.85;
}

.docs-content p { margin: 10px 0; }
.docs-content ul, .docs-content ol { margin: 10px 0; padding-left: 22px; }
.docs-content li { margin: 5px 0; }
.docs-content strong { color: var(--text); font-weight: 500; }
.docs-content a { color: var(--accent); text-underline-offset: 3px; }

.docs-content code,
.docs-hero code {
  padding: 2px 5px;
  background: rgba(147, 255, 176, 0.08);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
}

.docs-content pre {
  margin: 16px 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: #04100a;
  overflow-x: auto;
}

.docs-content pre code {
  padding: 0;
  background: none;
  color: #c9e6d3;
  font-size: 11px;
  line-height: 1.8;
}

.docs-note {
  margin: 20px 0;
  padding: 16px 18px;
  border-left: 2px solid var(--accent-2);
  background: rgba(255, 195, 92, 0.055);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
}

.docs-note b { color: var(--accent-2); font-weight: 500; }

.table-wrap { overflow-x: auto; margin: 16px 0; max-width: 100%; }

.docs-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.6;
}

.docs-content th,
.docs-content td {
  padding: 9px 11px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.docs-content th {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.docs-content td { color: var(--muted); }
.docs-content td:first-child { color: var(--text); white-space: nowrap; }

.tool-search {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.tool-search svg { width: 15px; height: 15px; color: var(--muted-2); flex: none; }

.tool-search input {
  width: 100%;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  outline: 0;
}

.tool-search input::placeholder { color: var(--muted-2); }

.tool-count {
  margin-left: auto;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
  white-space: nowrap;
}

.tool-group { margin-top: 26px; }

.tool-group h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
}

.tool-group h3 span {
  color: var(--muted-2);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.tool-card {
  padding: 15px 16px;
  background: var(--bg);
  transition: background 0.2s ease;
}

.tool-card:hover { background: var(--panel); }

.tool-card .tool-name {
  padding: 0;
  background: none;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.02em;
}

.tool-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.tool-empty {
  display: none;
  padding: 28px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Reveal
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@keyframes scan {
  0% { transform: translateY(-120%); }
  100% { transform: translateY(420%); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero::before, .hero::after { display: none; }
  .console { max-width: 680px; }
  .section-head { grid-template-columns: 48px minmax(0, 1fr); }
  .section-note { grid-column: 2; max-width: 52ch; }
  .pipeline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid.small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ecosystem { grid-template-columns: 1fr; gap: 16px; }
  .eco-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .listen-grid { grid-template-columns: 1fr; gap: 36px; }
  .cover { max-width: 620px; }
  .measured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .measure:nth-child(2) { border-right: 0; }
  .measure:nth-child(-n + 2) { border-bottom: 1px solid rgba(7, 16, 11, 0.18); }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-nav { position: static; display: none; }
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--pad) 20px;
    background: #0b1a12;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
  .nav a::after { display: none; }
  .menu-toggle { display: block; }
  .version { display: none; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .hero { padding-top: 112px; }
  .hero h1 { font-size: clamp(2.7rem, 11vw, 4.2rem); }
  .hero-cta .btn { flex: 1 1 auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(2) { border-right: 0; }
  .stats > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
  .stats > div:nth-child(n + 3) { padding-top: 14px; }
  .section-head { grid-template-columns: 1fr; gap: 10px; }
  .section-index { padding-top: 0; }
  .section-note { grid-column: auto; margin-top: 2px; }
  .pipeline-grid { grid-template-columns: 1fr; }
  .stage { min-height: 180px; }
  .feature-grid,
  .feature-grid.small { grid-template-columns: 1fr; }
  .feature { min-height: 0; }
  .feature.small { min-height: 0; }
  .eco-list { grid-template-columns: 1fr; gap: 14px; }
  .listen-grid { gap: 28px; }
  .player-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .wave { height: 84px; }
  .controls { flex-wrap: wrap; }
  .player-meta { width: 100%; margin-left: 0; margin-top: 4px; }
  .measured-head { flex-direction: column; align-items: flex-start; }
  .measured-head p { text-align: left; }
  .measured-grid { grid-template-columns: 1fr; }
  .measure { border-right: 0; border-bottom: 1px solid rgba(7, 16, 11, 0.18); }
  .measure:last-child { border-bottom: 0; }
  .measure:nth-child(2) { border-bottom: 1px solid rgba(7, 16, 11, 0.18); }
  .fit-grid { grid-template-columns: 1fr; }
  .fit-card { padding: 24px 20px 26px; }
  .scope-note { flex-direction: column; align-items: flex-start; padding: 18px 20px; }
  .token-band { grid-template-columns: 1fr; padding: 22px 20px; gap: 20px; }
  .token-foot { grid-column: auto; }
  .token-table thead { display: none; }
  .token-table,
  .token-table tbody,
  .token-table tr,
  .token-table td { display: block; width: 100%; }
  .token-table tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .token-table tr:last-child { border-bottom: 0; padding-bottom: 0; }
  .token-table td {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    padding: 3px 0;
    border: 0;
    white-space: normal;
  }
  .token-table td::before {
    color: var(--muted-2);
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.06em;
  }
  .token-table td:nth-child(1)::before { content: "做法"; }
  .token-table td:nth-child(2)::before { content: "时长"; }
  .token-table td:nth-child(3)::before { content: "token"; }
  .token-table td:nth-child(4)::before { content: "模型费"; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pay-strip { grid-template-columns: auto minmax(0, 1fr); }
  .pay-strip > .mono { grid-column: 2; }
  .faq-grid { grid-template-columns: 1fr; }
  .maker { align-items: flex-start; }
  .footer-top { flex-direction: column; }
  .footer-links { justify-content: flex-start; }
  .pay-grid { grid-template-columns: 1fr; }
  .qr-wrap { max-width: 300px; justify-self: center; width: 100%; }
  .modal { padding: 12px; }
  .modal-card { max-height: calc(100vh - 24px); }
  .modal-head { padding: 20px 20px 16px; }
  .pay-grid { padding: 20px; }
  .modal-foot { padding: 14px 20px 18px; }
  .tool-grid { grid-template-columns: 1fr; }
  .docs-content h2 { font-size: 27px; }

  .docs-content .table-wrap { overflow: visible; }
  .docs-content table { min-width: 0; }
  .docs-content thead { display: none; }
  .docs-content table,
  .docs-content tbody,
  .docs-content tr,
  .docs-content td { display: block; width: 100%; }
  .docs-content tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .docs-content tr:last-child { border-bottom: 0; }
  .docs-content td {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 8px;
    padding: 3px 0;
    border: 0;
    white-space: normal;
  }
  .docs-content td::before {
    color: var(--muted-2);
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.08em;
    line-height: 1.9;
  }
  .docs-content td:first-child { white-space: normal; }
  .limits-table td:nth-child(1)::before { content: "能做到"; }
  .limits-table td:nth-child(2)::before { content: "别期待"; }
  .deps-table td:nth-child(1)::before { content: "依赖"; }
  .deps-table td:nth-child(2)::before { content: "用途"; }
  .deps-table td:nth-child(3)::before { content: "必须"; }
}

@media (max-width: 460px) {
  .brand-text small { display: none; }
  .header-actions .btn { padding: 0 10px; font-size: 10px; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 10px; }
  .console-top span:nth-child(2) { display: none; }
  .console-body { grid-template-columns: 1fr; }
  .master { display: none; }
  .track { grid-template-columns: 52px minmax(0, 1fr) 24px; }
  .cover-meta { flex-direction: column; align-items: flex-start; gap: 6px; }
  .cover-meta em { display: none; }
  .maker { flex-direction: column; }
  .pay-actions { flex-direction: column; }
  .pay-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
