:root {
  --bg: #0e1419;
  --bg-2: #151d27;
  --bg-card: #1a2433;
  --accent: #00c9a7;
  --accent-dim: rgba(0, 201, 167, 0.12);
  --warn: #f59e0b;
  --text: #e8edf4;
  --text-muted: #6b7e94;
  --border: rgba(255,255,255,0.07);
  --font-head: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.5px;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--accent);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 80px 48px 80px;
  min-height: 85vh;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 201, 167, 0.2);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.3px;
  margin-bottom: 28px;
  width: fit-content;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat-value {
  display: block;
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}

.stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

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

/* Hero actions */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #0e1419;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  transition: opacity 0.15s, transform 0.15s;
}
.hero-btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
  padding: 11px 20px;
  border-radius: 10px;
  transition: border-color 0.15s, color 0.15s;
}
.hero-btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* Hero right-side KPI card */
.hero-visual-inner {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,201,167,0.06);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0,201,167,0.2);
  border-radius: 100px;
  padding: 5px 12px;
  width: fit-content;
}

.chip-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.5s ease-in-out infinite;
}

.hero-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hero-kpi {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}

.hero-kpi.kpi-accent {
  border-color: rgba(0,201,167,0.2);
  background: rgba(0,201,167,0.05);
}

.kpi-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.kpi-value {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}

.hero-kpi.kpi-accent .kpi-value { color: var(--accent); }

/* Mini agent preview in hero */
.hero-agent-preview {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.hap-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.hap-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

.hap-msg {
  font-size: 12px;
  color: var(--text);
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}
.hap-msg:last-child { border-bottom: none; }
.hap-msg--warn { color: var(--warn); }

/* Monitor mockup */
.monitor-frame {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,201,167,0.08);
}

.monitor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.monitor-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.monitor-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.5px;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.5s ease-in-out infinite;
}

.monitor-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.monitor-row {
  display: grid;
  grid-template-columns: 90px 1fr 120px;
  align-items: center;
  gap: 12px;
}

.metric-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.metric-bar {
  height: 6px;
  background: rgba(255,255,255,0.07);
  border-radius: 3px;
  overflow: hidden;
}

.metric-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}

