/* ===================================
   INFERMIERANDO - LANDING PAGE STYLES
   Mobile-First Responsive Design
   =================================== */

/* ===== CSS RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1a1a2e;
  line-height: 1.5;
  background: linear-gradient(160deg, #f0f7ff 0%, #fafbff 40%, #fff 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
}

/* ===== CSS VARIABLES ===== */
:root {
  /* Colors */
  --primary-50: #f0f7ff;
  --primary-100: #e0f0ff;
  --primary-200: #bae0ff;
  --primary-300: #7dc5ff;
  --primary-400: #3aa5ff;
  --primary-500: #0d8aff;
  --primary-600: #006fdb;
  --primary-700: #0056b3;
  --primary-800: #004897;
  --primary-900: #003a7a;

  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  --accent-yellow: #fbbf24;
  --accent-green: #10b981;

  --text-primary: #1a1a2e;
  --text-secondary: #475569;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;

  --surface: #ffffff;
  --background-light: #fafbff;

  --success: #10b981;
  --error: #ef4444;
  --warning: #fbbf24;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 2.5rem;
  --spacing-3xl: 3rem;
  --spacing-4xl: 4rem;
  --spacing-5xl: 5rem;

  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.75rem;
  --radius-3xl: 2rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  --shadow-sm: 0 2px 8px 0 rgba(13, 138, 255, 0.08);
  --shadow-md: 0 4px 16px 0 rgba(13, 138, 255, 0.12);
  --shadow-lg: 0 8px 24px 0 rgba(13, 138, 255, 0.15);
  --shadow-xl: 0 16px 48px 0 rgba(13, 138, 255, 0.18);
  --shadow-2xl: 0 24px 64px 0 rgba(13, 138, 255, 0.22);

  /* Typography */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-logo: 'Lilita One', cursive;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== UTILITY CLASSES ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-500);
  overflow: hidden;
  padding: var(--spacing-xl) var(--spacing-md);
  max-width: 100vw;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  width: 100%;
  padding: 0 var(--spacing-md);
  animation: heroFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-logo-wrapper {
  margin-bottom: var(--spacing-lg);
  animation: logoFloat 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes logoFloat {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-logo {
  width: clamp(150px, 30vw, 280px);
  height: auto;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.3));
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

/* Hero Title with ECG Lines */
.hero-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 2rem);
  margin-bottom: var(--spacing-xl);
}

.ecg-line-container {
  flex: 0 0 auto;
  width: clamp(80px, 25vw, 400px);
  height: clamp(60px, 10vw, 80px);
  position: relative;
  overflow: visible;
}

.ecg-title-canvas {
  width: 100%;
  height: 100%;
}

.hero-title {
  font-family: var(--font-logo);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 400;
  color: white;
  margin: 0;
  letter-spacing: 0.02em;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 4px 12px rgba(59, 130, 246, 0.5),
    0 0 40px rgba(59, 130, 246, 0.4);
  filter: drop-shadow(0 0 30px rgba(16, 185, 129, 0.3));
  animation: heartbeatTitle 0.9s ease-in-out infinite;
}

@keyframes heartbeatTitle {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    text-shadow:
      0 2px 4px rgba(0, 0, 0, 0.3),
      0 4px 12px rgba(59, 130, 246, 0.5),
      0 0 40px rgba(59, 130, 246, 0.4);
  }
  10% {
    transform: scale(1.05);
    opacity: 1;
    text-shadow:
      0 2px 4px rgba(0, 0, 0, 0.3),
      0 4px 12px rgba(59, 130, 246, 0.7),
      0 0 60px rgba(59, 130, 246, 0.6);
  }
  20% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.03);
    opacity: 1;
    text-shadow:
      0 2px 4px rgba(0, 0, 0, 0.3),
      0 4px 12px rgba(59, 130, 246, 0.6),
      0 0 50px rgba(59, 130, 246, 0.5);
  }
  40% {
    transform: scale(1);
  }
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.95);
  max-width: 700px;
  margin: 0 auto var(--spacing-3xl);
  line-height: 1.6;
  font-weight: 400;
  word-break: break-word;
  hyphens: auto;
  padding: 0 var(--spacing-sm);
}

.hero-subtitle strong {
  font-weight: 700;
  color: var(--accent-yellow);
}

/* Hero CTA Buttons */
.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  align-items: center;
  margin-bottom: var(--spacing-2xl);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: 14px 28px;
  background: white;
  color: var(--text-primary);
  border-radius: var(--radius-full);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: all var(--transition-bounce);
  min-width: 240px;
}

.cta-button:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.cta-button:active {
  transform: translateY(-2px) scale(1.01);
}

.cta-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.cta-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.cta-label {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cta-store {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
}

.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  animation: pulseCheck 2s ease-in-out infinite;
}

