/* ═══════════════════════════════════════════════════════════
   CRHQ Design System
   ═══════════════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --bg-void: #06070b;
  --bg-surface: #0d0f16;
  --bg-raised: #141620;
  --border-subtle: #1a1d2e;
  --border-visible: #252840;
  --accent: #7c3aed;
  --accent-hover: #6d28d9;
  --accent-glow: rgba(124,58,237,0.12);
  --accent-glow-strong: rgba(124,58,237,0.3);
  --green: #22c55e;
  --green-dim: rgba(34,197,94,0.5);
  --amber: #f59e0b;
  --red: #ef4444;
  --blue: #3b82f6;
  --text-primary: #e8e8ed;
  --text-secondary: #9496ab;
  --text-muted: #3d4055;
  --text-terminal: #a3e635;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --max-width: 1200px;
}

/* ── Accessibility ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 8px;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  background: var(--bg-void);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Typography ── */
.t-hero {
  font-size: clamp(28px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.t-section {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.t-subsection {
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.t-heading {
  font-size: 22px;
  font-weight: 600;
}
.t-card-title {
  font-size: 18px;
  font-weight: 600;
}
.t-body { font-size: 17px; line-height: 1.7; color: var(--text-secondary); }
.t-small { font-size: 14px; color: var(--text-secondary); }
.t-micro { font-size: 12px; color: var(--text-muted); letter-spacing: 0.05em; text-transform: uppercase; font-weight: 600; }
.t-micro-accent { font-size: 12px; color: var(--accent); letter-spacing: 0.05em; text-transform: uppercase; font-weight: 600; }
.t-mono { font-family: var(--font-mono); }
.t-gradient {
  background: linear-gradient(135deg, #f0f0f5 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.t-lead {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-primary);
}
.t-quote {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 300;
  line-height: 1.5;
  color: var(--text-primary);
}
.t-quote em { font-style: normal; color: var(--accent); }

/* ── Layout ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; }
.section-sm { padding: 80px 0; }

/* ── Spacing Utilities ── */
.mb-0  { margin-bottom: 0; }
.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mb-60 { margin-bottom: 60px; }
.mb-80 { margin-bottom: 80px; }
.mt-8  { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }
.pt-0  { padding-top: 0; }
.pb-16 { padding-bottom: 16px; }
.py-48 { padding-top: 48px; padding-bottom: 48px; }

/* ── Width Utilities ── */
.max-w-sm  { max-width: 480px; margin-left: auto; margin-right: auto; }
.max-w-md  { max-width: 640px; margin-left: auto; margin-right: auto; }
.max-w-lg  { max-width: 720px; margin-left: auto; margin-right: auto; }
.max-w-lg-left { max-width: 720px; }
.max-w-xl  { max-width: 800px; margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 960px; margin-left: auto; margin-right: auto; }
.max-w-3xl { max-width: 1060px; margin-left: auto; margin-right: auto; }
.max-w-4xl { max-width: 1100px; margin-left: auto; margin-right: auto; }

/* ── Alignment Utilities ── */
.text-center { text-align: center; }
.text-left   { text-align: left; }

/* ── Flex Utilities ── */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; }
.flex-wrap    { flex-wrap: wrap; }
.gap-6  { gap: 6px; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }

/* ── Grid Utilities ── */
.grid        { display: grid; }
.grid-2      { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-2-16   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Color Utilities ── */
.text-accent    { color: var(--accent); }
.text-primary   { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted     { color: var(--text-muted); }
.text-green     { color: var(--green); }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-800 { font-weight: 800; }

/* ── Display Utilities ── */
.w-full        { width: 100%; }
.justify-center { justify-content: center; }
.hidden  { display: none; }

/* ── Terminal Dot Colors ── */
.bg-green { background: var(--green); }
.bg-amber { background: var(--amber); }
.bg-red   { background: var(--red); }

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
  background: rgba(6,7,11,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}
.nav-scrolled {
  background: rgba(6,7,11,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo { height: 28px; opacity: 0.9; transition: opacity 0.2s; }
.nav-logo:hover { opacity: 1; }
.nav-logo-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', var(--font-body);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  opacity: 0.9;
  transition: opacity 0.2s;
}
.nav-logo-text:hover { opacity: 1; }
.nav-logo-mark { height: 32px; width: 32px; flex-shrink: 0; }
@media (min-width: 1025px) {
  .nav-logo-text { font-size: 26px; }
  .nav-logo-mark { height: 36px; width: 36px; }
}
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text-primary); }
.nav-cta-btn {
  background: var(--accent);
  color: #fff !important;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: background 0.2s, box-shadow 0.2s;
}
.nav-cta-btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 20px var(--accent-glow-strong);
}
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-secondary);
  transition: all 0.3s;
}
.nav-menu-links { display: flex; align-items: center; gap: 4px; }
.nav-menu-actions { display: flex; align-items: center; gap: 4px; }

/* ── Progress bar ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 200;
  width: 0%;
  transition: width 0.1s linear;
  opacity: 0;
  transition: width 0.1s linear, opacity 0.3s;
}
.scroll-progress.visible { opacity: 1; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-accent {
  background: var(--accent);
  color: white;
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn-accent:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 30px var(--accent-glow-strong);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-visible);
}
.btn-ghost:hover { background: var(--bg-raised); color: var(--text-primary); }
.btn-lg { font-size: 16px; padding: 14px 24px; }

/* ═══════════════════════════════════════════════════════════
   ACT I — THE CONTROL ROOM
   ═══════════════════════════════════════════════════════════ */

.act-control-room {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.cr-dashboard {
  display: grid;
  grid-template-columns: 220px 1fr 200px;
  gap: 1px;
  height: 100vh;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
}

.cr-pane {
  background: var(--bg-surface);
  padding: 20px;
  overflow: hidden;
}
.cr-pane-roster { padding-top: 80px; }
.cr-pane-metrics { padding-top: 80px; }

/* Left — Agent Roster */
.cr-roster-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.cr-agent {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 13px;
}
.cr-agent:last-child { border-bottom: none; }
.cr-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cr-dot-active {
  background: var(--green);
  box-shadow: 0 0 8px var(--green-dim);
  animation: pulse-dot 2s ease-in-out infinite;
}
.cr-dot-idle { background: var(--text-muted); }
.cr-dot-scheduled { background: var(--amber); opacity: 0.6; }
.cr-agent-name { color: var(--text-primary); font-weight: 500; }
.cr-agent-status { color: var(--text-secondary); font-size: 11px; margin-left: auto; white-space: nowrap; }

/* Center — Terminal Feed */
.cr-terminal {
  position: relative;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-terminal);
  padding: 80px 24px 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
#terminalLines {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.cr-terminal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(163, 230, 53, 0.015) 2px,
    rgba(163, 230, 53, 0.015) 4px
  );
  pointer-events: none;
}
.cr-terminal-header {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cr-terminal-header::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}
.cr-terminal-line {
  opacity: 0;
  transform: translateY(4px);
  white-space: nowrap;
  overflow: hidden;
}
.cr-terminal-line.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
}
.cr-terminal-line .agent-tag { color: var(--accent); font-weight: 500; }
.cr-terminal-line .success { color: var(--green); }
.cr-terminal-line .muted { color: var(--text-secondary); }