.temp-fill { width: 74%; background: #00c9a7; }
.flow-fill { width: 62%; background: #00c9a7; }
.visc-fill { width: 56%; background: #00c9a7; }
.dose-fill { width: 97%; background: #00c9a7; }
.press-fill { width: 82%; }
.alert-fill { background: #f59e0b; }

.metric-value {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  text-align: right;
}

.ok { color: var(--accent); font-size: 10px; margin-left: 4px; }
.warn { color: var(--warn); font-size: 10px; margin-left: 4px; }

.alert-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  color: #f59e0b;
  margin-top: 4px;
}

.alert-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f59e0b;
  color: #0e1419;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.report-preview {
  margin-top: 12px;
  padding: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.report-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.report-line {
  height: 7px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  margin-bottom: 6px;
}

.report-line.short { width: 65%; }

/* How it works */
.how-it-works {
  padding: 100px 48px;
  border-top: 1px solid var(--border);
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 56px;
  max-width: 600px;
}

.workflow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
}

.workflow-step {
  padding: 24px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.step-number {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.workflow-step h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  font-family: var(--font-head);
}

.workflow-step p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.workflow-arrow {
  display: flex;
  align-items: center;
  padding: 0 16px;
  padding-top: 44px;
  color: var(--text-muted);
}

/* Features */
.features {
  padding: 100px 48px;
  border-top: 1px solid var(--border);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feature-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.accent-card {
  border-color: rgba(0, 201, 167, 0.2);
  background: linear-gradient(135deg, rgba(0, 201, 167, 0.05) 0%, var(--bg-2) 100%);
}

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

.feature-card h3 {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Live Demo Section ──────────────────────────────────────────────── */

.demo-section {
  padding: 80px 48px 0;
  border-top: 1px solid var(--border);
}

.demo-header {
  max-width: 900px;
  margin: 0 auto 48px;
}

.demo-intro {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 680px;
}

/* Start / running controls */
.demo-controls {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.demo-start-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #0e1419;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: opacity 0.15s;
}
.demo-start-btn:hover { opacity: 0.88; }

.demo-running-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.3px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.2s ease-in-out infinite;
}

.demo-timer-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 10px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: var(--text-muted);
}

/* Progress bar */
.demo-progress-bar {
  margin-top: 20px;
  position: relative;
}

.demo-progress-bar > div:first-child {
  height: 4px;
  background: var(--bg-card);
  border-radius: 2px;
  overflow: hidden;
}

.demo-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #60a5fa);
  border-radius: 2px;
  transition: width 0.7s linear;
}

.demo-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 6px;
  position: relative;
}

.anomaly-marker {
  position: absolute;
  color: var(--warn);
  font-weight: 600;
  transform: translateX(-50%);
}

/* Two-column layout */
.demo-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

/* Sensor panel */
.demo-sensors {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.demo-sensors-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.sensor-row {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}
.sensor-row:last-child { border-bottom: none; }

.sensor-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.sensor-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.sensor-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sensor-readout {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sensor-val {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  min-width: 90px;
  text-align: right;
}

.sensor-status {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 2px 7px;
  border-radius: 4px;
}
.status-ok   { background: rgba(0,201,167,0.12); color: var(--accent); }
.status-warn { background: rgba(245,158,11,0.12); color: var(--warn); }
.status-alert{ background: rgba(239,68,68,0.12); color: #ef4444; animation: status-blink 0.8s ease-in-out infinite; }

@keyframes status-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.sensor-chart {
  display: block;
  width: 100%;
  height: 56px;
  border-radius: 4px;
}

/* Agent panel */
.agent-panel {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  position: sticky;
  top: 20px;
}

.agent-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.agent-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.agent-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid rgba(0,201,167,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.agent-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(0,201,167,0.2);
  padding: 2px 7px;
  border-radius: 4px;
}

.agent-log {
  padding: 12px;
  min-height: 220px;
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.agent-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 180px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  padding: 16px;
}

.agent-msg {
  display: flex;
  gap: 10px;
  font-size: 12px;
  line-height: 1.5;
  padding: 8px 10px;
  border-radius: 8px;
  border-left: 3px solid transparent;
  background: var(--bg-card);
  animation: msg-in 0.3s ease;
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.agent-msg--ok    { border-left-color: var(--accent); }
.agent-msg--warn  { border-left-color: var(--warn); }
.agent-msg--alert { border-left-color: #ef4444; background: rgba(239,68,68,0.06); }

.agent-ts {
  font-family: 'Courier New', monospace;
  font-size: 10px;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Anomaly callout */
.anomaly-callout {
  margin: 0 12px 12px;
  padding: 12px;
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 8px;
  font-size: 12px;
  animation: msg-in 0.4s ease;
}

.anomaly-callout.hidden { display: none; }

.callout-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #ef4444;
  margin-bottom: 6px;
}

.callout-body {
  color: var(--text);
  margin-bottom: 4px;
}

.callout-time {
  color: var(--text-muted);
  font-size: 11px;
}

/* Shift report card */
.shift-card-wrapper {
  max-width: 1100px;
  margin: 32px auto 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.shift-card-wrapper.visible {
  opacity: 1;
  pointer-events: all;
}

.shift-toggle-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  font-family: var(--font-body);
  margin-bottom: 12px;
  transition: border-color 0.15s, color 0.15s;
}
.shift-toggle-btn:hover { border-color: var(--accent); color: var(--accent); }

.shift-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s ease;
}
.shift-card.expanded { max-height: 600px; }

.shift-card-placeholder {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px;
  color: var(--text-muted);
  font-size: 13px;
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.report-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.report-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(0,201,167,0.2);
  padding: 2px 8px;
  border-radius: 4px;
}

.report-body {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}

.report-section {
  padding: 20px;
  border-right: 1px solid var(--border);
}
.report-section:last-child { border-right: none; }

.report-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.report-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.report-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text);
}

.report-row span:first-child {
  color: var(--text-muted);
}

.anomaly-row {
  background: rgba(239,68,68,0.05);
  padding: 4px 6px;
  border-radius: 4px;
  margin: -4px -6px;
}

.ok-tag {
  background: rgba(0,201,167,0.12);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
}

.warn-tag {
  background: rgba(239,68,68,0.12);
  color: #ef4444;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
}

.report-suggestion {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  background: var(--bg-card);
  padding: 10px;
  border-radius: 6px;
  border-left: 3px solid var(--accent);
}

/* Report Request Bar */
.report-request-bar {
  max-width: 1100px;
  margin: 0 auto;
}

.report-request-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
}

.report-request-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.report-request-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #0e1419;
  border: none;
  border-radius: 7px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: opacity 0.15s;
}
.report-request-btn:hover { opacity: 0.88; }
.report-request-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.report-response {
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 12px;
}
.report-response.hidden { display: none; }
.report-response .resp-row { display: flex; justify-content: space-between; padding: 4px 0; }
.report-response .resp-label { color: var(--text-muted); }
.report-response .resp-value { font-weight: 600; color: var(--text); }
.report-response .ai-summary { margin-top: 10px; padding: 10px; background: var(--bg-card); border-radius: 6px; border-left: 3px solid var(--accent); color: var(--text-muted); line-height: 1.6; }
.report-response .db-badge { display: inline-block; font-size: 10px; padding: 2px 6px; border-radius: 3px; background: rgba(0,201,167,0.12); color: var(--accent); font-weight: 700; }

/* CTA */
.demo-cta {
  margin-top: 64px;
  padding: 48px;
  background: linear-gradient(135deg, rgba(0,201,167,0.06), rgba(96,165,250,0.04));
  border-top: 1px solid rgba(0,201,167,0.15);
  border-bottom: 1px solid var(--border);
}

.cta-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-text h3 {
  font-family: var(--font-head);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.cta-text p {
  font-size: 15px;
  color: var(--text-muted);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #0e1419;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition: opacity 0.15s, transform 0.15s;
}
.cta-btn:hover { opacity: 0.9; transform: translateY(-1px); }

/* Demo responsive */
@media (max-width: 900px) {
  .demo-section { padding: 64px 24px 0; }
  .demo-layout { grid-template-columns: 1fr; }
  .agent-panel { position: static; }
  .report-body { grid-template-columns: 1fr; }
  .report-section { border-right: none; border-bottom: 1px solid var(--border); }
  .report-section:last-child { border-bottom: none; }
  .cta-inner { flex-direction: column; text-align: center; }
  .anomaly-marker { display: none; }
}

/* ── Auto Shift Report Section ───────────────────────────────────────────── */

.auto-report-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 0 0;
}

.auto-report-intro {
  margin-bottom: 32px;
}

.auto-report-heading {
  font-family: var(--font-head);
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 700;
  letter-spacing: -0.6px;
  margin: 10px 0 14px;
}

.auto-report-body {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.7;
}

.auto-report-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.generate-report-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--accent);
  color: #0e1419;
  border: none;
  border-radius: 9px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  transition: opacity 0.15s, transform 0.15s;
}
.generate-report-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.generate-report-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.report-thinking {
  display: flex;
  align-items: center;
  gap: 6px;
}
.report-thinking.hidden { display: none; }

