/* ============================================
   Third Level IT — Main Stylesheet
   Dark, technical, premium aesthetic
   ============================================ */

/* --- Design Tokens --- */
:root {
  --bg-deep: #0a0e17;
  --bg-surface: #111827;
  --bg-card: #151d2e;
  --bg-card-hover: #1a2540;
  --bg-code: #0d1117;

  --border: #1e293b;
  --border-subtle: #162032;
  --border-glow-cyan: rgba(0, 229, 255, 0.3);
  --border-glow-amber: rgba(255, 179, 0, 0.25);

  --cyan: #00e5ff;
  --cyan-dim: rgba(0, 229, 255, 0.12);
  --cyan-glow: rgba(0, 229, 255, 0.4);
  --amber: #ffb300;
  --amber-dim: rgba(255, 179, 0, 0.12);
  --green: #00e676;
  --green-dim: rgba(0, 230, 118, 0.12);
  --red: #ff5252;
  --red-dim: rgba(255, 82, 82, 0.12);

  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #808fa3;
  --text-bright: #f8fafc;

  --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  --container-max: 1200px;
  --section-pad: 120px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  background: var(--bg-deep);
  overflow-x: hidden;
}

/* Subtle grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 41, 59, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 41, 59, 0.25) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

::selection {
  background: var(--cyan-dim);
  color: var(--cyan);
}

a { color: var(--cyan); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--text-bright); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-bright);
  line-height: 1.2;
  font-weight: 700;
}

img, video { max-width: 100%; display: block; }

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--bg-code);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--cyan);
}

strong { color: var(--text-primary); }

/* --- Particle Canvas --- */
#particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* --- Section --- */
.section {
  padding: var(--section-pad) 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-sub {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 14, 23, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}

.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(10, 14, 23, 0.95);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-bright);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--cyan), #0088cc);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--bg-deep);
  font-family: var(--font-mono);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #0088cc);
  color: var(--bg-deep);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.4);
  transform: translateY(-1px);
  color: var(--bg-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn-nav {
  background: var(--cyan-dim);
  color: var(--cyan);
  padding: 8px 16px;
  font-size: 0.8125rem;
  border-radius: var(--radius-xs);
}

.btn-nav:hover {
  background: rgba(0, 229, 255, 0.2);
  color: var(--cyan);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 24px 80px;
  position: relative;
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--bg-deep));
  pointer-events: none;
}

.hero-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}

.hero-content { z-index: 2; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--cyan-dim);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--cyan);
  font-family: var(--font-mono);
  margin-bottom: 24px;
}

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.4); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(0, 229, 255, 0); }
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--text-bright) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}


.hero-credit {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.hero-credit a {
  color: var(--text-secondary);
}

/* --- Terminal --- */
.hero-terminal-wrap {
  position: relative;
  z-index: 2;
}

.terminal {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 229, 255, 0.05),
    0 4px 24px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(0, 229, 255, 0.06);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(17, 24, 39, 0.8);
  border-bottom: 1px solid var(--border);
}

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

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

.terminal-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.terminal-body {
  padding: 20px;
  min-height: 320px;
  max-height: 400px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.8;
}

.terminal-body::-webkit-scrollbar {
  width: 4px;
}

.terminal-body::-webkit-scrollbar-track {
  background: transparent;
}

.terminal-body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.terminal-line {
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal-prompt {
  color: var(--text-muted);
}

/* Terminal text colors */
.t-cyan { color: var(--cyan); }
.t-green { color: var(--green); }
.t-amber { color: var(--amber); }
.t-red { color: var(--red); }
.t-muted { color: var(--text-muted); }
.t-bright { color: var(--text-bright); }
.t-dim { color: var(--text-secondary); }

/* Typing cursor */
.typing-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--cyan);
  animation: cursor-blink 1s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 2px;
}

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

/* ============================================
   VIDEO
   ============================================ */
.section-video {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.video-container {
  max-width: 900px;
  margin: 0 auto 48px;
}

.video-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-code);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  aspect-ratio: 16 / 9;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background:
    radial-gradient(ellipse at center, rgba(10, 14, 23, 0.5) 0%, rgba(10, 14, 23, 0.85) 100%);
  cursor: pointer;
  transition: opacity var(--transition);
  /* Grid pattern */
  background-image:
    radial-gradient(ellipse at center, rgba(10, 14, 23, 0.4) 0%, rgba(10, 14, 23, 0.85) 100%),
    linear-gradient(rgba(30, 41, 59, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 41, 59, 0.3) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
}

