/* ========================================
   Enhanced Hero Section Styles
   Inspired by Fin.AI and Palantir aesthetics
   ======================================== */

/* ========================================
   Hero Container & Layout
   ======================================== */
.hero-section-enhanced {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--primary-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Ensure video background is properly layered */
.hero-section-enhanced .hero-background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  background: var(--primary-dark);
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  
  /* Add monochrome filter for enterprise aesthetic */
  filter: grayscale(100%) contrast(1.1);
  transition: filter var(--transition-base);
}

/* Background video replaces the image - handled in HTML with video element */
/* Removed ::before pseudo-element as video is now in HTML */

/* ========================================
   Dark Overlay System for Text Readability
   ======================================== */

/* Uniform dark overlay for consistent text contrast */
.hero-dark-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.05);
  pointer-events: none;
  z-index: 1;
}

/* Gradient overlay for enhanced visual depth */
.hero-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, 
    rgba(10, 10, 10, 0.75) 0%,
    rgba(10, 10, 10, 0.75) 50%,
    rgba(10, 10, 10, 0.75) 100%
  ); /* Stronger gradient for better text contrast */
  pointer-events: none;
  z-index: 2;
}

/* ========================================
   Contextual Imagery Layer
   ======================================== */
.hero-imagery-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  opacity: 0.15;
}

.hero-image-placeholder {
  position: absolute;
  background: var(--secondary-dark); /* Solid background */
  border: 1px solid rgba(64, 64, 64, 0.2);
  opacity: 0.3;
}

.hero-image-left {
  top: 10%;
  left: -10%;
  width: 400px;
  height: 300px;
  transform: rotate(-5deg);
  /* Removed float animation */
}

.hero-image-right {
  bottom: 10%;
  right: -10%;
  width: 450px;
  height: 350px;
  transform: rotate(3deg);
  /* Removed float animation */
}

/* Removed float animations */

/* ========================================
   Hero Content Wrapper
   ======================================== */
.hero-content-wrapper {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6) 0; /* Reduced padding for single-screen layout */
}

/* ========================================
   Performance Metrics Bar
   ======================================== */
.hero-metrics-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-4); /* 16px spacing between pills */
  padding: var(--space-5) var(--space-6); /* 24px 32px */
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(64, 64, 64, 0.4);
  border-radius: 0;
  margin-bottom: var(--space-8); /* 48px bottom margin */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(10, 10, 10, 0.4);
  border: 1px solid rgba(64, 64, 64, 0.2);
  border-radius: 0;
  transition: all var(--transition-base);
}

.metric-item:hover {
  background: var(--accent-orange-5);
  border-color: var(--accent-orange-30);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--accent-orange-20);
}

.metric-value {
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--accent-orange);
  letter-spacing: -0.25px;
}

.metric-label {
  font-size: 1rem; /* 16px - MINIMUM */
  font-weight: 400;
  color: var(--light-gray);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.metric-divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent, rgba(64, 64, 64, 0.6), transparent);
  margin: 0 0.25rem; /* 4px spacing for dividers */
}

/* ========================================
   Hero Badge
   ======================================== */
.hero-badge {
  display: inline-block;
  padding: var(--space-3) var(--space-6); /* 12px 32px */
  background: linear-gradient(135deg, 
    var(--accent-orange-15) 0%, 
    var(--accent-orange-5) 100%);
  border: 1px solid var(--accent-orange-40);
  border-radius: 0;
  margin-bottom: var(--space-6); /* 32px */
  position: relative;
  overflow: hidden;
  /* Removed fadeInDown animation */
}

.hero-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    var(--accent-orange-30), 
    transparent);
  /* Removed badge shimmer animation */
}

