/**
 * MediCare AI — Apex Unified Cinematic Landing Stylesheet
 * 4K / Retina Ready, Full Dark & Light Themes, Zero Stock Cliches
 */

/* ==========================================================================
   1. RESET & BASE FOUNDATIONS
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100%;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-l0, #070b12);
  color: var(--text-primary, #f1f5f9);
  scroll-behavior: smooth;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Background Canvas & Ambient Stage */
.landing-visual-environment {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.landing-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.landing-ambient-glow {
  position: absolute;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, 100vw);
  height: 800px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.18) 0%, rgba(6, 182, 212, 0.08) 40%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.landing-ambient-mesh {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.04) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(20, 184, 166, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

/* ==========================================================================
   2. CINEMATIC INTRO OVERLAY (4.8s Brand Awakening / 0.7s Mini Return)
   ========================================================================== */
.cinematic-intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(circle at 50% 50%, #0d1424 0%, #070b12 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), visibility 700ms;
}

.cinematic-intro-overlay.dismissed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cinematic-intro-overlay.mini-intro {
  transition: opacity 350ms ease;
}

.cinematic-intro-overlay.mini-intro * {
  animation-duration: 0.4s !important;
  animation-delay: 0s !important;
}

.intro-viewport {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  max-width: 600px;
}

.intro-formation-stage {
  position: relative;
  width: 220px;
  height: 220px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
}

/* Stage 1: Light Point appears (0.0s - 1.0s) */
.intro-light-point {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 24px #2dd4bf, 0 0 50px #06b6d4;
  animation: introPointIgnite 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes introPointIgnite {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(2.2); opacity: 1; }
  100% { transform: scale(1); opacity: 0.8; }
}

/* Stage 2: Biometric Pulse Rings radiate (0.8s - 2.0s) */
.intro-pulse-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(45, 212, 191, 0.6);
  opacity: 0;
  pointer-events: none;
}

.intro-pulse-ring.ring-1 {
  width: 60px;
  height: 60px;
  animation: introRingExpand 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.8s infinite;
}

.intro-pulse-ring.ring-2 {
  width: 100px;
  height: 100px;
  animation: introRingExpand 1.6s cubic-bezier(0.16, 1, 0.3, 1) 1.2s infinite;
}

@keyframes introRingExpand {
  0% { transform: scale(0.4); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Stage 3: Neural Constellation Nodes (1.4s - 2.5s) */
.intro-neural-constellation {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.intro-node {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  opacity: 0;
  animation: introNodeBlink 1.4s ease-in-out 1.4s forwards;
}

.intro-node.in-1 { top: 25%; left: 20%; }
.intro-node.in-2 { top: 20%; right: 25%; }
.intro-node.in-3 { bottom: 25%; left: 30%; }
.intro-node.in-4 { bottom: 20%; right: 20%; }

@keyframes introNodeBlink {
  0% { opacity: 0; transform: scale(0.2); }
  60% { opacity: 1; transform: scale(1.4); }
  100% { opacity: 0.75; transform: scale(1); }
}

/* Stage 4: MEDICARE Core Forms (2.0s - 3.2s) */
.intro-core-wrap {
  animation: introCoreForm 1.4s cubic-bezier(0.16, 1, 0.3, 1) 2.0s forwards;
  opacity: 0;
  transform: scale(0.65);
}

@keyframes introCoreForm {
  0% { opacity: 0; transform: scale(0.65); }
  70% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}

/* Stage 5: Brand Reveal (3.0s - 4.2s) */
.intro-brand-block {
  animation: introTextReveal 1.0s ease-out 3.0s forwards;
  opacity: 0;
  transform: translateY(14px);
}

@keyframes introTextReveal {
  to { opacity: 1; transform: translateY(0); }
}

.intro-brand-name {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 8px;
}

.intro-brand-name span {
  color: #06b6d4;
}

.intro-tagline {
  font-size: 0.98rem;
  color: #94a3b8;
  letter-spacing: 0.04em;
  font-weight: 400;
}

.intro-skip-btn {
  margin-top: 24px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #94a3b8;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.7;
}

.intro-skip-btn:hover {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

/* ==========================================================================
   3. SIGNATURE MEDICARE CORE V2 STYLING (MATCHING HEALTH OS)
   ========================================================================== */
.medicare-core-v2 {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  user-select: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.medicare-core-v2:hover {
  transform: scale(1.05);
}

.core-aura-glow {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.35) 0%, rgba(56, 189, 248, 0.2) 45%, rgba(139, 92, 246, 0.08) 70%, transparent 80%);
  filter: blur(20px);
  pointer-events: none;
  animation: coreAuraPulse 4s ease-in-out infinite alternate;
}

@keyframes coreAuraPulse {
  0% { transform: scale(0.92); opacity: 0.55; }
  100% { transform: scale(1.15); opacity: 0.92; }
}

.core-orbit-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.core-orbit-ring.ring-latitude {
  width: 160px;
  height: 160px;
  border: 1px dashed rgba(45, 212, 191, 0.38);
  animation: orbitTrack1 26s linear infinite;
}

.core-orbit-ring.ring-longitude {
  width: 142px;
  height: 142px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  animation: orbitTrack2 18s linear infinite reverse;
}

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

.core-orb-sphere {
  position: relative;
  z-index: 2;
  width: 122px;
  height: 122px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.55) 0%, rgba(45, 212, 191, 0.3) 30%, rgba(13, 148, 136, 0.75) 65%, #094e47 100%);
  box-shadow: 
    0 12px 36px rgba(13, 148, 136, 0.4),
    inset 0 2px 14px rgba(255, 255, 255, 0.75),
    inset 0 -8px 20px rgba(0, 0, 0, 0.3);
  display: grid;
  place-items: center;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: sphereBreathing 4s ease-in-out infinite alternate;
}

@keyframes sphereBreathing {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-4px) scale(1.03); }
}