/* Right — Metrics */
.cr-metrics-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.cr-metric {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.cr-metric:last-child { border-bottom: none; }
.cr-metric-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.cr-metric-value {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
}
.cr-metric-value .unit { font-size: 13px; color: var(--text-secondary); font-weight: 400; }

/* Control Room Overlay */
.cr-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
  padding: 24px;
  background: radial-gradient(ellipse at center, rgba(6,7,11,0.85) 0%, rgba(6,7,11,0.65) 30%, rgba(6,7,11,0.3) 55%, transparent 80%);
}
.cr-overlay-title {
  font-size: clamp(22px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  text-align: center;
  text-shadow:
    0 0 60px rgba(6,7,11,1),
    0 0 30px rgba(6,7,11,1),
    0 0 120px rgba(6,7,11,0.8),
    0 2px 8px rgba(6,7,11,1);
}
.cr-overlay-sub {
  margin-top: 12px;
  font-size: 15px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  text-shadow:
    0 0 40px rgba(6,7,11,1),
    0 0 20px rgba(6,7,11,1),
    0 1px 6px rgba(6,7,11,1);
}
.cr-overlay-sub .arrow {
  animation: bounce-down 2s ease-in-out infinite;
}
.cr-overlay-cta {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  pointer-events: auto;
}

/* ═══════════════════════════════════════════════════════════
   ACT II — THE DAY
   ═══════════════════════════════════════════════════════════ */

.act-day { padding: 80px 0 120px; position: relative; }

.day-intro {
  text-align: center;
  margin-bottom: 80px;
}
.day-intro-sub {
  font-size: 17px;
  color: var(--text-secondary);
  margin-top: 12px;
}

.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 80px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 35px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border-visible) 5%, var(--border-visible) 95%, transparent);
}

