/* Modern Landing Page Styles with Dark/Light Mode Support */

/* Import Inter font for modern typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables for Dark/Light Mode */
:root {
  /* Colors */
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --primary-gradient-hover: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  --accent-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  
  /* Spacing */
  --section-padding: 5rem 0;
  --container-padding: 0 2rem;
  --border-radius: 16px;
  --border-radius-lg: 24px;
  --max-width: 1400px;
  
  /* Animations */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Variables (Default) */
:root {
  --bg-primary: var(--bg-color, #0a0a0a);
  --bg-secondary: var(--secondary-bg, #111111);
  --bg-tertiary: var(--card-bg, #1a1a1a);
  --bg-card: rgba(26, 26, 26, 0.8);
  --bg-card-hover: rgba(38, 38, 38, 0.9);
  
  --text-primary: var(--text-color, #ffffff);
  --text-secondary: var(--secondary-text, #a1a1aa);
  --text-tertiary: #71717a;
  --text-muted: #52525b;
  
  --border-primary: var(--border-color, #262626);
  --border-secondary: #404040;
  --border-accent: #525252;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 20px rgba(102, 126, 234, 0.3);
  
  --gradient-orb-1: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
  --gradient-orb-2: radial-gradient(circle, rgba(118, 75, 162, 0.08) 0%, transparent 70%);
  --gradient-orb-3: radial-gradient(circle, rgba(240, 147, 251, 0.06) 0%, transparent 70%);
}

/* Light Mode Variables */
html.light {
  --bg-primary: var(--bg-color, #ffffff);
  --bg-secondary: var(--secondary-bg, #f8fafc);
  --bg-tertiary: var(--card-bg, #f1f5f9);
  --bg-card: rgba(255, 255, 255, 0.8);
  --bg-card-hover: rgba(248, 250, 252, 0.9);
  
  --text-primary: var(--text-color, #0f172a);
  --text-secondary: var(--secondary-text, #475569);
  --text-tertiary: #64748b;
  --text-muted: #94a3b8;
  
  --border-primary: var(--border-color, #e2e8f0);
  --border-secondary: #cbd5e1;
  --border-accent: #94a3b8;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px rgba(102, 126, 234, 0.2);
  
  --gradient-orb-1: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
  --gradient-orb-2: radial-gradient(circle, rgba(118, 75, 162, 0.04) 0%, transparent 70%);
  --gradient-orb-3: radial-gradient(circle, rgba(240, 147, 251, 0.03) 0%, transparent 70%);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.landing {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'SF Pro Display', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  font-weight: 400;
  transition: var(--transition);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* Typography */
.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
  position: relative;
  animation: fadeInUp 0.8s ease-out;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-header {
  margin-bottom: 4rem;
}

/* Buttons */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: #667eea;
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  background: #5a6fd8;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-secondary);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary.large, .btn-secondary.large {
  padding: 1.125rem 2rem;
  font-size: 1rem;
  border-radius: 16px;
}

/* Gradient Orbs for Background */
.gradient-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: float 6s ease-in-out infinite;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: var(--gradient-orb-1);
  top: 10%;
  right: 10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: var(--gradient-orb-2);
  bottom: 20%;
  left: 5%;
  animation-delay: 2s;
}

.orb-3 {
  width: 250px;
  height: 250px;
  background: var(--gradient-orb-3);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 4s;
}

.orb-4 {
  width: 350px;
  height: 350px;
  background: var(--gradient-orb-1);
  top: 20%;
  left: 20%;
  animation-delay: 1s;
}

.orb-5 {
  width: 200px;
  height: 200px;
  background: var(--gradient-orb-2);
  bottom: 30%;
  right: 30%;
  animation-delay: 3s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(120deg); }
  66% { transform: translateY(10px) rotate(240deg); }
}

/* Hero Section */
.hero {
  padding: var(--section-padding);
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: visible;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-secondary);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.hero-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
  animation: shimmer 4s infinite;
}

.badge-icon {
  font-size: 1rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.hero-title {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.stat {
  text-align: center;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  flex: 1;
}

.stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-secondary);
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-top: 0.25rem;
  font-weight: 500;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Ensure floating cards are always visible and properly positioned */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: visible; /* Ensure cards are not clipped */
  min-height: 400px; /* Ensure enough space for cards */
}

.hero-image-container {
  position: relative;
  max-width: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  border-radius: var(--border-radius-lg);
  padding: 0;
  margin-bottom: 120px;
  transition: var(--transition);
  border: none;
  overflow: visible; /* Ensure cards are not clipped */
}

.hero-image-container::before {
  display: none;
}

.hero-image-container:hover {
  transform: translateY(-2px);
}

.hero-image-container:hover::before {
  display: none;
}

.hero-image-picture {
  display: block;
  width: 100%;
  max-width: 1200px;
  position: relative;
}

.hero-image-picture::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%);
  border-radius: var(--border-radius-lg);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
  z-index: 1;
}

.hero-image-container:hover .hero-image-picture::before {
  opacity: 1;
}

.hero-image {
  width: 100%;
  height: auto;
  border: none;
  transition: var(--transition);
  object-fit: contain;
  display: block;
}

.hero-image:hover {
  transform: scale(1.02);
}

/* Floating Cards - Horizontal Bottom Layout */
.floating-cards-container {
  position: absolute;
  bottom: -120px; /* Moved further down to prevent overlap */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  pointer-events: none;
  z-index: 5; /* Lower z-index to stay below news cards */
  flex-wrap: nowrap;
  max-width: 90%;
  width: auto;
  padding: 0.5rem 0; /* Add vertical padding to prevent clipping */
  overflow: visible;
}

.floating-card {
  position: relative;
  background: rgba(26, 26, 26, 0.95);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 12px; /* More rounded for modern look */
  padding: 1rem 0.625rem; /* Increased top/bottom padding significantly */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  backdrop-filter: blur(25px);
  animation: floatCard 6s ease-in-out infinite;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 110px;
  max-width: 120px;
  pointer-events: auto;
  overflow: visible;
  transform-origin: center;
  flex: 1;
  text-align: center;
  z-index: 6; /* Lower z-index to stay below news cards */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.05); /* Enhanced shadow */
}

.floating-card::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.2));
  border-radius: 13px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.floating-card:hover {
  transform: translateY(-8px) scale(1.05); /* Increased hover effect */
  border-color: rgba(102, 126, 234, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(102, 126, 234, 0.3); /* Enhanced hover shadow */
}

.floating-card:hover::after {
  opacity: 1;
}

/* Light mode adjustments */
html.light .floating-card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(102, 126, 234, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.05); /* Enhanced light mode shadow */
}

html.light .floating-card:hover {
  border-color: rgba(102, 126, 234, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(102, 126, 234, 0.2); /* Enhanced light mode hover */
}

/* Staggered animation delays for horizontal layout */
.card-1 { animation-delay: 0s; }
.card-2 { animation-delay: 1.2s; }
.card-3 { animation-delay: 2.4s; }
.card-4 { animation-delay: 3.6s; }
.card-5 { animation-delay: 4.8s; }
html.light .floating-card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(102, 126, 234, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

html.light .floating-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(102, 126, 234, 0.2);
}



.card-icon {
  font-size: 1.1rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.floating-card:hover .card-icon {
  transform: scale(1.1);
}

.card-content {
  flex: 1;
}

.card-title {
  font-size: 0.65rem;
  color: var(--text-tertiary);
  font-weight: 500;
  margin-bottom: 0.125rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-value {
  font-size: 0.8rem;
  color: var(--text-primary);
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card-pulse {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  position: relative;
  animation: pulse 2s infinite;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6), 0 0 6px rgba(16, 185, 129, 0.5);
  flex-shrink: 0;
  margin: 0.5rem 0; /* Add vertical margin to create space for rings */
}

.card-pulse::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 250%;
  height: 250%;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.3);
  transform: translate(-50%, -50%);
  animation: pulseRing 2s infinite;
}

.card-pulse::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 350%;
  height: 350%;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  transform: translate(-50%, -50%);
  animation: pulseRing 2s infinite 0.5s;
}

@keyframes floatCard {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg); 
  }
  25% { 
    transform: translateY(-8px) rotate(0.5deg); 
  }
  50% { 
    transform: translateY(-4px) rotate(-0.3deg); 
  }
  75% { 
    transform: translateY(-6px) rotate(0.2deg); 
  }
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes pulse {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6), 0 0 6px rgba(16, 185, 129, 0.5);
  }
  50% { 
    opacity: 0.8; 
    transform: scale(1.4);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0), 0 0 12px rgba(16, 185, 129, 0.7);
  }
}

@keyframes pulseRing {
  0% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(0.3);
  }
  50% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(0.8);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

/* Enhanced floating card interactions */
.floating-card {
  cursor: pointer;
  user-select: none;
}

.floating-card:active {
  transform: translateY(-3px) scale(0.98);
}

/* Add subtle glow effect on hover */
.floating-card:hover::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--primary-gradient);
  border-radius: 18px;
  z-index: -1;
  opacity: 0.2;
  transition: var(--transition);
}

