@charset "UTF-8";

/* ==========================================================================
   ARGUS DESIGN SYSTEM — Bio-Optical Clinical Telemetry
   ========================================================================== */

:root {
  /* Color Palette: Deep clinical canvas with high-luminescence bio-fluorescence */
  --bg-deep: #050806;
  --bg-surface: #0a110d;
  --bg-card: #0f1a14;
  --bg-card-hover: #14241c;
  --bg-glass: rgba(10, 17, 13, 0.75);
  --bg-glass-elevated: rgba(15, 26, 20, 0.85);

  /* Borders & Rules */
  --border-subtle: rgba(0, 245, 155, 0.1);
  --border-card: rgba(0, 245, 155, 0.18);
  --border-focus: rgba(0, 245, 155, 0.6);
  --border-glass: rgba(255, 255, 255, 0.08);

  /* Primary Brand: 520nm Fluorescent Emission */
  --accent-fluo: #00f59b;
  --accent-fluo-bright: #39ffb4;
  --accent-fluo-dim: rgba(0, 245, 155, 0.15);
  --accent-fluo-glow: rgba(0, 245, 155, 0.35);

  /* Secondary Wavelengths: 365nm UV Excitation & High-tech Cyan */
  --accent-uv: #8b5cf6;
  --accent-uv-bright: #a78bfa;
  --accent-uv-dim: rgba(139, 92, 246, 0.18);
  --accent-cyan: #06b6d4;
  --accent-cyan-bright: #22d3ee;

  /* Contamination Risk Tiers */
  --tier-clean: #00f59b;
  --tier-clean-bg: rgba(0, 245, 155, 0.14);
  --tier-low: #eab308;
  --tier-low-bg: rgba(234, 179, 8, 0.18);
  --tier-med: #f97316;
  --tier-med-bg: rgba(249, 115, 22, 0.22);
  --tier-high: #ef4444;
  --tier-high-bg: rgba(239, 68, 68, 0.28);

  /* Typography */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Text colors */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255, 255, 255, 0.44);
  --text-faint: rgba(255, 255, 255, 0.22);

  /* Glows & Shadows */
  --glow-emerald: 0 0 24px rgba(0, 245, 155, 0.3);
  --glow-uv: 0 0 24px rgba(139, 92, 246, 0.3);
  --shadow-card: 0 16px 36px rgba(0, 0, 0, 0.45);
  --shadow-elevated: 0 24px 60px rgba(0, 0, 0, 0.65);

  /* Layout */
  --max-width: 1280px;
  --nav-height: 76px;
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-size: 1.6rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 245, 155, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(139, 92, 246, 0.04) 0%, transparent 45%),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 245, 155, 0.2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 245, 155, 0.4);
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

button {
  font-family: var(--font-body);
  border: none;
  outline: none;
  background: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Reusable Utilities & Badges
   ========================================================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 3.2rem;
}

.section {
  padding: 12rem 0;
  position: relative;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-fluo);
  background: rgba(0, 245, 155, 0.08);
  border: 1px solid var(--border-subtle);
  padding: 0.6rem 1.4rem;
  border-radius: 10rem;
  margin-bottom: 2rem;
}

.section-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-fluo);
  box-shadow: 0 0 8px var(--accent-fluo);
  animation: pulseBeacon 2s infinite ease-in-out;
}

.section-title {
  font-size: clamp(3.6rem, 5.2vw, 5.6rem);
  margin-bottom: 1.8rem;
  color: #fff;
}

.section-title em {
  font-style: normal;
  color: var(--accent-fluo);
  text-shadow: 0 0 35px rgba(0, 245, 155, 0.4);
}

.section-sub {
  font-size: 1.8rem;
  color: var(--text-secondary);
  max-width: 64rem;
  line-height: 1.7;
}

/* Glow & Shimmer Effects */
@keyframes pulseBeacon {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

@keyframes sweepScan {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(600px); }
}