.tl-entry {
  position: relative;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.tl-entry.visible {
  opacity: 1;
  transform: translateY(0);
}
.tl-time {
  position: absolute;
  left: -80px;
  top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  width: 60px;
  text-align: right;
}
.tl-dot {
  position: absolute;
  left: -49px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-void);
  box-shadow: 0 0 10px var(--accent-glow);
}
.tl-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.tl-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  overflow-x: auto;
}
.tl-card:hover {
  border-color: var(--border-visible);
}
.tl-card .dim { color: var(--text-muted); }
.tl-card .hi { color: var(--text-primary); font-weight: 600; }
.tl-card .ok { color: var(--green); }
.tl-card .warn { color: var(--amber); }
.tl-card .agent-voice { color: var(--text-primary); }

/* Punchline */
.day-punchline {
  text-align: center;
  padding: 100px 24px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.day-punchline.visible {
  opacity: 1;
  transform: translateY(0);
}
.day-punchline-big {
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.day-punchline-big .highlight { color: var(--accent); }
.day-punchline-small {
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 300;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* ═══════════════════════════════════════════════════════════
   ACT III — THE MANIFESTO
   ═══════════════════════════════════════════════════════════ */

.act-manifesto {
  position: relative;
  padding: 120px 24px;
  min-height: 100vh;
}
.manifesto-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(124,58,237,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.manifesto-statement {
  max-width: 800px;
  margin: 0 auto 100px;
  text-align: center;
  font-size: clamp(22px, 3.5vw, 42px);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.manifesto-statement.visible {
  opacity: 1;
  transform: translateY(0);
}
.manifesto-statement em {
  font-style: normal;
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════
   ACT IV — THE MACHINE
   ═══════════════════════════════════════════════════════════ */

.act-machine {
  padding: 120px 0;
  text-align: center;
}

.machine-phase { margin-bottom: 80px; }
.machine-svg {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}
.machine-svg-wide { max-width: 560px; }

.constellation-line {
  stroke: var(--accent);
  stroke-opacity: 0;
  stroke-width: 1;
  transition: stroke-opacity 0.8s ease;
}
.constellation-line.visible { stroke-opacity: 0.3; }
.constellation-hub {
  fill: var(--accent);
  filter: drop-shadow(0 0 12px rgba(124,58,237,0.5));
}
.constellation-sat {
  fill: var(--accent);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.constellation-sat.visible { opacity: 0.7; }
.constellation-label {
  fill: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.constellation-label.visible { opacity: 1; }

.sat-cluster {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.sat-cluster.visible { opacity: 1; }

.machine-tagline {
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 40px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}
.machine-tagline.visible { opacity: 1; transform: translateY(0); }
.machine-tagline .accent { color: var(--accent); }

/* ═══════════════════════════════════════════════════════════
   ACT V — THE DOOR
   ═══════════════════════════════════════════════════════════ */

.act-door {
  padding: 160px 24px 80px;
  text-align: center;
}
.act-door-sm { padding: 80px 24px; }
.act-door-md { padding: 100px 24px 80px; }
.act-door-lg { padding: 120px 24px 80px; }

.door-ready {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}
.door-ready.visible { opacity: 1; transform: translateY(0); }
.door-ready-sm { font-size: clamp(28px, 5vw, 48px); }
.door-ready-lg { font-size: clamp(28px, 5vw, 56px); }

.door-form {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin: 0 auto 20px;
  border: 1px solid var(--border-visible);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease 0.2s;
}
.door-form.visible { opacity: 1; transform: translateY(0); }
.door-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}
.door-input {
  flex: 1;
  padding: 14px 20px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font-body);
  outline: none;
}
.door-input::placeholder { color: var(--text-muted); }
.door-submit {
  padding: 14px 28px;
  background: var(--accent);
  color: white;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.door-submit:hover { background: var(--accent-hover); }

.door-fine {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
  opacity: 0;
  transition: opacity 0.6s ease 0.4s;
}
.door-fine.visible { opacity: 1; }

.door-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease 0.2s;
}
.door-actions.visible { opacity: 1; transform: translateY(0); }
.door-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
  font-family: var(--font-body);
}
.door-btn-primary {
  background: var(--accent);
  color: white;
}
.door-btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 24px var(--accent-glow-strong);
}
.door-btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-visible);
}
.door-btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* ═══════════════════════════════════════════════════════════
   SCHEDULE DEMO
   ═══════════════════════════════════════════════════════════ */

.demo-form-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  max-width: 960px;
  margin: 0 auto;
  align-items: start;
}
@media (max-width: 800px) {
  .demo-form-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.demo-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
}
@media (max-width: 560px) {
  .demo-form-card { padding: 24px; }
}

.demo-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 480px) {
  .demo-form-row { grid-template-columns: 1fr; }
}

.demo-form-group {
  margin-bottom: 20px;
}

.demo-form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.demo-required {
  color: var(--accent);
}

.demo-form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.demo-form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}
.demo-form-input::placeholder { color: var(--text-muted); }