.check-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent-green);
}

@keyframes pulseCheck {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.8);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    transform: scale(1.1);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    transform: scale(1);
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 3vh;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  text-decoration: none;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-bounce);
  animation: scrollBounce 2.5s ease-in-out infinite;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.15),
    0 0 0 0 rgba(255, 255, 255, 0.4);
}

.scroll-indicator:hover {
  color: rgba(255, 255, 255, 1);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateX(-50%) translateY(6px) scale(1.05);
  animation-play-state: paused;
}

.scroll-indicator:active {
  transform: translateX(-50%) translateY(4px) scale(1);
}

.scroll-icon {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
}

@keyframes scrollBounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
    box-shadow:
      0 4px 16px rgba(0, 0, 0, 0.15),
      0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  50% {
    transform: translateX(-50%) translateY(16px);
    box-shadow:
      0 6px 20px rgba(0, 0, 0, 0.2),
      0 0 0 8px rgba(255, 255, 255, 0);
  }
}

/* Medical Cross Decoration */
.medical-decoration {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 220px;
  height: 220px;
  pointer-events: none;
  opacity: 0.5;
}

.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.ring-1 {
  width: 120px;
  height: 120px;
  animation: pulseRing 4s ease-in-out infinite;
}

.ring-2 {
  width: 160px;
  height: 160px;
  animation: pulseRing 4s ease-in-out 0.8s infinite;
}

.ring-3 {
  width: 200px;
  height: 200px;
  animation: pulseRing 4s ease-in-out 1.6s infinite;
}

@keyframes pulseRing {
  0%, 100% {
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0.3;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 0.6;
  }
}

.medical-cross {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
}

.cross-vertical,
.cross-horizontal {
  position: absolute;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.cross-vertical {
  width: 16px;
  height: 60px;
  left: 50%;
  transform: translateX(-50%);
  animation: glowVertical 3s ease-in-out infinite;
}

.cross-horizontal {
  width: 60px;
  height: 16px;
  top: 50%;
  transform: translateY(-50%);
  animation: glowHorizontal 3s ease-in-out 1.5s infinite;
}

@keyframes glowVertical {
  0%, 100% {
    opacity: 0.3;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  }
  50% {
    opacity: 0.6;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
  }
}

@keyframes glowHorizontal {
  0%, 100% {
    opacity: 0.3;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  }
  50% {
    opacity: 0.6;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
  }
}

/* ===== FEATURES SECTION ===== */
.features-section {
  padding: var(--spacing-5xl) 0;
  background: transparent;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-4xl);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-2xl);
  margin-top: var(--spacing-3xl);
}

/* Feature Cards */
.feature-card {
  position: relative;
  background: white;
  border-radius: var(--radius-2xl);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-bounce);
  overflow: hidden;
  cursor: pointer;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-bounce);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-xl);
}

/* Card Theme Variations */
.card-primary::before {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
}

