/* DriftLens — Premium Document Semantic Drift Engine & Forensics System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&family=JetBrains+Mono:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --bg-deep: #030712;
  --bg-surface: #0b0f19;
  --bg-card: rgba(17, 24, 39, 0.72);
  --bg-card-hover: rgba(31, 41, 55, 0.88);
  --bg-doc: rgba(8, 14, 26, 0.92);
  --bg-glass: rgba(15, 23, 42, 0.6);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 255, 255, 0.18);
  --border-glow: rgba(56, 189, 248, 0.45);

  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  --neon-cyan: #06b6d4;
  --neon-sky: #38bdf8;
  --neon-blue: #3b82f6;
  --neon-indigo: #6366f1;
  --neon-purple: #a855f7;
  --neon-emerald: #10b981;
  --neon-amber: #f59e0b;
  --neon-rose: #f43f5e;

  --gradient-mona: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  --gradient-emerald: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  --gradient-card-border: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.02) 100%);

  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  perspective: 1200px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.028em;
  font-weight: 700;
  color: #ffffff;
}

/* Atmospheric 3D Geometric Grid & Vector Constellation Background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(56, 189, 248, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(168, 85, 247, 0.04) 0%, transparent 45%),
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  mask-image: radial-gradient(circle at 50% 25%, black 50%, transparent 95%);
  -webkit-mask-image: radial-gradient(circle at 50% 25%, black 50%, transparent 95%);
  pointer-events: none;
  z-index: 0;
}

.aurora-ambient {
  position: fixed;
  top: -240px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.2) 0%, rgba(99, 102, 241, 0.15) 35%, transparent 70%);
  filter: blur(110px);
  pointer-events: none;
  z-index: 0;
  animation: pulseAurora 14s ease-in-out infinite alternate;
}

@keyframes pulseAurora {
  0% { transform: translateX(-50%) scale(0.92); opacity: 0.75; }
  100% { transform: translateX(-48%) scale(1.1); opacity: 1; }
}

.main-wrapper {
  max-width: 1360px;
  margin: 0 auto;
  padding: 2.5rem 2rem 6rem 2rem;
  position: relative;
  z-index: 1;
}

/* Navbar */
header.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(3, 7, 18, 0.84);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-box {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 800;
  font-size: 1.35rem;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  color: #fff;
  text-decoration: none;
}
.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.5);
}
.nav-pill-group {
  display: flex;
  background: rgba(17, 24, 39, 0.85);
  padding: 0.35rem;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
  list-style: none;
  gap: 0.25rem;
}
.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(99, 102, 241, 0.28));
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 4.5rem 1rem 3rem 1rem;
  position: relative;
}
.hero-backdrop-canvas {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  height: 480px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.5;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--neon-sky);
  margin-bottom: 1.75rem;
  letter-spacing: 0.02em;
}
.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--neon-sky);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--neon-sky);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: 4.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  color: #ffffff;
}
.hero-title .gradient-text {
  background: var(--gradient-mona);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 820px;
  margin: 0 auto 2.5rem auto;
  font-weight: 400;
  line-height: 1.65;
}
.hero-cta-group {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* 3D Glass Cards */
.mona-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  transform-style: preserve-3d;
}
.mona-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: var(--gradient-card-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.mona-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.85), 0 0 35px -10px rgba(56, 189, 248, 0.25);
}

/* Hero Telemetry & Architecture Hub */
.hero-telemetry-hub {
  max-width: 1040px;
  margin: 3rem auto 1.5rem auto;
  background: rgba(11, 18, 33, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 20px;
  padding: 1.5rem 1.75rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.8), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}
.telemetry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.85rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.telemetry-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
}
@media (max-width: 900px) {
  .telemetry-grid {
    grid-template-columns: 1fr;
  }
  .telemetry-connector {
    transform: rotate(90deg);
    margin: 0.5rem auto;
  }
}
.telemetry-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.25rem;
  text-align: left;
  transition: all 0.25s ease;
  position: relative;
}
.telemetry-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(30, 41, 59, 0.85);
  transform: translateY(-2px);
}
.telemetry-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 0.5rem;
}
.telemetry-badge.cyan { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.telemetry-badge.purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.telemetry-badge.emerald { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }

.telemetry-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}
.telemetry-detail {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 0.6rem;
}
.telemetry-sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.45rem;
}
.telemetry-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-sky);
  opacity: 0.7;
}