@keyframes badgeShimmer {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge-text {
  font-size: 1rem; /* 16px - MINIMUM */
  font-weight: 400;
  color: var(--accent-orange);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

/* ========================================
   Enhanced Typography
   ======================================== */
.hero-title-enhanced {
  font-size: clamp(2rem, 5vw + 1rem, 5rem); /* Better responsive scaling */
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--text-white);
  margin-bottom: var(--space-6); /* 32px */
  position: relative;
  word-wrap: normal; /* Only break extremely long words */
  overflow-wrap: normal; /* Only break extremely long words */
  hyphens: none; /* Disable hyphenation */
  -webkit-hyphens: none; /* Disable hyphenation Safari */
  -ms-hyphens: none; /* Disable hyphenation IE/Edge */
  word-break: normal; /* Prevent breaking normal words */
  max-width: 100%;
}

/* Removed title glow animation */

.hero-title-accent {
  color: var(--accent-orange);
  font-weight: 700;
  display: inline-block;
  position: relative;
}

.hero-title-accent::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-orange), transparent);
}

.hero-subtitle-enhanced {
  font-size: clamp(1rem, 2vw + 0.25rem, 1.5rem); /* Better responsive scaling */
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: min(840px, 90vw); /* Responsive max-width */
  margin: 0 auto var(--space-6); /* Reduced bottom margin for mobile */
  letter-spacing: 0.01em;
  word-wrap: normal; /* Only break extremely long words */
  overflow-wrap: normal; /* Only break extremely long words */
  hyphens: none; /* Disable hyphenation */
  -webkit-hyphens: none; /* Disable hyphenation Safari */
  -ms-hyphens: none; /* Disable hyphenation IE/Edge */
  word-break: normal; /* Prevent breaking normal words */
  padding: 0 var(--space-3); /* Add horizontal padding */
  /* Removed fadeInUp animation */
}

/* Removed fadeInUp animation */

/* ========================================
   Hero CTA Buttons
   ======================================== */
.hero-cta-wrapper {
  display: flex;
  justify-content: center;
  gap: var(--space-5); /* 24px gap */
  margin-bottom: var(--space-9); /* 64px bottom */
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: var(--accent-orange);
  color: var(--primary-dark);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border: 2px solid var(--accent-orange);
  border-radius: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-transform: none;
  letter-spacing: 0.02em;
}

/* Removed button shimmer effect */

.btn-hero-primary:hover::before {
  left: 100%;
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px var(--accent-orange-40);
  background: var(--accent-orange);
  border-color: var(--accent-orange);
}

.btn-hero-primary:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px var(--accent-orange-30);
}

.btn-hero-primary:focus-visible {
  outline: 3px solid var(--accent-orange);
  outline-offset: 4px;
  border-radius: 0;
}

.btn-arrow {
  transition: transform 0.3s ease;
}

.btn-hero-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: transparent;
  color: var(--text-white);
  font-size: 1rem;
  font-weight: 400;
  text-decoration: none;
  border: 2px solid var(--medium-gray);
  border-radius: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  text-transform: none;
  letter-spacing: 0.02em;
  position: relative;
}

.btn-hero-secondary::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-orange);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.btn-hero-secondary:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  background: var(--accent-orange-10);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.btn-hero-secondary:hover::after {
  transform: scaleX(1);
}

.btn-hero-secondary:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-hero-secondary:focus-visible {
  outline: 3px solid var(--accent-orange);
  outline-offset: 4px;
  border-radius: 0;
}

/* ========================================
   Hero Stats Grid
   ======================================== */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-6); /* 32px gap */
  max-width: 1200px;
  margin: 0 auto var(--space-9); /* 64px bottom */
}

.hero-stat-card {
  padding: var(--space-7) var(--space-6); /* 40px 32px */
  background: linear-gradient(135deg,
    rgba(26, 26, 26, 0.8) 0%,
    rgba(20, 20, 20, 0.9) 100%);
  border: 1px solid rgba(64, 64, 64, 0.3);
  border-radius: 0;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.1),
    0 10px 20px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  /* Removed stat card entrance animation */
  animation-delay: calc(var(--card-index, 0) * 0.1s);
}

