/* ForgeDAW — public marketing site
   Design system: DESIGN.md (repo root). Studio-hardware dark, Forge Orange accent. */

:root {
  --accent: #f97316;
  --accent-hover: #fb923c;
  --accent-dim: rgba(249, 115, 22, 0.12);
  --accent-glow: rgba(249, 115, 22, 0.22);

  --bg-0: #111827;
  --bg-1: #1a2332;
  --bg-2: #2b3440;
  --bg-3: #374151;
  --border: #374151;
  --border-light: #4b5563;

  --text-hi: #f9fafb;
  --text-mid: #d1d5db;
  --text-low: #9ca3af;

  --success: #3fb950;
  --warning: #d29922;
  --error: #f85149;

  --font-display: "Space Grotesk", "Noto Sans", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Noto Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, monospace;

  --radius: 6px;
  --radius-sm: 4px;
  --max-width: 1180px;
  --header-h: 64px;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

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

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: var(--bg-0);
  color: var(--text-hi);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

h1, h2, h3 { font-family: var(--font-display); }

.container {
  width: min(100% - 3rem, var(--max-width));
  margin-inline: auto;
}

/* ── Mono utility ── */
.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--border-light);
  border-bottom-width: 2px;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-mid);
  text-align: center;
  line-height: 1.4;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: rgba(17, 24, 39, 0.88);
  backdrop-filter: blur(14px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-hi);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.brand:hover { color: var(--text-hi); }

.brand-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: block;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  line-height: 1;
  white-space: nowrap;
}

.brand-forge { color: var(--text-hi); }
.brand-daw { color: var(--accent); }

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-name--lg {
  font-size: 1.35rem;
  letter-spacing: 0.06em;
}

.brand-byline {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--text-low);
}

a.brand-byline {
  text-decoration: none;
}

a.brand-byline:hover { color: var(--accent); }

.brand-tagline {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  color: var(--text-low);
  opacity: 0.8;
}

.brand--footer {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.brand-version {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--text-low);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  margin-left: 0.25rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}

.site-nav a {
  color: var(--text-mid);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 120ms ease-out;
}

.site-nav a:hover,
.site-nav a.active { color: var(--text-hi); }

.site-nav a.btn-primary,
.site-nav a.btn-primary:hover { color: #141414; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-hi);
  cursor: pointer;
  padding: 0.5rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.68rem 1.3rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms ease-out, border-color 120ms ease-out, color 120ms ease-out;
}

.btn-primary {
  background: var(--accent);
  color: #141414;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #141414;
}

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

.btn-ghost:hover {
  border-color: var(--text-low);
  background: var(--bg-2);
  color: var(--text-hi);
}

.btn-lg { padding: 0.85rem 1.7rem; font-size: 1rem; }

/* ── Section scaffolding ── */
section { padding: 5.5rem 0; }

section.alt {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  display: grid;
  gap: 0.9rem;
  max-width: 700px;
  margin-bottom: 3.25rem;
}

.section-index {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-index::after {
  content: "";
  height: 1px;
  width: 64px;
  background: var(--border-light);
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-head p {
  color: var(--text-mid);
  font-size: 1.02rem;
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: 5.5rem 0 4rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
  position: relative;
}

@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1fr 1.1fr; }
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.hero-status .rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: rec-blink 2.4s ease-out infinite;
}

@keyframes rec-blink {
  0%, 60%, 100% { opacity: 1; }
  75% { opacity: 0.25; }
}

.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 1.4rem;
}

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

.hero-lead {
  color: var(--text-mid);
  font-size: 1.12rem;
  max-width: 46ch;
  margin-bottom: 2rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2.75rem;
}

.hero-changelog-link {
  flex-basis: 100%;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-low);
  margin-top: 0.15rem;
}

.hero-changelog-link:hover { color: var(--accent); }

.hero-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-1);
  overflow: hidden;
}

.spec {
  flex: 1 1 0;
  min-width: 130px;
  padding: 0.85rem 1.1rem;
  border-right: 1px solid var(--border);
}

.spec:last-child { border-right: none; }

.spec strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.spec span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--text-low);
  text-transform: uppercase;
}

/* ── Waveform band (SVG strip with playhead sweep) ── */
.wave-band {
  position: relative;
  margin-top: 4.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-1);
  overflow: hidden;
}

.wave-band svg {
  display: block;
  width: 100%;
  height: 88px;
}

.wave-band .playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: playhead-sweep 14s linear infinite;
}

@keyframes playhead-sweep {
  from { left: -2px; }
  to { left: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .wave-band .playhead { animation: none; left: 30%; }
  .hero-status .rec-dot { animation: none; }
}

/* ── Hero product screenshot ── */
.hero-screenshot {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-1);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-screenshot-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

.hero-screenshot-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-low);
  letter-spacing: 0.04em;
}

