:root {
  --bg: #0b0c0e;
  --bg-elev: #121418;
  --bg-card: #16191f;
  --bg-code: #0e1014;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f2ee;
  --text-muted: #abb2be;
  --text-dim: #8d96a6;
  --accent: #ff4d2e;
  --accent-ink: #0b0c0e;
  --accent-soft: rgba(255, 77, 46, 0.13);
  --ok: #2ee59d;
  --ok-soft: rgba(46, 229, 157, 0.12);
  --font-sans: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --radius: 10px;
  --radius-sm: 6px;
  --max-w: 1120px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 82% -60px, rgba(255, 77, 46, 0.08), transparent 65%),
    var(--bg);
  color: var(--text);
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
.quickstart-code:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

code,
pre {
  font-family: var(--font-mono);
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  z-index: 100;
}
.skip-link:focus {
  left: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(11, 12, 14, 0.84);
  border-bottom: 1px solid var(--border);
}

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

.icon {
  flex-shrink: 0;
  display: inline-block;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-logo {
  display: block;
  border-radius: 7px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--text);
}

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

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
}
.lang-switch:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: inline-block;
}

.mobile-nav {
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  padding-top: 6px;
  padding-bottom: 12px;
}

.mobile-nav-inner a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.mobile-nav-inner a:last-child {
  border-bottom: none;
}

.mobile-nav-inner a:hover,
.mobile-nav-inner a:focus-visible {
  color: var(--text);
}

.mobile-nav-sponsor svg {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.btn:hover {
  background: #1d2129;
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

.btn-primary:hover {
  background: #ff6246;
  border-color: #ff6246;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 0.84rem;
}

.btn-sponsor {
  border-color: rgba(255, 77, 46, 0.35);
  color: var(--text);
}

.btn-sponsor svg,
.sponsor-link svg {
  color: var(--accent);
}

.support-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, rgba(255, 77, 46, 0.08), var(--bg-card) 55%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 28px 30px;
}

.support-card h2 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  letter-spacing: -0.02em;
}

.support-card p {
  margin: 0 0 10px;
  color: var(--text-muted);
  max-width: 58ch;
  font-size: 0.95rem;
}

.support-note {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-dim);
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cloud-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Hero */
.hero {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 340px);
  gap: 48px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.25rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-wrap: balance;
}

.hero h1 em {
  font-style: normal;
  font-weight: 800;
  color: var(--accent);
}

.hero-lead {
  margin: 0 0 26px;
  font-size: 1.06rem;
  color: var(--text-muted);
  max-width: 60ch;
}

/* Copyable command/prompt box */
.quickstart-box {
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}

.quickstart-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding: 0 10px;
  background: var(--bg-code);
}

.tab-group {
  display: flex;
  gap: 4px;
}

.tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 10px 10px;
  cursor: pointer;
}

