/* =====================
   ROOT & RESET
   ===================== */
:root {
  --bg: #0a0a0f;
  --bg-2: #0f0f18;
  --bg-3: #13131f;
  --accent: #f59e0b;
  --accent-dim: rgba(245, 158, 11, 0.15);
  --accent-glow: rgba(245, 158, 11, 0.08);
  --text: #f8fafc;
  --text-muted: #64748b;
  --text-subtle: #334155;
  --border: rgba(255,255,255,0.06);
  --border-accent: rgba(245, 158, 11, 0.25);
  --content-color: #34d399;
  --content-dim: rgba(16, 185, 129, 0.12);
  --content-border: rgba(16, 185, 129, 0.25);
  --radius: 12px;
  --radius-sm: 8px;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

/* =====================
   NAV
   ===================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 40px;
  background: rgba(10,10,15,0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-tagline {
  font-size: 12px;
  color: var(--text-muted);
  padding-left: 16px;
  border-left: 1px solid var(--border);
}

/* =====================
   HERO
   ===================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 40px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(245,158,11,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 440px;
}

/* Agent Node Visualization */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agent-nodes {
  position: relative;
  width: 300px;
  height: 300px;
}

.squad-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.core-inner {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a0a0f;
  box-shadow: 0 0 40px rgba(245,158,11,0.4), 0 0 80px rgba(245,158,11,0.15);
}

.core-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.agent-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 3;
}

.node-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-3);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.node-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.node-status {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.node-status.active {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent); }
  50% { opacity: 0.5; box-shadow: 0 0 16px var(--accent); }
}

.node-research { top: 10px; left: 50%; transform: translateX(-50%); }
.node-content { top: 50%; right: 10px; transform: translateY(-50%); }
.node-ops { bottom: 10px; left: 50%; transform: translateX(-50%); }
.node-growth { top: 50%; left: 10px; transform: translateY(-50%); }

.connection-lines {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
}

.lines-svg {
  width: 100%;
  height: 100%;
}

.line {
  stroke: var(--border-accent);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  opacity: 0.6;
}

/* Hero Stats */
.hero-stats {
  max-width: 1200px;
  margin: 64px auto 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 48px 0 0;
}

.stat:first-child { padding-left: 0; }

.stat-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.stat-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  margin: 0 48px 0 0;
}

/* =====================
   MANIFESTO
   ===================== */
.manifesto {
  padding: 100px 40px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.manifesto-inner {
  max-width: 800px;
  margin: 0 auto;
}

.manifesto-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.manifesto-statement {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 32px;
}

.manifesto-body {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 600px;
}

/* =====================
   SECTION LABELS
   ===================== */
.section-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* =====================
   COMPARISON
   ===================== */
.comparison {
  padding: 100px 40px;
}

.comparison-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

.comparison-card {
  padding: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.card-old {
  background: rgba(255,255,255,0.02);
}

.card-new {
  background: var(--accent-dim);
  border-color: var(--border-accent);
}

.card-header {
  margin-bottom: 28px;
}

.card-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 20px;
}

.old {
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
}

.new {
  background: var(--accent);
  color: #0a0a0f;
}

.card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.card-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
}

.icon-x {
  color: #ef4444;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.icon-check {
  color: var(--accent);
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.card-verdict {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

.card-new .card-verdict {
  color: var(--text);
}

/* =====================
   ROLES
   ===================== */
.roles {
  padding: 100px 40px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.roles-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.roles-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 56px;
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.role-card {
  padding: 36px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}

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

.role-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}

.role-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.role-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* =====================
   CLOSING
   ===================== */
.closing {
  padding: 100px 40px;
  text-align: center;
  position: relative;
}

.closing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-accent), transparent);
}

.closing-inner {
  max-width: 720px;
  margin: 0 auto;
}

.closing-statement {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 28px;
}

.closing-body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* =====================
   FOOTER
   ===================== */
.footer {
  padding: 40px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.footer-sub {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 16px;
  border-left: 1px solid var(--border);
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 768px) {
  .nav { padding: 16px 24px; }
  .nav-tagline { display: none; }

  .hero {
    padding: 100px 24px 60px;
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual { display: none; }

  .hero-headline {
    font-size: 36px;
  }

  .hero-sub { font-size: 16px; }

  .hero-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .stat-divider {
    width: 48px;
    height: 1px;
    margin: 0;
  }

  .comparison-grid,
  .roles-grid {
    grid-template-columns: 1fr;
  }

  .manifesto,
  .comparison,
  .roles,
  .closing {
    padding: 64px 24px;
  }
}

/* =====================
   DEMO SECTION
   ===================== */
.demo {
  padding: 100px 40px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.demo-inner {
  max-width: 800px;
  margin: 0 auto;
}

.demo-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
}

.demo-subhead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
}

.demo-stage {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 200px;
}

/* Idle state */
.demo-idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 32px;
  gap: 16px;
}