.hero-screenshot img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

/* ── App preview (CSS illustration — used below fold) ── */
.app-preview {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-1);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.app-preview-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

.app-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-light);
}

.app-preview-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-low);
}

.app-preview-time {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent);
}

.app-preview-body {
  display: grid;
  grid-template-columns: 48px 1fr 132px;
  min-height: 280px;
}

.app-sidebar {
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-tool {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--bg-3);
  margin: 0 auto;
}

.app-tool.active {
  background: var(--accent-dim);
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.45);
}

.app-timeline {
  position: relative;
  padding: 12px;
  background: #131315;
}

.app-timeline .app-playhead {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 46%;
  width: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  z-index: 2;
}

.app-ruler {
  height: 16px;
  margin-bottom: 8px;
  background: repeating-linear-gradient(
    90deg,
    var(--border) 0,
    var(--border) 1px,
    transparent 1px,
    transparent 44px
  );
}

.app-track {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 8px;
}

.app-track-label {
  width: 58px;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-low);
  padding-top: 14px;
}

.app-wave {
  flex: 1;
  height: 50px;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}

.app-wave::after {
  content: "";
  position: absolute;
  inset: 7px 10px;
  background: var(--accent);
  opacity: 0.75;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 36'%3E%3Cpath d='M0 18 Q5 8 10 18 T20 18 T30 12 T40 22 T50 18 T60 10 T70 20 T80 18 T90 14 T100 24 T110 18 T120 8 T130 20 T140 18 T150 16 T160 22 T170 18 T180 12 T190 20 T200 18' fill='none' stroke='white' stroke-width='3'/%3E%3C/svg%3E");
  mask-size: 100% 100%;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 36'%3E%3Cpath d='M0 18 Q5 8 10 18 T20 18 T30 12 T40 22 T50 18 T60 10 T70 20 T80 18 T90 14 T100 24 T110 18 T120 8 T130 20 T140 18 T150 16 T160 22 T170 18 T180 12 T190 20 T200 18' fill='none' stroke='white' stroke-width='3'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
}

.app-wave.violet::after { background: #a883e8; }
.app-wave.blue::after { background: #58a6ff; }
.app-wave.muted::after { opacity: 0.22; }

.app-inspector {
  background: var(--bg-2);
  border-left: 1px solid var(--border);
  padding: 12px;
}

.app-inspector h4 {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-low);
  margin-bottom: 10px;
}

.app-meter {
  height: 5px;
  border-radius: 3px;
  background: var(--bg-3);
  margin-bottom: 8px;
  overflow: hidden;
}

.app-meter span {
  display: block;
  height: 100%;
  width: 72%;
  background: linear-gradient(90deg, var(--success) 55%, var(--warning) 80%, var(--accent));
  border-radius: 3px;
}

.app-knob {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  margin: 12px auto 0;
  position: relative;
}

.app-knob::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 50%;
  width: 2px;
  height: 10px;
  background: var(--accent);
  transform: translateX(-50%);
  border-radius: 1px;
}

/* ── Panel grid (feature cards, hardware-rack style) ── */
.panel-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (min-width: 640px) {
  .panel-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .panel-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

.panel {
  padding: 1.75rem;
  background: var(--bg-1);
  transition: background 120ms ease-out;
}

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

.panel-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-low);
}

.panel h3 {
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.55rem;
}

.panel p {
  color: var(--text-mid);
  font-size: 0.94rem;
}

/* ── Workflow rail ── */
.workflow-rail {
  display: grid;
  gap: 2rem;
  position: relative;
}

@media (min-width: 800px) {
  .workflow-rail { grid-template-columns: repeat(4, 1fr); }

  .workflow-rail::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-light);
  }
}

.workflow-step { position: relative; padding-top: 1.75rem; }

.workflow-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg-0);
  border: 2px solid var(--accent);
}

.workflow-step .step-time {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.workflow-step h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.workflow-step p {
  color: var(--text-mid);
  font-size: 0.92rem;
}

/* ── Split content ── */
.split {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
}

.split h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.split > div > p {
  color: var(--text-mid);
  margin-bottom: 1rem;
}

.check-list { list-style: none; margin-top: 1.5rem; }

.check-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  color: var(--text-mid);
  font-size: 0.95rem;
}

.check-list li::before {
  content: "▸";
  color: var(--accent);
  flex-shrink: 0;
}

/* ── Shortcut strip ── */
.shortcut-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin-top: 1.75rem;
}

.shortcut {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-low);
}

/* ── Terminal block ── */
.terminal {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #0a0a0b;
  overflow: hidden;
  margin: 1.5rem 0;
}

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-low);
}

.terminal-copy {
  background: none;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-mid);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  padding: 0.2rem 0.6rem;
  cursor: pointer;
  transition: color 120ms ease-out, border-color 120ms ease-out;
}