/* Improved card content layout */
.card-content {
  flex: 1;
  min-width: 0;
  overflow: visible;
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.25rem 0; /* Add padding to prevent clipping */
}

.card-title {
  font-size: 0.5rem;
  color: var(--text-tertiary);
  font-weight: 500;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  white-space: normal; /* Allow wrapping */
  overflow: visible;
  line-height: 1.3;
  word-break: break-word;
  max-width: 100%;
  padding: 0.125rem 0; /* Add padding to prevent text clipping */
}

.card-value {
  font-size: 0.65rem;
  color: var(--text-primary);
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  overflow: visible;
  line-height: 1.2;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  justify-content: center;
  max-width: 100%;
  padding: 0.25rem 0; /* Add padding to prevent pulse clipping */
  position: relative;
}

/* Features Section */
.features {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  position: relative;
  z-index: 1;
  margin-top: 2rem;
}

.section-header {
  margin-bottom: 4rem;
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

.features-grid {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.feature-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(20px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.05), transparent);
  transition: var(--transition-slow);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  border-color: var(--border-secondary);
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card:nth-child(even) {
  grid-template-columns: auto 1fr;
}

.feature-card:nth-child(even) .feature-visual {
  order: -1;
}

.feature-icon {
  display: none;
}



.feature-content h3 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
  transition: var(--transition);
}

