/* ═══════════════════════════════════════════════
   VEP Manifesto — /why
   Dark theme, typography-first, scroll-driven
   ═══════════════════════════════════════════════ */

:root {
  --bg: #060608;
  --bg2: #0a0a0f;
  --line: rgba(255,255,255,0.08);
  --line-bright: rgba(255,255,255,0.2);
  --accent: #5b8def;
  --accent-glow: rgba(91,141,239,0.4);
  --surface: rgba(255,255,255,0.03);
  --text: #f1f5f9;
  --text2: rgba(255,255,255,0.70);
  --text3: rgba(255,255,255,0.58);
  --danger: #f43f5e;
  --success: #4ade80;
  --warning: #fbbf24;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── TOPBAR ─── */

/* ─── SCROLL PROGRESS ─── */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--success));
  z-index: 200;
  transition: width 0.1s linear;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(6,6,8,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text);
  text-decoration: none;
}

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

.brand-sep {
  color: var(--text3);
  font-weight: 300;
}

.brand-sub {
  font-size: 13px;
  color: var(--text3);
  font-weight: 400;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-link {
  font-size: 13px;
  color: var(--text2);
  text-decoration: none;
  transition: color 0.2s;
}

.topbar-link:hover { color: var(--text); }

.top-cta {
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.top-cta:hover { opacity: 0.85; }

/* ─── SECTION DOTS ─── */

.section-dots {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--text3);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  padding: 0;
}

.dot.active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.3);
}

.dot:hover {
  border-color: var(--text);
}

/* ─── SECTIONS (COMMON) ─── */

.section {
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 80px 0;
  position: relative;
}

.section-hero {
  min-height: 100vh;
}

/* Subtle gradient dividers between sections */
.section + .section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-bright), transparent);
}

/* Alternating backgrounds for visual rhythm */
.section-shift { background: var(--bg); }
.section-problem { background: var(--bg2); }

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}

.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 0;
  border-bottom: 1px solid rgba(91,141,239,0.2);
}

.section-title {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 40px;
  letter-spacing: -0.02em;
}

/* Visual emphasis on key words */
.section-title strong, .section-title em {
  color: var(--accent);
  font-style: normal;
}

.section-body {
  font-size: 18px;
  color: var(--text2);
  line-height: 1.7;
  max-width: 720px;
}

.key-line {
  font-size: clamp(20px, 3.5vw, 28px);
  font-style: italic;
  color: var(--accent);
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  margin: 48px 0;
  line-height: 1.4;
}

/* ─── REVEAL ANIMATIONS ─── */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }

.reveal-left {
  transform: translateX(-40px) translateY(0);
}
.reveal-left.visible {
  transform: translateX(0) translateY(0);
}

.reveal-right {
  transform: translateX(40px) translateY(0);
}
.reveal-right.visible {
  transform: translateX(0) translateY(0);
}

/* ═══ SECTION 1: HERO ═══ */

.section-hero {
  text-align: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.section-hero .container {
  position: relative;
  z-index: 1;
}

/* Subtle background grid */
.section-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(91,141,239,0.08) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Gradient glow behind hero */
.section-hero::after {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(91,141,239,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-title {
  font-size: clamp(36px, 7vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 28px;
  background: linear-gradient(135deg, #fff 0%, #5b8def 50%, #4ade80 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ─── Hero Stats Bar ─── */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 48px;
  padding: 20px 32px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(91,141,239,0.15);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 40px rgba(91,141,239,0.06), inset 0 1px 0 rgba(255,255,255,0.04);
}

.stat-item {
  text-align: center;
  padding: 0 24px;
}

.stat-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.stat-number {
  font-size: 36px;
  font-weight: 800;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  color: var(--accent);
  line-height: 1;
}

.stat-unit {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.7;
}

.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text3);
  margin-top: 6px;
  font-weight: 500;
}

.stat-sep {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.1);
}

.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 22px);
  color: var(--text2);
  max-width: 640px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

.scroll-hint {
  display: inline-block;
  font-size: 14px;
  color: var(--text3);
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.scroll-hint:hover { color: var(--accent); }

.arrow-down {
  display: inline-block;
  animation: bounce-arrow 2s infinite;
}

@keyframes bounce-arrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ═══ SECTION 2: SHIFT ═══ */

.split-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
}

.panel-header {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text3);
  margin-bottom: 24px;
  font-weight: 600;
}

.panel-desc {
  font-size: 14px;
  color: var(--text2);
  margin-top: 24px;
  line-height: 1.5;
}