@keyframes statCardEntrance {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-stat-card:nth-child(1) { --card-index: 0; }
.hero-stat-card:nth-child(2) { --card-index: 1; }
.hero-stat-card:nth-child(3) { --card-index: 2; }

.hero-stat-card:focus-within {
  outline: 2px solid var(--accent-orange);
  outline-offset: 3px;
  border-radius: 0;
}

.hero-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-orange), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-stat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, var(--accent-orange-5) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-stat-card:hover::before {
  opacity: 1;
}

.hero-stat-card:hover::after {
  opacity: 1;
}

.hero-stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-orange);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--accent-orange);
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

/* Removed number pulse animation */

.stat-description {
  font-size: 1rem; /* 16px - MINIMUM */
  color: var(--light-gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 400;
}

/* ========================================
   Trust Section
   ======================================== */
.hero-trust-section {
  text-align: center;
  padding-top: var(--space-8); /* 48px */
  margin-top: var(--space-8); /* 48px */
  border-top: 1px solid rgba(64, 64, 64, 0.3);
}

.trust-label {
  font-size: 1rem; /* 16px - MINIMUM */
  font-weight: 600;
  color: var(--light-gray);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}

.trust-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.trust-logo-item {
  width: 140px;
  height: 36px; /* Professional height for logos */
  background: rgba(26, 26, 26, 0.6);
  border: 1px solid rgba(64, 64, 64, 0.3);
  border-radius: 0;
  opacity: 0.6;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.trust-logo-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-orange);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.trust-logo-item:hover {
  opacity: 1;
  border-color: var(--accent-orange-30);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.trust-logo-item:hover::after {
  transform: scaleX(1);
}

/* ========================================
   Scroll Indicator
   ======================================== */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  animation: bounce 2s infinite;
  background: transparent;
  border: none;
  padding: 0.5rem;
  color: var(--light-gray);
  transition: color var(--transition-fast);
}

.hero-scroll-indicator:hover {
  color: var(--accent-orange);
}

.hero-scroll-indicator:focus-visible {
  outline: 2px solid var(--accent-orange);
  outline-offset: 4px;
  border-radius: 0;
}

.scroll-text {
  font-size: 1rem; /* 16px - MINIMUM */
  font-weight: 600;
  color: var(--light-gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--light-gray);
  border-bottom: 2px solid var(--light-gray);
  transform: rotate(45deg);
  animation: scrollPulse 1.5s infinite;
}

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

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ========================================
   Single Screen Hero Elements
   ======================================== */

/* Hero Stats Row - Horizontal Layout */
.hero-stats-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-8);
  margin-bottom: var(--space-4);
}

.hero-stat-item {
  text-align: center;
  flex: 0 0 auto;
}

.hero-stat-item .stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-accent);
  margin-bottom: var(--space-1);
  line-height: 1.2;
}

.hero-stat-item .stat-description {
  font-size: 1rem; /* 16px - MINIMUM */
  color: var(--light-gray);
  font-weight: 500;
  line-height: 1.3;
}

/* ========================================
   Hero Trusted By Logo Carousel
   ======================================== */
.hero-trusted-by-section {
  position: relative;
  z-index: 3;
  margin-top: var(--space-4);
}

/* Hero carousel now uses shared carousel styles from logo-carousel.css */
.hero-trusted-by-section .logo-carousel-container {
  /* Hero-specific overrides only */
  margin-top: var(--space-4);
}

.hero-trusted-by-section .carousel-logo {
  /* Ensure hero logos have same sizing as integration logos */
  max-height: 36px;
}



/* ========================================
   Use Case Workflow Diagrams
   ======================================== */

/* Grid Layout for Text + Diagram Sections */
.aip-section-with-image,
.supply-chain-section-with-image,
.bring-ai-section-with-image {
  position: relative;
  overflow: visible;
}

/* ========================================
   Clean AIP Section Override (No !important)
   ======================================== */

/* Use higher specificity to override section backgrounds */
.section.aip-section-with-image {
  background: none;
  background-image: none;
}