@keyframes laserSweepHorizontal {
  0% { transform: translateX(-100%); opacity: 0.9; }
  50% { opacity: 1; }
  100% { transform: translateX(1000px); opacity: 0.9; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 1.4rem;
  font-weight: 700;
  padding: 1.4rem 2.8rem;
  border-radius: 0.8rem;
  transition: all 0.25s var(--ease-spring);
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-fluo);
  color: #040905;
  box-shadow: 0 0 20px rgba(0, 245, 155, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-primary:hover {
  background: var(--accent-fluo-bright);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 245, 155, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  background: rgba(0, 245, 155, 0.08);
  border-color: var(--accent-fluo);
  color: var(--accent-fluo);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.8rem 1.6rem;
  font-size: 1.2rem;
  border-radius: 0.6rem;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.navbar.scrolled {
  background: rgba(6, 10, 7, 0.94);
  border-bottom-color: rgba(0, 245, 155, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
}

.brand-logo-wrap .logo-text span {
  color: var(--accent-fluo);
}

.brand-telemetry-badge {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  background: rgba(0, 245, 155, 0.08);
  border: 1px solid rgba(0, 245, 155, 0.25);
  border-radius: 0.4rem;
  color: var(--accent-fluo);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-telemetry-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-fluo);
  box-shadow: 0 0 6px var(--accent-fluo);
  animation: pulseBeacon 1.8s infinite;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 3.6rem;
}

.nav-link {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.6rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-fluo);
  transition: width 0.25s var(--ease-spring);
  box-shadow: 0 0 8px var(--accent-fluo);
}

.nav-link:hover {
  color: #fff;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

/* Mobile Hamburger */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 6rem) 0 10rem;
  position: relative;
  overflow: hidden;
}

.hero-bg-media {
  position: absolute;
  inset: 0;
  background: url('assets/hospital-bg.jpg') center center / cover no-repeat;
  filter: brightness(0.22) contrast(1.2) saturate(1.2);
  z-index: 0;
  transform: scale(1.02);
  animation: slowPan 30s ease-in-out infinite alternate;
}

@keyframes slowPan {
  0% { transform: scale(1.02) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1%, -1%); }
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(0, 245, 155, 0.12) 0%, transparent 70%),
    radial-gradient(circle at 10% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
    linear-gradient(180deg, rgba(5, 8, 6, 0.8) 0%, rgba(5, 8, 6, 0.95) 80%, var(--bg-deep) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 6rem;
  align-items: center;
}

.hero-left {
  max-width: 68rem;
}

.hero-telemetry-strip {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  padding: 0.6rem 1.6rem;
  background: rgba(0, 245, 155, 0.06);
  border: 1px solid var(--border-card);
  border-radius: 10rem;
  margin-bottom: 2.8rem;
  color: var(--text-secondary);
}

.hero-telemetry-strip .spec-badge {
  color: var(--accent-fluo);
  font-weight: 700;
}

.hero-title {
  font-size: clamp(4.4rem, 6.5vw, 7.2rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 2.4rem;
}

.hero-title .highlight {
  color: var(--accent-fluo);
  text-shadow: 0 0 40px rgba(0, 245, 155, 0.4);
}

.hero-subtitle {
  font-size: 1.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 4rem;
  max-width: 58rem;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 4.8rem;
}

.hero-specs-row {
  display: flex;
  align-items: center;
  gap: 3.6rem;
  padding-top: 3.2rem;
  border-top: 1px solid var(--border-subtle);
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.spec-value {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}

.spec-value .unit {
  font-size: 1.3rem;
  color: var(--accent-fluo);
}

.spec-label {
  font-size: 1.2rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Hero HUD Card */
.hero-right {
  position: relative;
}

.hero-hud-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 1.8rem;
  padding: 3rem;
  box-shadow: var(--shadow-elevated), 0 0 30px rgba(0, 245, 155, 0.08);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.hero-hud-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-fluo), transparent);
}

.hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2.4rem;
}