.feature-card:hover .feature-content h3 {
  color: transparent;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
}

.feature-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.feature-stats {
  display: flex;
  gap: 2rem;
}

.feature-stat {
  text-align: center;
  padding: 0.75rem 1rem;
  background: var(--bg-tertiary);
  border-radius: 8px;
  border: 1px solid var(--border-primary);
  transition: var(--transition);
}

.feature-card:hover .feature-stat {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-stat .stat-number {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
}

.feature-stat .stat-label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 0.25rem;
}

.feature-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-image {
  max-width: 300px;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  border: 1px solid var(--border-primary);
}

.feature-image:hover {
  transform: scale(1.05) rotate(1deg);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

/* Demo Section */
.demo {
  padding: var(--section-padding);
  background: var(--bg-primary);
  position: relative;
}

.demo-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 4rem;
}

/* Demo CTA Card */
.demo-cta-card {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%);
  border: 2px solid var(--border-primary);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.demo-cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.demo-cta-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl), 0 0 40px rgba(102, 126, 234, 0.2);
}

.demo-cta-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: var(--shadow-lg), 0 0 30px rgba(102, 126, 234, 0.3);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.demo-cta-card h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.demo-cta-card p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.btn-demo-large {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.btn-demo-large::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-demo-large:hover::before {
  left: 100%;
}

.btn-demo-large:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.demo-features-quick {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.demo-features-quick span {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Demo Features List */
.demo-features {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.03) 100%);
  border: 2px solid var(--border-primary);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.demo-features:hover {
  border-color: var(--border-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.demo-features h3 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.feature-item {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
  padding: 0.375rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.feature-item:hover {
  background: rgba(102, 126, 234, 0.05);
  transform: translateX(5px);
}

.feature-check {
  width: 18px;
  height: 18px;
  background: var(--success-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.feature-check svg {
  width: 12px;
  height: 12px;
}

.feature-text h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.125rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.feature-text p {
  color: var(--text-secondary);
  line-height: 1.35;
  font-size: 0.8125rem;
}

/* Demo Bottom CTA */
.demo-bottom-cta {
  text-align: center;
  padding: 3rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.03) 100%);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-primary);
}

.demo-bottom-cta p {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.demo-note {
  text-align: center;
  margin-top: 1rem;
}

.demo-note span {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

/* Testimonials */
.testimonials {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  position: relative;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.testimonial {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-primary);
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.testimonial:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--border-secondary);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
}

.testimonial-author strong {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
}

.testimonial-author span {
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

.testimonial-rating {
  margin-left: auto;
}

.stars {
  color: #fbbf24;
  font-size: 0.875rem;
}

.testimonial p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-style: italic;
}

.testimonial-footer {
  display: flex;
  justify-content: center;
}

.testimonial-metric {
  text-align: center;
  padding: 0.75rem 1.5rem;
  background: var(--bg-tertiary);
  border-radius: 12px;
  border: 1px solid var(--border-primary);
}

.metric-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 0.25rem;
}

/* Trust Indicators */
.trust-indicators {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-primary);
  backdrop-filter: blur(10px);
}

.trust-item {
  text-align: center;
}

.trust-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.trust-label {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-top: 0.5rem;
}

/* Final CTA */
.final-cta {
  padding: var(--section-padding);
  background: var(--bg-primary);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.final-cta h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.final-cta p {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.cta-features {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

.cta-feature svg {
  color: #10b981;
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  padding: 3rem 0 2rem 0;
  border-top: 1px solid var(--border-primary);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo .brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-description {
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary-gradient);
  color: white;
  transform: translateY(-2px);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-heading {
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-primary);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright p {
  color: var(--text-tertiary);
  font-size: 0.875rem;
  margin: 0;
}

.footer-disclaimer {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  opacity: 0.8;
  font-style: italic;
}

.footer-legal {
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

/* Responsive Design */
/* Responsive Design for Horizontal Layout */
@media (min-width: 1440px) {
  .floating-cards-container {
    bottom: -125px; /* Moved further down to prevent overlap */
    gap: 0.75rem;
    max-width: 85%;
  }
  
  .floating-card {
    min-width: 120px;
    max-width: 130px;
    padding: 0.625rem 0.75rem;
  }
  
  .card-icon {
    font-size: 1.2rem;
  }
  
  .card-title {
    font-size: 0.55rem;
  }
  
  .card-value {
    font-size: 0.7rem;
  }
}

@media (min-width: 1025px) and (max-width: 1439px) {
  .floating-cards-container {
    bottom: -122px; /* Moved further down to prevent overlap */
    gap: 0.625rem;
    max-width: 88%;
  }
  
  .floating-card {
    min-width: 115px;
    max-width: 125px;
  }
  
  .card-title {
    font-size: 0.52rem;
  }
  
  .card-value {
    font-size: 0.67rem;
  }
}

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-image-picture {
    max-width: 750px;
  }
  
  .demo-image-picture {
    max-width: 650px;
  }
  
  .hero-image-container {
    margin-bottom: 160px; /* Increased to accommodate floating cards */
  }
  
  .features {
    margin-top: 1rem; /* Reduced from 3rem to bring features section closer */
  }
  
  /* Tablet horizontal cards - responsive sizing with lower z-index */
  .floating-cards-container {
    bottom: -120px; /* Moved further down to prevent overlap with image */
    gap: 0.5rem; /* Increased gap for better spacing */
    max-width: 95%;
    width: auto;
    justify-content: center;
    z-index: 5; /* Lower z-index to stay below news cards */
    padding: 0 1rem; /* Added padding for better edge spacing */
    position: absolute; /* Ensure proper positioning */
  }
  
  .floating-card {
    min-width: calc((95vw - 4rem) / 5 - 0.5rem); /* Adjusted for new gap */
    max-width: calc((95vw - 4rem) / 5 - 0.5rem);
    width: calc((95vw - 4rem) / 5 - 0.5rem);
    padding: 0.75rem 0.4375rem; /* Increased padding for pulse visibility */
    flex-shrink: 0;
    border-radius: 8px; /* Slightly more rounded for modern look */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Added subtle shadow */
    backdrop-filter: blur(20px); /* Enhanced blur effect */
    z-index: 6; /* Lower z-index to stay below news cards */
    position: relative; /* Ensure z-index works */
    overflow: visible; /* Allow pulse rings to show */
  }
  
  .card-icon {
    font-size: 0.875rem;
  }
  
  .card-title {
    font-size: 0.42rem;
    line-height: 1.3;
    white-space: normal; /* Allow wrapping */
    overflow: visible;
    word-break: break-word;
    padding: 0.125rem 0;
  }
  
  .card-value {
    font-size: 0.52rem;
    line-height: 1.2;
    overflow: visible;
    padding: 0.25rem 0;
  }
  
  .card-pulse {
    margin: 0.375rem 0;
  }
  
  .feature-card {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 1rem; /* Reduced from 1.5rem to decrease space between content and visual */
  }
  
  /* Override even child grid layout for mobile */
  .feature-card:nth-child(even) {
    grid-template-columns: 1fr !important;
  }
  
  .feature-card:nth-child(even) .feature-visual {
    order: 2;
  }
  
  /* Ensure feature-visual appears below content on mobile with reduced spacing */
  .feature-content {
    order: 1;
  }
  
  .feature-visual {
    order: 2;
    margin-top: 0.5rem; /* Reduced from 1rem to decrease space */
  }
  
  .demo-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .demo-cta-card {
    padding: 2rem;
  }
  
  .demo-cta-card h3 {
    font-size: 1.5rem;
  }
  
  .demo-cta-card p {
    font-size: 1rem;
  }
  
  .demo-cta-icon {
    width: 64px;
    height: 64px;
  }
  
  .demo-cta-icon svg {
    width: 48px;
    height: 48px;
  }
  
  .btn-demo-large {
    font-size: 1rem;
    padding: 0.875rem 2rem;
  }
  
  .demo-features {
    padding: 2rem;
  }
  
  .demo-features h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }
  
  .feature-list {
    gap: 0.375rem;
  }
  
  .feature-item {
    padding: 0.375rem;
    gap: 0.5rem;
  }
  
  .feature-check {
    width: 16px;
    height: 16px;
  }
  
  .feature-check svg {
    width: 11px;
    height: 11px;
  }
  
  .feature-text h4 {
    font-size: 0.875rem;
  }
  
  .feature-text p {
    font-size: 0.75rem;
    line-height: 1.3;
  }
  
  .demo-features-quick {
    gap: 1rem;
    font-size: 0.8125rem;
  }
  
  .demo-bottom-cta {
    padding: 2rem;
  }
  
  .demo-bottom-cta p {
    font-size: 1.25rem;
  }
  
  /* Footer - keep 3 columns on tablet */
  .footer-content {
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
  }
  
  .footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Force 3 columns for Product, Company, Resources */
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 3rem 0;
    --container-padding: 0 1rem;
  }
  
  .hero {
    min-height: 80vh;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .hero-image-picture {
    max-width: 600px;
  }
  
  .demo-image-picture {
    max-width: 550px;
  }
  
  .hero-image-container {
    margin-bottom: 120px; /* Increased for better spacing */
  }
  
  .features {
    margin-top: 0.5rem; /* Reduced from 4rem to bring section closer */
  }
  
  /* Mobile horizontal cards - responsive sizing with lower z-index */
  .floating-cards-container {
    bottom: -90px; /* Moved further down to prevent overlap */
    gap: 0.375rem; /* Increased gap for better spacing */
    max-width: 100%;
    width: 100%;
    padding: 0 1rem; /* Increased padding */
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: flex-start;
    z-index: 5; /* Lower z-index to stay below news cards */
    position: relative; /* Ensure z-index works */
  }
  
  .floating-cards-container::-webkit-scrollbar {
    display: none;
  }
  
  .floating-card {
    min-width: calc((100vw - 6rem) / 5 - 0.375rem); /* Adjusted for new padding */
    max-width: calc((100vw - 6rem) / 5 - 0.375rem);
    width: calc((100vw - 6rem) / 5 - 0.375rem);
    padding: 0.625rem 0.3125rem; /* Increased padding for pulse visibility */
    border-radius: 8px; /* More rounded for modern look */
    gap: 0.25rem; /* Increased gap between elements */
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12); /* Added shadow */
    backdrop-filter: blur(15px); /* Enhanced blur */
    z-index: 6; /* Lower z-index to stay below news cards */
    position: relative; /* Ensure z-index works */
    overflow: visible; /* Allow pulse rings to show */
  }
  
  .card-icon {
    font-size: 0.75rem;
  }
  
  .card-title {
    font-size: 0.38rem;
    line-height: 1.3;
    white-space: normal; /* Allow wrapping */
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
    padding: 0.125rem 0;
  }
  
  .card-value {
    font-size: 0.48rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    padding: 0.25rem 0;
  }
  
  .card-pulse {
    margin: 0.3rem 0;
  }
  
  .feature-card {
    padding: 1.5rem;
    grid-template-columns: 1fr !important;
    gap: 0.75rem; /* Reduced from default to decrease space between content and visual */
  }
  
  /* Override even child grid layout for mobile */
  .feature-card:nth-child(even) {
    grid-template-columns: 1fr !important;
  }
  
  /* Ensure proper mobile layout - content first, then visual with reduced spacing */
  .feature-content {
    order: 1;
  }
  
  .feature-visual {
    order: 2;
    margin-top: 0; /* Remove extra margin */
  }
  
  /* Override even child order for consistent mobile layout */
  .feature-card:nth-child(even) .feature-visual {
    order: 2;
  }
  
  .feature-card:nth-child(even) .feature-content {
    order: 1;
  }
  
  .feature-stats {
    justify-content: center;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .trust-indicators {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-features {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  /* Footer - maintain 3 columns on mobile for better organization */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Keep 3 columns for Product, Company, Resources */
    gap: 1rem;
  }
  
  .footer-section {
    text-align: center; /* Center align for better mobile appearance */
  }
}

@media (max-width: 480px) {
  .btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }
  
  .hero-badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
  
  .hero-image-picture {
    max-width: 450px;
  }
  
  .demo-image-picture {
    max-width: 400px;
  }
  
  .hero-image-container {
    margin-bottom: 110px; /* Increased for better spacing */
  }
  
  .features {
    margin-top: 0rem; /* Reduced from 5rem to bring section closer */
  }
  
  /* Extra small mobile - ultra compact horizontal cards with lower z-index */
  .floating-cards-container {
    bottom: -80px; /* Moved further down to prevent overlap */
    gap: 0.25rem; /* Increased gap */
    max-width: 100%;
    width: 100%;
    padding: 0 0.75rem; /* Increased padding */
    overflow-x: auto;
    justify-content: flex-start;
    z-index: 5; /* Lower z-index to stay below news cards */
    position: relative; /* Ensure z-index works */
  }
  
  .floating-card {
    min-width: calc((100vw - 4rem) / 5 - 0.25rem); /* Adjusted for new padding */
    max-width: calc((100vw - 4rem) / 5 - 0.25rem);
    width: calc((100vw - 4rem) / 5 - 0.25rem);
    padding: 0.5rem 0.25rem; /* Increased padding for pulse visibility */
    border-radius: 6px; /* Slightly more rounded */
    gap: 0.1875rem; /* Increased gap */
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Added shadow */
    backdrop-filter: blur(12px); /* Enhanced blur */
    z-index: 6; /* Lower z-index to stay below news cards */
    position: relative; /* Ensure z-index works */
    overflow: visible; /* Allow pulse rings to show */
  }
  
  .card-icon {
    font-size: 0.625rem;
  }
  
  .card-title {
    font-size: 0.32rem;
    line-height: 1.3;
    white-space: normal; /* Allow wrapping */
    overflow: visible;
    text-overflow: clip;
    margin-bottom: 0.0625rem;
    word-break: break-word;
    padding: 0.0625rem 0;
  }
  
  .card-value {
    font-size: 0.4rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    padding: 0.1875rem 0;
  }
  
  .card-pulse {
    margin: 0.25rem 0;
  }
  
  /* Ensure feature-visual gets proper space on small screens with reduced spacing */
  .feature-card {
    grid-template-columns: 1fr !important;
    gap: 0.5rem; /* Reduced from default to decrease space between content and visual */
  }
  
  /* Override even child grid layout for mobile */
  .feature-card:nth-child(even) {
    grid-template-columns: 1fr !important;
  }
  
  .feature-visual {
    order: 2;
  }
  
  .feature-content {
    order: 1;
  }
  
  /* Consistent mobile layout for all feature cards */
  .feature-card:nth-child(even) .feature-visual {
    order: 2;
  }
  
  .feature-card:nth-child(even) .feature-content {
    order: 1;
  }
  
  .feature-image,
  .news-social-panel-placeholder {
    max-width: 100%;
    width: auto;
  }
  
  .trust-indicators {
    grid-template-columns: 1fr;
  }
  
  /* Footer - keep 3 columns even on small mobile for better organization */
  .footer-links {
    grid-template-columns: repeat(3, 1fr); /* Keep 3 columns for Product, Company, Resources */
    gap: 0.75rem;
    text-align: center;
  }
  
  .footer-section {
    text-align: center;
  }
  
  .footer-heading {
    font-size: 0.75rem; /* Slightly smaller for mobile */
  }
  
  .footer-link {
    font-size: 0.75rem; /* Slightly smaller for mobile */
  }
  
  /* Demo section mobile styles */
  .demo-cta-card {
    padding: 1.5rem;
  }
  
  .demo-cta-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }
  
  .demo-cta-card p {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
  }
  
  .demo-cta-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
  }
  
  .demo-cta-icon svg {
    width: 40px;
    height: 40px;
  }
  
  .btn-demo-large {
    font-size: 0.875rem;
    padding: 0.75rem 1.5rem;
  }
  
  .demo-features {
    padding: 1.5rem;
  }
  
  .demo-features h3 {
    font-size: 1.25rem;
    margin-bottom: 0.625rem;
  }
  
  .feature-list {
    gap: 0.375rem;
  }
  
  .feature-item {
    padding: 0.25rem;
    gap: 0.375rem;
  }
  
  .feature-check {
    width: 14px;
    height: 14px;
  }
  
  .feature-check svg {
    width: 10px;
    height: 10px;
  }
  
  .feature-text h4 {
    font-size: 0.75rem;
    margin-bottom: 0.03125rem;
  }
  
  .feature-text p {
    font-size: 0.625rem;
    line-height: 1.2;
  }
  
  .demo-features-quick {
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.75rem;
    align-items: center; /* Center items in column layout */
  }
  
  .demo-bottom-cta {
    padding: 1.5rem;
  }
  
  .demo-bottom-cta p {
    font-size: 1.125rem;
    margin-bottom: 1rem;
  }
}

/* Ultra small screens - ensure cards never overflow with lower z-index */
@media (max-width: 360px) {
  .hero-image-container {
    margin-bottom: 105px; /* Increased for better spacing */
  }
  
  .floating-cards-container {
    bottom: -75px; /* Moved further down to prevent overlap */
    gap: 0.1875rem; /* Increased gap */
    padding: 0 0.5rem; /* Increased padding */
    z-index: 5; /* Lower z-index to stay below news cards */
    position: relative; /* Ensure z-index works */
  }
  
  .floating-card {
    min-width: calc((100vw - 3rem) / 5 - 0.1875rem); /* Adjusted for new padding */
    max-width: calc((100vw - 3rem) / 5 - 0.1875rem);
    width: calc((100vw - 3rem) / 5 - 0.1875rem);
    padding: 0.4375rem 0.1875rem; /* Increased padding for pulse visibility */
    border-radius: 5px; /* Slightly more rounded */
    gap: 0.125rem; /* Increased gap */
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08); /* Added shadow */
    backdrop-filter: blur(10px); /* Enhanced blur */
    z-index: 6; /* Lower z-index to stay below news cards */
    position: relative; /* Ensure z-index works */
    overflow: visible; /* Allow pulse rings to show */
  }
  
  .card-icon {
    font-size: 0.5rem;
  }
  
  .card-title {
    font-size: 0.28rem;
    line-height: 1.3;
    margin-bottom: 0.03125rem;
    white-space: normal; /* Allow wrapping */
    overflow: visible;
    word-break: break-word;
    padding: 0.0625rem 0;
  }
  
  .card-value {
    font-size: 0.35rem;
    line-height: 1.2;
    overflow: visible;
    padding: 0.125rem 0;
  }
  
  .card-pulse {
    margin: 0.1875rem 0;
  }
  
  .card-pulse {
    width: 5px;
    height: 5px;
  }
  
  .card-pulse::before {
    width: 200%;
    height: 200%;
  }
  
  .card-pulse::after {
    width: 250%;
    height: 250%;
  }
  
  /* Footer - maintain 3 columns even on ultra small screens */
  .footer-links {
    grid-template-columns: repeat(3, 1fr); /* Keep 3 columns for Product, Company, Resources */
    gap: 0.5rem;
  }
  
  .footer-heading {
    font-size: 0.7rem; /* Even smaller for ultra small screens */
  }
  
  .footer-link {
    font-size: 0.7rem; /* Even smaller for ultra small screens */
  }
}

/* Extra small screens - additional clearance with lower z-index */
@media (max-width: 320px) {
  .hero-image-container {
    margin-bottom: 100px; /* Increased for better spacing */
  }
  
  .floating-cards-container {
    bottom: -70px; /* Moved further down to prevent overlap */
    z-index: 5; /* Lower z-index to stay below news cards */
    position: relative; /* Ensure z-index works */
  }
  
  .floating-card {
    z-index: 6; /* Lower z-index to stay below news cards */
    position: relative; /* Ensure z-index works */
  }
  
  /* Footer - maintain 3 columns even on extra small screens */
  .footer-links {
    grid-template-columns: repeat(3, 1fr); /* Keep 3 columns for Product, Company, Resources */
    gap: 0.25rem;
  }
  
  .footer-heading {
    font-size: 0.65rem; /* Even smaller for extra small screens */
  }
  
  .footer-link {
    font-size: 0.65rem; /* Even smaller for extra small screens */
  }
}

/* Improved loading states */
.hero-image,
.demo-image {
  background: var(--bg-tertiary);
  background-image: 
    linear-gradient(45deg, transparent 25%, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.1) 50%, transparent 50%, transparent 75%, rgba(255,255,255,0.1) 75%);
  background-size: 20px 20px;
  animation: loading-shimmer 1.5s infinite linear;
}

.hero-image.loaded,
.demo-image.loaded {
  background: none;
  animation: none;
}

@keyframes loading-shimmer {
  0% { background-position: -20px 0; }
  100% { background-position: 20px 0; }
}

/* Animation for scroll-triggered elements */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-aos="fade-up"] {
  animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Theme-based Image Switching */
.light-mode-image,
.dark-mode-image {
  width: 100%;
  height: auto;
  transition: opacity 0.3s ease;
}

/* Position the second image absolutely to overlay the first */
.dark-mode-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
}

.light-mode-image {
  opacity: 0;
  object-fit: contain;
}

/* Light Mode - Show light image, hide dark image */
html.light .light-mode-image {
  opacity: 1;
}

html.light .dark-mode-image {
  opacity: 0;
}

/* Ensure container has relative positioning */
.hero-image-container,
.demo-image-container {
  position: relative;
}
/* Large screen optimizations */
@media (min-width: 1920px) {
  .hero-image-picture {
    max-width: 1600px;
  }
  
  .demo-image-picture {
    max-width: 1500px;
  }
  
  .container {
    max-width: 1600px;
  }
  
  .hero-content {
    grid-template-columns: 1fr 1.4fr;
    gap: 5rem;
  }
  
  .floating-card {
    padding: 0.75rem 0.875rem;
    min-width: 125px;
    max-width: 135px;
  }
}

@media (min-width: 1440px) and (max-width: 1919px) {
  .hero-image-picture {
    max-width: 1400px;
  }
  
  .demo-image-picture {
    max-width: 1300px;
  }
  
  .hero-content {
    grid-template-columns: 1fr 1.3fr;
    gap: 4.5rem;
  }
}

@media (min-width: 1200px) and (max-width: 1439px) {
  .hero-image-picture {
    max-width: 1200px;
  }
  
  .demo-image-picture {
    max-width: 1100px;
  }
}

/* Tablet specific adjustments (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-image-container {
    margin-bottom: 160px; /* Extra space for floating cards */
  }
  
  .floating-cards-container {
    bottom: -120px; /* Position cards well below the image */
    gap: 0.5rem;
    max-width: 90%;
    padding: 0 1rem;
  }
  
  .floating-card {
    min-width: calc((90vw - 4rem) / 5 - 0.5rem);
    max-width: calc((90vw - 4rem) / 5 - 0.5rem);
    width: calc((90vw - 4rem) / 5 - 0.5rem);
    padding: 0.5rem 0.375rem;
  }
}