.video-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.video-play-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(0, 229, 255, 0.4);
  background: rgba(0, 229, 255, 0.1);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.15);
}

.video-play-btn:hover {
  background: rgba(0, 229, 255, 0.2);
  box-shadow: 0 0 50px rgba(0, 229, 255, 0.3);
  transform: scale(1.05);
}

.video-play-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.video-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.video-stat {
  text-align: center;
}

.video-stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-bright);
  font-family: var(--font-mono);
}

.video-stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================
   CAPABILITIES
   ============================================ */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cap-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.cap-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, transparent, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: background var(--transition);
  pointer-events: none;
}

.cap-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: rgba(0, 229, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 24px rgba(0, 229, 255, 0.06);
}

.cap-card:hover::before {
  background: linear-gradient(135deg, var(--cyan), transparent 60%);
}

.cap-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--cyan);
}

.cap-icon svg {
  width: 32px;
  height: 32px;
}

.cap-card h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.cap-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

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

.cap-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 4px 10px;
  background: var(--cyan-dim);
  color: var(--cyan);
  border-radius: 100px;
  font-weight: 500;
}

/* ============================================
   HOW IT WORKS — PIPELINE
   ============================================ */
.section-how-it-works {
  background: var(--bg-deep);
}

.pipeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

.pipeline-stage {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  margin-bottom: 0;
  position: relative;
}

.stage-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.stage-num {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 2px solid var(--border);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-secondary);
  position: relative;
  z-index: 2;
  transition: all var(--transition);
}

.stage-num.star {
  background: linear-gradient(135deg, var(--amber), #cc8800);
  border-color: var(--amber);
  color: var(--bg-deep);
  font-size: 1rem;
  box-shadow: 0 0 20px rgba(255, 179, 0, 0.3);
}

.pipeline-stage.active .stage-num {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 16px var(--cyan-glow);
}

.stage-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(to bottom, var(--border) 0%, transparent 100%);
  min-height: 40px;
}

.stage-content {
  padding-bottom: 48px;
}

.stage-header {
  margin-bottom: 12px;
}

.stage-header h3 {
  font-size: 1.375rem;
  font-weight: 700;
}

.stage-content > p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
}

.stage-detail {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  line-height: 1.7;
}

/* Stage Visuals */
.stage-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin: 16px 0;
}

/* Chat Mock */
.chat-input-mock {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cyan);
  background: var(--cyan-dim);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
}

.chat-text {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--text-primary);
}