.hud-title-wrap {
  display: flex;
  flex-direction: column;
}

.hud-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}

.hud-subtitle {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--text-muted);
}

.hud-signal-indicator {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent-fluo);
  background: rgba(0, 245, 155, 0.1);
  padding: 0.4rem 1rem;
  border-radius: 10rem;
  border: 1px solid rgba(0, 245, 155, 0.3);
}

.hud-visual-display {
  background: #060b08;
  border: 1px solid var(--border-subtle);
  border-radius: 1.2rem;
  padding: 2.4rem;
  position: relative;
  overflow: hidden;
  margin-bottom: 2.4rem;
}

.radar-sweep-wrap {
  width: 100%;
  height: 180px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(0, 245, 155, 0.2);
}

.radar-c1 { width: 60px; height: 60px; }
.radar-c2 { width: 120px; height: 120px; }
.radar-c3 { width: 170px; height: 170px; border-style: solid; border-color: rgba(0, 245, 155, 0.15); }

.radar-axis-x, .radar-axis-y {
  position: absolute;
  background: rgba(0, 245, 155, 0.15);
}
.radar-axis-x { width: 100%; height: 1px; }
.radar-axis-y { height: 100%; width: 1px; }

.radar-blip {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tier-high);
  box-shadow: 0 0 12px var(--tier-high);
  animation: pulseBeacon 1.2s infinite;
}

.blip-1 { top: 38%; left: 62%; }
.blip-2 { top: 68%; left: 34%; background: var(--tier-med); box-shadow: 0 0 12px var(--tier-med); }
.blip-3 { top: 25%; left: 30%; background: var(--tier-clean); box-shadow: 0 0 12px var(--tier-clean); }

.radar-sweep-line {
  position: absolute;
  width: 50%;
  height: 50%;
  top: 0;
  right: 0;
  transform-origin: bottom left;
  background: linear-gradient(45deg, rgba(0, 245, 155, 0.35) 0%, transparent 60%);
  animation: radarRotate 4s linear infinite;
  pointer-events: none;
}

@keyframes radarRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hud-data-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}

.hud-data-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 0.8rem;
  padding: 1.2rem 1.6rem;
}

.hud-data-label {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.hud-data-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-top: 0.4rem;
}

/* ==========================================================================
   Trusted Institutional Strip
   ========================================================================== */
.trusted-strip-section {
  padding: 3.6rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(10, 17, 13, 0.4);
}

.trusted-label {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2.4rem;
}

.trusted-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5rem;
  flex-wrap: wrap;
}

.trusted-badge {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all 0.25s ease;
}

.trusted-badge svg {
  width: 2.2rem;
  height: 2.2rem;
  fill: currentColor;
  color: var(--accent-fluo);
  opacity: 0.85;
}

.trusted-badge:hover {
  color: #fff;
  transform: translateY(-2px);
}

/* ==========================================================================
   SIGNATURE FEATURE: Wood's Lamp UV Surface Inspector
   ========================================================================== */
.uv-scanner-section {
  padding: 14rem 0;
  background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
}

.uv-scanner-header {
  text-align: center;
  max-width: 76rem;
  margin: 0 auto 6rem;
}

.uv-scanner-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 2rem;
  padding: 2.4rem;
  box-shadow: var(--shadow-elevated), 0 0 40px rgba(139, 92, 246, 0.1);
  position: relative;
}

.uv-scanner-viewport {
  position: relative;
  width: 100%;
  height: 520px;
  border-radius: 1.4rem;
  overflow: hidden;
  cursor: crosshair;
  user-select: none;
  background: #080d0a;
}

/* Surface Normal View */
.surface-view-normal {
  position: absolute;
  inset: 0;
  background: url('assets/hospital-bg.jpg') center center / cover no-repeat;
  filter: brightness(0.65) contrast(1.1);
}

