/* QxAI release page — paper, ink, one teal, one caramel. */

:root {
  --paper: #f3ede2;
  --paper-2: #ebe2d3;
  --paper-3: #e2d7c4;
  --ink: #26221d;
  --ink-soft: #554c41;
  --muted: #6f6355;
  --line: rgba(38, 34, 29, 0.16);
  --line-strong: rgba(38, 34, 29, 0.34);
  --teal: #3c6f63;
  --teal-deep: #2c544b;
  --caramel: #b07a4f;
  --caramel-text: #8a5a38;
  --cream: #fbf7ee;
  --font-sans: 'Segoe UI Variable Text', 'Segoe UI', 'Microsoft YaHei UI', 'PingFang SC', system-ui, sans-serif;
  --font-serif: 'Source Han Serif SC', 'Noto Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;
  --font-mono: 'Cascadia Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --wrap: 1180px;
  --pad: clamp(20px, 4vw, 56px);
  --header-h: 66px;
}

* { box-sizing: border-box; }

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

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

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image: radial-gradient(rgba(38, 34, 29, 0.18) 0.6px, transparent 0.7px);
  background-size: 7px 7px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 42%);
}

::selection { background: var(--teal); color: var(--cream); }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

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

kbd {
  font-family: var(--font-mono);
  font-size: 0.78em;
  padding: 0.18em 0.42em;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 3px;
  background: var(--cream);
  white-space: nowrap;
}

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: rgba(38, 34, 29, 0.06);
  padding: 0.12em 0.35em;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 16px;
  z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

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

/* ---------- top bar ---------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 60;
  background: transparent;
}
.scroll-progress span {
  display: block;
  height: 100%;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left center;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 var(--pad);
  background: rgba(243, 237, 226, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 2px;
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand-mark { font-weight: 700; }
.brand-ai { color: var(--teal); font-weight: 700; }
.brand-sub {
  margin-left: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 13px;
}
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms ease;
}
.nav a:hover::after { transform: scaleX(1); }

.version-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px 5px 9px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(60, 111, 99, 0.4);
  animation: pulse 2.8s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(60, 111, 99, 0.38); }
  60%, 100% { box-shadow: 0 0 0 7px rgba(60, 111, 99, 0); }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  z-index: 1;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 108px) var(--pad) clamp(48px, 6vw, 84px);
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}
.eyebrow .rule {
  width: 34px;
  height: 1px;
  background: var(--line-strong);
}

.hero-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.13em; }
.hero-title .line > span { display: block; }
.hero-title em {
  font-style: normal;
  color: var(--teal-deep);
  position: relative;
  z-index: 0;
}
.hero-title em::after {
  content: '';
  position: absolute;
  left: -3%;
  right: -4%;
  bottom: 0.03em;
  height: 0.16em;
  z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8c48-6 98-6 196 0' fill='none' stroke='%23b07a4f' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  opacity: 0.9;
}

.lede {
  max-width: 34em;
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.9;
}
.lede .plus { margin: 0 3px; color: var(--muted); font-family: var(--font-mono); }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  --btn-y: 0px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transform: translateY(var(--btn-y));
  transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease, transform 180ms ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.btn-primary:hover { background: var(--teal-deep); border-color: var(--teal-deep); }
.btn-quiet {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
  padding-left: 8px;
  padding-right: 8px;
}
.btn-quiet:hover { color: var(--teal-deep); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-outline:hover { border-color: var(--ink); background: rgba(38, 34, 29, 0.04); }
.btn-wide { width: 100%; }
.btn-small { min-height: 42px; padding: 0 16px; font-size: 13px; }
.btn-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.06em;
  opacity: 0.65;
}
.btn .arrow { font-size: 16px; transition: transform 200ms ease; }
.btn:hover .arrow { transform: translateX(4px); }

.hint {
  margin: 18px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}
.hint a { color: var(--ink-soft); }

.hero-art {
  position: relative;
  margin: 0;
  align-self: center;
}
.hero-frame {
  position: relative;
  padding: clamp(8px, 1vw, 12px);
  background: var(--cream);
  border: 1px solid var(--line-strong);
  box-shadow: 0 26px 50px -28px rgba(38, 34, 29, 0.45);
  transform: rotate(-1.1deg);
}
.hero-frame img { width: 100%; }
.frame-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--caramel);
  border-style: solid;
  opacity: 0.9;
}
.frame-corner.tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.frame-corner.br { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; }

.hero-pet {
  position: absolute;
  left: clamp(-32px, -3.4vw, -18px);
  bottom: -58px;
  width: clamp(112px, 15vw, 148px);
  pointer-events: none;
  filter: drop-shadow(0 18px 18px rgba(38, 34, 29, 0.16));
}
.pet-label {
  position: absolute;
  left: 76%;
  top: 14%;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  white-space: nowrap;
  border-bottom: 1px solid var(--caramel);
  padding-bottom: 1px;
}
.pet-arrow {
  position: absolute;
  left: 72%;
  top: 20%;
  width: 58px;
  fill: none;
  stroke: var(--caramel);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(4deg);
}

.hero-art figcaption {
  margin-top: 24px;
  padding-left: 148px;
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 11.5px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.fig { color: var(--caramel-text); }

/* ---------- ticker ---------- */

