/* ==========================================================================
   ACUROINDIA — CORE DESIGN SYSTEM (LIGHT & CLINICAL ALABASTER THEME)
   Brand: Acuro AI India Private Limited
   "Complexity beneath simplicity."
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
  /* Surface & Background Palettes (Pristine Light & Clinical Alabaster) */
  --bg-darkest: #ffffff;
  --bg-dark: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-hover: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-border: #e2e8f0;
  --bg-card-hover-border: #0284c7;

  /* Subsurface & Insets */
  --bg-light: #f8fafc;
  --bg-light-surface: #ffffff;
  --bg-light-subtle: #f1f5f9;
  --border-light: #e2e8f0;
  --border-subtle: rgba(15, 23, 42, 0.08);

  /* Slate & Text Hierarchy */
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;

  /* Brand Accents (Healthcare Sapphire & Cyan) */
  --accent-blue: #0284c7;
  --accent-blue-light: #0284c7;
  --accent-blue-dark: #0369a1;
  --accent-blue-glow: rgba(2, 132, 199, 0.12);
  --accent-teal: #0d9488;
  --accent-teal-light: #0f766e;
  --accent-cyan: #0891b2;

  /* Clinical Status Colors */
  --status-success: #059669;
  --status-success-bg: rgba(16, 185, 129, 0.1);
  --status-success-border: rgba(16, 185, 129, 0.25);

  --status-warning: #d97706;
  --status-warning-bg: rgba(245, 158, 11, 0.1);
  --status-warning-border: rgba(245, 158, 11, 0.25);

  --status-critical: #dc2626;
  --status-critical-bg: rgba(239, 68, 68, 0.1);
  --status-critical-border: rgba(239, 68, 68, 0.25);

  --status-neutral: #64748b;
  --status-neutral-bg: rgba(100, 116, 139, 0.08);
  --status-neutral-border: rgba(100, 116, 139, 0.2);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Container Widths */
  --container-narrow: 860px;
  --container-standard: 1180px;
  --container-wide: 1380px;
  --container-immersive: 1560px;

  /* Shadows & Glassmorphism */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 36px -6px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 30px rgba(2, 132, 199, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.92);
  --glass-blur: blur(16px);
  --glass-border: 1px solid rgba(15, 23, 42, 0.08);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 250ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 400ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 700ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Border Radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #ffffff;
  color: var(--slate-800);
}

body {
  font-family: var(--font-sans);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  background-color: #ffffff;
  color: var(--slate-700);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  color: var(--slate-900);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.85rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.2rem; font-weight: 600; }
h5 { font-size: 1rem; font-weight: 600; }
h6 { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

p {
  color: var(--slate-600);
  font-size: 1.05rem;
  line-height: 1.7;
}

p.lead {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  color: var(--slate-700);
  line-height: 1.6;
  max-width: 52ch;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-blue-dark);
}

/* Technical & Editorial Type */
.font-mono {
  font-family: var(--font-mono);
}

.huge-editorial {
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--slate-900);
}

.huge-editorial .gradient-text {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.technical-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-blue);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.technical-label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-blue);
  box-shadow: 0 0 6px var(--accent-blue);
}

.technical-label.emerald::before {
  background-color: var(--status-success);
  box-shadow: 0 0 6px var(--status-success);
}
.technical-label.amber::before {
  background-color: var(--status-warning);
  box-shadow: 0 0 6px var(--status-warning);
}

.system-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-xs);
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.2);
  color: var(--accent-blue);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Containers */
.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-xl);
  padding-right: var(--space-xl);
}

.container-standard {
  width: 100%;
  max-width: var(--container-standard);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-xl);
  padding-right: var(--space-xl);
}

.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-xl);
  padding-right: var(--space-xl);
}

.container-immersive {
  width: 100%;
  max-width: var(--container-immersive);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-xl);
  padding-right: var(--space-xl);
}

/* Sections */
.section {
  position: relative;
  padding-top: var(--space-5xl);
  padding-bottom: var(--space-5xl);
}

.section-dark {
  background-color: #ffffff;
  color: var(--slate-700);
}

.section-deep {
  background-color: #f8fafc;
  color: var(--slate-700);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.section-light {
  background-color: #ffffff;
  color: var(--slate-700);
}

/* Section Header Structure */
.section-header {
  margin-bottom: var(--space-3xl);
}

.section-header.text-center {
  text-align: center;
}

.section-header.text-center .technical-label {
  justify-content: center;
}

.section-header .section-subtitle {
  font-size: 1.18rem;
  color: var(--slate-600);
  margin-top: var(--space-md);
  max-width: 60ch;
  line-height: 1.6;
}

.section-header.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   ACURO BRAND SIGNATURE: THE ACURO SIGNAL LINE
   ========================================================================== */
.signal-line {
  position: relative;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(2, 132, 199, 0.2) 20%, 
    rgba(2, 132, 199, 0.7) 50%, 
    rgba(2, 132, 199, 0.2) 80%, 
    transparent 100%);
  margin: var(--space-2xl) 0;
  overflow: visible;
}