.card-success::before {
  background: linear-gradient(135deg, var(--success), #059669);
}

.card-accent::before {
  background: linear-gradient(135deg, var(--accent-purple), #7c3aed);
}

.card-warning::before {
  background: linear-gradient(135deg, var(--warning), #f59e0b);
}

.card-decoration {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(13, 138, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.card-success .card-decoration {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
}

.card-accent .card-decoration {
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
}

.card-warning .card-decoration {
  background: radial-gradient(circle, rgba(251, 191, 36, 0.08) 0%, transparent 70%);
}

/* Card Icon - Premium Duotone Style */
.card-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
  box-shadow:
    0 8px 32px rgba(13, 138, 255, 0.3),
    0 0 0 0 rgba(13, 138, 255, 0.5),
    inset 0 2px 8px rgba(255, 255, 255, 0.15);
  margin-bottom: var(--spacing-lg);
  transition: all var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

/* Colored shadow glow on hover */
.card-icon-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  opacity: 0;
  filter: blur(20px);
  z-index: -1;
  transition: opacity var(--transition-bounce);
}

.feature-card:hover .card-icon-wrapper::after {
  opacity: 0.6;
}

/* Success/Green Card Icon */
.card-success .card-icon-wrapper {
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  box-shadow:
    0 8px 32px rgba(16, 185, 129, 0.3),
    0 0 0 0 rgba(16, 185, 129, 0.5),
    inset 0 2px 8px rgba(255, 255, 255, 0.15);
}

/* Accent/Purple Card Icon */
.card-accent .card-icon-wrapper {
  background: linear-gradient(135deg, var(--accent-purple) 0%, #7c3aed 100%);
  box-shadow:
    0 8px 32px rgba(139, 92, 246, 0.3),
    0 0 0 0 rgba(139, 92, 246, 0.5),
    inset 0 2px 8px rgba(255, 255, 255, 0.15);
}

/* Warning/Orange Card Icon */
.card-warning .card-icon-wrapper {
  background: linear-gradient(135deg, var(--warning) 0%, #f59e0b 100%);
  box-shadow:
    0 8px 32px rgba(251, 191, 36, 0.3),
    0 0 0 0 rgba(251, 191, 36, 0.5),
    inset 0 2px 8px rgba(255, 255, 255, 0.15);
}

/* Hover effect with pulse shadow */
.feature-card:hover .card-icon-wrapper {
  transform: scale(1.15) rotate(-8deg) translateY(-4px);
  box-shadow:
    0 16px 48px rgba(13, 138, 255, 0.4),
    0 0 32px rgba(13, 138, 255, 0.3),
    inset 0 2px 8px rgba(255, 255, 255, 0.2);
}

.card-success:hover .card-icon-wrapper {
  box-shadow:
    0 16px 48px rgba(16, 185, 129, 0.4),
    0 0 32px rgba(16, 185, 129, 0.3),
    inset 0 2px 8px rgba(255, 255, 255, 0.2);
}

.card-accent:hover .card-icon-wrapper {
  box-shadow:
    0 16px 48px rgba(139, 92, 246, 0.4),
    0 0 32px rgba(139, 92, 246, 0.3),
    inset 0 2px 8px rgba(255, 255, 255, 0.2);
}

.card-warning:hover .card-icon-wrapper {
  box-shadow:
    0 16px 48px rgba(251, 191, 36, 0.4),
    0 0 32px rgba(251, 191, 36, 0.3),
    inset 0 2px 8px rgba(255, 255, 255, 0.2);
}

/* Icon SVG with duotone effect */
.card-icon {
  width: 40px;
  height: 40px;
  color: white;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
  transition: all var(--transition-base);
}

.feature-card:hover .card-icon {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  transform: scale(1.05);
}

/* Card Content */
.card-content {
  position: relative;
  z-index: 2;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  line-height: 1.3;
}

.card-description {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Card ECG Animation */
.card-ecg {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  opacity: 0.1;
  pointer-events: none;
}

.card-ecg-canvas {
  width: 100%;
  height: 100%;
}

/* ===== SCREENSHOTS SECTION ===== */
.screenshots-section {
  padding: var(--spacing-5xl) 0;
  background: var(--background-light);
}

.screenshots-carousel {
  position: relative;
  max-width: 320px;
  margin: var(--spacing-3xl) auto 0;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
  flex-shrink: 0;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: white;
  border: none;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  z-index: 10;
  color: var(--text-primary);
}

.carousel-button:hover {
  background: var(--primary-500);
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-xl);
}

.carousel-button:active {
  transform: translateY(-50%) scale(1);
}

.carousel-button svg {
  width: 24px;
  height: 24px;
}

.carousel-prev {
  left: -60px;
}

.carousel-next {
  right: -60px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-xl);
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--primary-500);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-base);
}

.carousel-dot:hover {
  background: var(--primary-500);
  transform: scale(1.2);
}

.carousel-dot.active {
  background: var(--primary-500);
  transform: scale(1.3);
}

/* ===== FAQ SECTION ===== */
.faq-section {
  padding: var(--spacing-5xl) 0;
  background: transparent;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-3xl);
}

.faq-item {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border-left: 4px solid var(--primary-500);
}

.faq-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.faq-question {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  line-height: 1.4;
}

.faq-answer {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ===== CTA SECTION ===== */
.cta-section {
  position: relative;
  padding: var(--spacing-5xl) 0;
  background: var(--primary-500);
  overflow: hidden;
}

.cta-background {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
}

#cta-ecg-canvas {
  width: 100%;
  height: 100%;
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: white;
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
}

.cta-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-3xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  align-items: center;
}

.cta-white {
  background: white;
  color: var(--text-primary);
}

.cta-white:hover {
  background: rgba(255, 255, 255, 0.95);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--text-primary);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--spacing-4xl) 0 var(--spacing-2xl);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-3xl);
  margin-bottom: var(--spacing-3xl);
}

.footer-brand {
  text-align: center;
}

.footer-logo {
  width: 120px;
  height: auto;
  margin-bottom: var(--spacing-md);
}

