@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800;900&display=swap');

/* Typography Defaults */
body {
  font-family: 'Inter', sans-serif;
  background-color: #F8FAFC;
  color: #202A78;
  overflow: hidden; /* Strict no-scroll requirement */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
}

/* Background Subtle Grid */
.subtle-grid {
  background-image: 
    linear-gradient(to right, rgba(32, 42, 120, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(32, 42, 120, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Premium Light Theme Glassmorphism */
.glass-card {
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 
    0 10px 30px -10px rgba(32, 42, 120, 0.04),
    inset 0 1px 0px rgba(255, 255, 255, 0.8);
}

.glass-card:hover {
  z-index: 10;
  transform: translateY(-5px);
  border-color: rgba(91, 174, 79, 0.4);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 
    0 20px 40px -15px rgba(32, 42, 120, 0.08),
    0 0 20px rgba(91, 174, 79, 0.12),
    inset 0 1px 0px rgba(255, 255, 255, 0.9);
}

/* Coming Soon Badge */
.green-badge {
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 0, 0, 0.2);
  color: #000000;
  letter-spacing: 0.15em;
}

/* Custom Text Gradient Animation (LeadPro colors: Deep Blue, Green, Yellow, Red) */
.animated-gradient-text {
  background: linear-gradient(
    90deg,
    #2D3E9F 0%,
    #5BAE4F 25%,
    #F2BE2C 50%,
    #D94C43 75%,
    #2D3E9F 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* fallback: `-webkit-text-fill-color` used for broad support */
  animation: gradient-move 8s linear infinite;
}

@keyframes gradient-move {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Floating Animations for Medical Crosses / Blobs */
@keyframes float-slow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

@keyframes float-medium {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(-8deg);
  }
}

.float-slow {
  animation: float-slow 15s ease-in-out infinite;
}

.float-slow-delay {
  animation: float-slow 18s ease-in-out infinite;
  animation-delay: 2s;
}

.float-medium {
  animation: float-medium 10s ease-in-out infinite;
}

/* CTA Button Styling */
.btn-premium {
  background: linear-gradient(135deg, #2D3E9F 0%, #202A78 100%);
  color: #FFFFFF;
  box-shadow: 0 10px 25px -5px rgba(45, 62, 159, 0.3);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-premium:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 15px 30px -5px rgba(45, 62, 159, 0.45),
    0 0 20px rgba(45, 62, 159, 0.25);
}

.btn-premium:active {
  transform: translateY(-1px) scale(0.99);
}

/* Shimmer/Sweep Light effect for Button and Cards */
.btn-premium::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: 0.75s;
  opacity: 0;
}

.btn-premium:hover::after {
  opacity: 1;
  left: 125%;
  transition: all 0.75s ease-in-out;
}

/* Glass card light sweep reflection */
.shimmer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: skewX(-25deg);
  transition: none;
}

.shimmer-card:hover::before {
  left: 150%;
  transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dynamic Radial Background Blobs */
.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  mix-blend-mode: multiply;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.bg-blob-blue {
  background: radial-gradient(circle, #2D3E9F 0%, transparent 80%);
}

.bg-blob-green {
  background: radial-gradient(circle, #5BAE4F 0%, transparent 80%);
}

.bg-blob-yellow {
  background: radial-gradient(circle, #F2BE2C 0%, transparent 80%);
}

/* Word Reveal Entrance */
.word {
  display: inline-block;
  opacity: 0;
  transform: translateY(15px);
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
  animation: revealWord 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.word-solid-bold {
  display: inline-block;
  opacity: 0;
  transform: translateY(15px);
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
  color: #2D3E9F; /* LeadPro Deep Blue */
  font-weight: 900; /* Bolder (Black weight) */
  animation: revealWord 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Cursor spotlight overlay */
.spotlight-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    circle 300px at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(91, 174, 79, 0.04) 0%,
    rgba(45, 62, 159, 0.02) 50%,
    transparent 100%
  );
}

/* Medical Cross SVG */
.medical-cross {
  fill: none;
  stroke: #2D3E9F;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.08;
}


/* ECG canvas positioning */
#ecg-canvas {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  pointer-events: none;
  z-index: 1;
}

/* Image Blend Mask for natural background fading */
.blend-mask {
  mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 0) 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 0) 75%);
}

/* Custom Scrollbar Suppression for safe keeping */
::-webkit-scrollbar {
  display: none;
}
* {
  scrollbar-width: none;
}

/* Accessibility: Support prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  .parallax, .float-slow, .float-slow-delay, .float-medium, .animated-gradient-text, .word, .word-gradient {
    transform: none !important;
    animation: none !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    color: #202A78 !important; /* Navy base text */
  }
  .word-gradient {
    background-clip: unset !important;
    -webkit-background-clip: unset !important;
  }
}