/* Override nth-child selectors with class specificity */
.section.aip-section-with-image:nth-child(even),
.section.aip-section-with-image:nth-child(odd) {
  background: none;
  background-image: none;
}

/* Remove pseudo-element overlays */
.section.aip-section-with-image::before,
.section.aip-section-with-image::after {
  display: none;
}

.section.aip-section-with-image:hover::before {
  display: none;
}

/* Clean video styling with specificity */
.aip-section-with-image .video-container .section-video {
  filter: none;
  backdrop-filter: none;
  background: transparent;
  border: none;
  box-shadow: none;
}

.aip-section-with-image .video-container {
  background: none;
  overflow: visible;
}

.aip-section-with-image .container-xl,
.bring-ai-section-with-image .container-xl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
  position: relative;
  z-index: 1;
}

.supply-chain-section-with-image .container-xl {
  display: block;
  position: relative;
  z-index: 1;
}

/* AIP Section - Text Left, Diagram Right */
.aip-section-content {
  order: 1;
}

.aip-section-diagram {
  order: 2;
}

/* Supply Chain Section - Text Above, Diagram Below */
.supply-chain-section-content {
  margin-bottom: var(--space-8);
  text-align: center;
}

.supply-chain-section-diagram {
  width: 100%;
}

/* Bring AI Section - Text Left, Diagram Right */
.bring-ai-section-content {
  order: 1;
}

.bring-ai-section-diagram {
  order: 2;
}

/* Section Diagram Styling */
.section-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  margin: 0;
  padding: var(--space-4);
  background: transparent;
  border: none;
  border-radius: 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
}

/* Clean video display without decorative effects */

/* Video Container */
.video-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: block;
  overflow: visible; /* Changed from hidden */
  border-radius: 0;
  background: none;
}

/* Ensure video displays clearly without effects */
.section-video {
  width: 100%;
  height: auto;
  display: block;
  background: transparent;
  border: none;
  border-radius: 0;
}

.section-diagram img,
.section-diagram video {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 0;
  display: block;
  background: transparent;
}

/* Video Play Button */
.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent-orange, #ff6b35);
  color: var(--text-white);
  border: none;
  border-radius: 0;
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-system);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px var(--accent-orange-30);
  z-index: 10;
  opacity: 1;
  visibility: visible;
}

.video-play-button:hover {
  background: #e55a2b;
  transform: translate(-50%, -50%) translateY(-2px);
  box-shadow: 0 6px 16px var(--accent-orange-40);
}

.video-play-button:active {
  transform: translate(-50%, -50%) translateY(0);
  box-shadow: 0 2px 8px var(--accent-orange-30);
}

/* Play Icon */
.play-icon {
  width: 0;
  height: 0;
  border-left: 8px solid var(--text-white);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  margin-right: var(--space-1);
}