.ticker {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 247, 238, 0.4);
}
.ticker-track {
  display: flex;
  width: max-content;
  gap: 0;
  padding: 11px 0;
  animation: ticker 38s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.ticker-track span::after {
  content: '·';
  color: var(--caramel);
  font-size: 14px;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */

.section {
  position: relative;
  z-index: 1;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 124px) var(--pad);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(220px, 0.7fr);
  gap: 16px 28px;
  align-items: start;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--caramel-text);
  padding-top: 10px;
  border-top: 1px solid var(--line-strong);
}
.section-head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.section-meta {
  margin: 8px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.section-note {
  margin: 0;
  padding-top: 9px;
  font-size: 13px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  max-width: 28em;
}

/* ---------- changelog ---------- */

.changelog {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(32px, 5vw, 72px);
}
.change {
  padding: 24px 0 28px;
  border-top: 1px solid var(--line);
}
.change:nth-child(-n + 2) { border-top-color: var(--line-strong); }
.change-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.change h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
}
.change p { margin: 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.85; }

/* ---------- features ---------- */

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.feature-list { border-bottom: 1px solid var(--line); }
.feature-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  padding: 26px 0 28px;
  border-top: 1px solid var(--line);
  position: relative;
  transition: opacity 260ms ease;
}
.feature-row::before {
  content: '';
  position: absolute;
  left: -18px;
  top: 26px;
  bottom: 28px;
  width: 2px;
  background: var(--teal);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.feature-row.is-active::before { transform: scaleY(1); }
.feature-row:not(.is-active) { opacity: 0.78; }
.feature-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--caramel-text);
  padding-top: 5px;
}
.feature-row h3 {
  margin: 0 0 7px;
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  line-height: 1.3;
}
.feature-row p { margin: 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.9; }
.feature-thumb { display: none; }

.feature-stage {
  position: sticky;
  top: calc(var(--header-h) + 36px);
}
.stage-frame {
  position: relative;
  aspect-ratio: 828 / 648;
  background:
    linear-gradient(180deg, rgba(251, 247, 238, 0.9), rgba(235, 226, 211, 0.9));
  border: 1px solid var(--line-strong);
  padding: 10px;
  box-shadow: 0 30px 60px -38px rgba(38, 34, 29, 0.5);
}
.stage-img {
  position: absolute;
  inset: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  object-fit: contain;
  opacity: 0;
  transition: opacity 360ms ease;
}
.stage-img.is-shown { opacity: 1; }
.stage-frame[data-kind='bar'] .stage-img {
  top: 50%;
  left: 10px;
  right: 10px;
  bottom: auto;
  width: auto;
  height: auto;
  transform: translateY(-50%);
}
.stage-frame[data-kind='bar']::before {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  height: 1px;
  background: var(--line);
}
.stage-frame[data-kind='bar']::after {
  content: '448 × 80 / 收起状态';
  position: absolute;
  right: 14px;
  bottom: 12px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.stage-caption {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  min-height: 1.6em;
}

/* ---------- install ---------- */

.install-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.steps { border-bottom: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  padding: 30px 0 34px;
  border-top: 1px solid var(--line);
}
.step-node { padding-top: 26px; }
.step-mark {
  font-family: var(--font-serif);
  font-size: 38px;
  line-height: 1;
  color: var(--paper-3);
  -webkit-text-stroke: 1px var(--line-strong);
  padding-top: 2px;
}
.step-body h3 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
}
.step-body > p { margin: 0 0 12px; color: var(--ink-soft); font-size: 13.5px; }
.step-body > p:last-child { margin-bottom: 0; }

.node-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0 14px;
}
.node-method {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line-strong);
  background: rgba(251, 247, 238, 0.5);
  text-decoration: none;
  transition: background-color 220ms ease, border-color 220ms ease, transform 220ms ease;
}
.node-method:hover {
  background: var(--cream);
  border-color: var(--teal);
  transform: translateY(-2px);
}
.method-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--caramel-text);
}
.method-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}
.method-title .out { color: var(--teal); font-size: 13px; }
.method-size {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
}
.method-desc { font-size: 12.5px; color: var(--ink-soft); line-height: 1.7; }