/* UV Fluorescence View (Revealed by mask/clip) */
.surface-view-uv {
  position: absolute;
  inset: 0;
  background: url('assets/hospital-bg.jpg') center center / cover no-repeat;
  filter: brightness(0.2) contrast(1.4) hue-rotate(90deg) saturate(2.5);
  pointer-events: none;
  /* Dynamic clip-path applied via JS */
  clip-path: circle(120px at 50% 50%);
  transition: clip-path 0.05s ease-out;
}

/* Simulated Biofilm Fluorescence Patches in UV Layer */
.biofilm-layer {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 45% 40%, rgba(0, 245, 155, 0.85) 0%, rgba(0, 245, 155, 0.4) 40%, transparent 65%),
    radial-gradient(ellipse 25% 15% at 55% 58%, rgba(239, 68, 68, 0.8) 0%, rgba(249, 115, 22, 0.4) 45%, transparent 70%),
    radial-gradient(circle at 62% 35%, rgba(234, 179, 8, 0.75) 0%, transparent 50%),
    radial-gradient(circle at 35% 65%, rgba(0, 245, 155, 0.7) 0%, transparent 45%);
  mix-blend-mode: screen;
}

/* UV Torch Reticle Overlay */
.uv-lens-reticle {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 2px solid var(--accent-uv-bright);
  box-shadow: 0 0 35px rgba(139, 92, 246, 0.6), inset 0 0 30px rgba(139, 92, 246, 0.35);
  pointer-events: none;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: opacity 0.2s ease;
}

.reticle-crosshair {
  position: absolute;
  width: 20px;
  height: 20px;
}
.reticle-crosshair::before, .reticle-crosshair::after {
  content: '';
  position: absolute;
  background: var(--accent-fluo);
}
.reticle-crosshair::before { width: 100%; height: 2px; top: 9px; left: 0; }
.reticle-crosshair::after { height: 100%; width: 2px; left: 9px; top: 0; }

.reticle-readout {
  position: absolute;
  bottom: -32px;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-uv-bright);
  background: rgba(10, 17, 13, 0.9);
  padding: 0.3rem 0.8rem;
  border-radius: 0.4rem;
  border: 1px solid var(--accent-uv);
  white-space: nowrap;
}

.uv-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  padding: 1.6rem 2rem;
  background: var(--bg-surface);
  border-radius: 1.2rem;
  border: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 1.6rem;
}

.uv-hint-text {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.uv-hint-text svg {
  width: 1.8rem;
  height: 1.8rem;
  color: var(--accent-uv);
}

.uv-toggle-modes {
  display: flex;
  gap: 1rem;
}

.mode-btn {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  padding: 0.8rem 1.6rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
}

.mode-btn.active {
  background: rgba(139, 92, 246, 0.18);
  border-color: var(--accent-uv);
  color: #fff;
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.3);
}

/* ==========================================================================
   Detection Ward Console (48 Zones)
   ========================================================================== */
.console-section {
  padding: 14rem 0;
  background: radial-gradient(circle at 80% 40%, rgba(0, 245, 155, 0.06) 0%, transparent 65%);
}

.console-container {
  display: grid;
  grid-template-columns: 1fr 1.65fr;
  gap: 4.8rem;
  align-items: start;
}

.console-info-panel {
  display: flex;
  flex-direction: column;
}

.console-metric-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
  margin: 3.2rem 0;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1.2rem;
  padding: 2rem;
  transition: all 0.25s ease;
}

.metric-card:hover {
  border-color: var(--border-card);
  transform: translateY(-2px);
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.metric-num {
  font-family: var(--font-mono);
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  margin-top: 0.6rem;
}

.metric-num.emerald { color: var(--accent-fluo); }
.metric-num.hazard { color: var(--tier-high); }

.console-legend {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1.2rem;
  padding: 2rem;
  margin-bottom: 3.2rem;
}

.legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.3rem;
  color: var(--text-secondary);
}