.demo-form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6e82' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.demo-form-textarea {
  resize: vertical;
  min-height: 80px;
}

.demo-form-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: center;
  padding: 16px 32px;
  background: var(--accent);
  color: white;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  margin-top: 4px;
}
.demo-form-submit:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 24px var(--accent-glow-strong);
}
.demo-form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Success state */
.demo-form-success {
  text-align: center;
  padding: 40px 20px;
}
.demo-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.12);
  color: var(--green);
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.demo-success-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}
.demo-success-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

/* Sidebar */
.demo-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.demo-sidebar-block {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.demo-sidebar-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.demo-sidebar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.demo-sidebar-list li {
  font-size: 13px;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
}
.demo-sidebar-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 600;
}

.demo-sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-sidebar-quote {
  font-size: 14px;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.6;
}

.demo-sidebar-cta {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.demo-sidebar-link {
  color: var(--accent);
  font-weight: 500;
  transition: opacity 0.2s;
}
.demo-sidebar-link:hover {
  opacity: 0.8;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */

.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 60px 24px 40px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand { max-width: 240px; }
.footer-logo { height: 24px; margin-bottom: 12px; opacity: 0.7; }
.footer-tagline { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-muted);
}
.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-cards {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-card-icon {
  width: 38px;
  height: 24px;
  border-radius: 3px;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.footer-card-icon:hover { opacity: 0.8; }

/* ═══════════════════════════════════════════════════════════
   SUB-PAGES SHARED
   ═══════════════════════════════════════════════════════════ */

.page-hero {
  padding: 140px 24px 80px;
  text-align: center;
}
.page-hero-compact { padding-bottom: 60px; }
.page-hero-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.page-hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Content cards (sub-pages) */
.content-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.3s;
}
.content-card:hover { border-color: var(--border-visible); }
.content-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.content-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.content-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

/* Terminal blocks (sub-pages) */
.terminal-block {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.terminal-block-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border-subtle);
}
.terminal-block-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.terminal-block-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  margin-left: 8px;
}
.terminal-block-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-terminal);
}
.terminal-block-body .tb-label { color: var(--accent); }
.terminal-block-body .tb-heading { color: var(--text-primary); font-weight: 500; }
.terminal-block-body .tb-meta { color: var(--text-secondary); }
.terminal-block-body .tb-result { color: var(--green); }
.terminal-block-body .tb-prompt { color: var(--text-primary); font-size: 13px; padding: 16px; }

