/* =========================================================
   Care Navigator — Enterprise-Grade High-Resolution Styles
   Version: 3.0
   Updated: January 2026
   
   Ultra-modern, high-quality design for user-facing pages:
   - 4K/Retina display optimized
   - Advanced visual hierarchy
   - Micro-interactions and animations
   - Glassmorphism and depth effects
   - Professional gradients
   - Accessibility-first approach
   ========================================================= */

/* ============================================
   HERO SECTIONS - Landing Page
   ============================================ */

.hero-modern {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, 
    #0ea5e9 0%, 
    #06b6d4 25%,
    #0284c7 50%, 
    #0369a1 75%,
    #075985 100%
  );
  overflow: hidden;
  padding: 6rem 0;
  box-shadow: 0 20px 60px rgba(14, 165, 233, 0.3);
}

/* Animated background gradient */
.hero-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(56, 189, 248, 0.5) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(125, 211, 252, 0.5) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(14, 165, 233, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 60% 70%, rgba(6, 182, 212, 0.3) 0%, transparent 50%);
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
  50% { opacity: 0.8; transform: scale(1.1) rotate(5deg); }
}

/* Floating particles effect */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  animation: float 20s infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 15s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 18s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 22s; }
.particle:nth-child(4) { left: 40%; animation-delay: 6s; animation-duration: 20s; }
.particle:nth-child(5) { left: 50%; animation-delay: 8s; animation-duration: 17s; }
.particle:nth-child(6) { left: 60%; animation-delay: 10s; animation-duration: 19s; }
.particle:nth-child(7) { left: 70%; animation-delay: 12s; animation-duration: 21s; }
.particle:nth-child(8) { left: 80%; animation-delay: 14s; animation-duration: 16s; }

@keyframes float {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100px) scale(1);
    opacity: 0;
  }
}

.hero-content-modern {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  color: white;
  padding: 0 2rem;
}

.hero-title-modern {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  animation: fadeInUp 0.8s ease-out;
}

.hero-title-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero-subtitle-modern {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-cta-modern {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.btn-hero-primary {
  padding: 1.125rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  background: white;
  color: #0284c7;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  background: #f8fafc;
}

.btn-hero-secondary {
  padding: 1.125rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
}

/* Hero stats bar */
.hero-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  display: block;
  margin-bottom: 0.25rem;
  color: white;
}

.hero-stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   FEATURE SECTIONS - Modern Cards
   ============================================ */

.features-section-modern {
  padding: 6rem 0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.section-header-modern {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.section-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  color: #0369a1;
  border: 2px solid rgba(14, 165, 233, 0.3);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}

.section-title-modern {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-description-modern {
  font-size: 1.25rem;
  color: #475569;
  line-height: 1.7;
}

.features-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card-modern {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #0ea5e9 0%, #06b6d4 50%, #3b82f6 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.4);
}

.feature-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(14, 165, 233, 0.2);
  border-color: rgba(14, 165, 233, 0.3);
}

.feature-card-modern:hover::before {
  transform: scaleX(1);
}

.feature-icon-modern {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

.feature-icon-modern svg {
  width: 36px;
  height: 36px;
  stroke: white;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.feature-card-modern:hover .feature-icon-modern {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.35);
}

.feature-title-modern {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.feature-description-modern {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.feature-list-modern {
  list-style: none;
  margin-bottom: 1.5rem;
}

.feature-list-modern li {
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  position: relative;
  color: #475569;
  font-size: 0.9375rem;
}

.feature-list-modern li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #0ea5e9;
  font-weight: 700;
}

.feature-badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: #f0f9ff;
  color: #0369a1;
  border-radius: 50px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-top: 1rem;
}

/* ============================================
   HOW IT WORKS - Step Process
   ============================================ */

.steps-section-modern {
  padding: 6rem 0;
  background: white;
  position: relative;
}

.steps-container-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Connection line between steps (desktop only) */
@media (min-width: 768px) {
  .steps-container-modern::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, 
      #bae6fd 0%, 
      #0ea5e9 50%, 
      #bae6fd 100%
    );
    z-index: 0;
  }
}

.step-card-modern {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number-modern {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 auto 1.5rem;
  box-shadow: 0 12px 32px rgba(14, 165, 233, 0.35);
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: pulse 3s ease-in-out infinite;
}

.step-number-modern::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: -1;
  filter: blur(10px);
}

.step-card-modern:hover .step-number-modern {
  transform: scale(1.1) translateY(-5px);
}

.step-card-modern:hover .step-number-modern::before {
  opacity: 0.6;
}

.step-title-modern {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.step-description-modern {
  font-size: 1.0625rem;
  color: #64748b;
  line-height: 1.7;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */

.testimonials-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, #f8fafc 0%, #e0f2fe 100%);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  transition: all 0.3s ease;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 5rem;
  color: #bae6fd;
  font-family: Georgia, serif;
  line-height: 1;
  opacity: 0.5;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.testimonial-content {
  position: relative;
  z-index: 1;
  margin-bottom: 1.5rem;
  font-style: italic;
  color: #475569;
  line-height: 1.7;
  font-size: 1.0625rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #bae6fd, #0ea5e9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 1.25rem;
}

.testimonial-info {
  flex: 1;
}

.testimonial-name {
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.125rem;
}

.testimonial-role {
  font-size: 0.875rem;
  color: #94a3b8;
}

.testimonial-rating {
  color: #f59e0b;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* ============================================
   CALL TO ACTION SECTION
   ============================================ */

.cta-section-modern {
  padding: 6rem 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  position: relative;
  overflow: hidden;
}

.cta-section-modern::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-content-modern {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  color: white;
}

.cta-title-modern {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.cta-description-modern {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.cta-buttons-modern {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   TRUST INDICATORS
   ============================================ */

.trust-section {
  padding: 4rem 0;
  background: white;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.trust-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.trust-value {
  font-size: 2rem;
  font-weight: 800;
  color: #0284c7;
  margin-bottom: 0.25rem;
}

.trust-label {
  font-size: 0.9375rem;
  color: #64748b;
  font-weight: 500;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .hero-modern {
    min-height: 70vh;
    padding: 4rem 0;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 2rem;
  }
  
  .features-grid-modern {
    grid-template-columns: 1fr;
  }
  
  .steps-container-modern {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-cta-modern,
  .cta-buttons-modern {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   ACCESSIBILITY & PRINT
   ============================================ */

/* Focus visible for keyboard navigation */
.btn-hero-primary:focus-visible,
.btn-hero-secondary:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.5);
  outline-offset: 3px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .hero-modern {
    background: #0369a1;
  }
  
  .feature-card-modern {
    border: 2px solid #0f172a;
  }
}