.legend-indicator {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 0.3rem;
}
.dot-high { background: var(--tier-high); box-shadow: 0 0 10px var(--tier-high); }
.dot-med { background: var(--tier-med); box-shadow: 0 0 10px var(--tier-med); }
.dot-low { background: var(--tier-low); box-shadow: 0 0 10px var(--tier-low); }
.dot-clean { background: var(--tier-clean); box-shadow: 0 0 10px var(--tier-clean); }

.legend-count {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.console-actions-row {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
}

/* Ward Interactive Matrix Box */
.ward-matrix-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 2rem;
  padding: 3rem;
  box-shadow: var(--shadow-elevated);
  position: relative;
  overflow: hidden;
}

.ward-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2.8rem;
  flex-wrap: wrap;
  gap: 1.6rem;
}

.ward-title-group {
  display: flex;
  flex-direction: column;
}

.ward-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}

.ward-sub {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--text-muted);
}

.ward-controls {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.filter-chip {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  padding: 0.5rem 1.2rem;
  border-radius: 10rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip.active {
  background: rgba(0, 245, 155, 0.15);
  border-color: var(--accent-fluo);
  color: #fff;
}

/* The 48-Zone Grid */
.matrix-grid-wrapper {
  position: relative;
  background: #060b08;
  border: 1px solid var(--border-subtle);
  border-radius: 1.4rem;
  padding: 2.4rem;
  overflow: hidden;
}

.laser-scan-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, transparent, var(--accent-fluo), transparent);
  box-shadow: 0 0 16px var(--accent-fluo), 0 0 30px var(--accent-fluo);
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-100px);
}

.laser-scan-line.scanning {
  opacity: 1;
  animation: laserScanAcross 2.4s ease-in-out infinite;
}

@keyframes laserScanAcross {
  0% { left: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

.hospital-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.8rem;
  position: relative;
  z-index: 5;
}

.zone-cell {
  aspect-ratio: 1;
  border-radius: 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  transition: all 0.2s var(--ease-spring);
  user-select: none;
  border: 1px solid transparent;
}

.zone-cell:hover {
  transform: scale(1.15);
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
}

.zone-cell.selected {
  outline: 2px solid #fff;
  box-shadow: 0 0 20px #fff;
  z-index: 12;
}

.zone-cell[data-risk="clean"] {
  background: var(--tier-clean-bg);
  border-color: rgba(0, 245, 155, 0.35);
  color: var(--tier-clean);
}

.zone-cell[data-risk="low"] {
  background: var(--tier-low-bg);
  border-color: rgba(234, 179, 8, 0.4);
  color: var(--tier-low);
}

.zone-cell[data-risk="med"] {
  background: var(--tier-med-bg);
  border-color: rgba(249, 115, 22, 0.45);
  color: var(--tier-med);
}

.zone-cell[data-risk="high"] {
  background: var(--tier-high-bg);
  border-color: rgba(239, 68, 68, 0.6);
  color: var(--tier-high);
  animation: pulseHazard 2s infinite;
}

@keyframes pulseHazard {
  0%, 100% { box-shadow: 0 0 4px rgba(239, 68, 68, 0.3); }
  50% { box-shadow: 0 0 16px rgba(239, 68, 68, 0.7); }
}

/* Real-time Zone Inspector Drawer / Card */
.zone-inspector-drawer {
  margin-top: 2.8rem;
  background: #060b08;
  border: 1px solid var(--border-card);
  border-radius: 1.4rem;
  padding: 2.4rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.4rem;
  align-items: center;
}

.inspector-meta h4 {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}

.inspector-pathogen-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 0.4rem;
  margin-bottom: 1.2rem;
  border: 1px solid transparent;
}

.inspector-pathogen-tag[data-risk="high"] {
  background: var(--tier-high-bg);
  color: var(--tier-high);
  border-color: rgba(239, 68, 68, 0.5);
}