/* Terminal block with compact padding */
.terminal-block-body-compact { padding: 20px; }

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: left;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
}
.pricing-card-center { text-align: center; padding: 48px 40px; }
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pricing-tier { font-size: 14px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.pricing-tier-label { font-size: 14px; letter-spacing: 0.1em; }
.pricing-price { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; }
.pricing-price-xl { font-size: clamp(48px, 8vw, 72px); font-weight: 800; letter-spacing: -0.03em; }
.pricing-price .period { font-size: 15px; font-weight: 400; color: var(--text-secondary); }
.pricing-price-xl .period { font-size: 18px; color: var(--text-secondary); }
.pricing-features {
  list-style: none;
  margin: 24px 0;
  padding: 0;
}
.pricing-features li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pricing-features li::before {
  content: '✓';
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
}
.pricing-features li.disabled { color: var(--text-muted); }
.pricing-features li.disabled::before { content: '—'; color: var(--text-muted); }

/* Pricing check-grid (for single card layout) */
.pricing-check { display: flex; align-items: center; gap: 8px; }
.pricing-check .check-mark { color: var(--green); }

/* Pricing toggle */
.pricing-toggle { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border-subtle); }
.pricing-toggle-inner { display: flex; align-items: center; justify-content: center; gap: 12px; }
.pricing-toggle-label { position: relative; width: 48px; height: 26px; cursor: pointer; }
.pricing-toggle-label input { display: none; }
.pricing-toggle-track { position: absolute; inset: 0; background: var(--border-visible); border-radius: 13px; transition: background 0.3s; }
.pricing-toggle-dot { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: var(--text-primary); border-radius: 50%; transition: transform 0.3s; }
#pricingToggle:checked + .pricing-toggle-track { background: var(--accent); }
#pricingToggle:checked ~ .pricing-toggle-dot { transform: translateX(22px); }

/* BYOK items */
.byok-item { margin-bottom: 16px; }
.byok-item:last-child { margin-bottom: 0; }
.byok-item-title { color: var(--text-primary); font-weight: 500; }
.byok-item-desc { color: var(--text-secondary); font-size: 13px; }

/* What's included items */
.included-item .check { color: var(--green); }
.included-item .label { color: var(--text-primary); }
.included-item .desc { color: var(--text-secondary); }

/* ── FAQ ── */
.faq-list { max-width: 700px; margin: 60px auto 0; }
.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
}
.faq-question::after {
  content: '+';
  font-size: 20px;
  color: var(--text-muted);
  transition: transform 0.3s;
}
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 200px; }
.faq-answer p {
  padding: 0 0 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── About Page ── */
.about-principle { margin-bottom: 48px; }
.about-principle h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.about-closing { padding: 60px 24px 120px; }

/* ═══════════════════════════════════════════════════════════
   STANDARDIZED COMPONENTS
   ═══════════════════════════════════════════════════════════ */

.section-header { text-align: center; margin-bottom: 48px; }
.section-header .t-micro-accent { margin-bottom: 12px; }
.section-narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
.section-medium { max-width: 800px; margin-left: auto; margin-right: auto; }
.card-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .card-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid-3 { grid-template-columns: 1fr; } }

.tag {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 500;
  background: var(--bg-raised); color: var(--text-secondary);
  border: 1px solid var(--border-subtle); transition: all 0.2s;
}
.tag-accent { background: var(--accent-glow); color: var(--accent); border-color: transparent; }

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--text-secondary); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--text-primary); }
.breadcrumb .sep { color: var(--text-muted); }