.tab-btn[aria-selected="true"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.copy-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.copy-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.quickstart-hint {
  margin: 0;
  padding: 10px 16px 0;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.quickstart-code {
  margin: 0;
  padding: 8px 16px 14px;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text);
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: normal;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* 9:16 Interactive Broadcast Preview Monitor */
.phone-frame {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  border-radius: 22px;
  background: linear-gradient(180deg, #171b22 0%, #0e1014 100%);
  border: 1px solid var(--border-strong);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.phone-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
}

.phone-rec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rec-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.phone-frame[data-playing="true"] .rec-indicator {
  animation: rec-pulse 1.4s ease-in-out infinite;
}

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

.reel-viewport {
  position: relative;
  aspect-ratio: 9 / 13.5;
  border-radius: 14px;
  border: 1px solid var(--border);
  background:
    radial-gradient(220px 180px at 50% 28%, rgba(255, 77, 46, 0.14), transparent 72%),
    linear-gradient(180deg, #13171e 0%, #0b0d11 100%);
  overflow: hidden;
}

.reel-stage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 16px 26px;
}

.reel-stage[hidden] {
  display: none;
}

/* Talking-Head simulated studio camera frame */
.stage-camera {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transform: scale(1.05);
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.phone-frame[data-cam-zoom="tight"] .stage-camera {
  transform: scale(1.14);
}

.stage-light {
  position: absolute;
  top: 10%;
  left: 50%;
  width: 190px;
  height: 190px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 77, 46, 0.16) 0%, rgba(46, 229, 157, 0.05) 48%, transparent 72%);
}

.stage-subject {
  position: relative;
  width: 180px;
  height: 240px;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  opacity: 0.9;
}

.subject-head {
  width: 64px;
  height: 78px;
  border-radius: 34px 34px 30px 30px;
  background: linear-gradient(180deg, #272d38 0%, #1a1f28 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.subject-shoulders {
  width: 168px;
  height: 106px;
  border-radius: 84px 84px 0 0;
  background: linear-gradient(180deg, #222731 0%, #141820 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

/* Faceless motion-graphics stage */
.reel-stage-faceless {
  background:
    radial-gradient(200px 160px at 50% 34%, rgba(46, 229, 157, 0.1), transparent 72%),
    linear-gradient(180deg, #11151b 0%, #0b0c0e 100%);
}

.faceless-card {
  position: absolute;
  top: 46px;
  left: 18px;
  right: 18px;
  padding: 16px 14px;
  border-radius: 10px;
  background: rgba(22, 25, 31, 0.88);
  border: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faceless-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ok);
}

.waveform {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  align-items: end;
  gap: 5px;
  height: 56px;
}

.waveform span {
  display: block;
  height: var(--h, 50%);
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(255, 77, 46, 0.32) 100%);
}

.phone-frame[data-playing="true"] .waveform span {
  animation: wave-bounce 1.1s ease-in-out infinite alternate;
}

.waveform span:nth-child(2n) {
  animation-delay: 180ms;
}
.waveform span:nth-child(3n) {
  animation-delay: 340ms;
}

@keyframes wave-bounce {
  from { transform: scaleY(0.45); transform-origin: bottom; }
  to { transform: scaleY(1); transform-origin: bottom; }
}

/* Safe-Zone Audit Overlay */
.safe-zone-box {
  position: absolute;
  inset: 12px 12px 24px;
  border: 1px dashed rgba(46, 229, 157, 0.55);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.phone-frame[data-audit="off"] .safe-zone-box {
  opacity: 0;
}

.safe-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--ok);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
}

.reticle {
  width: 82px;
  height: 82px;
  margin: 0 auto 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 77, 46, 0.7);
  position: relative;
  display: grid;
  place-items: center;
}

.phone-frame[data-mode="faceless"] .reticle {
  opacity: 0;
}

.reticle::before,
.reticle::after {
  content: "";
  position: absolute;
  background: rgba(255, 77, 46, 0.5);
}
.reticle::before {
  width: 100%;
  height: 1px;
}
.reticle::after {
  width: 1px;
  height: 100%;
}

.reticle-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  white-space: nowrap;
  background: var(--bg);
  color: var(--accent);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(255, 77, 46, 0.45);
  z-index: 1;
}

.safe-bottom-rule {
  height: 1px;
}

/* Kinetic Captions */
.caption-preview {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 6px;
  text-align: center;
  font-weight: 800;
  font-size: 0.96rem;
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.92);
}

.cap-word {
  color: var(--text);
  transition: color 120ms ease, transform 120ms ease;
}

.cap-word.is-active {
  color: var(--accent);
  transform: scale(1.06);
}

/* Timeline progress bar */
.reel-progress {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
  z-index: 3;
}

.reel-progress-fill {
  width: 30%;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 260ms linear;
}

/* Monitor Controls */
.reel-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.reel-mode-switch,
.reel-util-btns {
  display: flex;
  align-items: center;
  gap: 4px;
}

.reel-ctrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-code);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

.reel-ctrl-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.reel-ctrl-btn[aria-pressed="true"] {
  color: var(--text);
  border-color: rgba(255, 77, 46, 0.55);
  background: var(--accent-soft);
}