/* Flowchart (Old World) */
.flowchart { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.flow-node {
  background: rgba(244,63,94,0.1);
  border: 1px solid rgba(244,63,94,0.3);
  padding: 8px 20px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 12px;
  color: var(--danger);
}
.flow-node.small { padding: 6px 14px; font-size: 11px; }
.flow-arrow { color: var(--text3); font-size: 14px; }
.flow-branch { display: flex; gap: 24px; margin: 4px 0; }
.flow-path { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.flow-label { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: 1px; }

/* Status badges on panels */
.panel-old::after {
  content: 'LEGACY';
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(244,63,94,0.15);
  color: var(--danger);
  border: 1px solid rgba(244,63,94,0.2);
}

.panel-new::after {
  content: 'VEP';
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(91,141,239,0.15);
  color: var(--accent);
  border: 1px solid rgba(91,141,239,0.2);
}

.panel-old, .panel-new {
  position: relative;
}

.panel-old {
  border-color: rgba(244,63,94,0.15);
}

.panel-new {
  border-color: rgba(91,141,239,0.2);
  background: rgba(91,141,239,0.03);
}

/* Brain Viz (New World) */
.brain-viz { position: relative; width: 200px; height: 200px; margin: 0 auto; }
.neuron-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 24px;
  position: relative;
  z-index: 2;
}
.neuron {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(91,141,239,0.2);
  border: 1px solid rgba(91,141,239,0.5);
  justify-self: center;
  animation: neuron-pulse 3s ease-in-out infinite;
}
.neuron:nth-child(2) { animation-delay: 0.3s; }
.neuron:nth-child(3) { animation-delay: 0.6s; }
.neuron:nth-child(4) { animation-delay: 0.9s; }
.neuron:nth-child(6) { animation-delay: 0.4s; }
.neuron:nth-child(7) { animation-delay: 0.7s; }
.neuron:nth-child(8) { animation-delay: 0.2s; }
.neuron:nth-child(9) { animation-delay: 0.5s; }
.center-neuron {
  background: rgba(91,141,239,0.5);
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

@keyframes neuron-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

.neuron-connections {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.neuron-connections line {
  stroke: rgba(91,141,239,0.2);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  animation: dash-flow 2s linear infinite;
}

@keyframes dash-flow {
  to { stroke-dashoffset: -8; }
}

/* ═══ SECTION 3: PROBLEM ═══ */

.failure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.failure-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.failure-card:hover {
  border-color: rgba(244,63,94,0.3);
  transform: translateY(-2px);
}

.failure-visual {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.gap-ring {
  position: relative;
  width: 80px;
  height: 80px;
}

.gap-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.gap-ring-fill {
  transition: stroke-dashoffset 1.5s var(--ease);
}

.gap-ring.animated .gap-ring-fill {
  stroke-dashoffset: var(--target-offset, 0);
}

.gap-percent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  font-weight: 700;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  color: var(--text);
}

.failure-card h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.failure-short {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 12px;
}

.failure-consequence {
  font-size: 12px;
  color: var(--text3);
  padding: 8px 12px;
  background: rgba(244,63,94,0.06);
  border-radius: 6px;
  border: 1px solid rgba(244,63,94,0.1);
}

.consequence-icon {
  margin-right: 4px;
}

/* ═══ SECTION 4: REGULATION ═══ */

.reg-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 80px;
  margin-bottom: 24px;
}

.reg-timeline::before {
  content: '';
  position: absolute;
  left: 36px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--line));
}

.reg-card {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 0;
  position: relative;
}

.reg-year {
  position: absolute;
  left: -80px;
  width: 56px;
  text-align: right;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  padding-top: 2px;
}

.reg-card::before {
  content: '';
  position: absolute;
  left: -47px;
  top: 28px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* Pulsing dot on current year */
.reg-card:last-child::before {
  animation: reg-pulse 2s infinite;
}

@keyframes reg-pulse {
  0%, 100% { box-shadow: 0 0 8px var(--accent-glow); }
  50% { box-shadow: 0 0 16px var(--accent-glow), 0 0 24px rgba(91,141,239,0.2); }
}

.reg-card:last-child {
  background: rgba(91,141,239,0.04);
  border-radius: 8px;
  padding: 24px 0 24px 16px;
  border: 1px solid rgba(91,141,239,0.15);
}

.reg-content h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.reg-content p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
}

/* ═══ SECTION 5: ARCHITECTURE ═══ */

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pillar-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  cursor: pointer;
  transition: border-color 0.3s, transform 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  border-color: rgba(91,141,239,0.3);
  transform: translateY(-2px);
}

