/* Hero Section - Refactored Styles */
/* Created: 29. Oktober 2025 */
/* Extracted from index.html inline styles for better maintainability */

/* ==========================================================================
   NUCLEAR OPTION - MAXIMUM SPECIFICITY OVERRIDES (MUST BE FIRST!)
   Overrides ANY conflicting rules from bundle.optimized.css or other files
   ========================================================================== */

/* Desktop: Force 2-column grid layout */
html body section.hero-b2b.parallax-container .hero-content.hero-content-grid,
html body section.hero-b2b .hero-content.hero-content-grid,
html body .hero-b2b .hero-content-grid,
html body .hero-content.hero-content-grid {
  /* CRITICAL: Remove all glassmorphism/box styling */
  background: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;

  /* CRITICAL: Grid layout */
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  -webkit-grid-template-columns: 1fr 1fr !important;
  gap: 4rem !important;
  align-items: center !important;

  /* CRITICAL: Full width */
  max-width: 1400px !important;
  width: 100% !important;
  margin: 0 auto !important;

  /* Layout context */
  position: relative !important;
  z-index: 1 !important;
  box-sizing: border-box !important;
  -webkit-box-sizing: border-box !important;
}

/* Desktop: Text column on LEFT */
html body .hero-content-grid .hero-text-column,
html body .hero-content.hero-content-grid .hero-text-column {
  order: 1 !important;
  grid-column: 1 !important;
}

/* Desktop: CRM Dashboard on RIGHT */
html body .hero-content-grid .tool-preview-container,
html body .hero-content.hero-content-grid .tool-preview-container {
  order: 2 !important;
  grid-column: 2 !important;
}

/* Mobile: Switch to Flexbox column, CRM FIRST, Text SECOND */
@media (max-width: 768px) {
  html body section.hero-b2b.parallax-container .hero-content.hero-content-grid,
  html body section.hero-b2b .hero-content.hero-content-grid,
  html body .hero-b2b .hero-content-grid,
  html body .hero-content.hero-content-grid {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    -webkit-grid-template-columns: none !important;
    gap: 2rem !important;
    padding: 0.5rem !important;
  }

  /* Mobile: CRM Dashboard FIRST (top) */
  html body .hero-content-grid .tool-preview-container,
  html body .hero-content.hero-content-grid .tool-preview-container {
    order: 1 !important;
    margin: 0 -0.5rem 2rem -0.5rem !important;
    width: calc(100% + 1rem) !important;
  }

  /* Mobile: Text column SECOND (bottom) */
  html body .hero-content-grid .hero-text-column,
  html body .hero-content.hero-content-grid .hero-text-column {
    order: 2 !important;
  }
}

/* ==========================================================================
   CRITICAL OVERRIDES - Must come first to override bundle.optimized.css
   ========================================================================== */

/* Override bundle.optimized.css line 2805-2810 which sets max-width: 800px */
.hero-content.hero-content-grid,
.hero-b2b .hero-content.hero-content-grid,
section.hero .hero-content.hero-content-grid {
  max-width: 1400px !important;
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 4rem !important;
  align-items: center !important;
  margin: 0 auto !important;
  position: relative !important;
  z-index: 1 !important;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

/* ==========================================================================
   GRID LAYOUT
   ========================================================================== */

.hero-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  /* iOS Safari Grid Fixes */
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2; /* Erhöht von 1.1 für bessere Lesbarkeit (31.10.2025) */
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  opacity: 0.95;
}

/* ==========================================================================
   STATS COMPACT
   ========================================================================== */

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

.stat-compact {
  flex: 1 1 auto;
  min-width: 100px;
}

.stat-compact .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}

.stat-compact .stat-label {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 0.25rem;
}

/* ==========================================================================
   TRUST INDICATORS
   ========================================================================== */