.core-inner-light {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(56, 189, 248, 0.6) 40%, rgba(13, 148, 136, 0.1) 75%, transparent 100%);
  filter: blur(6px);
  pointer-events: none;
  animation: innerLightPulse 3s ease-in-out infinite alternate;
}

@keyframes innerLightPulse {
  0% { transform: scale(0.85); opacity: 0.7; }
  100% { transform: scale(1.18); opacity: 1; }
}

.core-harmonic-wave {
  position: relative;
  z-index: 3;
  width: 72px;
  height: 44px;
  pointer-events: none;
}

.core-harmonic-wave .wave-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.core-harmonic-wave .wave-primary {
  stroke: #ffffff;
  stroke-width: 2.2;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.9));
  animation: waveFloatPrimary 3s ease-in-out infinite alternate;
}

.core-harmonic-wave .wave-secondary {
  stroke: rgba(167, 243, 208, 0.75);
  stroke-width: 1.6;
  filter: drop-shadow(0 0 4px rgba(45, 212, 191, 0.5));
  animation: waveFloatSecondary 4s ease-in-out infinite alternate;
}

@keyframes waveFloatPrimary {
  0% { transform: translateY(-1.5px); opacity: 0.85; }
  100% { transform: translateY(1.5px); opacity: 1; }
}

@keyframes waveFloatSecondary {
  0% { transform: translateY(1.5px); opacity: 0.5; }
  100% { transform: translateY(-1.5px); opacity: 0.8; }
}

.core-neural-particles {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
}

.neural-node {
  position: absolute;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 6px #ffffff;
}

.neural-node.n1 { width: 3.5px; height: 3.5px; top: 28%; left: 32%; animation: neuralDrift1 4.5s ease-in-out infinite; }
.neural-node.n2 { width: 4px; height: 4px; top: 62%; left: 68%; animation: neuralDrift2 5.5s ease-in-out infinite; }
.neural-node.n3 { width: 3px; height: 3px; top: 68%; left: 30%; animation: neuralDrift1 6s ease-in-out infinite; }

@keyframes neuralDrift1 {
  0%, 100% { transform: translate(0, 0); opacity: 0.4; }
  50% { transform: translate(6px, -6px); opacity: 0.95; }
}

@keyframes neuralDrift2 {
  0%, 100% { transform: translate(0, 0); opacity: 0.85; }
  50% { transform: translate(-5px, 5px); opacity: 0.35; }
}