.fineprint {
  font-size: 12px !important;
  color: var(--muted) !important;
  line-height: 1.8 !important;
  border-left: 2px solid var(--paper-3);
  padding-left: 12px;
  margin-top: 14px !important;
}

.verify {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.verify-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  width: 100%;
}
.terminal {
  display: inline-flex;
  align-items: center;
  min-width: 96px;
  padding: 5px 10px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 2px;
  font-size: 11.5px;
}
.terminal::before {
  content: '›';
  color: var(--caramel);
  margin-right: 7px;
}
.cursor {
  width: 6px;
  height: 12px;
  margin-left: 3px;
  background: var(--cream);
  opacity: 0.7;
  animation: blink 1.2s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.verify-note { font-size: 11.5px; color: var(--muted); }

.inline-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px !important; }
.inline-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(60, 111, 99, 0.4);
  padding-bottom: 1px;
}
.inline-links a:hover { border-bottom-color: var(--teal-deep); }

.config-list {
  display: grid;
  gap: 0;
  margin: 16px 0 14px;
  border-top: 1px solid var(--line);
}
.config-list div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.config-list dt { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.config-list dd { margin: 0; font-size: 12.5px; color: var(--ink-soft); }

.install-aside {
  position: sticky;
  top: calc(var(--header-h) + 36px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.aside-block {
  border: 1px solid var(--line-strong);
  background: rgba(251, 247, 238, 0.5);
  padding: 22px 22px 20px;
}
.aside-block h3 {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
}
.spec-list { margin: 0; display: grid; gap: 0; }
.spec-list div {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.spec-list dt { color: var(--muted); font-family: var(--font-mono); font-size: 10.5px; padding-top: 1px; }
.spec-list dd { margin: 0; color: var(--ink-soft); }
.aside-quote { position: relative; overflow: hidden; }
.aside-quote p { margin: 0; font-family: var(--font-serif); font-size: 16px; line-height: 1.8; color: var(--ink-soft); position: relative; z-index: 1; }
.quote-mark {
  position: absolute;
  right: 10px;
  bottom: -34px;
  font-family: var(--font-serif);
  font-size: 110px;
  line-height: 1;
  color: var(--paper-3);
  z-index: 0;
}
.aside-link {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-deep);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.aside-link span { transition: transform 200ms ease; }
.aside-link:hover span { transform: translateX(4px); }

.install-tip {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 28px;
  gap: 22px;
  align-items: center;
  margin-top: 28px;
  padding: 22px 26px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--teal);
  background: rgba(251, 247, 238, 0.55);
}
.tip-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.tip-copy h3 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
}
.tip-copy p { margin: 0; font-size: 13px; color: var(--ink-soft); line-height: 1.85; max-width: 72em; }
.tip-mark { justify-self: end; font-size: 20px; color: var(--teal); }

/* ---------- download ---------- */

.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 3vw, 32px);
}
.download-grid.download-single { grid-template-columns: 1fr; }
.download-single .download-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
}
.download-single .download-copy h3 { margin-top: 20px; }
.download-single .download-copy .card-desc { margin-bottom: 0; }
.download-single .download-action { display: flex; flex-direction: column; }
.download-single .download-action .file-line { margin-top: 0; }
.download-single .download-action .btn { margin-top: 0; }
.download-card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line-strong);
  background: rgba(251, 247, 238, 0.5);
}
.download-primary {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid currentColor;
  padding: 3px 7px;
  border-radius: 2px;
}
.download-primary .card-tag { color: #a8c9bf; }
.card-tag.muted { color: var(--muted); }
.card-version { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }
.download-primary .card-version { color: rgba(251, 247, 238, 0.55); }
.download-card h3 {
  margin: 22px 0 8px;
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 600;
}
.card-desc { margin: 0 0 24px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.8; max-width: 30em; }
.download-primary .card-desc { color: rgba(251, 247, 238, 0.7); }
.file-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: auto 0 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
}
.download-primary .file-line { border-top-color: rgba(251, 247, 238, 0.2); color: rgba(251, 247, 238, 0.58); }
.download-primary .btn-primary {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--ink);
}
.download-primary .btn-primary:hover { background: var(--paper-2); border-color: var(--paper-2); }

.hash { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 10px; }
.download-primary .hash { border-top-color: rgba(251, 247, 238, 0.18); }
.hash summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.hash summary::-webkit-details-marker { display: none; }
.hash summary::before { content: '+ '; color: var(--caramel); }
.hash[open] summary::before { content: '− '; }
.download-primary .hash summary { color: rgba(251, 247, 238, 0.55); }
.hash-row { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; }
.hash-row code {
  flex: 1;
  word-break: break-all;
  font-size: 10px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: transparent;
  padding: 0;
}
.download-primary .hash-row code { color: rgba(251, 247, 238, 0.62); }
.copy {
  flex: none;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 3px 7px;
  cursor: pointer;
}
.copy:hover { border-color: var(--teal); color: var(--teal); }
.download-primary .copy { border-color: rgba(251, 247, 238, 0.25); color: rgba(251, 247, 238, 0.7); }