.inspector-pathogen-tag[data-risk="med"] {
  background: var(--tier-med-bg);
  color: var(--tier-med);
  border-color: rgba(249, 115, 22, 0.5);
}

.inspector-pathogen-tag[data-risk="low"] {
  background: var(--tier-low-bg);
  color: var(--tier-low);
  border-color: rgba(234, 179, 8, 0.5);
}

.inspector-pathogen-tag[data-risk="clean"] {
  background: var(--tier-clean-bg);
  color: var(--tier-clean);
  border-color: rgba(0, 245, 155, 0.4);
}

.inspector-stats-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.stat-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  padding-bottom: 0.4rem;
}

.spectral-preview-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 1.6rem;
}

.spectral-title {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  display: flex;
  justify-content: space-between;
}

.spectral-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
}

.spectral-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--accent-fluo), rgba(0, 245, 155, 0.2));
  border-radius: 2px;
  transition: height 0.4s var(--ease-spring);
}

/* ==========================================================================
   AI Training Data Pipeline (Interactive Flow)
   ========================================================================== */
.pipeline-section {
  padding: 14rem 0;
  background: radial-gradient(circle at 20% 70%, rgba(6, 182, 212, 0.06) 0%, transparent 60%);
}

.pipeline-flow-wrapper {
  margin-top: 6rem;
}

.pipeline-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.4rem;
  position: relative;
}

.pipeline-node-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1.6rem;
  padding: 3.2rem 2.4rem;
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
  position: relative;
}

.pipeline-node-card:hover, .pipeline-node-card.active {
  border-color: var(--accent-cyan);
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4), 0 0 24px rgba(6, 182, 212, 0.12);
}

.pipeline-node-card.active {
  background: var(--bg-card-hover);
}

.pipeline-node-card::after {
  content: '→';
  position: absolute;
  top: 50%;
  right: -1.8rem;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--accent-cyan);
  z-index: 10;
}

.pipeline-node-card:last-child::after {
  display: none;
}

.node-icon-bubble {
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 1rem;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--accent-cyan-bright);
  margin-bottom: 2rem;
  transition: all 0.25s ease;
}

.pipeline-node-card:hover .node-icon-bubble,
.pipeline-node-card.active .node-icon-bubble {
  background: var(--accent-cyan);
  color: #040905;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.4);
}