/* Routing Visualization */
.stage-routing {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.route-keywords {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.route-kw {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  padding: 4px 12px;
  border-radius: var(--radius-xs);
  font-weight: 500;
}

.route-kw.active-cisco { background: var(--green-dim); color: var(--green); }
.route-kw.active-forti { background: var(--cyan-dim); color: var(--cyan); }
.route-kw.active-proxmox { background: var(--amber-dim); color: var(--amber); }
.route-kw.active-wazuh { background: var(--red-dim); color: var(--red); }

.route-arrow {
  color: var(--text-muted);
  font-size: 1.25rem;
}

.route-dest {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  font-weight: 600;
  border: 1px solid;
}

.route-dest.cisco { background: var(--green-dim); color: var(--green); border-color: rgba(0, 230, 118, 0.2); }
.route-dest.forti { background: var(--cyan-dim); color: var(--cyan); border-color: rgba(0, 229, 255, 0.2); }
.route-dest.proxmox { background: var(--amber-dim); color: var(--amber); border-color: rgba(255, 179, 0, 0.2); }
.route-dest.wazuh { background: var(--red-dim); color: var(--red); border-color: rgba(255, 82, 82, 0.2); }

/* Collector Cards */
.stage-collectors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
}

.collector-card {
  background: var(--bg-code);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  overflow: hidden;
}

.collector-header {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

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

.collector-body {
  padding: 12px 14px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.collector-proto {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--cyan);
}

/* --- Stage 4: Anti-Fabrication Highlight --- */
.stage-highlight .stage-content {
  background: linear-gradient(135deg, rgba(255, 179, 0, 0.04), rgba(255, 179, 0, 0.01));
  border: 1px solid rgba(255, 179, 0, 0.15);
  border-radius: var(--radius);
  padding: 32px;
  margin-left: -32px;
  padding-left: 32px;
}

.stage-badge-trust {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--amber);
  background: var(--amber-dim);
  padding: 4px 12px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 8px;
}

.stage-highlight .stage-header h3 {
  color: var(--amber);
}

/* Anti-fab Rules */
.antifab-rules {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}

.antifab-rule {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.antifab-num {
  width: 28px;
  height: 28px;
  min-width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--amber-dim);
  color: var(--amber);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Comparison */
.antifab-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

.compare-col {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.compare-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 10px 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.compare-bad .compare-label {
  background: var(--red-dim);
  color: var(--red);
}

.compare-good .compare-label {
  background: var(--green-dim);
  color: var(--green);
}

.compare-terminal {
  background: var(--bg-code);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.8;
  border: 1px solid var(--border-subtle);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  min-height: 140px;
}

.tl {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compare-bad .compare-terminal {
  border-color: rgba(255, 82, 82, 0.15);
}

.compare-good .compare-terminal {
  border-color: rgba(0, 230, 118, 0.15);
}

/* Code block */
.stage-code-block {
  background: var(--bg-code);
  padding: 0;
  overflow: hidden;
}

.code-header {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 10px 16px;
  background: rgba(17, 24, 39, 0.8);
  border-bottom: 1px solid var(--border-subtle);
}

.stage-code-block pre {
  padding: 16px;
  margin: 0;
  overflow-x: auto;
}

.stage-code-block code {
  background: transparent;
  padding: 0;
  font-size: 0.8125rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* Analysis Mock */
.stage-analysis-mock {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.analysis-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

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

.analysis-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 120px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.analysis-desc {
  font-size: 0.875rem;
  color: var(--text-primary);
}

.analysis-risk {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-xs);
}

.analysis-risk.amber {
  background: var(--amber-dim);
  color: var(--amber);
}

/* Approval Mock */
.stage-approval-mock {
  padding: 0;
  background: transparent;
  border: none;
}

.approval-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.approval-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(17, 24, 39, 0.6);
  border-bottom: 1px solid var(--border-subtle);
}

.approval-status {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.approval-status.pending {
  color: var(--amber);
}

.approval-risk {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-xs);
}

.approval-risk.high {
  background: var(--red-dim);
  color: var(--red);
}

.approval-body {
  padding: 20px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.approval-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 12px;
  margin-bottom: 4px;
}

.approval-label:first-child {
  margin-top: 0;
}

.approval-cmd {
  display: block;
  font-size: 0.8125rem;
  background: var(--bg-code);
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  color: var(--green);
  margin-top: 4px;
}

.approval-actions {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--border-subtle);
}

.approval-btn {
  padding: 8px 20px;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid;
  transition: all var(--transition);
}

.approval-btn.approve {
  background: var(--green-dim);
  color: var(--green);
  border-color: rgba(0, 230, 118, 0.3);
}

.approval-btn.approve:hover {
  background: rgba(0, 230, 118, 0.2);
}

.approval-btn.deny {
  background: var(--red-dim);
  color: var(--red);
  border-color: rgba(255, 82, 82, 0.3);
}

.approval-btn.deny:hover {
  background: rgba(255, 82, 82, 0.2);
}

/* ============================================
   VISION
   ============================================ */
.section-vision {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.vision-timeline {
  max-width: 700px;
  margin: 0 auto 48px;
  position: relative;
}

/* Vertical connecting line */
.vision-timeline::before {
  content: '';
  position: absolute;
  left: 59px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(to bottom, var(--green), var(--cyan), var(--text-muted));
}

.vision-tier {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  margin-bottom: 40px;
  position: relative;
}

.vision-tier:last-child {
  margin-bottom: 0;
}

.vision-tier-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 4px;
}

.vision-tier-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid;
  position: relative;
  z-index: 1;
}

.vision-tier-marker.current .vision-tier-dot {
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.4);
}

.vision-tier-marker.next .vision-tier-dot {
  border-color: var(--cyan);
  background: var(--bg-surface);
}

.vision-tier-marker.future .vision-tier-dot {
  border-color: var(--text-muted);
  background: var(--bg-surface);
}

.vision-tier-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.vision-tier-marker.current .vision-tier-label { color: var(--green); }
.vision-tier-marker.next .vision-tier-label { color: var(--cyan); }
.vision-tier-marker.future .vision-tier-label { color: var(--text-muted); }

.vision-tier-content h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

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

.vision-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 500;
  transition: all var(--transition);
}