.pillar-card.expanded {
  border-color: var(--accent);
}

.pillar-number {
  font-size: 12px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 600;
}

.pillar-icon-wrap {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
}

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

.pillar-card h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.pillar-summary {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.5;
  margin-bottom: 14px;
}

.pillar-visual-bar {
  margin-top: auto;
}

.pv-bar-track {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}

.pv-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 1.5s var(--ease);
}

.pv-green { background: linear-gradient(90deg, var(--success), #22d3ee); }
.pv-blue { background: linear-gradient(90deg, var(--accent), #818cf8); }
.pv-purple { background: linear-gradient(90deg, #8b5cf6, #c084fc); }
.pv-yellow { background: linear-gradient(90deg, var(--warning), #f97316); }

.pv-bar-label {
  font-size: 10px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ═══ CAPABILITY BARS ═══ */

.capability-bars {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cap-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cap-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text3);
  width: 140px;
  flex-shrink: 0;
  text-align: right;
}

.cap-track {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cap-fill {
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: width 1.5s var(--ease);
  min-width: 40px;
}

.cap-fill span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cap-old {
  background: linear-gradient(90deg, rgba(244,63,94,0.3), rgba(244,63,94,0.15));
  color: var(--danger);
  border: 1px solid rgba(244,63,94,0.2);
}

.cap-new {
  background: linear-gradient(90deg, rgba(91,141,239,0.3), rgba(74,222,128,0.2));
  color: var(--success);
  border: 1px solid rgba(91,141,239,0.15);
}

/* ═══ COMPARISON TABLE ═══ */

.section-compare {
  background: var(--bg2);
}

.compare-table {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.compare-header {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--line);
}

.compare-col-label {
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.compare-col-label.compare-bad {
  color: var(--danger);
  opacity: 0.8;
}

.compare-col-label.compare-good {
  color: var(--success);
}

.compare-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.2s;
}

.compare-row:last-child {
  border-bottom: none;
}

.compare-row:hover {
  background: rgba(255,255,255,0.03);
}

.compare-row:hover .compare-check {
  text-shadow: 0 0 8px rgba(74,222,128,0.5);
}

.compare-row:hover .compare-x {
  text-shadow: 0 0 8px rgba(244,63,94,0.5);
}

.compare-feature {
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.compare-cell {
  padding: 14px 20px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.compare-cell.compare-bad {
  color: var(--text3);
}

.compare-cell.compare-good {
  color: var(--text2);
}

.compare-x {
  color: var(--danger);
  font-weight: 700;
  font-size: 14px;
}

.compare-check {
  color: var(--success);
  font-weight: 700;
  font-size: 14px;
}

/* ═══ HOW IT WORKS FLOW ═══ */

.section-flow {
  background: var(--bg2);
}

.flow-pipeline {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
  overflow-x: auto;
  padding: 20px 0;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 120px;
  flex-shrink: 0;
}

.flow-step-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
}

.flow-step-icon svg {
  width: 100%;
  height: 100%;
}

.flow-step-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.flow-step-detail {
  font-size: 11px;
  color: var(--text3);
  max-width: 120px;
}

.flow-connector {
  display: flex;
  align-items: center;
  padding-top: 16px;
  min-width: 40px;
}

.flow-connector-line {
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), rgba(91,141,239,0.3));
}

.flow-connector-arrow {
  font-size: 8px;
  color: var(--accent);
  opacity: 0.6;
}

/* Flow metrics */
.flow-metrics {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.flow-metric {
  text-align: center;
}

.flow-metric-value {
  font-size: 42px;
  font-weight: 800;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  color: var(--text);
  line-height: 1;
}

.fm-unit {
  font-size: 18px;
  font-weight: 600;
  color: var(--text3);
}

.flow-metric-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text3);
  margin-top: 6px;
}

/* ═══ SECTION 6: REAL ACTIONS ═══ */

.action-examples {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.action-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
}

.terminal {
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
  font-size: 11px;
  color: var(--text3);
  margin-left: 8px;
}

/* Live indicator */
.terminal-title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  margin-right: 6px;
  animation: live-blink 1.5s ease-in-out infinite;
  vertical-align: middle;
}

@keyframes live-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.terminal-body {
  padding: 16px;
  position: relative;
}

/* Terminal status bar */
.terminal-body::after {
  content: 'AUDIT TRAIL ACTIVE';
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--success);
  opacity: 0.5;
}

.log-line {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text2);
}

.log-line.highlight {
  color: var(--text);
  font-weight: 500;
}

.log-time {
  color: var(--text3);
}

.log-system {
  color: var(--text3);
}

.log-action {
  color: var(--accent);
}

.log-approved {
  color: var(--success);
}

.log-check {
  color: var(--success);
  font-weight: 700;
}

.log-meta {
  color: var(--text3);
  font-size: 12px;
}

/* ═══ SCALE METRICS ═══ */

.section-scale {
  padding: 60px 0;
}

.scale-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.scale-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.scale-card.sc-highlight {
  border-color: rgba(74,222,128,0.2);
  background: rgba(74,222,128,0.03);
}

.scale-value {
  font-size: 40px;
  font-weight: 800;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}

.sc-highlight .scale-value {
  color: var(--success);
}

.scale-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text3);
  margin-bottom: 12px;
}

.scale-bar {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}

.scale-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), rgba(91,141,239,0.5));
  border-radius: 2px;
  transition: width 1.5s var(--ease);
}