.terminal-copy:hover { color: var(--text-hi); border-color: var(--text-low); }

.terminal pre {
  padding: 1rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text-mid);
  overflow-x: auto;
}

.terminal pre .prompt { color: var(--accent); user-select: none; }
.terminal pre .out { color: var(--text-low); }

/* ── CTA band ── */
.cta-band {
  position: relative;
  padding: 5rem 0;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.cta-band .container {
  position: relative;
  display: grid;
  gap: 1.25rem;
  justify-items: start;
  max-width: var(--max-width);
}

.cta-band h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -0.02em;
}

.cta-band p {
  color: var(--text-mid);
  max-width: 52ch;
}

.cta-band .cta-wave {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  pointer-events: none;
}

.cta-band .cta-wave svg { width: 100%; height: 100%; }

/* ── Page hero (inner pages) ── */
.page-hero {
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-1);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  margin: 0.9rem 0 1rem;
}

.page-hero p {
  color: var(--text-mid);
  font-size: 1.08rem;
  max-width: 62ch;
}

/* ── Download cards ── */
.download-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .download-grid { grid-template-columns: repeat(2, 1fr); }
}

.download-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.download-card .panel-tag { width: 100%; }

.download-card h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }

.download-card p {
  color: var(--text-mid);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.download-card .btn { margin-top: auto; }

/* ── Requirements table ── */
.req-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.req-table th,
.req-table td {
  text-align: left;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.req-table tr:last-child th,
.req-table tr:last-child td { border-bottom: none; }

.req-table th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-low);
  width: 30%;
  background: var(--bg-1);
}

.req-table td { color: var(--text-mid); }

/* ── FAQ ── */
.faq-list { max-width: 760px; }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.4rem 0;
}

.faq-item h3 { font-size: 1.02rem; margin-bottom: 0.55rem; }

.faq-item p { color: var(--text-mid); font-size: 0.95rem; }

/* ── Changelog ── */
.changelog-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .changelog-layout {
    grid-template-columns: 220px 1fr;
    align-items: start;
  }
}

.changelog-aside {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-1);
}

.changelog-aside-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-low);
  margin-bottom: 0.85rem;
}

.changelog-jump {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.changelog-jump a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-mid);
  padding: 0.35rem 0;
}

.changelog-jump a:hover { color: var(--accent); }

.changelog-aside-note {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-low);
  font-size: 0.85rem;
  line-height: 1.5;
}

.changelog-feed {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.changelog-release {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-1);
}

.changelog-release--latest {
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: 0 0 0 1px var(--accent-dim);
}

.changelog-release-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.changelog-version {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.changelog-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  border: 1px solid rgba(249, 115, 22, 0.35);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.changelog-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-low);
}

.changelog-summary {
  color: var(--text-mid);
  font-size: 0.98rem;
  margin-bottom: 1.25rem;
  max-width: 68ch;
}

.changelog-group { margin-bottom: 1rem; }

.changelog-group:last-child { margin-bottom: 0; }

.changelog-group-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.changelog-group-label--features { color: var(--accent); }
.changelog-group-label--improvements { color: var(--success); }
.changelog-group-label--fixes { color: var(--warning); }

.changelog-list {
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.changelog-list li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--text-mid);
  font-size: 0.94rem;
}

.changelog-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--text-low);
  font-family: var(--font-mono);
}

.changelog-empty {
  color: var(--text-low);
  font-size: 0.95rem;
}

.changelog-highlight {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-1);
  margin-top: 2.5rem;
}

.changelog-highlight h3 {
  font-size: 1.15rem;
  margin: 0.75rem 0 1rem;
}

.changelog-highlight .check-list { margin-bottom: 1.25rem; }

.changelog-highlight .btn { margin-top: 0.25rem; }

code {
  padding: 0.12rem 0.4rem;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.84em;
  color: var(--text-hi);
}

/* ── Footer ── */
.site-footer {
  padding: 4rem 0 2.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg-1);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.5fr repeat(3, 1fr); }
}

.footer-brand p {
  color: var(--text-low);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 30ch;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-low);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: var(--text-mid);
  font-size: 0.92rem;
  margin-bottom: 0.6rem;
}

.footer-col a:hover { color: var(--text-hi); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-low);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    background: var(--bg-1);
    border-bottom: 1px solid var(--border);
  }

  .site-nav.open { display: flex; }

  .site-nav a {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
  }

  .site-nav a:hover { background: var(--bg-2); }

  .site-nav .btn { margin-top: 0.5rem; text-align: center; }

  .app-preview-body { grid-template-columns: 40px 1fr; }

  .app-inspector { display: none; }

  .spec { min-width: 45%; border-bottom: 1px solid var(--border); }
}