.vision-tag.active {
  background: var(--green-dim);
  border-color: rgba(0, 230, 118, 0.2);
  color: var(--green);
}

.vision-statement {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.vision-statement blockquote {
  font-size: 1.25rem;
  color: var(--text-primary);
  font-weight: 400;
  line-height: 1.7;
  font-style: italic;
  position: relative;
  padding: 32px 0;
}

.vision-statement blockquote::before {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, var(--cyan), transparent);
  margin: 0 auto 24px;
}

/* ============================================
   AUDIENCE
   ============================================ */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.audience-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
}

.audience-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.audience-card.accent-cyan:hover { border-color: rgba(0, 229, 255, 0.3); }
.audience-card.accent-amber:hover { border-color: rgba(255, 179, 0, 0.3); }
.audience-card.accent-green:hover { border-color: rgba(0, 230, 118, 0.3); }

.audience-icon-wrap {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
}

.audience-icon-wrap svg {
  width: 32px;
  height: 32px;
}

.accent-cyan .audience-icon-wrap { color: var(--cyan); }
.accent-amber .audience-icon-wrap { color: var(--amber); }
.accent-green .audience-icon-wrap { color: var(--green); }

.audience-card h3 {
  font-size: 1.125rem;
  margin-bottom: 16px;
}

.audience-card ul {
  list-style: none;
}

.audience-card li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.audience-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.accent-cyan li::before { background: var(--cyan); }
.accent-amber li::before { background: var(--amber); }
.accent-green li::before { background: var(--green); }

/* ============================================
   PROVEN IN PRODUCTION — Results Tabs
   ============================================ */
.section-results {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.results-window {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 229, 255, 0.05),
    0 4px 24px rgba(0, 0, 0, 0.4);
}

.results-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.results-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}

.results-tab:hover {
  color: var(--text-primary);
  background: rgba(0, 229, 255, 0.04);
}

.results-tab.active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
  background: rgba(0, 229, 255, 0.06);
}

.results-tab svg {
  flex-shrink: 0;
}

.results-panels {
  position: relative;
}

.results-panel {
  display: none;
  padding: 32px;
}

.results-panel.active {
  display: block;
}

.rp-header {
  margin-bottom: 20px;
}

.rp-header h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

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

.rp-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 600;
}

.rp-tag-red { background: var(--red-dim); color: var(--red); }
.rp-tag-cyan { background: var(--cyan-dim); color: var(--cyan); }
.rp-tag-green { background: var(--green-dim); color: var(--green); }
.rp-tag-amber { background: var(--amber-dim); color: var(--amber); }

.rp-body p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.rp-highlight {
  padding: 14px 20px;
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 24px;
}

.rp-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.rp-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.rp-detail-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rp-detail span:last-child {
  font-size: 0.875rem;
  color: var(--text-primary);
  font-weight: 500;
}

@media (max-width: 768px) {
  .results-tabs {
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .results-tab {
    padding: 12px 14px;
    font-size: 0.6875rem;
  }

  .results-panel {
    padding: 20px;
  }

  .rp-details {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   VIRP — The Network Trust Anchor
   ============================================ */
.section-virp {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.section-virp::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 1200px;
  background: radial-gradient(ellipse at center, rgba(0, 229, 255, 0.04) 0%, rgba(255, 179, 0, 0.02) 40%, transparent 70%);
  pointer-events: none;
}

/* VIRP Hero Header */
.virp-hero {
  text-align: center;
  margin-bottom: 64px;
}

.virp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--amber-dim);
  border: 1px solid rgba(255, 179, 0, 0.25);
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--amber);
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

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

.virp-headline {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-bright) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.virp-headline a {
  background: inherit;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: opacity var(--transition);
}

.virp-headline a:hover {
  opacity: 0.8;
}

.virp-subhead {
  font-size: 1.375rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* Problem Block */
.virp-problem {
  max-width: 820px;
  margin: 0 auto 64px;
}

.virp-problem-inner {
  background: var(--bg-card);
  border: 1px solid rgba(255, 82, 82, 0.2);
  border-left: 3px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 32px;
}

.virp-problem-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.virp-problem p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.virp-problem p:last-child {
  margin-bottom: 0;
}

.virp-problem-answer {
  font-size: 1.125rem;
  color: var(--text-bright);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

/* Section Titles */
.virp-section-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 8px;
  text-align: center;
}

.virp-section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 32px;
  text-align: center;
  line-height: 1.7;
}

/* Solution Section */
.virp-solution {
  max-width: 960px;
  margin: 0 auto 64px;
}

.virp-solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.virp-solution-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 16px;
}