/* Ensure floating cards are always visible on all devices */
@media (max-width: 1024px) {
  .hero-visual {
    min-height: 350px; /* Ensure enough space for cards on tablets */
    overflow: visible;
  }
  
  /* Ensure floating cards don't overlap with image on tablets */
  .floating-cards-container {
    position: absolute;
    bottom: -120px; /* Moved further down to prevent overlap with image */
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 95%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    overflow: visible;
    gap: 0.5rem;
    padding: 0 1rem;
  }
}

@media (max-width: 768px) {
  .hero-visual {
    min-height: 300px; /* Ensure enough space for cards on mobile */
    overflow: visible;
  }
  
  /* Mobile specific floating cards positioning */
  .floating-cards-container {
    position: absolute;
    bottom: -90px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    overflow: visible;
    gap: 0.375rem;
    padding: 0.5rem 1rem; /* Add vertical padding */
  }
}

@media (max-width: 480px) {
  .hero-visual {
    min-height: 280px; /* Ensure enough space for cards on small mobile */
    overflow: visible;
  }
}

@media (max-width: 360px) {
  .hero-visual {
    min-height: 260px; /* Ensure enough space for cards on very small mobile */
    overflow: visible;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .floating-card,
  .gradient-orb,
  .card-pulse,
  .card-pulse::before,
  .card-pulse::after {
    animation: none;
  }
  
  .floating-card:hover {
    transform: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .floating-card {
    border-width: 2px;
  }
  
  .card-pulse {
    border: 2px solid var(--text-primary);
  }
}