.demo-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #0a0a0f;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 14px 28px;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 0 24px rgba(245,158,11,0.3);
}

.demo-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(245,158,11,0.45);
}

.demo-cta:active {
  transform: translateY(0);
}

.demo-cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-idle-hint {
  font-size: 13px;
  color: var(--text-subtle);
}

/* Topic input row */
.demo-topic-row {
  width: 100%;
  max-width: 440px;
}

.demo-topic-input {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
}

.demo-topic-input::placeholder {
  color: var(--text-subtle);
}

.demo-topic-input:focus {
  border-color: var(--accent);
}

/* Terminal */
.demo-terminal {
  display: flex;
  flex-direction: column;
  font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
}

.demo-terminal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}

.demo-terminal-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }

.demo-terminal-title {
  flex: 1;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.demo-terminal-badge {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(245,158,11,0.15);
  color: var(--accent);
  border: 1px solid var(--border-accent);
  animation: badge-pulse 1.5s ease-in-out infinite;
}

.demo-terminal-badge.badge-done {
  background: rgba(34,197,94,0.1);
  color: #22c55e;
  border-color: rgba(34,197,94,0.25);
  animation: none;
}

.demo-terminal-badge.badge-error {
  background: rgba(239,68,68,0.1);
  color: #ef4444;
  border-color: rgba(239,68,68,0.25);
  animation: none;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.demo-terminal-body {
  padding: 20px;
  min-height: 160px;
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-log-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #94a3b8;
  animation: log-fade-in 0.2s ease;
}

@keyframes log-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.demo-log-prefix {
  color: var(--accent);
  flex-shrink: 0;
  font-size: 14px;
}

/* Results */
.demo-results {
  display: flex;
  flex-direction: column;
  padding: 28px;
  gap: 20px;
}

.demo-results-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.demo-results-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #22c55e;
  flex-shrink: 0;
}

.demo-results-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.demo-results-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.demo-rerun-btn {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.demo-rerun-btn:hover {
  border-color: var(--border-accent);
  color: var(--text);
}

.demo-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
}

.demo-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  padding-left: 16px;
  border-left: 2px solid var(--border-accent);
}

.demo-bullets li strong {
  color: var(--text);
}

.demo-sources {
  font-size: 12px;
  color: var(--text-subtle);
}

.demo-src-label {
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 4px;
}

.demo-sources a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.demo-sources a:hover {
  color: var(--accent);
}

.demo-footer {
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-subtle);
  text-align: center;
  font-style: italic;
}

@media (max-width: 768px) {
  .demo { padding: 64px 24px; }

  .demo-terminal-body {
    min-height: 120px;
    max-height: 220px;
  }
}

/* =====================
   MULTI-AGENT DEMO ADDITIONS
   ===================== */

/* Agent block wrapper */
.demo-agent-block {
  display: block;
  padding: 20px 24px 0;
}

.demo-agent-block:last-child {
  padding-bottom: 0;
}

/* Agent label row */
.demo-agent-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.demo-agent-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

.demo-agent-badge--research {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent);
  border: 1px solid var(--border-accent);
}

.demo-agent-badge--strategy {
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.demo-agent-badge--content {
  background: var(--content-dim);
  color: var(--content-color);
  border: 1px solid var(--content-border);
}

.demo-agent-badge--growth {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.demo-log-prefix--strategy {
  color: #818cf8;
}

.demo-log-prefix--content {
  color: var(--content-color);
}

.demo-log-prefix--growth {
  color: #22c55e;
}

/* Agent run status */
.demo-agent-status {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(245,158,11,0.15);
  color: var(--accent);
  border: 1px solid var(--border-accent);
  animation: badge-pulse 1.5s ease-in-out infinite;
}

.demo-agent-status.badge-done {
  background: rgba(34,197,94,0.1);
  color: #22c55e;
  border-color: rgba(34,197,94,0.25);
  animation: none;
}

.demo-agent-status.badge-error {
  background: rgba(239,68,68,0.1);
  color: #ef4444;
  border-color: rgba(239,68,68,0.25);
  animation: none;
}

/* Research results (inline under terminal) */
.demo-research-results {
  padding: 16px 4px 20px;
}

.demo-growth-result {
  padding: 16px 4px 20px;
}

/* Handoff card */
.demo-handoff {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 12px 24px;
  animation: handoff-in 0.4s ease;
}

@keyframes handoff-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.demo-handoff-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), var(--border-accent));
}