.report-thinking-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: reportBlink 1.2s ease-in-out infinite;
}
.report-thinking-dot:nth-child(2) { animation-delay: 0.2s; }
.report-thinking-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes reportBlink {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

.report-thinking-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* Full shift report document */
.full-shift-report {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 48px;
}
.full-shift-report.hidden { display: none; }

.fsr-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  gap: 12px;
  flex-wrap: wrap;
}

.fsr-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fsr-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0,201,167,0.2);
  padding: 3px 10px;
  border-radius: 4px;
}

.fsr-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color 0.15s, color 0.15s;
}
.fsr-action-btn:hover { border-color: var(--accent); color: var(--accent); }
.fsr-action-btn--primary {
  background: var(--accent);
  border-color: transparent;
  color: #0e1419;
}
.fsr-action-btn--primary:hover { opacity: 0.88; color: #0e1419; border-color: transparent; }

/* Document itself — white-card, plant-document feel */
.fsr-document {
  background: #ffffff;
  color: #1a1f2e;
  font-family: 'Inter', sans-serif;
}

.fsr-doc-header {
  padding: 24px 28px 20px;
  border-bottom: 2px solid #e4e8f0;
  background: #f8fafc;
}

.fsr-doc-title-row {
  margin-bottom: 16px;
}

.fsr-doc-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #0f172a;
  font-family: 'Sora', sans-serif;
  margin-bottom: 4px;
}

.fsr-doc-subtitle {
  font-size: 11px;
  color: #64748b;
  letter-spacing: 0.3px;
}

.fsr-doc-meta-grid {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.fsr-doc-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fsr-meta-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #94a3b8;
  text-transform: uppercase;
}