/* Symmetrical 3-Column Document Cards */
.hero-3d-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 1040px;
  margin: 1.5rem auto 3.5rem auto;
}
@media (max-width: 860px) {
  .hero-3d-tiles {
    grid-template-columns: 1fr;
  }
}
.doc-tile {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.35rem 1.5rem;
  text-align: left;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.doc-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(30, 41, 59, 0.85);
  box-shadow: 0 15px 35px -10px rgba(56, 189, 248, 0.25);
}
.doc-tile-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--neon-sky);
  margin-bottom: 0.5rem;
  display: inline-block;
  background: rgba(56, 189, 248, 0.1);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}
.doc-tile-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 0.35rem;
}
.doc-tile-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Buttons */
.btn {
  padding: 0.85rem 1.8rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  color: #030712;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.6);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.8);
  color: #000;
}
.btn-secondary {
  background: rgba(17, 24, 39, 0.85);
  color: var(--text-primary);
  border: 1px solid var(--border-highlight);
  backdrop-filter: blur(12px);
}
.btn-secondary:hover {
  background: rgba(31, 41, 55, 0.95);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Signature DriftLens AI Analyst Bot 2.0 */
.drift-bot-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}
.drift-bot-bubble {
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid var(--border-glow);
  border-radius: 14px 14px 2px 14px;
  padding: 0.85rem 1.15rem;
  max-width: 320px;
  font-size: 0.86rem;
  color: #f9fafb;
  margin-bottom: 0.75rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.25);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(8px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.drift-bot-bubble.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.bot-action-chips {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.6rem;
  flex-wrap: wrap;
}
.bot-chip {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.bot-chip:hover {
  background: rgba(56, 189, 248, 0.3);
  color: #fff;
}
.drift-bot-avatar {
  width: 62px;
  height: 62px;
  background: linear-gradient(135deg, #0b1120, #1e293b);
  border: 2px solid var(--neon-sky);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.45), inset 0 0 15px rgba(56, 189, 248, 0.25);
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: floatBot 5s ease-in-out infinite alternate;
}
.drift-bot-avatar:hover {
  transform: scale(1.1);
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.75);
}
@keyframes floatBot {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-8px) rotate(3deg); }
}
.drift-bot-eye {
  width: 24px;
  height: 10px;
  background: var(--neon-sky);
  border-radius: 9999px;
  box-shadow: 0 0 14px var(--neon-sky);
  transition: transform 0.15s ease;
}
.drift-bot-scan-beam {
  position: absolute;
  top: 50%;
  right: 55px;
  width: 160px;
  height: 45px;
  background: linear-gradient(to left, rgba(56, 189, 248, 0.3), transparent);
  clip-path: polygon(100% 40%, 0% 0%, 0% 100%, 100% 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.drift-bot-scan-beam.active {
  opacity: 1;
}

/* Full-Screen Radar Laser Scan Effect */
.laser-scan-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, #38bdf8, #818cf8, transparent);
  box-shadow: 0 0 20px #38bdf8, 0 0 40px #818cf8;
  z-index: 9999;
  pointer-events: none;
  display: none;
}
.laser-scan-overlay.running {
  display: block;
  animation: laserScan 2s ease-in-out forwards;
}
@keyframes laserScan {
  0% { top: 0%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Interactive Knowledge Network Canvas Showcase */
.interactive-showcase {
  margin: 3rem 0 4.5rem 0;
  padding: 2.25rem;
}
.showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.showcase-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}
.scrubber-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.6rem 1.35rem;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
}
.year-slider {
  -webkit-appearance: none;
  width: 220px;
  height: 6px;
  border-radius: 3px;
  background: #1f2937;
  outline: none;
}
.year-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--neon-sky);
  cursor: pointer;
  box-shadow: 0 0 12px var(--neon-sky);
}
.canvas-legend-row {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.network-layout-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 960px) {
  .network-layout-grid {
    grid-template-columns: 1fr;
  }
}

.inspector-panel {
  padding: 1.75rem;
  background: rgba(11, 18, 33, 0.92);
  border: 1px solid var(--border-highlight);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.inspector-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.inspector-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.connection-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.6);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.2s ease;
}
.connection-item:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateX(4px);
}

#drift-canvas, #network-canvas {
  width: 100%;
  height: 480px;
  border-radius: 14px;
  background: radial-gradient(circle at center, #0a1122 0%, #030712 100%);
  border: 1px solid var(--border-subtle);
  cursor: crosshair;
}