.demo-handoff-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 24px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.demo-handoff-arrow {
  font-size: 18px;
  color: var(--accent);
  line-height: 1;
}

/* Strategy moves output */
.demo-moves {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 4px 24px;
}

.demo-move-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: var(--radius-sm);
  animation: log-fade-in 0.3s ease;
}

.demo-move-arrow {
  font-size: 20px;
  color: #818cf8;
  flex-shrink: 0;
  line-height: 1.4;
}

.demo-move-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.demo-move-action {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.demo-move-rationale {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Format chip row (idle state) */
.demo-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 14px 0 4px;
}

.demo-chip {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.demo-chip:hover {
  color: var(--text);
  border-color: var(--border-accent);
}

.demo-chip.is-active {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: var(--border-accent);
}

/* Format label chip inside handoff card */
.demo-handoff-card .demo-handoff-format {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--content-dim);
  color: var(--content-color);
  border: 1px solid var(--content-border);
  margin-left: 6px;
}

/* Content Agent deliverable card */
.demo-deliverable-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 16px;
  background: var(--content-dim);
  border: 1px solid var(--content-border);
  border-radius: var(--radius-sm);
  margin: 4px 4px 8px;
  animation: log-fade-in 0.3s ease;
}

.demo-deliverable-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.demo-deliverable-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--content-color);
}

.demo-deliverable {
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  white-space: pre-wrap;
  margin: 0;
  max-height: 280px;
  overflow-y: auto;
}

.demo-copy-btn {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--content-color);
  background: transparent;
  border: 1px solid var(--content-border);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.demo-copy-btn:hover {
  background: var(--content-dim);
  color: var(--text);
}

.demo-copy-btn.is-copied {
  background: var(--content-dim);
  color: var(--content-color);
  border-color: var(--content-border);
}

/* Done bar */
.demo-done-bar {
  display: flex;
  justify-content: center;
  padding: 20px 24px 4px;
}

@media (max-width: 768px) {
  .demo-agent-block { padding: 16px 16px 0; }
  .demo-handoff { padding: 12px 16px; }
  .demo-move-card { padding: 14px 16px; }
}

/* =====================
   WAITLIST CAPTURE
   ===================== */
.waitlist-capture {
  padding: 72px 40px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.4s ease;
}

.waitlist-capture--highlighted {
  box-shadow: 0 0 0 2px var(--border-accent), 0 0 60px rgba(245, 158, 11, 0.07);
}

.waitlist-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.waitlist-heading {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 12px;
}

.waitlist-sub {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.5;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.waitlist-input-row {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 480px;
}

.waitlist-input {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
}

.waitlist-input:focus {
  border-color: var(--border-accent);
}

.waitlist-input::placeholder {
  color: var(--text-subtle);
}

.waitlist-btn {
  height: 48px;
  padding: 0 22px;
  background: var(--accent);
  color: #0a0a0f;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.waitlist-btn:hover { opacity: 0.88; }
.waitlist-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.waitlist-error {
  font-size: 13px;
  color: #f87171;
  margin-top: 4px;
}

.waitlist-success {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 14px;
  padding: 16px 24px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  max-width: 460px;
  margin: 0 auto;
}

.waitlist-success-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.waitlist-success-icon {
  color: var(--accent);
  flex-shrink: 0;
}

.waitlist-success-text {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.waitlist-confirm {
  display: block;
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  margin-top: 14px;
  box-sizing: border-box;
}

.waitlist-confirm-email {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 4px;
  word-break: break-all;
}

.waitlist-confirm-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 20px;
}

.waitlist-confirm-list li {
  position: relative;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  padding-left: 18px;
  margin-bottom: 8px;
}

.waitlist-confirm-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.waitlist-confirm-share {
  margin-top: 8px;
  text-align: center;
}

.waitlist-confirm-share-hint {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.waitlist-confirm-share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.waitlist-share-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.waitlist-share-link:hover {
  background: rgba(245, 158, 11, 0.1);
  opacity: 0.92;
}

.waitlist-share-copy {
  font: inherit;
  color: var(--accent);
}

.waitlist-share-fallback {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed var(--border-accent);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  margin-left: 4px;
  letter-spacing: 0.04em;
}

@media (max-width: 600px) {
  .waitlist-capture { padding: 56px 24px; }
  .waitlist-input-row { flex-direction: column; }
  .waitlist-btn { width: 100%; }
  .waitlist-success { max-width: 100%; }
  .waitlist-confirm-share-row { flex-direction: column; align-items: stretch; }
  .waitlist-share-link { justify-content: center; }
}

.demo-waitlist-counter {
  display: inline-block;
  margin: 0 0 12px 0;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent, #f59e0b);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 999px;
}