.virp-solution-text > p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.virp-solution-specs {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.virp-spec {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-code);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
}

.virp-spec-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 80px;
}

.virp-spec-value {
  font-size: 0.875rem;
  color: var(--text-primary);
}

/* Appliance Diagram */
.virp-solution-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.virp-appliance-diagram {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.virp-appliance-box {
  width: 100%;
  background: var(--bg-code);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 229, 255, 0.08),
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(0, 229, 255, 0.06);
}

.virp-appliance-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), rgba(255, 179, 0, 0.05));
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: 0.15em;
}

.virp-appliance-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.virp-appliance-led.green {
  background: var(--green);
  box-shadow: 0 0 8px rgba(0, 230, 118, 0.5);
  animation: status-pulse 3s ease-in-out infinite;
}

.virp-appliance-led.amber {
  background: var(--amber);
  box-shadow: 0 0 8px rgba(255, 179, 0, 0.4);
}

.virp-appliance-body {
  padding: 4px 0;
}

.virp-appliance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

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

/* Appliance Connections */
.virp-appliance-connections {
  display: flex;
  justify-content: center;
  padding: 8px 0;
}

.virp-conn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.virp-conn-line {
  width: 2px;
  height: 24px;
  background: linear-gradient(to bottom, var(--cyan), var(--border));
}

.virp-conn-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* Device Row */
.virp-device-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
}

.virp-device {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-secondary);
}

.virp-device-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Channel Grid */
.virp-channels {
  max-width: 820px;
  margin: 0 auto 64px;
}

.virp-channel-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
}

.virp-channel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.virp-channel:hover {
  border-color: rgba(0, 229, 255, 0.2);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.virp-channel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(17, 24, 39, 0.5);
}

.virp-channel-observe .virp-channel-header {
  border-bottom-color: rgba(0, 230, 118, 0.15);
}

.virp-channel-intent .virp-channel-header {
  border-bottom-color: rgba(0, 229, 255, 0.15);
}

.virp-channel-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.virp-channel-observe .virp-channel-icon { color: var(--green); }
.virp-channel-intent .virp-channel-icon { color: var(--cyan); }

.virp-channel-name {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-bright);
}

.virp-channel-body {
  padding: 20px;
}

.virp-channel-role {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.virp-channel-observe .virp-channel-role { color: var(--green); }
.virp-channel-intent .virp-channel-role { color: var(--cyan); }

.virp-channel-body > p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.virp-channel-props {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.virp-prop {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.virp-prop-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.virp-prop-dot.green { background: var(--green); }
.virp-prop-dot.cyan { background: var(--cyan); }

/* Channel Separator */
.virp-channel-separator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  gap: 8px;
}

.virp-separator-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(to bottom, var(--border), var(--cyan), var(--border));
  min-height: 20px;
}

.virp-separator-lock {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--amber);
}

/* Trust Tiers */
.virp-tiers {
  max-width: 820px;
  margin: 0 auto 64px;
}

.virp-tier-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.virp-tier {
  display: flex;
  align-items: stretch;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all var(--transition);
}

.virp-tier:hover {
  transform: translateX(4px);
}

.virp-tier-indicator {
  width: 4px;
  flex-shrink: 0;
}

.virp-tier-green .virp-tier-indicator { background: var(--green); }
.virp-tier-yellow .virp-tier-indicator { background: var(--amber); }
.virp-tier-red .virp-tier-indicator { background: var(--red); }
.virp-tier-black .virp-tier-indicator { background: var(--text-muted); }

.virp-tier-content {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  flex: 1;
}

.virp-tier-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  min-width: 70px;
}

.virp-tier-green .virp-tier-label { color: var(--green); }
.virp-tier-yellow .virp-tier-label { color: var(--amber); }
.virp-tier-red .virp-tier-label { color: var(--red); }
.virp-tier-black .virp-tier-label { color: var(--text-muted); }

.virp-tier-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* VIRP Terminal */
.virp-results {
  max-width: 820px;
  margin: 0 auto 48px;
}