.sf-green {
  background: linear-gradient(90deg, var(--success), rgba(74,222,128,0.5));
}

/* ═══ TECH STACK ═══ */

.section-stack {
  background: var(--bg2);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stack-item {
  text-align: center;
  padding: 28px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.stack-item:hover {
  border-color: rgba(91,141,239,0.2);
  transform: translateY(-2px);
}

.stack-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.si-blue {
  background: rgba(91,141,239,0.12);
  color: var(--accent);
}

.si-green {
  background: rgba(74,222,128,0.12);
  color: var(--success);
}

.si-purple {
  background: rgba(139,92,246,0.12);
  color: #a78bfa;
}

.si-yellow {
  background: rgba(251,191,36,0.12);
  color: var(--warning);
}

.stack-label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.stack-detail {
  font-size: 12px;
  color: var(--text3);
}

/* ═══ SECTION 7: CTA ═══ */

.section-cta {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(91,141,239,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text2);
  margin-bottom: 40px;
}

.cta-buttons {
  margin-bottom: 24px;
}

.btn-primary {
  display: inline-block;
  padding: 14px 40px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.cta-badges {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.cta-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text2);
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,0.02);
}

.cta-links {
  font-size: 14px;
  color: var(--text3);
}

.cta-links a {
  color: var(--text2);
  text-decoration: none;
  transition: color 0.2s;
}

.cta-links a:hover { color: var(--accent); }

.link-sep {
  margin: 0 8px;
  color: var(--text3);
}

/* ─── FOOTER ─── */

.footer {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  color: var(--text3);
  flex-wrap: wrap;
}

.footer-inner a {
  color: var(--text3);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-inner a:hover { color: var(--text2); }

/* ═══ RESPONSIVE ═══ */

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .container { padding: 0 20px; }

  .split-panel { grid-template-columns: 1fr; }
  .failure-grid { grid-template-columns: 1fr; }
  .pillar-grid { grid-template-columns: 1fr 1fr; }
  .scale-grid { grid-template-columns: 1fr 1fr; }
  .stack-grid { grid-template-columns: 1fr 1fr; }

  .section-dots { display: none; }

  .topbar-link { display: none; }

  .brand-sub { display: none; }

  .reg-timeline { padding-left: 60px; }
  .reg-year { left: -60px; width: 40px; font-size: 12px; }
  .reg-card::before { left: -27px; }
  .reg-timeline::before { left: 16px; }

  .log-line { font-size: 11px; }
  .terminal-body { padding: 12px; overflow-x: auto; }

  .hero-stats { flex-direction: column; gap: 16px; padding: 16px 20px; }
  .stat-sep { width: 80%; height: 1px; }
  .stat-number { font-size: 28px; }

  .compare-header, .compare-row { grid-template-columns: 1fr; }
  .compare-col-label:first-child { display: none; }
  .compare-feature { background: rgba(255,255,255,0.02); }

  .flow-pipeline { flex-wrap: wrap; justify-content: center; gap: 8px; }
  .flow-connector { display: none; }
  .flow-metrics { flex-direction: column; gap: 24px; }

  .cta-badges { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 32px; }
  .section-title { font-size: 24px; margin-bottom: 32px; }
  .key-line { font-size: 18px; padding: 12px 16px; }
  .panel { padding: 20px; }
  .failure-card { padding: 20px; }
  .pillar-card { padding: 20px; }
  .pillar-grid { grid-template-columns: 1fr; }
  .scale-grid { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: 1fr; }
  .cap-row { flex-direction: column; align-items: flex-start; }
  .cap-label { width: auto; text-align: left; }
}