/* Breadcrumb section wrapper */
.breadcrumb-section { padding: 100px 24px 0; }
.uc-hero-section { padding: 24px 24px 60px; }
.uc-hero-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.link-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 28px;
  transition: border-color 0.3s, transform 0.2s, box-shadow 0.3s;
}
.link-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 4px 20px var(--accent-glow); }

.nav-link-active { color: var(--text-primary) !important; }

/* ── Skills Page ── */
.skills-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; justify-content: center; }
.skills-filter .tag { cursor: pointer; }
.skills-filter .tag:hover { border-color: var(--accent); color: var(--accent); }
.skills-filter .tag.active { background: var(--accent-glow); color: var(--accent); border-color: var(--accent); }
.skill-card .skill-use-cases { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-subtle); }
.skill-card .skill-use-cases a { font-size: 12px; color: var(--accent); margin-right: 12px; }
.skill-card .skill-use-cases a:hover { text-decoration: underline; }
.skills-empty { grid-column: 1 / -1; text-align: center; padding: 60px 0; color: var(--text-muted); font-family: var(--font-mono); font-size: 14px; }

/* ── Use Case Pages ── */
.use-case-outcomes { display: flex; flex-direction: column; gap: 0; }
.outcome-item { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--border-subtle); }
.outcome-item:last-child { border-bottom: none; }
.outcome-icon {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent-glow); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
}
.outcome-item strong { display: block; font-size: 15px; margin-bottom: 4px; }

.use-case-agent-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 24px; border-radius: var(--radius-lg);
  background: var(--bg-surface); border: 1px solid var(--green);
  font-size: 15px; font-weight: 600; color: var(--green);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.1);
}
.use-case-agent-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); animation: pulse-dot 2s ease-in-out infinite; }

.use-case-steps { display: flex; flex-direction: column; gap: 32px; }
.use-case-step { display: flex; gap: 20px; align-items: flex-start; }
.step-number {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}
.use-case-step h4 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }

.use-case-graphic {
  height: 200px; border-radius: var(--radius-lg);
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 14px; margin-bottom: 16px;
  overflow: hidden;
}
.use-case-graphic img { width: 100%; height: 100%; object-fit: cover; }

/* ── Use Case Detail Layout (sidebar) ── */
.uc-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; max-width: 1060px; margin: 0 auto; }
.uc-main { min-width: 0; }
.uc-sidebar { position: sticky; top: 80px; align-self: start; display: flex; flex-direction: column; gap: 24px; }
.uc-sidebar-card {
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 24px;
}
.uc-sidebar-card h3 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-secondary); margin-bottom: 16px; }
.uc-sidebar-skill {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono); font-size: 13px; color: var(--text-primary);
}
.uc-sidebar-skill:last-child { border-bottom: none; }
.uc-sidebar-skill .tag { font-size: 10px; padding: 2px 8px; }
.uc-sidebar-meta { font-size: 13px; color: var(--text-secondary); line-height: 2; }
.uc-sidebar-meta strong { color: var(--text-primary); font-weight: 500; }
.uc-sidebar-cta { border-color: var(--accent); background: var(--accent-glow); }
.uc-sidebar-cta p { font-size: 14px; color: var(--text-primary); margin-bottom: 16px; font-weight: 500; }

/* ── Advanced Tips ── */
.uc-tips { display: flex; flex-direction: column; gap: 20px; }
.uc-tip {
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent); border-radius: var(--radius-md);
  padding: 20px 24px;
}
.uc-tip h4 { font-size: 15px; font-weight: 600; margin-bottom: 8px; color: var(--text-primary); }
.uc-tip p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.uc-tip .tag { margin-top: 8px; }