.virp-terminal {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 229, 255, 0.05),
    0 4px 24px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(0, 229, 255, 0.04);
}

.virp-terminal-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.8;
  max-height: 520px;
  overflow-y: auto;
}

.virp-terminal-body::-webkit-scrollbar {
  width: 4px;
}

.virp-terminal-body::-webkit-scrollbar-track {
  background: transparent;
}

.virp-terminal-body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

/* VIRP Stats */
.virp-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 820px;
  margin: 0 auto 64px;
}

.virp-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px 20px;
  text-align: center;
  transition: all var(--transition);
}

.virp-stat:hover {
  border-color: rgba(0, 229, 255, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.virp-stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-bright);
  font-family: var(--font-mono);
  line-height: 1.2;
  margin-bottom: 4px;
}

.virp-stat-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.virp-stat-detail {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
}

/* VIRP CTA */
.virp-cta {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}

.virp-tagline {
  font-size: 1.25rem;
  color: var(--text-primary);
  font-weight: 400;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 32px;
  padding: 0 24px;
  border: none;
}

.virp-tagline::before {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, var(--amber), transparent);
  margin: 0 auto 20px;
}

.virp-cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* VIRP Responsive */
@media (max-width: 1024px) {
  .virp-solution-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .virp-channel-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .virp-channel-separator {
    flex-direction: row;
    padding: 16px 0;
  }

  .virp-separator-line {
    width: auto;
    height: 2px;
    flex: 1;
    min-height: auto;
    background: linear-gradient(to right, var(--border), var(--cyan), var(--border));
  }

  .virp-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .virp-headline {
    font-size: 2rem;
  }

  .virp-subhead {
    font-size: 1.125rem;
  }

  .virp-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .virp-tier-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .virp-terminal-body {
    font-size: 0.75rem;
  }

  .virp-problem-inner {
    padding: 24px;
  }

  .virp-device-row {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 480px) {
  .virp-stats {
    grid-template-columns: 1fr;
  }

  .virp-stat {
    padding: 20px 16px;
  }

  .virp-device-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   CTA
   ============================================ */
.section-cta {
  background: var(--bg-deep);
}

.cta-block {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.cta-block h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-block p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Status Bar */
.status-bar {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 16px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.status-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  position: relative;
}

.status-dot.green {
  background: var(--green);
  box-shadow: 0 0 8px rgba(0, 230, 118, 0.4);
  animation: status-pulse 3s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(0, 230, 118, 0.4); }
  50% { box-shadow: 0 0 16px rgba(0, 230, 118, 0.6); }
}

/* --- Capability Card Links --- */
.cap-card h3 a {
  color: var(--text-bright);
  text-decoration: none;
}

.cap-card h3 a:hover {
  color: var(--cyan);
}

.cap-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--cyan);
  opacity: 0;
  transform: translateX(-4px);
  transition: all var(--transition);
}

.cap-card:hover .cap-link {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}

.footer-brand {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-bright);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.footer-brand .nav-logo {
  width: 28px;
  height: 28px;
  font-size: 0.625rem;
  border-radius: 6px;
}

.footer-tagline {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-tagline a {
  color: var(--text-secondary);
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--cyan);
}