.node-step-tag {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.node-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.node-desc {
  font-size: 1.4rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Active Pipeline Inspector View */
.pipeline-inspector-box {
  margin-top: 4rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 1.6rem;
  padding: 3.2rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3.6rem;
  align-items: center;
}

.pipeline-code-preview {
  background: #060b08;
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 2rem;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-secondary);
  overflow-x: auto;
}

.pipeline-code-preview span.keyword { color: #f472b6; }
.pipeline-code-preview span.func { color: #60a5fa; }
.pipeline-code-preview span.param { color: var(--accent-fluo); }
.pipeline-code-preview span.num { color: #fbbf24; }

/* ==========================================================================
   Engineering Build Log
   ========================================================================== */
.buildlog-section {
  padding: 14rem 0;
  background: var(--bg-deep);
}

.buildlog-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 5rem;
  flex-wrap: wrap;
  gap: 3rem;
}

.buildlog-filter-tabs {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.log-tab {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  padding: 0.8rem 1.8rem;
  border-radius: 10rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.log-tab.active {
  background: rgba(0, 245, 155, 0.15);
  border-color: var(--accent-fluo);
  color: #fff;
}

.buildlog-stats-bar {
  display: flex;
  gap: 4.8rem;
}

.bstat-item {
  text-align: right;
}

.bstat-number {
  font-family: var(--font-mono);
  font-size: 3.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
}

.bstat-label {
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: var(--text-muted);
}

.log-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.log-entry-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1.6rem;
  padding: 3.2rem;
  transition: all 0.25s var(--ease-spring);
}

.log-entry-card:hover {
  border-color: var(--border-card);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.log-entry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.6rem;
}

.log-badge-group {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.log-tag {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 0.4rem;
  background: rgba(0, 245, 155, 0.1);
  border: 1px solid rgba(0, 245, 155, 0.25);
  color: var(--accent-fluo);
}

.log-tag.hardware {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.25);
  color: var(--accent-uv-bright);
}

.log-tag.vision {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.25);
  color: var(--accent-cyan-bright);
}

.log-date {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--text-muted);
}

.log-entry-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.2rem;
}

.log-entry-body {
  font-size: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   Newsletter & Clinical Evaluation Form
   ========================================================================== */
.newsletter-section {
  padding: 12rem 0;
  position: relative;
  background: radial-gradient(circle at 50% 50%, rgba(0, 245, 155, 0.05) 0%, transparent 65%);
}

.newsletter-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 2.4rem;
  padding: 6rem 4rem;
  text-align: center;
  max-width: 80rem;
  margin: 0 auto;
  box-shadow: var(--shadow-elevated);
}

.newsletter-form {
  display: flex;
  gap: 1.2rem;
  max-width: 52rem;
  margin: 3.6rem auto 0;
  flex-wrap: wrap;
}

.newsletter-input {
  flex: 1;
  min-width: 260px;
  height: 5.2rem;
  padding: 0 2rem;
  background: #060b08;
  border: 1px solid var(--border-card);
  border-radius: 0.8rem;
  font-family: var(--font-body);
  font-size: 1.5rem;
  color: #fff;
  outline: none;
  transition: all 0.2s ease;
}

.newsletter-input:focus {
  border-color: var(--accent-fluo);
  box-shadow: 0 0 16px rgba(0, 245, 155, 0.25);
}

.toast-msg {
  display: none;
  margin-top: 1.6rem;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--accent-fluo);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  padding: 6rem 0 4rem;
  background: #040705;
  border-top: 1px solid var(--border-subtle);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2.4rem;
}

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

.footer-links {
  display: flex;
  gap: 3.2rem;
}

.footer-link {
  font-size: 1.3rem;
  color: var(--text-secondary);
}

.footer-link:hover {
  color: var(--accent-fluo);
}

/* ==========================================================================
   Fade Animations (Scroll Reveal with Safe Fallbacks)
   ========================================================================== */
.fade-up {
  opacity: 1;
  transform: none;
  filter: none;
  transition: opacity 0.7s var(--ease-smooth),
              transform 0.7s var(--ease-smooth),
              filter 0.7s var(--ease-smooth);
}

/* When reveal is initialized and element is not yet in viewport */
.reveal-pending {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(2px);
}

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

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.15s; }
.delay-3 { transition-delay: 0.22s; }
.delay-4 { transition-delay: 0.3s; }

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 5rem;
  }
  .hero-left {
    max-width: 100%;
  }
  .console-container {
    grid-template-columns: 1fr;
  }
  .pipeline-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pipeline-node-card::after {
    display: none;
  }
  .pipeline-inspector-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu, .nav-actions .btn {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-mobile-sheet {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: rgba(6, 10, 7, 0.98);
    backdrop-filter: blur(20px);
    padding: 3rem;
    gap: 2rem;
    border-bottom: 1px solid var(--border-card);
    transform: translateY(-120%);
    transition: transform 0.35s var(--ease-spring);
    z-index: 999;
  }
  .nav-mobile-sheet.open {
    transform: translateY(0);
  }
  .section {
    padding: 8rem 0;
  }
  .uv-scanner-viewport {
    height: 380px;
  }
  .zone-inspector-drawer {
    grid-template-columns: 1fr;
  }
  .pipeline-cards-grid {
    grid-template-columns: 1fr;
  }
  .buildlog-header-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .bstat-item {
    text-align: left;
  }
}

@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;
  }
  .fade-up {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