/* Stats Row */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4.5rem;
}
.stat-card {
  padding: 2rem 1.5rem;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.85rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
  background: linear-gradient(180deg, #ffffff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* Pipeline Flow */
.pipeline-flow-container {
  margin-bottom: 4.5rem;
}
.pipeline-stages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.pipeline-stage-card {
  padding: 1.5rem;
  background: rgba(17, 24, 39, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.pipeline-stage-card:hover, .pipeline-stage-card.active {
  border-color: var(--neon-sky);
  background: rgba(30, 41, 59, 0.85);
  transform: translateY(-4px);
  box-shadow: 0 12px 25px -10px rgba(56, 189, 248, 0.3);
}
.stage-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(99, 102, 241, 0.15));
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  color: var(--neon-sky);
}
.stage-step-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--neon-sky);
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.stage-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}
.stage-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.pipeline-detail-panel {
  margin-top: 1.25rem;
  padding: 1.5rem;
  border-radius: 14px;
  background: rgba(11, 18, 33, 0.95);
  border: 1px solid var(--border-highlight);
  font-size: 0.9rem;
}

/* Views */
.view-section {
  display: none;
}
.view-section.active {
  display: block;
  animation: monaFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes monaFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Filter Bar */
.filter-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
  background: rgba(17, 24, 39, 0.7);
  padding: 1rem 1.25rem;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
}
.filter-input, .filter-select {
  background: #030712;
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
}
.filter-input:focus, .filter-select:focus {
  border-color: var(--neon-sky);
}

/* Table */
.table-container {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: rgba(11, 15, 25, 0.75);
  backdrop-filter: blur(16px);
}
table.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}
table.custom-table th {
  background: rgba(17, 24, 39, 0.85);
  color: var(--text-secondary);
  font-weight: 600;
  padding: 1.1rem 1.35rem;
  border-bottom: 1px solid var(--border-subtle);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}
table.custom-table td {
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}
table.custom-table tr:hover td {
  background: rgba(56, 189, 248, 0.05);
  cursor: pointer;
}

/* Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pill-new { background: rgba(16, 185, 129, 0.12); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.35); }
.pill-intensifying { background: rgba(56, 189, 248, 0.12); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.35); }
.pill-fading { background: rgba(245, 158, 11, 0.12); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.35); }
.pill-disappeared { background: rgba(244, 63, 94, 0.12); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.35); }
.pill-stable { background: rgba(156, 163, 175, 0.12); color: #d1d5db; border: 1px solid rgba(156, 163, 175, 0.35); }

/* Forensic Evidence Diff Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
}
.modal-overlay.active {
  display: flex;
}
.modal-content {
  background: #0b0f19;
  border: 1px solid var(--border-highlight);
  border-radius: 20px;
  max-width: 980px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 2.25rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.95), 0 0 40px rgba(56, 189, 248, 0.15);
}
.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.diff-card {
  background: rgba(8, 14, 26, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.25rem;
}
.diff-header {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
}
.highlight-added {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  padding: 0.15rem 0.3rem;
  border-radius: 4px;
  border-bottom: 1.5px solid #10b981;
}
.highlight-drift {
  background: rgba(56, 189, 248, 0.18);
  color: #7dd3fc;
  padding: 0.15rem 0.3rem;
  border-radius: 4px;
  border-bottom: 1.5px solid #38bdf8;
}

/* Timeline Track */
.timeline-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1.5rem 0.5rem;
}
.timeline-node {
  min-width: 280px;
  flex: 1;
  padding: 1.5rem;
}
.timeline-year {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--neon-sky);
  margin-bottom: 1rem;
}

/* SQL Sandbox */
.sql-sandbox {
  padding: 2rem;
}
.query-presets-row {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.preset-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.preset-chip:hover {
  background: rgba(56, 189, 248, 0.15);
  color: #fff;
  border-color: rgba(56, 189, 248, 0.4);
}
.sql-textarea {
  width: 100%;
  min-height: 160px;
  background: #020617;
  color: #38bdf8;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.55;
  resize: vertical;
  margin-bottom: 1.25rem;
}
.sql-textarea:focus {
  outline: none;
  border-color: var(--neon-sky);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
}

/* Dedicated About Page Styles */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.about-card {
  padding: 2rem;
}
.about-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.formula-callout {
  background: rgba(0, 0, 0, 0.5);
  border-left: 3px solid var(--neon-sky);
  padding: 1rem;
  border-radius: 0 8px 8px 0;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #7dd3fc;
  margin: 1rem 0;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .aurora-ambient, .drift-bot-avatar {
    animation: none !important;
  }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.75rem; }
  .nav-pill-group { display: none; }
  .diff-grid { grid-template-columns: 1fr; }
  .drift-bot-container { display: none; }
  .hero-3d-tiles { display: none; }
}