/* ── Use Cases Listing ── */
.uc-filter { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.uc-filter .tag { cursor: pointer; transition: all 0.2s; }
.uc-filter .tag:hover { border-color: var(--accent); color: var(--accent); }
.uc-filter .tag.active { background: var(--accent-glow); color: var(--accent); border-color: var(--accent); }

.uc-card { display: flex; flex-direction: column; }
.uc-soon { opacity: 0.5; pointer-events: none; position: relative; }
.uc-hidden { display: none; }

.uc-filter-section { padding: 0 24px 32px; }
.uc-load-more { text-align: center; padding: 40px 0 0; }
.uc-empty { text-align: center; padding: 60px 0; color: var(--text-muted); font-size: 15px; grid-column: 1 / -1; }
.uc-empty-link { color: var(--accent); background: none; border: none; cursor: pointer; font-weight: 500; }

/* Workflow blocks (solutions page) */
.workflow-block { margin-bottom: 60px; }

@media (max-width: 860px) {
  .uc-layout { grid-template-columns: 1fr; gap: 32px; }
  .uc-sidebar { position: static; }
}

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════ */

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.cursor-blink::after {
  content: '█';
  animation: blink 1s step-end infinite;
  color: var(--text-terminal);
}

/* Fade-in utility */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  .act-control-room { height: 100vh; height: 100dvh; overflow: hidden; }
  .cr-dashboard {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    height: 100vh;
    height: 100dvh;
  }
  .cr-pane-roster { display: none; }
  .cr-terminal {
    padding-top: 80px;
    min-height: 0;
    overflow: hidden;
  }
  #terminalLines {
    overflow: hidden;
  }
  .cr-pane-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 12px 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    flex-shrink: 0;
  }
  .cr-metric { padding: 0; border-bottom: none; }
  .nav-menu-links { display: none; }
  .nav-burger { display: flex; }
  .nav-open .nav-menu-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(6,7,11,0.95);
    backdrop-filter: blur(12px);
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-subtle);
  }
  .nav-open .nav-menu-actions {
    flex-direction: column;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
    gap: 8px;
  }
  .nav-open .nav-menu-actions .nav-cta-btn {
    text-align: center;
    padding: 10px 16px;
    font-size: 14px;
  }
  .nav-open .nav-menu-actions .nav-login-link {
    text-align: center;
    padding: 8px 16px;
    font-size: 14px;
  }
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .machine-svg { max-width: 340px; }
  .machine-svg-wide { max-width: 100%; }
  .timeline { padding-left: 24px; }
  .timeline::before { left: 4px; }
  .tl-time {
    position: static;
    width: auto;
    font-size: 11px;
    margin-bottom: 4px;
    display: block;
    color: var(--text-muted);
  }
  .tl-dot {
    position: absolute;
    left: -24px;
    top: 4px;
  }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-2-16 { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .cr-overlay-title { font-size: 28px; }
  .cr-terminal { font-size: 11px; padding: 88px 12px 12px; }
  .cr-pane-metrics { grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 10px 12px; }
  .cr-metric-value { font-size: 16px; }
  .cr-metric-label { font-size: 9px; }
  .timeline { padding-left: 24px; }
  .timeline::before { left: 4px; }
  .tl-time {
    position: static;
    width: auto;
    font-size: 10px;
    margin-bottom: 4px;
  }
  .tl-dot { left: -24px; width: 8px; height: 8px; }
  .tl-card { font-size: 11.5px; padding: 14px 16px; }
  .manifesto-statement { margin-bottom: 60px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom-row { flex-direction: column; text-align: center; }
  .contact-grid { grid-template-columns: 1fr !important; }
  .door-form { flex-direction: column; }
  .door-submit { padding: 14px; }
  .content-grid { grid-template-columns: 1fr; }
}

/* Small mobile */
@media (max-width: 480px) {
  body { font-size: 15px; }
  .cr-terminal { font-size: 10px; line-height: 1.7; padding-top: 84px; }
  .tl-entry { margin-bottom: 40px; }
  .btn { width: 100%; justify-content: center; }
  .day-punchline { padding: 60px 16px; }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in { opacity: 1; transform: none; }
  .cr-terminal-line { opacity: 1; transform: none; }
}


/* ═══════════════════════════════════════════════════════════
   HELP CENTER
   ═══════════════════════════════════════════════════════════ */

/* ── Search ── */
.help-search-wrap { position: relative; }
.help-search-input {
  width: 100%; padding: 14px 20px; font-size: 16px;
  font-family: var(--font-body); color: var(--text-primary);
  background: var(--bg-raised); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); outline: none;
  transition: border-color .2s;
}
.help-search-input::placeholder { color: var(--text-muted); }
.help-search-input:focus { border-color: var(--accent); }