.node-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
  padding: 22px 24px;
  border: 1px dashed var(--line-strong);
  background: rgba(235, 226, 211, 0.4);
}
.strip-label { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; color: var(--caramel-text); text-transform: uppercase; }
.node-strip h3 { margin: 4px 0 5px; font-family: var(--font-serif); font-size: 20px; font-weight: 600; }
.node-strip p { margin: 0; font-size: 12.5px; color: var(--ink-soft); max-width: 46em; }
.strip-actions { display: flex; align-items: center; gap: 18px; flex: none; }
.hash-inline { margin: 0; border: 0; padding: 0; max-width: 340px; }

/* ---------- faq ---------- */

.faq-list { border-bottom: 1px solid var(--line); }
.faq details {
  border-top: 1px solid var(--line);
  padding: 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 400;
  color: var(--caramel-text);
  transition: transform 220ms ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  margin: -4px 0 22px;
  max-width: 62em;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.9;
}

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

.footer {
  position: relative;
  z-index: 1;
  background: var(--ink);
  color: var(--cream);
  padding: clamp(56px, 7vw, 92px) var(--pad) 40px;
}
.footer-main {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(251, 247, 238, 0.18);
}
.footer-kicker { margin: 0 0 10px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; color: rgba(251, 247, 238, 0.5); text-transform: uppercase; }
.footer h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(38px, 6vw, 70px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.footer-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer .btn-primary { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.footer .btn-primary:hover { background: var(--paper-2); }
.footer-up { color: rgba(251, 247, 238, 0.7); text-decoration: none; font-size: 12px; white-space: nowrap; }
.footer-up:hover { color: var(--cream); }
.footer-meta {
  max-width: var(--wrap);
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: 1.4fr 1.4fr 0.8fr;
  gap: 24px;
  font-size: 11.5px;
  line-height: 1.85;
  color: rgba(251, 247, 238, 0.55);
}
.footer-meta p { margin: 0; }
.footer-meta a { color: rgba(251, 247, 238, 0.8); }
.footer-small { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.02em; }

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; gap: 52px; }
  .hero-copy { max-width: 680px; }
  .hero-art { max-width: 640px; }
  .hero-pet { bottom: -34px; }
  .hero-art figcaption { padding-left: 120px; }
  .feature-layout { grid-template-columns: 1fr; }
  .feature-stage { display: none; }
  .feature-thumb {
    display: block;
    grid-column: 2;
    margin-top: 14px;
    border: 1px solid var(--line);
    background: var(--cream);
    max-height: 180px;
    object-fit: contain;
    object-position: left center;
  }
  .install-layout { grid-template-columns: 1fr; }
  .install-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
  .aside-link { grid-column: 1 / -1; }
  .footer-meta { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .download-single .download-card { grid-template-columns: 1fr; gap: 22px; }
  .download-single .download-copy .card-desc { margin-bottom: 4px; }
  .brand-sub { display: none; }
  .nav { display: none; }
  .version-chip { margin-left: auto; }
  .section-head { grid-template-columns: 40px minmax(0, 1fr); }
  .section-note { grid-column: 1 / -1; padding-top: 0; border-top: 0; margin-top: -4px; }
  .changelog { grid-template-columns: 1fr; }
  .change:nth-child(2) { border-top-color: var(--line); }
  .download-grid { grid-template-columns: 1fr; }
  .node-strip { flex-direction: column; align-items: flex-start; }
  .strip-actions { width: 100%; justify-content: space-between; }
  .node-methods { grid-template-columns: 1fr; }
  .footer-main { flex-direction: column; align-items: flex-start; }
  .footer-meta { grid-template-columns: 1fr; }
  .step { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
  .step-mark { font-size: 30px; }
  .hero-pet { width: 92px; left: -10px; bottom: -22px; }
  .hero-art figcaption { padding-left: 96px; }
  .install-aside { grid-template-columns: 1fr; }
  .install-tip { grid-template-columns: 1fr; gap: 8px; padding: 18px 20px; }
  .tip-mark { display: none; }
}

@media (max-width: 520px) {
  body { font-size: 14px; }
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn { width: 100%; }
  .actions .btn-quiet { justify-content: center; border: 1px solid var(--line-strong); }
  .hero-art figcaption { font-size: 10px; padding-left: 84px; }
  .download-card { padding: 22px; }
  .hash-inline { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .ticker-track { animation: none; }
}