.footer-tagline {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
  text-align: center;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.footer-list a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.footer-list a:hover {
  color: var(--primary-300);
}

.social-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.instagram-icon {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575px) {
  .hero-section {
    height: 100vh;
    padding: var(--spacing-lg) var(--spacing-sm) var(--spacing-3xl);
    overflow-y: auto;
  }

  .hero-content {
    padding: 0 var(--spacing-xs);
    max-height: 100%;
    overflow-y: auto;
  }

  .hero-subtitle {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
    max-width: 100%;
    padding: 0 var(--spacing-md);
    margin-bottom: var(--spacing-lg);
  }

  .scroll-indicator {
    bottom: max(5vh, 30px);
    width: 48px;
    height: 48px;
  }

  .scroll-icon {
    width: 24px;
    height: 24px;
  }

  /* ECG line adjustments for mobile */
  .ecg-line-container {
    height: 60px;
    min-height: 60px;
  }

  .hero-title-wrapper {
    gap: clamp(0.5rem, 2vw, 1rem);
    margin-bottom: var(--spacing-lg);
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .hero-cta-group {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-links {
    grid-template-columns: repeat(3, 1fr);
    text-align: left;
  }

  .cta-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .container {
    padding: 0 var(--spacing-xl);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .medical-decoration {
    opacity: 0.7;
    width: 280px;
    height: 280px;
  }

  .ring-1 {
    width: 160px;
    height: 160px;
  }

  .ring-2 {
    width: 210px;
    height: 210px;
  }

  .ring-3 {
    width: 260px;
    height: 260px;
  }

  .medical-cross {
    width: 80px;
    height: 80px;
  }

  .cross-vertical {
    width: 20px;
    height: 80px;
  }

  .cross-horizontal {
    width: 80px;
    height: 20px;
  }

  .footer-content {
    grid-template-columns: 1fr 2fr;
  }

  .footer-brand {
    text-align: left;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-3xl);
  }

  .hero-title-wrapper {
    flex-wrap: nowrap;
  }

  .screenshots-carousel {
    max-width: 400px;
  }

  .carousel-button {
    width: 56px;
    height: 56px;
  }

  .carousel-button svg {
    width: 28px;
    height: 28px;
  }

  .carousel-prev {
    left: -80px;
  }

  .carousel-next {
    right: -80px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    padding: 0 var(--spacing-2xl);
  }

  .screenshots-carousel {
    max-width: 450px;
  }
}

/* Mobile carousel adjustments */
@media (max-width: 767px) {
  .screenshots-carousel {
    max-width: 100%;
    margin: var(--spacing-2xl) auto 0;
  }

  .carousel-button {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
  }

  .carousel-button svg {
    width: 20px;
    height: 20px;
  }

  .carousel-prev {
    left: var(--spacing-sm);
  }

  .carousel-next {
    right: var(--spacing-sm);
  }

  .carousel-dots {
    margin-top: var(--spacing-lg);
  }

  .carousel-dot {
    width: 10px;
    height: 10px;
  }
}

/* ===== CONTACT MODAL ===== */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.contact-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.modal-content {
  position: relative;
  background: white;
  border-radius: var(--radius-2xl);
  padding: var(--spacing-3xl);
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-2xl);
  transform: scale(0.9);
  transition: transform var(--transition-bounce);
  text-align: center;
}

.contact-modal.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  width: 40px;
  height: 40px;
  background: var(--background-light);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  color: var(--text-secondary);
}

.modal-close:hover {
  background: var(--primary-500);
  color: white;
  transform: rotate(90deg);
}

.modal-close svg {
  width: 20px;
  height: 20px;
}

.modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-xl);
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(13, 138, 255, 0.3);
}

.modal-icon svg {
  width: 40px;
  height: 40px;
  color: white;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.modal-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-2xl);
}

.email-container {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  background: var(--background-light);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-md);
  border: 2px solid transparent;
  transition: border-color var(--transition-base);
}

.email-container:focus-within {
  border-color: var(--primary-500);
}

.email-text {
  flex: 1;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary-600);
  word-break: break-all;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 10px 16px;
  background: var(--primary-500);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-bounce);
  box-shadow: 0 4px 12px rgba(13, 138, 255, 0.2);
}

.copy-button:hover {
  background: var(--primary-600);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(13, 138, 255, 0.3);
}

.copy-button:active {
  transform: translateY(0) scale(1);
}

.copy-button.copied {
  background: var(--success);
}

.copy-button.copied .copy-icon {
  animation: checkPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes checkPop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

.copy-icon {
  width: 16px;
  height: 16px;
}

.copy-feedback {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--success);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.copy-feedback.show {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile adjustments */
@media (max-width: 575px) {
  .modal-content {
    padding: var(--spacing-2xl) var(--spacing-lg);
  }

  .email-container {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .copy-button {
    width: 100%;
    justify-content: center;
  }

  .email-text {
    font-size: 0.875rem;
    text-align: center;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .scroll-indicator {
    animation: none;
    opacity: 0.8;
  }
}

/* Focus states for keyboard navigation */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 4px;
}

/* ===== PRINT STYLES ===== */
@media print {
  .hero-background,
  .medical-decoration,
  .card-decoration,
  .card-ecg {
    display: none;
  }
}