/* ── Filters ── */
.help-filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 32px; justify-content: center;
}
.help-filter-btn {
  padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 500;
  font-family: var(--font-body); cursor: pointer;
  border: 1px solid var(--border-subtle); background: transparent;
  color: var(--text-secondary); transition: all .15s;
}
.help-filter-btn:hover { border-color: var(--border-visible); color: var(--text-primary); }
.help-filter-active {
  border-color: var(--accent) !important; background: rgba(124,58,237,0.12) !important;
  color: var(--accent) !important;
}

/* ── Article Grid ── */
.help-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.help-card {
  display: block; padding: 24px; border-radius: var(--radius-md);
  background: var(--bg-raised); border: 1px solid var(--border-subtle);
  text-decoration: none; color: inherit; transition: border-color .2s, transform .2s;
}
.help-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.help-card-title {
  font-size: 18px; font-weight: 600; color: var(--text-primary);
  margin: 0 0 8px; line-height: 1.3;
}
.help-card-desc {
  font-size: 14px; color: var(--text-secondary); line-height: 1.5;
  margin: 0 0 12px;
}
.help-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── Article Content ── */
.help-article { font-size: 17px; line-height: 1.7; color: var(--text-primary); }
.help-article h2 {
  font-size: 24px; font-weight: 700; margin: 48px 0 16px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border-subtle);
}
.help-article h3 { font-size: 19px; font-weight: 600; margin: 36px 0 12px; }
.help-article p { margin: 0 0 16px; }
.help-article ul, .help-article ol { margin: 0 0 16px; padding-left: 24px; }
.help-article li { margin-bottom: 6px; }
.help-article a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.help-article a:hover { color: var(--accent-hover); }
.help-article code {
  font-family: var(--font-mono); font-size: 0.88em;
  background: var(--bg-raised); padding: 2px 7px; border-radius: 4px;
  border: 1px solid var(--border-subtle);
}
.help-article pre {
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 20px; overflow-x: auto;
  margin: 0 0 24px; font-size: 14px; line-height: 1.6;
}
.help-article pre code {
  background: none; border: none; padding: 0; font-size: inherit;
}
.help-article img {
  max-width: 100%; border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle); margin: 16px 0;
}
.help-article strong { color: var(--text-primary); font-weight: 600; }

/* Tables */
.help-table-wrap { overflow-x: auto; margin: 0 0 24px; }
.help-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
.help-table th {
  text-align: left; padding: 10px 14px; font-weight: 600;
  background: var(--bg-surface); border-bottom: 2px solid var(--border-visible);
  color: var(--text-primary); white-space: nowrap;
}
.help-table td {
  padding: 10px 14px; border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.help-table tr:hover td { background: rgba(124,58,237,0.04); }

/* Callouts */
.help-callout {
  padding: 16px 20px; border-radius: var(--radius-md);
  border-left: 3px solid var(--accent); margin: 0 0 24px;
  background: rgba(124,58,237,0.06); font-size: 15px;
}
.help-callout p { margin: 0; }
.help-callout-tip { border-left-color: var(--green); background: rgba(34,197,94,0.06); }
.help-callout-warning { border-left-color: var(--amber); background: rgba(245,158,11,0.06); }

/* ── Mobile ── */
@media (max-width: 768px) {
  .help-grid { grid-template-columns: 1fr; }
  .help-article h2 { font-size: 20px; margin-top: 36px; }
  .help-article h3 { font-size: 17px; }
  .help-article { font-size: 16px; }
}