.fsr-meta-value {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  font-family: 'Courier New', monospace;
}

.fsr-doc-body {
  padding: 0;
}

.fsr-section {
  padding: 20px 28px;
  border-bottom: 1px solid #e4e8f0;
}
.fsr-section:last-child { border-bottom: none; }

.fsr-section-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* KPI grid */
.fsr-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.fsr-kpi {
  padding: 12px 14px;
  background: #f1f5f9;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.fsr-kpi-value {
  font-size: 18px;
  font-weight: 800;
  font-family: 'Sora', sans-serif;
  letter-spacing: -0.5px;
  color: #0f172a;
  margin-bottom: 3px;
}

.fsr-kpi-label {
  font-size: 10px;
  color: #64748b;
  font-weight: 500;
}

.fsr-kpi-good { color: #059669; }
.fsr-kpi-warn { color: #d97706; }

/* Anomaly table */
.fsr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 10px;
}

.fsr-table th {
  text-align: left;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #64748b;
  text-transform: uppercase;
  padding: 6px 10px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}

.fsr-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: top;
}

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

.fsr-mono {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: #475569;
}

.fsr-status {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 3px;
}

.fsr-status-resolved {
  background: rgba(5,150,105,0.1);
  color: #059669;
}

.fsr-status-closed {
  background: rgba(100,116,139,0.1);
  color: #475569;
}

.fsr-anomaly-summary {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #059669;
  font-weight: 600;
  padding: 6px 10px;
  background: rgba(5,150,105,0.06);
  border-radius: 5px;
  border: 1px solid rgba(5,150,105,0.15);
}

/* Recipe drift */
.fsr-drift-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fsr-drift-item {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: #334155;
  line-height: 1.65;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 6px;
  border-left: 3px solid #f59e0b;
}

.fsr-drift-idx {
  flex-shrink: 0;
  font-weight: 700;
  color: #94a3b8;
  font-size: 11px;
  padding-top: 1px;
}

/* Action list */
.fsr-action-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
}

.fsr-action-list li {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: #334155;
  line-height: 1.6;
  padding: 8px 12px;
  background: #f8fafc;
  border-radius: 5px;
  position: relative;
  padding-left: 28px;
}

.fsr-action-list li::before {
  content: '→';
  position: absolute;
  left: 10px;
  color: #00c9a7;
  font-weight: 700;
}

.fsr-code {
  background: #e2e8f0;
  color: #475569;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 3px;
}

/* Document footer */
.fsr-doc-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 14px 28px;
  background: #f1f5f9;
  border-top: 2px solid #e4e8f0;
  gap: 20px;
  flex-wrap: wrap;
}

.fsr-footer-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fsr-footer-brand {
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.3px;
}

.fsr-footer-tagline {
  font-size: 10px;
  color: #94a3b8;
}

.fsr-footer-ts {
  font-size: 10px;
  color: #94a3b8;
  font-family: 'Courier New', monospace;
}

/* Demo CTA row */
.demo-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 64px;
}

/* Responsive — auto report section */
@media (max-width: 900px) {
  .fsr-kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .fsr-doc-meta-grid { gap: 16px; }
  .fsr-toolbar { flex-direction: column; align-items: flex-start; }
  .fsr-doc-header, .fsr-section, .fsr-doc-footer { padding-left: 16px; padding-right: 16px; }
  .fsr-table { font-size: 11px; }
  .fsr-table th, .fsr-table td { padding: 7px 6px; }
}

@media (max-width: 600px) {
  .fsr-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-cta-row { grid-template-columns: 1fr; }
  .fsr-doc-title { font-size: 14px; }
}

/* Closing */
.closing {
  padding: 100px 48px;
  border-top: 1px solid var(--border);
}

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

.closing-tagline {
  font-family: var(--font-head);
  font-size: clamp(24px, 3.5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 28px;
}

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

.closing-meta {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.meta-label {
  font-weight: 600;
  color: var(--text);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Footer */
.footer {
  padding: 40px 48px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding: 60px 24px; }
  .hero-visual { display: none; }
  .hero-actions { flex-wrap: wrap; }
  .workflow { grid-template-columns: 1fr; }
  .workflow-arrow { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .how-it-works, .features, .closing { padding: 64px 24px; }
  .closing-meta { gap: 20px; }
  .navbar { padding: 16px 24px; }
}

@media (max-width: 480px) {
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .stat-divider { display: none; }
}