/* Button Text */
.button-text {
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Hide button when video is playing */
.video-container.playing .video-play-button {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

/* Caption removed for clean video display */

/* Section Content Styling */
.aip-section-content,
.supply-chain-section-content,
.bring-ai-section-content {
  padding: var(--space-6) 0;
}

/* Mobile Responsive - Stack Vertically */
@media (max-width: 768px) {
  .aip-section-with-image .container-xl,
  .supply-chain-section-with-image .container-xl,
  .bring-ai-section-with-image .container-xl {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  
  .aip-section-content,
  .aip-section-diagram,
  .supply-chain-section-content,
  .supply-chain-section-diagram,
  .bring-ai-section-content,
  .bring-ai-section-diagram {
    order: unset;
  }
  
  .section-diagram {
    padding: var(--space-4);
  }
  
  .section-diagram img,
  .section-diagram video {
    max-width: 100%;
  }
  
  /* Mobile video button adjustments */
  .video-play-button {
    padding: var(--space-2) var(--space-4);
    font-size: 1rem; /* 16px - MINIMUM */
  }
  
  .play-icon {
    border-left: 6px solid var(--text-white);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
  }
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-content-wrapper {
    padding: var(--space-4) 0;
  }
  

  

  
  .hero-stats-row {
    gap: var(--space-6);
  }
  
  .hero-stat-item .stat-number {
    font-size: 1.25rem;
  }
  
  .hero-stat-item .stat-description {
    font-size: 1rem; /* 16px - MINIMUM */
  }
  

}

@media (max-width: 768px) {
  .hero-content-wrapper {
    padding: var(--space-4) var(--space-3); /* Add horizontal padding */
    min-height: 100vh;
    height: auto; /* Allow content to expand if needed */
  }
  
  /* Ensure hero content doesn't overflow */
  .hero-content {
    max-width: 100%;
    padding: 0 var(--space-2);
  }
  

  

  
  .hero-stats-row {
    flex-direction: column;
    gap: var(--space-3);
  }
  
  .hero-stat-item .stat-number {
    font-size: 1.125rem;
  }
  
  .hero-stat-item .stat-description {
    font-size: 1rem; /* 16px - MINIMUM */
  }
  
  /* Hero carousel mobile adjustments */
  .hero-trusted-by-section {
    margin-top: var(--space-3);
  }
  

  
  .hero-metrics-bar {
    flex-direction: column;
    gap: var(--space-4); /* 16px */
    padding: var(--space-5); /* 24px */
    margin-bottom: var(--space-6); /* 32px */
  }
  
  .metric-divider {
    width: 60px;
    height: 1px;
  }
  
  .hero-title-enhanced {
    font-size: clamp(1.75rem, 6vw + 0.5rem, 3rem); /* Better mobile scaling */
    padding: 0 var(--space-3); /* Add padding to prevent edge overflow */
    letter-spacing: -0.5px; /* Less aggressive letter spacing */
  }
  
  .hero-cta-wrapper {
    flex-direction: column;
    width: 100%;
    padding: 0 1rem;
  }
  
  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }
  
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .hero-stat-card {
    padding: 1.5rem;
  }
  
  .trust-logos {
    gap: 1rem;
  }
  
  .trust-logo-item {
    width: 100px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .hero-section-enhanced {
    min-height: 100vh;
    padding: 4rem 0;
  }
  
  .hero-metrics-bar {
    padding: 1rem;
  }
  
  .metric-value {
    font-size: 1.5rem;
  }
  
  .hero-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Hero Trusted-By Carousel Specific Sizing
   ======================================== */

/* Hero trusted-by carousel specific sizing */
.hero-trusted-by-section .carousel-logo {
  max-height: 48px; /* Increase from 36px */
  width: auto;
  filter: grayscale(100%) opacity(0.6);
  transition: all var(--transition-base);
  cursor: pointer;
}

.hero-trusted-by-section .carousel-logo:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.1);
}

/* Responsive sizing for hero carousel only */
@media (max-width: 768px) {
  .hero-trusted-by-section .carousel-logo {
    max-height: 36px; /* Increase from 28px */
  }
}

@media (max-width: 480px) {
  .hero-trusted-by-section .carousel-logo {
    max-height: 32px; /* Increase from 24px */
  }
}

/* ========================================
   COMPLETE AIP Video Dark Tint Removal
   ======================================== */

/* Force maximum z-index and remove all overlays */
#aip.section.aip-section-with-image {
	background: transparent !important;
	position: relative;
	z-index: 100;
  }
  
  /* Ensure video container is above global overlays */
  .aip-section-with-image .video-container {
	position: relative;
	z-index: 101;
	background: transparent !important;
	isolation: isolate; /* Create new stacking context */
  }
  
  /* Force video above all overlays */
  .aip-section-with-image .section-video {
	position: relative;
	z-index: 102;
	background: transparent !important;
	/* Remove any inherited filters */
	filter: none !important;
	backdrop-filter: none !important;
	/* Ensure clean display */
	mix-blend-mode: normal;
  }
  
  /* Remove the global body overlay specifically for AIP section */
  #aip.section.aip-section-with-image::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: transparent;
	z-index: 103;
	pointer-events: none;
  }