.footer-bottom {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

/* ============================================
   SUBPAGES — Article Layout
   ============================================ */
.subpage {
  padding-top: 100px;
  padding-bottom: var(--section-pad);
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-family: var(--font-mono);
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb a:hover {
  color: var(--cyan);
}

.breadcrumb .sep {
  color: var(--border);
}

.article-header {
  max-width: 720px;
  margin-bottom: 48px;
}

.article-header h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.15;
}

.article-lead {
  font-size: 1.1875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.article-body {
  max-width: 720px;
}

.article-body h2 {
  font-size: 1.5rem;
  margin-top: 48px;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.article-body h3 {
  font-size: 1.125rem;
  margin-top: 32px;
  margin-bottom: 12px;
}

.article-body p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.article-body ul,
.article-body ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.article-body pre {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  overflow-x: auto;
  margin: 24px 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.article-body pre code {
  background: none;
  padding: 0;
  font-size: inherit;
}

.article-body blockquote {
  border-left: 3px solid var(--cyan);
  padding-left: 20px;
  margin: 24px 0;
  color: var(--text-primary);
  font-style: italic;
}

.article-body .highlight-box {
  background: var(--amber-dim);
  border: 1px solid rgba(255, 179, 0, 0.2);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 24px 0;
}

.article-body .highlight-box p:last-child {
  margin-bottom: 0;
}

/* Terminal mock in articles */
.article-terminal {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 24px 0;
}

.article-terminal .term-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(17, 24, 39, 0.8);
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.article-terminal .term-body {
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.8;
}

/* Related pages */
.related-pages {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}

.related-pages h3 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-weight: 600;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.related-card {
  display: block;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all var(--transition);
  text-decoration: none;
}

.related-card:hover {
  border-color: var(--cyan);
  background: var(--bg-card-hover);
  color: var(--cyan);
  transform: translateY(-2px);
}

.related-card .related-desc {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Subpage CTA */
.subpage-cta {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.subpage-cta h2 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.subpage-cta p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   BLOG STYLES
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.blog-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
  text-decoration: none;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.blog-card-date {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-card h3 {
  font-size: 1.125rem;
  color: var(--text-bright);
  margin-bottom: 8px;
  transition: color var(--transition);
}

.blog-card:hover h3 {
  color: var(--cyan);
}

.blog-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.blog-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.blog-card-tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  padding: 3px 8px;
  background: var(--cyan-dim);
  color: var(--cyan);
  border-radius: 100px;
  font-weight: 500;
}

/* Blog article date */
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.article-meta .tag {
  padding: 3px 10px;
  background: var(--cyan-dim);
  color: var(--cyan);
  border-radius: 100px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --section-pad: 80px;
  }

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

  .hero {
    padding-top: 120px;
  }

  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .audience-card:last-child {
    grid-column: 1 / -1;
    max-width: 400px;
    margin: 0 auto;
  }

  .antifab-compare {
    grid-template-columns: 1fr;
  }

  .stage-collectors {
    grid-template-columns: 1fr;
  }

  .stage-highlight .stage-content {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 64px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10, 14, 23, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

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

  .hero h1 {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .terminal-body {
    min-height: 260px;
    font-size: 0.75rem;
  }

  .capabilities-grid {
    grid-template-columns: 1fr;
  }

  .audience-grid {
    grid-template-columns: 1fr;
  }

  .audience-card:last-child {
    max-width: none;
  }

  .pipeline-stage {
    grid-template-columns: 40px 1fr;
    gap: 16px;
  }

  .stage-num {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }

  .stage-header h3 {
    font-size: 1.125rem;
  }

  .stage-highlight .stage-content {
    padding: 20px;
  }

  .video-stats {
    gap: 24px;
  }

  .vision-tier {
    grid-template-columns: 80px 1fr;
    gap: 16px;
  }

  .vision-timeline::before {
    left: 39px;
  }

  .status-bar {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

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

  .compare-terminal {
    font-size: 0.6875rem;
  }

  .tl {
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .cap-card {
    padding: 24px;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }
}

/* --- Utility for hidden (used by JS) --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ============================================
   ACCESSIBILITY — WCAG 2.2 AA
   ============================================ */

/* Skip Navigation Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--cyan);
  color: var(--bg-deep);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
  outline: 3px solid var(--amber);
  outline-offset: 2px;
  color: var(--bg-deep);
}

/* Focus-Visible Styles */
:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}

a:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 2px;
}

.btn:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.btn-primary:focus-visible {
  outline-color: var(--text-bright);
}

.nav-toggle:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

.cap-card:focus-within {
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 0 0 2px var(--cyan);
}

.blog-card:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}

.related-card:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}

.video-play-btn:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

.approval-btn:focus-visible {
  outline: 3px solid var(--text-bright);
  outline-offset: 2px;
}

/* Minimum Target Sizes — 24x24px */
.nav-toggle {
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-col a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.approval-btn {
  min-height: 36px;
  min-width: 44px;
}

/* Prefers 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;
  }

  html {
    scroll-behavior: auto;
  }

  .cap-card:hover,
  .audience-card:hover,
  .blog-card:hover,
  .related-card:hover {
    transform: none;
  }

  .btn-primary:hover {
    transform: none;
  }

  .video-play-btn:hover {
    transform: none;
  }

  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  #particle-canvas {
    display: none;
  }
}

/* Cap-link visible on focus for keyboard users */
.cap-card:focus-within .cap-link {
  opacity: 1;
  transform: translateX(0);
}