.reel-play-btn {
  min-width: 34px;
  padding: 4px 7px;
}

.phone-telemetry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.telemetry-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 4px;
}

.telemetry-item strong {
  display: block;
  color: var(--ok);
  font-size: 0.78rem;
}

/* Agent Strip */
.agent-strip {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
}

.agent-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.strip-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.agent-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.agent-list li {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

/* Sections */
section.section {
  padding: 68px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 80px;
}

.section-header {
  max-width: 68ch;
  margin-bottom: 36px;
}

.section-header h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.025em;
  line-height: 1.18;
  text-wrap: balance;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
}

.stack-note {
  margin-top: 12px !important;
  font-size: 0.86rem;
  color: var(--text-dim) !important;
}

.stack-note strong {
  color: var(--text-muted);
  font-weight: 600;
}

.repo-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.repo-badges img {
  display: block;
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  letter-spacing: -0.015em;
}

.card p {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text);
}

.check-list li::before {
  content: "✓ ";
  color: var(--ok);
  font-family: var(--font-mono);
  font-weight: 700;
}

/* Pipeline steps */
.pipeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.pipeline-step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(255, 77, 46, 0.25);
  border-radius: var(--radius-sm);
  height: 36px;
  display: grid;
  place-items: center;
}

.pipeline-step h3 {
  margin: 0 0 4px;
  font-size: 1.02rem;
}

.pipeline-step p {
  margin: 0 0 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.cmd-disclosure {
  margin-top: 4px;
}

.cmd-disclosure summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  padding: 4px 0;
}

.cmd-disclosure summary::-webkit-details-marker {
  display: none;
}

.cmd-disclosure summary::before {
  content: "▸";
  color: var(--accent);
}

.cmd-disclosure[open] summary::before {
  content: "▾";
}

.cmd-disclosure summary:hover {
  color: var(--text);
}

.cmd-inline {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: var(--bg-code);
  border: 1px solid var(--border);
  color: #d6dce6;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  max-width: 100%;
  overflow-x: auto;
}

/* Table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  text-align: left;
}

th,
td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
}

th {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg-code);
  font-weight: 600;
}

tr:last-child td {
  border-bottom: none;
}

/* Agent Discovery box */
.agent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.agent-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color 140ms ease;
}

.agent-card:hover {
  border-color: var(--accent);
}

.agent-card code {
  font-size: 0.88rem;
  color: var(--accent);
}

.agent-card p {
  margin: 8px 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 10px;
}

details.faq-item {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}

details.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.98rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

details.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 1.1rem;
}

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

details.faq-item p {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 0.93rem;
}

/* Footer */
.site-footer {
  padding: 40px 0 max(56px, env(safe-area-inset-bottom));
  color: var(--text-dim);
  font-size: 0.86rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.inline-icon-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

@media (max-width: 860px) {
  .hero {
    padding: 36px 0 44px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .modes-grid,
  .agent-grid {
    grid-template-columns: 1fr;
  }
  .nav-links,
  .header-actions .btn-sponsor {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  section.section {
    padding: 52px 0;
  }
}

@media (max-width: 860px), (pointer: coarse) {
  .lang-switch,
  .btn-sm,
  .tab-btn,
  .copy-btn,
  .reel-ctrl-btn {
    min-height: 44px;
  }
  .lang-switch {
    min-width: 44px;
  }
  .copy-btn {
    padding: 8px 14px;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 16px;
  }
  .header-inner {
    gap: 10px;
  }
  .header-actions {
    gap: 8px;
  }
  .btn-github {
    padding: 0 12px;
  }
  .quickstart-tabs {
    gap: 6px;
    padding: 4px 10px;
  }
  .tab-btn {
    padding: 10px 8px;
    white-space: nowrap;
  }
  .quickstart-code {
    font-size: 0.74rem;
    padding: 8px 14px 14px;
  }
  .hero-ctas .btn {
    width: 100%;
  }
  .pipeline-step {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .step-num {
    width: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}