.trust-indicators {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.trust-badge {
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.trust-badge:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.trust-badge span {
  display: inline-block;
}

/* ==========================================================================
   HERO ACTIONS (CTAs)
   ========================================================================== */

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   GRADIENT TEXT
   ========================================================================== */

.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
}

/* ==========================================================================
   TRUST ICONS
   ========================================================================== */

.hero-trust-indicators {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-trust-badge {
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.hero-trust-badge:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.trust-icon {
  display: inline-block;
  margin-right: 0.25rem;
}

/* ==========================================================================
   BROWSER MOCKUP
   ========================================================================== */

.tool-preview-container {
  position: relative;
  z-index: 2;
  /* Ensure relative positioning for floating badge */
}

.browser-mockup {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.browser-mockup:hover {
  transform: translateY(-5px);
}

.browser-chrome {
  background: #f0f0f0;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid #ddd;
}

.browser-dots {
  display: flex;
  gap: 0.5rem;
}

.browser-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.browser-dot-red {
  background: #ff5f56;
}

.browser-dot-yellow {
  background: #ffbd2e;
}

.browser-dot-green {
  background: #27c93f;
}

.browser-url {
  flex: 1;
  background: white;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  color: #666;
  text-align: center;
}

/* Higher specificity to override bundle.optimized.css */
.browser-mockup .browser-content {
  padding: 3rem 2rem !important;
  min-height: 400px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Decorative overlay for depth */
.browser-mockup .browser-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  pointer-events: none;
}

.browser-mockup .browser-content-icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.browser-mockup .browser-content-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: white !important;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.browser-mockup .browser-content-description {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.95) !important;
  max-width: 320px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.browser-mockup .browser-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
  max-width: 380px;
  position: relative;
  z-index: 1;
}

.browser-mockup .browser-stat {
  text-align: center;
  background: rgba(255, 255, 255, 0.15) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  backdrop-filter: blur(10px) !important;
  padding: 1rem !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.browser-mockup .browser-stat-number {
  font-size: 2rem !important;
  font-weight: 900 !important;
  color: white !important;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.browser-mockup .browser-stat-label {
  font-size: 0.7rem !important;
  color: rgba(255, 255, 255, 0.9) !important;
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.live-system-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
  }
}

/* ==========================================================================
   OPTIMIZED HERO SECTION (02.11.2025)
   Bessere Visual Hierarchy - alles behalten, nur besser anordnen
   ========================================================================== */

/* Headline - GRÖSSER und dominanter */
.hero-title-optimized {
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.75rem;
  letter-spacing: -0.02em;
}

/* Subtitle - luftiger */
.hero-subtitle-optimized {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  line-height: 1.65;
  opacity: 0.95;
  max-width: 90%;
}

/* Stats - kompakter aber noch sichtbar */
.hero-stats-optimized {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.stat-optimized {
  flex: 0 1 auto;
}

.stat-optimized .stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: white;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-optimized .stat-label {
  font-size: 0.8rem;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* CTAs - GRÖSSER und auffälliger */
.hero-actions-optimized {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.btn-primary-large {
  font-weight: 700;
  font-size: 1.15rem;
  padding: 1.25rem 2.5rem;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.35);
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary-large:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
}

.btn-secondary-large {
  font-weight: 600;
  font-size: 1.1rem;
  padding: 1.2rem 2.25rem;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-secondary-large:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

/* Trust Indicators - eine kompakte Zeile */
.trust-indicators-optimized {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  opacity: 0.9;
}

.trust-item-small {
  font-size: 0.85rem !important;
  padding: 0.5rem 1rem !important;
  background: rgba(255, 255, 255, 0.25) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-radius: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  white-space: nowrap !important;
  transition: all 0.3s ease !important;
  color: white !important;
  font-weight: 500 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.trust-item-small:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Floating Trust-Badge (rechts oben beim Browser-Mockup) */
.hero-trust-floating {
  position: absolute;
  top: -30px;
  left: -30px;
  z-index: 10;
  font-size: 0.7rem;
  line-height: 1.5;
  max-width: 220px;
  width: max-content;
  padding: 0.75rem 1.25rem !important;
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
  white-space: normal;
  word-wrap: break-word;
}

.hero-trust-floating .checkmark {
  font-size: 0.65rem;
  margin-right: 0.25rem;
}

/* ==========================================================================
   RESPONSIVE: TABLET (≤ 768px)
   ========================================================================== */

@media (max-width: 768px) {
  /* Mobile: Auto height instead of 100vh - OVERRIDE scroll-section */
  .hero,
  .hero-b2b,
  section.hero,
  .hero-section,
  .hero-b2b.scroll-section,
  section.hero.scroll-section,
  .scroll-section.hero-b2b {
    min-height: auto !important;
    height: auto !important;
    max-height: none !important;
    padding-top: 1rem !important;
    padding-bottom: 2rem !important;
    overflow: visible !important;
    scroll-snap-align: none !important;
  }

  /* Mobile only: Switch from grid to flexbox column layout */
  .hero-content-grid,
  .hero-content.hero-content-grid,
  .hero-b2b .hero-content,
  .hero-b2b .hero-content-grid,
  section.hero .hero-content {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    -webkit-box-sizing: border-box !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
    height: auto !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    padding-top: 0.5rem !important;
    padding-bottom: 1rem !important;
    overflow: visible !important;
    position: relative !important;
    gap: 0 !important;
  }

  /* Force children to stack vertically and take full width */
  .hero-content-grid > *,
  .hero-content.hero-content-grid > *,
  .hero-b2b .hero-content > * {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 1.5rem !important;
    flex-shrink: 0 !important;
  }

  /* CRM-Dashboard FIRST (ganz oben), Text column SECOND */
  .tool-preview-container {
    order: 1 !important;
    margin-bottom: 2rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  .hero-text-column {
    order: 2 !important;
  }

  /* Typography overrides with higher specificity */
  .hero-title,
  .hero-title-optimized,
  .hero-content-grid h1,
  .hero-content.hero-content-grid h1,
  .hero-b2b .hero-content h1,
  section.hero .hero-content h1,
  .hero-content .hero-title {
    font-size: 2.2rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
  }

  .hero-subtitle,
  .hero-subtitle-optimized,
  .hero-content-grid .subtitle,
  .hero-content.hero-content-grid .subtitle,
  .hero-b2b .hero-content .subtitle,
  section.hero .hero-content .subtitle {
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
    max-width: 100% !important;
  }

  /* Optimized Stats - Mobile */
  .hero-stats-optimized {
    gap: 1.5rem !important;
    margin-bottom: 2rem !important;
  }

  .stat-optimized .stat-number {
    font-size: 1.8rem !important;
  }

  .stat-optimized .stat-label {
    font-size: 0.75rem !important;
  }

  .stat-compact .stat-number {
    font-size: 2rem !important;
  }

  /* Optimized CTAs - Mobile */
  .hero-actions,
  .hero-actions-optimized {
    flex-direction: column !important;
    width: 100% !important;
    gap: 1rem !important;
  }

  .hero-actions .btn,
  .hero-actions a,
  .btn-primary-large,
  .btn-secondary-large {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    font-size: 1rem !important;
    padding: 1rem 1.5rem !important;
  }

  /* Trust Indicators - Tablet */
  .trust-indicators-optimized {
    gap: 0.75rem !important;
    justify-content: center !important;
  }

  .trust-item-small {
    font-size: 0.75rem !important;
    padding: 0.4rem 0.8rem !important;
  }

  /* Browser Mockup - Mobile Full Width */
  .browser-mockup {
    margin-top: 0 !important;
    margin-bottom: 2rem !important;
    margin-left: -0.5rem !important;
    margin-right: -0.5rem !important;
    border-radius: 16px !important;
    overflow: hidden;
    width: calc(100% + 1rem) !important;
    max-width: calc(100vw - 1rem) !important;
  }

  .browser-chrome {
    padding: 0.6rem 0.85rem !important;
  }

  .browser-dot {
    width: 10px !important;
    height: 10px !important;
  }

  .browser-url {
    font-size: 0.7rem !important;
  }

  .browser-content,
  .browser-mockup .browser-content {
    padding: 2rem 1.5rem !important;
    min-height: 320px !important;
    border-radius: 0 0 12px 12px !important;
  }

  .browser-content-icon,
  .browser-mockup .browser-content-icon {
    font-size: 3.5rem !important;
    margin-bottom: 1.25rem !important;
  }

  .browser-content-title,
  .browser-mockup .browser-content-title {
    font-size: 1.35rem !important;
    margin-bottom: 0.85rem !important;
  }

  .browser-content-description,
  .browser-mockup .browser-content-description {
    font-size: 0.9rem !important;
    max-width: 100% !important;
    margin-bottom: 2rem !important;
  }

  .browser-stats,
  .browser-mockup .browser-stats {
    gap: 1.25rem !important;
    max-width: 100% !important;
  }

  .browser-stat,
  .browser-mockup .browser-stat {
    padding: 0.85rem !important;
  }

  .browser-stat-number,
  .browser-mockup .browser-stat-number {
    font-size: 1.6rem !important;
  }

  .browser-stat-label,
  .browser-mockup .browser-stat-label {
    font-size: 0.65rem !important;
  }

  /* Floating Trust-Badge auf Tablet kleiner/anders positioniert */
  .hero-trust-floating {
    position: static !important;
    margin-bottom: 1.5rem !important;
    max-width: 100% !important;
    font-size: 0.65rem !important;
    padding: 0.6rem 1rem !important;
    text-align: center !important;
  }
}

/* ==========================================================================
   RESPONSIVE: MOBILE (≤ 640px)
   ========================================================================== */

@media (max-width: 640px) {
  /* Enhanced selectors for 640px breakpoint */
  .hero-content-grid,
  .hero-content.hero-content-grid,
  .hero-b2b .hero-content,
  .hero-b2b .hero-content-grid {
    gap: 1.5rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .hero-title,
  .hero-title-optimized,
  .hero-content-grid h1,
  .hero-content.hero-content-grid h1,
  .hero-b2b .hero-content h1,
  section.hero .hero-content h1,
  .hero-content .hero-title {
    font-size: 1.75rem !important;
    line-height: 1.25 !important;
    margin-bottom: 1rem !important;
  }

  .hero-subtitle,
  .hero-subtitle-optimized,
  .hero-content-grid .subtitle,
  .hero-content.hero-content-grid .subtitle,
  .hero-b2b .hero-content .subtitle,
  section.hero .hero-content .subtitle {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    max-width: 100% !important;
  }

  /* Stats - Mobile optimized */
  .hero-stats-compact,
  .hero-stats-optimized {
    display: flex !important;
    gap: 1rem !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    margin-bottom: 1.5rem !important;
  }

  .stat-compact,
  .stat-optimized {
    flex: 1 1 calc(50% - 0.5rem) !important;
    min-width: 0 !important;
    text-align: center !important;
  }

  .stat-compact:nth-child(3),
  .stat-optimized:nth-child(3) {
    flex-basis: 100% !important;
  }

  .stat-compact .stat-number,
  .stat-optimized .stat-number {
    font-size: 1.75rem !important;
  }

  .stat-compact .stat-label,
  .stat-optimized .stat-label {
    font-size: 0.7rem !important;
  }

  /* CTAs - Mobile full width */
  .hero-actions,
  .hero-actions-optimized {
    flex-direction: column !important;
    gap: 0.75rem !important;
    width: 100% !important;
    margin-bottom: 1.5rem !important;
  }

  .btn-primary-large,
  .btn-secondary-large,
  .hero-actions .btn,
  .hero-actions-optimized .btn {
    width: 100% !important;
    font-size: 1.05rem !important;
    padding: 1.2rem 1.5rem !important;
    min-height: 54px !important;
    font-weight: 700 !important;
  }

  /* Trust badges */
  .trust-badge,
  .hero-trust-badge {
    font-size: 0.8rem !important;
    padding: 0.5rem 1rem !important;
    white-space: nowrap !important;
  }

  .trust-indicators,
  .hero-trust-indicators,
  .trust-indicators-optimized {
    display: flex !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    flex-wrap: wrap !important;
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }

  .trust-item-small {
    font-size: 0.9rem !important;
    padding: 0.7rem 1.2rem !important;
    line-height: 1.4 !important;
    flex: 0 1 auto !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  /* Browser Mockup - Mobile */
  .browser-mockup {
    border-radius: 8px !important;
    margin-top: 1.5rem !important;
  }

  .browser-chrome {
    padding: 0.5rem 0.75rem !important;
  }

  .browser-dot {
    width: 8px !important;
    height: 8px !important;
  }

  .browser-url {
    font-size: 0.65rem !important;
    padding: 0.2rem 0.5rem !important;
  }

  .browser-content,
  .browser-mockup .browser-content {
    min-height: 280px !important;
    padding: 1.5rem 1rem !important;
    border-radius: 0 0 8px 8px !important;
  }

  .browser-content-icon,
  .browser-mockup .browser-content-icon {
    font-size: 3rem !important;
    margin-bottom: 1rem !important;
  }

  .browser-content-title,
  .browser-mockup .browser-content-title {
    font-size: 1.25rem !important;
    margin-bottom: 0.75rem !important;
  }

  .browser-content-description,
  .browser-mockup .browser-content-description {
    font-size: 0.85rem !important;
    max-width: 100% !important;
    margin-bottom: 1.5rem !important;
  }

  .browser-stats,
  .browser-mockup .browser-stats {
    gap: 0.75rem !important;
    max-width: 100% !important;
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .browser-stat,
  .browser-mockup .browser-stat {
    padding: 0.75rem 0.5rem !important;
  }

  .browser-stat-number,
  .browser-mockup .browser-stat-number {
    font-size: 1.5rem !important;
    line-height: 1.1 !important;
  }

  .browser-stat-label,
  .browser-mockup .browser-stat-label {
    font-size: 0.6rem !important;
    margin-top: 0.35rem !important;
  }

  .live-system-badge {
    top: -8px !important;
    right: -8px !important;
    padding: 0.4rem 0.8rem !important;
    font-size: 0.7rem !important;
  }

  .tool-preview-container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-top: 2rem !important;
    width: 100% !important;
    max-width: 100% !important;
    order: 999 !important;
  }

  /* Browser mockup smaller on mobile */
  .browser-mockup {
    max-height: 400px !important;
  }

  /* Floating Trust Badge - Mobile positioning */
  .hero-trust-floating {
    position: static !important;
    margin: 0 auto 1.5rem auto !important;
    max-width: 280px !important;
    font-size: 0.85rem !important;
    line-height: 1.6 !important;
    padding: 0.9rem 1.2rem !important;
    text-align: center !important;
    background: rgba(255,255,255,0.98) !important;
    color: #1a202c !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
  }

  /* Performance: Disable parallax on mobile */
  .parallax-layer {
    transform: none !important;
    will-change: auto !important;
  }
}

/* ==========================================================================
   RESPONSIVE: VERY SMALL (≤ 375px) - iPhone SE, older devices
   ========================================================================== */

@media (max-width: 375px) {
  /* iPhone SE and very small devices */
  .hero-content-grid,
  .hero-content.hero-content-grid,
  .hero-b2b .hero-content,
  .hero-b2b .hero-content-grid,
  section.hero .hero-content {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    gap: 1rem !important;
  }

  .hero-title,
  .hero-content-grid h1,
  .hero-content.hero-content-grid h1,
  .hero-b2b .hero-content h1,
  section.hero .hero-content h1,
  .hero-content .hero-title {
    font-size: 1.5rem !important;
    line-height: 1.2 !important;
    margin-bottom: 0.75rem !important;
  }

  .hero-subtitle,
  .hero-content-grid .subtitle,
  .hero-content.hero-content-grid .subtitle,
  .hero-b2b .hero-content .subtitle,
  section.hero .hero-content .subtitle {
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
  }

  .stat-compact {
    flex: 1 1 100% !important;
  }

  /* Stats symmetry for very small screens */
  .stats-optimized,
  .hero-stats-optimized {
    display: flex !important;
    justify-content: space-evenly !important;
    gap: 1rem !important;
    flex-wrap: wrap !important;
  }

  .stat-optimized {
    flex: 0 1 calc(50% - 0.5rem) !important;
    text-align: center !important;
  }

  .stat-number {
    font-size: 1.5rem !important;
  }

  .stat-label {
    font-size: 0.75rem !important;
  }

  .trust-badge,
  .hero-trust-badge {
    font-size: 0.75rem !important;
    padding: 0.4rem 0.8rem !important;
  }
}

/* ==========================================================================
   DESKTOP: Ensure proper 2-column layout (≥ 769px) - MUST COME BEFORE MOBILE
   ========================================================================== */

@media (min-width: 769px) {
  .hero-content-grid,
  .hero-b2b .hero-content,
  .hero-b2b .hero-content-grid,
  section.hero .hero-content {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    -webkit-grid-template-columns: 1fr 1fr !important;
    gap: 4rem !important;
    align-items: center !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
  }
}

/* ==========================================================================
   MOBILE FINAL OVERRIDE - MUST BE LAST!
   ========================================================================== */

@media (max-width: 768px) {
  /* Force Flexbox Column Layout on Mobile */
  .hero-content-grid,
  .hero-b2b .hero-content,
  .hero-b2b .hero-content-grid,
  section.hero .hero-content,
  .hero-content.hero-content-grid {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    -webkit-grid-template-columns: none !important;
  }

  /* CRM Dashboard FIRST (order: 1), Text SECOND (order: 2) */
  .tool-preview-container {
    order: 1 !important;
  }

  .hero-text-column {
    order: 2 !important;
  }
}