.core-focus-nexus {
  position: absolute;
  z-index: 4;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px #ffffff, 0 0 20px rgba(56, 189, 248, 0.85);
  pointer-events: none;
}

/* ==========================================================================
   4. PUBLIC NAVIGATION HEADER
   ========================================================================== */
.public-nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--glass-bg, rgba(13, 20, 36, 0.82));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary, #f1f5f9);
}

.brand-orb {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0d9488, #06b6d4);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(13, 148, 136, 0.35);
}

.brand-name {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-name em {
  font-style: normal;
  color: #06b6d4;
}

.public-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.public-menu .nav-item {
  color: var(--text-secondary, #94a3b8);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.public-menu .nav-item:hover {
  color: #2dd4bf;
}

.public-nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-switch-btn {
  background: transparent;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary, #94a3b8);
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-switch-btn:hover {
  background: var(--bg-l2, rgba(255, 255, 255, 0.05));
  color: var(--text-primary, #ffffff);
}

html[data-theme="dark"] .sun-icon { display: block; }
html[data-theme="dark"] .moon-icon { display: none; }
html[data-theme="light"] .sun-icon { display: none; }
html[data-theme="light"] .moon-icon { display: block; }

.nav-auth-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-btn-secondary {
  text-decoration: none;
  color: var(--text-primary, #f1f5f9);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.14));
  transition: all 0.2s ease;
}

.nav-btn-secondary:hover {
  background: var(--bg-l2, rgba(255, 255, 255, 0.08));
  border-color: rgba(255, 255, 255, 0.3);
}

.nav-btn-primary {
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(135deg, #0d9488, #0891b2);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
  transition: all 0.25s ease;
}

.nav-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.5);
  background: linear-gradient(135deg, #14b8a6, #06b6d4);
}

/* ==========================================================================
   5. LANDING HERO SECTION (FOCAL LIVING MEDICARE CORE)
   ========================================================================== */
.landing-hero {
  position: relative;
  z-index: 2;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 60px;
  text-align: center;
}

.hero-container {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-core-stage {
  margin-bottom: 24px;
}

.hero-center-core {
  width: 156px;
  height: 156px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.28);
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #2dd4bf;
  margin-bottom: 22px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

.hero-headline {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
  color: var(--text-primary, #ffffff);
}

.gradient-text {
  background: linear-gradient(135deg, #14b8a6 0%, #38bdf8 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

html[data-theme="light"] .gradient-text {
  background: linear-gradient(135deg, #0d9488 0%, #0284c7 60%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtext {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-secondary, #94a3b8);
  max-width: 680px;
  margin: 0 auto 34px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 50px;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #0d9488, #0891b2);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(13, 148, 136, 0.6);
  background: linear-gradient(135deg, #14b8a6, #06b6d4);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  padding: 14px 26px;
  background: var(--glass-bg, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.16));
  color: var(--text-primary, #f1f5f9);
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.cta-secondary:hover {
  background: var(--bg-l2, rgba(255, 255, 255, 0.1));
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.cta-tertiary {
  display: inline-flex;
  align-items: center;
  color: var(--text-tertiary, #64748b);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
  padding: 8px 12px;
}

.cta-tertiary:hover {
  color: #2dd4bf;
}

/* Telemetry Ribbon Strip */
.telemetry-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
}

.telemetry-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--glass-bg, rgba(13, 20, 36, 0.65));
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  border-radius: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: left;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.telemetry-item:hover {
  transform: translateY(-2px);
  border-color: rgba(45, 212, 191, 0.35);
}

.telemetry-icon {
  font-size: 1.4rem;
}

.telemetry-item strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-primary, #f1f5f9);
  margin-bottom: 2px;
}

.telemetry-item small {
  display: block;
  font-size: 0.78rem;
  color: var(--text-secondary, #94a3b8);
}

/* ==========================================================================
   6. SCROLL STORYTELLING SECTIONS
   ========================================================================== */
.landing-section {
  position: relative;
  z-index: 2;
  padding: 100px 24px;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 56px;
}

.section-header.center {
  text-align: center;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.scene-indicator {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #06b6d4;
  margin-bottom: 12px;
}

.section-header h2, .scene-narrative h2 {
  font-size: clamp(1.8rem, 3.8vw, 2.8rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  color: var(--text-primary, #ffffff);
}

.accent-span {
  color: #2dd4bf;
}

.section-desc, .scene-lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-secondary, #94a3b8);
}

/* 2-Column Spatial Narrative Grid */
.section-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.section-grid-2col.reverse {
  direction: rtl;
}

.section-grid-2col.reverse > * {
  direction: ltr;
}

.scene-narrative {
  text-align: left;
}

.scene-features-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-bullet {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.bullet-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.18);
  color: #2dd4bf;
  font-weight: bold;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-bullet strong {
  display: block;
  font-size: 0.98rem;
  color: var(--text-primary, #f1f5f9);
  margin-bottom: 4px;
}

.feature-bullet p {
  font-size: 0.9rem;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.55;
}

/* Interactive Clinical Timeline Card */
.clinical-timeline-card {
  position: relative;
  background: var(--glass-bg, rgba(13, 20, 36, 0.78));
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}

.card-ambient-aura {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

.timeline-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  margin-bottom: 20px;
}

.status-orb-mini {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

.timeline-subject {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary, #ffffff);
}

.timeline-badge {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
  margin-left: 8px;
}

.timeline-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 22px;
}

.timeline-step {
  display: flex;
  gap: 14px;
}

.step-point {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #475569;
  margin-top: 4px;
  flex-shrink: 0;
}

.step-point.active {
  background: #14b8a6;
  box-shadow: 0 0 12px #14b8a6;
}

.step-time {
  display: block;
  font-size: 0.78rem;
  color: var(--text-tertiary, #64748b);
  margin-bottom: 4px;
  font-weight: 600;
}

.step-text {
  font-size: 0.9rem;
  color: var(--text-primary, #f1f5f9);
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
}

.timeline-insight-box {
  background: rgba(13, 148, 136, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.28);
  border-radius: 12px;
  padding: 14px 18px;
}

.insight-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #2dd4bf;
  margin-bottom: 6px;
}

.timeline-insight-box p {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-secondary, #cbd5e1);
}

/* Pillars Grid (Safety) */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pillar-box {
  background: var(--glass-bg, rgba(13, 20, 36, 0.7));
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.09));
  border-radius: 18px;
  padding: 32px 24px;
  backdrop-filter: blur(14px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.pillar-box:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 212, 191, 0.35);
}

.pillar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.pillar-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-tertiary, #475569);
  letter-spacing: -0.02em;
}

.pillar-badge {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
}

.pillar-badge.red { background: rgba(239, 68, 68, 0.16); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.pillar-badge.amber { background: rgba(245, 158, 11, 0.16); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.pillar-badge.teal { background: rgba(20, 184, 166, 0.16); color: #2dd4bf; border: 1px solid rgba(20, 184, 166, 0.3); }

.pillar-box h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary, #ffffff);
}

.pillar-box p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary, #94a3b8);
}

/* Evidence / Citation Card (Scene 04) */
.citation-glass-card {
  background: var(--glass-bg, rgba(13, 20, 36, 0.78));
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.citation-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  margin-bottom: 18px;
}

.citation-header strong {
  display: block;
  font-size: 0.96rem;
  color: var(--text-primary, #ffffff);
}

.citation-header small {
  display: block;
  font-size: 0.76rem;
  color: #06b6d4;
}

.citation-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}

.source-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
}

.source-check {
  color: #10b981;
  font-weight: bold;
}

.source-name {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary, #f1f5f9);
  margin-bottom: 2px;
}

.source-meta {
  display: block;
  font-size: 0.76rem;
  color: var(--text-secondary, #94a3b8);
}

.citation-footer {
  font-size: 0.78rem;
  color: var(--text-tertiary, #64748b);
  border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
  padding-top: 12px;
}

.trust-highlights {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trust-highlights li {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text-secondary, #94a3b8);
}

.trust-highlights strong {
  color: var(--text-primary, #f1f5f9);
}

/* Family Profiles Display (Scene 05) */
.family-profiles-display {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.family-member-card {
  background: var(--glass-bg, rgba(13, 20, 36, 0.65));
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.09));
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.family-member-card.active {
  border-color: #14b8a6;
  box-shadow: 0 0 24px rgba(20, 184, 166, 0.22);
}

.member-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1rem;
  background: linear-gradient(135deg, #0d9488, #06b6d4);
  color: #ffffff;
}

.member-avatar.senior {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.member-avatar.child {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.member-details h4 {
  font-size: 1.05rem;
  color: var(--text-primary, #ffffff);
  margin-bottom: 4px;
}

.member-details p {
  font-size: 0.82rem;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.45;
  margin-bottom: 12px;
}

.member-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(20, 184, 166, 0.2);
  color: #2dd4bf;
}

.member-tag.muted {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-tertiary, #94a3b8);
}

/* Final Call To Action Banner (Scene 06) */
.landing-cta-banner {
  position: relative;
  z-index: 2;
  padding: 100px 24px 120px;
  text-align: center;
}

.banner-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.banner-core-wrap {
  margin-bottom: 28px;
}

.banner-core {
  width: 110px;
  height: 110px;
}

.landing-cta-banner h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: var(--text-primary, #ffffff);
}

.landing-cta-banner p {
  font-size: 1.1rem;
  color: var(--text-secondary, #94a3b8);
  max-width: 600px;
  margin: 0 auto 36px;
}

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

.cta-primary.large, .cta-secondary.large {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* ==========================================================================
   7. PUBLIC FOOTER
   ========================================================================== */
.public-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  background: var(--bg-l1, #0a0f18);
  padding: 60px 24px 30px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand .brand-name {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 0.92rem;
  color: var(--text-secondary, #94a3b8);
  margin-bottom: 16px;
}

.medical-disclaimer {
  display: block;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-tertiary, #64748b);
  max-width: 620px;
}

.footer-links {
  display: flex;
  gap: 48px;
}

.link-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link-col strong {
  font-size: 0.88rem;
  color: var(--text-primary, #ffffff);
  margin-bottom: 6px;
}

.link-col a {
  text-decoration: none;
  font-size: 0.86rem;
  color: var(--text-secondary, #94a3b8);
  transition: color 0.2s ease;
}

.link-col a:hover {
  color: #2dd4bf;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
  text-align: center;
  color: var(--text-tertiary, #64748b);
  font-size: 0.76rem;
}

/* ==========================================================================
   8. LIGHT THEME OVERRIDES
   ========================================================================== */
html[data-theme="light"], body[data-theme="light"] {
  --bg-l0: #f8fafc;
  --bg-l1: #ffffff;
  --bg-l2: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --glass-bg: rgba(255, 255, 255, 0.86);
  --glass-border: rgba(15, 23, 42, 0.08);
  --border-subtle: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .public-footer {
  background: #f1f5f9;
}

html[data-theme="light"] .step-text {
  background: rgba(15, 23, 42, 0.03);
}

html[data-theme="light"] .source-item {
  background: rgba(15, 23, 42, 0.03);
}

/* ==========================================================================
   9. RESPONSIVE BREAKPOINTS (MOBILE, TABLET, 4K)
   ========================================================================== */
@media (max-width: 992px) {
  .section-grid-2col, .section-grid-2col.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .telemetry-strip {
    grid-template-columns: 1fr;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .family-profiles-display {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .public-menu {
    display: none; /* Clean mobile header */
  }
  .landing-hero {
    padding-top: 100px;
    min-height: auto;
  }
  .hero-headline {
    font-size: 2.2rem;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta-group a {
    width: 100%;
    justify-content: center;
  }
  .banner-actions {
    flex-direction: column;
    width: 100%;
  }
  .banner-actions a {
    width: 100%;
    justify-content: center;
  }
}

/* 4K and Ultra-Wide Adaptations */
@media (min-width: 2560px) {
  .nav-container, .section-container, .footer-container {
    max-width: 1920px;
  }
  .hero-headline {
    font-size: 4.8rem;
  }
  .hero-subtext {
    font-size: 1.5rem;
    max-width: 900px;
  }
  .hero-center-core {
    width: 190px;
    height: 190px;
  }
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .cinematic-intro-overlay {
    display: none !important;
  }
}