.signal-line::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  width: 5px;
  height: 5px;
  background-color: #0284c7;
  border-radius: 50%;
  box-shadow: 0 0 10px #0284c7, 0 0 20px rgba(2, 132, 199, 0.5);
  transform: translateX(-50%);
  animation: signalPulse 3s infinite ease-in-out;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 74px;
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
}

.header-container {
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--slate-900);
}

.brand-mark {
  width: 32px;
  height: 32px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-wordmark {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--slate-900);
  display: flex;
  align-items: baseline;
}

.brand-wordmark .brand-sub {
  color: var(--accent-blue);
  font-weight: 600;
}

/* Nav Menu */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--slate-600);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background-color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--slate-900);
  background-color: rgba(15, 23, 42, 0.04);
}

.nav-link.active {
  color: var(--accent-blue);
}

.nav-dropdown-icon {
  font-size: 0.7rem;
  transition: transform var(--transition-fast);
  opacity: 0.6;
}

.nav-item:hover .nav-dropdown-icon {
  transform: rotate(180deg);
}

/* Mega Navigation Dropdown */
.mega-menu {
  position: absolute;
  top: 100%;
  left: -20px;
  min-width: 480px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: 0 16px 40px -8px rgba(15, 23, 42, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  pointer-events: none;
  z-index: 100;
}

.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
  pointer-events: auto;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.mega-menu-item {
  display: flex;
  flex-direction: column;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background: transparent;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  border: 1px solid transparent;
}

.mega-menu-item:hover {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.mega-menu-title {
  color: var(--slate-900);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mega-menu-desc {
  font-size: 0.78rem;
  color: var(--slate-500);
  margin-top: 0.2rem;
  line-height: 1.4;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-trigger-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: var(--slate-600);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-family: var(--font-sans);
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all var(--transition-fast);
}

.search-trigger-btn:hover {
  background: #e2e8f0;
  color: var(--slate-900);
}

.search-shortcut {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.1rem 0.35rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  color: var(--slate-600);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.65rem 1.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

.btn-primary:hover {
  background: #0369a1;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #ffffff;
  color: var(--slate-800);
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: var(--slate-900);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.84rem;
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--slate-900);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #ffffff;
  z-index: 9999;
  padding: var(--space-2xl) var(--space-xl);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  overflow-y: auto;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid #e2e8f0;
}

.mobile-drawer-close {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: var(--slate-800);
  font-size: 1.3rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-link {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--slate-800);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  color: var(--accent-blue);
}

/* ==========================================================================
   CARDS, PANELS & SURFACES (CLEAN LIGHT DESIGN)
   ========================================================================== */
.card-glass {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  transition: all var(--transition-normal);
  position: relative;
}

.card-glass:hover {
  border-color: rgba(2, 132, 199, 0.4);
  box-shadow: 0 10px 30px -4px rgba(15, 23, 42, 0.1), 0 0 15px rgba(2, 132, 199, 0.08);
  transform: translateY(-2px);
}

.card-solid {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.card-solid:hover {
  border-color: rgba(2, 132, 199, 0.35);
  box-shadow: var(--shadow-md);
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-badge.success {
  background: var(--status-success-bg);
  border: 1px solid var(--status-success-border);
  color: var(--status-success);
}

.status-badge.warning {
  background: var(--status-warning-bg);
  border: 1px solid var(--status-warning-border);
  color: var(--status-warning);
}

.status-badge.critical {
  background: var(--status-critical-bg);
  border: 1px solid var(--status-critical-border);
  color: var(--status-critical);
}

.status-badge.neutral {
  background: var(--status-neutral-bg);
  border: 1px solid var(--status-neutral-border);
  color: var(--slate-700);
}

.status-badge.info {
  background: rgba(2, 132, 199, 0.1);
  border: 1px solid rgba(2, 132, 199, 0.25);
  color: var(--accent-blue);
}

/* Confidence Gauge / Badge */
.confidence-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-xs);
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.2);
  color: var(--accent-blue);
}

/* ==========================================================================
   CLINICAL & CODE OBJECTS
   ========================================================================== */
.code-object {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-family: var(--font-mono);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: all var(--transition-fast);
}

.code-object:hover {
  border-color: rgba(2, 132, 199, 0.4);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.code-tag {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--slate-900);
  letter-spacing: 0.02em;
}

.code-desc {
  font-size: 0.85rem;
  color: var(--slate-600);
  font-family: var(--font-sans);
}

.code-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--slate-500);
  border-top: 1px solid #f1f5f9;
  padding-top: 0.5rem;
  margin-top: 0.25rem;
}

/* Synthetic Clinical Document Fragment */
.clinical-doc-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.75rem;
  font-family: var(--font-sans);
  position: relative;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

.clinical-doc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 1.25rem;
}

.clinical-doc-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-900);
}

.clinical-doc-metadata {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--slate-500);
  line-height: 1.5;
  margin-top: 0.2rem;
}

.clinical-doc-body {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--slate-700);
}

.clinical-doc-section-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}

.clinical-highlight {
  background: rgba(245, 158, 11, 0.15);
  border-bottom: 2px solid #f59e0b;
  color: #92400e;
  padding: 0.05rem 0.35rem;
  border-radius: 2px;
  transition: all var(--transition-fast);
  cursor: pointer;
  font-weight: 500;
}

.clinical-highlight:hover, .clinical-highlight.active {
  background: rgba(245, 158, 11, 0.3);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}

.clinical-highlight.verified {
  background: rgba(16, 185, 129, 0.15);
  border-bottom: 2px solid #10b981;
  color: #065f46;
}

.clinical-highlight.negated {
  background: rgba(100, 116, 139, 0.15);
  border-bottom: 2px solid #64748b;
  color: #475569;
  text-decoration: line-through;
}

/* ==========================================================================
   RISK SPECTRUM COMPONENT
   ========================================================================== */
.risk-spectrum {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.risk-bar {
  height: 8px;
  width: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, 
    #10b981 0%, 
    #0284c7 30%, 
    #f59e0b 70%, 
    #ef4444 100%);
  position: relative;
}

.risk-indicator-pointer {
  position: absolute;
  top: -6px;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #0284c7;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
  transition: left var(--transition-smooth);
}

.risk-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--slate-500);
}

/* ==========================================================================
   GLOBAL FOOTER (RICH MIDNIGHT SLATE FOR HIGH-END CONTRAST)
   ========================================================================== */
.site-footer {
  background-color: #0b1329;
  border-top: 1px solid #1e293b;
  padding: var(--space-4xl) 0 var(--space-2xl) 0;
  color: #94a3b8;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.site-footer a {
  color: #cbd5e1;
}

.site-footer a:hover {
  color: #38bdf8;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-brand-col .brand-wordmark {
  color: #ffffff;
}

.footer-tagline {
  font-size: 0.95rem;
  color: #94a3b8;
  max-width: 32ch;
  line-height: 1.6;
}

.footer-company-legal {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.6;
}

.footer-address {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-top: 0.5rem;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: #94a3b8;
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: #38bdf8;
}

.footer-emails {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-email-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.footer-email-role {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #38bdf8;
  text-transform: uppercase;
  font-weight: 600;
}

.footer-email-addr {
  color: #f1f5f9;
  font-size: 0.82rem;
  font-family: var(--font-mono);
}

.footer-bottom {
  padding-top: var(--space-2xl);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #64748b;
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: #64748b;
  max-width: 60ch;
  line-height: 1.5;
  margin-top: 0.5rem;
}

/* ==========================================================================
   COMMAND PALETTE (CTRL+K)
   ========================================================================== */
.command-palette-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

.command-palette-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.command-palette {
  width: 100%;
  max-width: 620px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
  overflow: hidden;
}

.command-search-header {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  gap: 0.75rem;
}

.command-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--slate-900);
  font-family: var(--font-sans);
  font-size: 1rem;
  outline: none;
}

.command-input::placeholder {
  color: var(--slate-400);
}

.command-results {
  max-height: 360px;
  overflow-y: auto;
  padding: 0.75rem;
  list-style: none;
}

.command-item {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: var(--slate-700);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.command-item:hover, .command-item.selected {
  background: #f1f5f9;
  color: var(--accent-blue);
}

.command-item-label {
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.command-item-cat {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--slate-500);
  text-transform: uppercase;
}

.command-palette-footer {
  padding: 0.6rem 1.25rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--slate-500);
  font-family: var(--font-mono);
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: var(--slate-900);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  font-weight: 500;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Finding Cards in Demo */
.finding-card {
  cursor: pointer;
  border: 1px solid #e2e8f0;
  transition: all var(--transition-fast);
}

.finding-card:hover, .finding-card.active-finding {
  border-color: #0284c7;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.12);
  background: #f8fafc;
}

/* Image Visual Frames */
.visual-media-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-md);
  background: #f8fafc;
}

.visual-media-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.visual-media-frame:hover img {
  transform: scale(1.015);
}
