/* ==========================================
   ARKBOOSTED DESIGN SYSTEM - UPGRADED
   Professional Visual Enhancement Package
   Version: 2.0
   ========================================== */

/* === 1. BASE VARIABLES & DESIGN TOKENS === */
:root {
  /* Spacing System */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 0.75rem;
  --spacing-lg: 1rem;
  --spacing-xl: 1.5rem;
  --spacing-2xl: 2rem;
  --spacing-3xl: 3rem;
  --spacing-4xl: 4rem;
  --section-gap: clamp(2rem, 5vw, 6rem);
  
  /* Color System - Black-Blue Theme */
  --color-primary: #3B82F6;
  --color-secondary: #00E5B4;
  --color-accent: #06B6D4;
  --color-surface: #0E1726;
  --color-surface-elevated: #14243A;
  --color-surface-light: #EAF2FF;
  --color-on-surface: #E6EEF6;
  --color-on-surface-secondary: #B8C4CE;
  --color-on-primary: #0A1523;
  --color-neutral: #64748B;
  --color-outline: #00E5B4;
  --color-overlay: rgba(14,23,38,0.85);
  --color-scrim: rgba(0,0,0,0.5);
  --color-dark-navy: #030A14;
  --color-medium-dark: #0A1B2E;
  --color-gradient-start: #0E1726;
  --color-gradient-end: #14243A;
  
  /* Typography */
  --font-family-heading: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  --font-family-body: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
  --line-height-tight: 1.05;
  --line-height-normal: 1.2;
  --line-height-loose: 1.4;
  
  /* Shadows */
  --shadow-level-1: 0 4px 16px rgba(0,229,180,0.15);
  --shadow-level-2: 0 8px 24px rgba(0,229,180,0.25);
  --shadow-level-3: 0 12px 36px rgba(0,229,180,0.35);
  --shadow-glow-cyan: 0 0 20px rgba(6,182,212,0.3);
  
  /* Animations */
  --animation-duration-fast: 110ms;
  --animation-duration-standard: 180ms;
  --animation-duration-slow: 260ms;
  --animation-curve-primary: cubic-bezier(0.25,1,0.3,1);
  
  /* Layout */
  --content-max-width: 78rem;
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;
}

/* === 2. BASE STYLES === */
html {
  font-family: var(--font-family-body);
  font-size: 1rem;
  scroll-behavior: smooth;
}

/* === 3. ANIMATIONS & KEYFRAMES === */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 229, 180, 0.3);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 229, 180, 0.5);
    opacity: 0.8;
  }
}

@keyframes subtle-float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes breakthrough-flash {
  0% {
    box-shadow: 0 0 0 rgba(6, 182, 212, 0);
  }
  50% {
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.6), 0 0 80px rgba(6, 182, 212, 0.3);
  }
  100% {
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
  }
}

@keyframes line-draw {
  from {
    stroke-dashoffset: 1000;
  }
  to {
    stroke-dashoffset: 0;
  }
}

/* Scroll Reveal Animation Classes */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* === 4. EXISTING CUSTOM STYLES (PRESERVED) === */
/* ArkBoosted Custom Styles - Professional Enhancement */

/* Enhanced Typography */
.hero-gradient-text {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Improved Button Styles */
.btn-primary {
  background: linear-gradient(135deg, #000 0%, #1f2937 100%);
  box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  border: none;
  position: relative;
  overflow: hidden;
}

/* Mobile KPI Improvements */
@media (max-width: 640px) {
  .kpi-metric {
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .kpi-metric .counter {
    word-break: break-all;
    hyphens: auto;
  }
}

/* Testimonial Section Enhancements */
.testimonial-card {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
}

.testimonial-card:nth-child(1) {
  animation-delay: 0.1s;
}

.testimonial-card:nth-child(2) {
  animation-delay: 0.2s;
}

.testimonial-card:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced testimonial hover effects */
.testimonial-card .bg-white {
  position: relative;
  overflow: hidden;
}

.testimonial-card .bg-white::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  transition: left 0.7s ease;
}

.testimonial-card:hover .bg-white::before {
  left: 100%;
}

/* Trust indicator animations */
.trust-indicator {
  animation: bounceIn 0.8s ease-out;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(30px);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05) translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.btn-primary::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 ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px 0 rgba(0, 0, 0, 0.25);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px 0 rgba(0, 0, 0, 0.08);
}

/* Enhanced Card Styles */
.card-enhanced {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #000, #374151);
  transition: left 0.5s ease;
}

.card-enhanced:hover::before {
  left: 100%;
}

.card-enhanced:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px 0 rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 0, 0, 0.08);
}

/* Header Enhancement - Dark Navy Theme */
.header-enhanced {
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(6, 182, 212, 0.2);
  transition: all 0.3s ease;
}

.header-enhanced.scrolled {
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(25px);
  border-bottom-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* KPI Card Professional Style */
.kpi-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 250, 251, 0.98) 100%);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
  animation: slideInUp 0.8s ease-out 0.2s both;
}

.kpi-metric {
  background: rgba(249, 250, 251, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.kpi-metric::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.03), transparent);
  transition: left 0.4s ease;
}

.kpi-metric:hover::before {
  left: 100%;
}

.kpi-metric:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* Animated Counter for KPI metrics */
.counter {
  opacity: 0;
  animation: countUp 1.5s ease-out 0.5s both;
}

/* Campaign Gallery Enhancement */
.campaign-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 6px 24px 0 rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.campaign-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.campaign-card:hover::after {
  opacity: 1;
  animation: shimmer 0.6s ease-out;
}

.campaign-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 48px 0 rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 0, 0, 0.08);
}

.campaign-image {
  transition: all 0.4s ease;
  filter: brightness(1) contrast(1.05);
}

.campaign-card:hover .campaign-image {
  filter: brightness(1.08) contrast(1.12);
  transform: scale(1.05);
}

/* Modal Enhancement */
.modal-enhanced {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 64px 0 rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

/* Section Spacing Enhancement */
.section-enhanced {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* Service Icons Animation */
.service-icon {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.service-icon:hover {
  transform: rotate(5deg) scale(1.1);
}

.service-icon::before {
  content: '';
  position: absolute;
  inset: -4px;
  background: linear-gradient(45deg, #000, #374151);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  filter: blur(8px);
}

.card-enhanced:hover .service-icon::before {
  opacity: 0.2;
}

/* Scroll-triggered animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animations for service cards */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }

/* Campaign cards staggered */
.campaign-card:nth-child(1) { animation-delay: 0.1s; }
.campaign-card:nth-child(2) { animation-delay: 0.2s; }
.campaign-card:nth-child(3) { animation-delay: 0.3s; }
.campaign-card:nth-child(4) { animation-delay: 0.4s; }

/* Chart container animation */
.chart-container {
  opacity: 0;
  animation: slideInUp 0.8s ease-out 0.6s both;
}

/* Subtle animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Pulse animation for CTA buttons */
.pulse-on-hover:hover {
  animation: gentlePulse 2s infinite;
}

@keyframes gentlePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* Loading state for chart */
.chart-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 256px;
}

.chart-loading::after {
  content: '';
  width: 32px;
  height: 32px;
  border: 3px solid rgba(0,0,0,0.1);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* FAQ Section Styles */
.faq-item {
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-question {
  cursor: pointer;
  user-select: none;
}

.faq-answer {
  transition: all 0.3s ease;
  line-height: 1.6;
}

.faq-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

/* FAQ Animation for smooth expand/collapse */
.faq-answer.hidden {
  max-height: 0;
  opacity: 0;
  padding-bottom: 0 !important;
  overflow: hidden;
}

.faq-answer:not(.hidden) {
  max-height: 200px;
  opacity: 1;
  animation: fadeInDown 0.3s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Niche Box Enhancements */
.niche-box {
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.niche-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.niche-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: #d1d5db;
  background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%);
}

.niche-box:hover::before {
  opacity: 1;
}

.niche-box:hover span {
  transform: scale(1.1);
}

.niche-box span {
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
}

.hover-lift {
  will-change: transform;
}

/* Pulse animation for niche boxes */
@keyframes pulse {
  0% { 
    transform: scale(1); 
  }
  50% { 
    transform: scale(1.05); 
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  }
  100% { 
    transform: scale(1); 
  }
}

/* Mobile KPI Improvements */
@media (max-width: 640px) {
  .kpi-metric {
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .kpi-metric .counter {
    word-break: break-all;
    hyphens: auto;
  }
}

/* Testimonial Section Enhancements */
.testimonial-card {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
}

.testimonial-card:nth-child(1) {
  animation-delay: 0.1s;
}

.testimonial-card:nth-child(2) {
  animation-delay: 0.2s;
}

.testimonial-card:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced testimonial hover effects */
.testimonial-card .bg-white {
  position: relative;
  overflow: hidden;
}

.testimonial-card .bg-white::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  transition: left 0.7s ease;
}

.testimonial-card:hover .bg-white::before {
  left: 100%;
}

/* === PROVEN RESULTS GALLERY ENHANCEMENTS === */
.campaign-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.campaign-card .campaign-image {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.campaign-card:hover .campaign-image {
  transform: scale(1.05);
}

.campaign-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(30, 144, 255, 0.3);
}

/* Hover lift utility class */
.hover-lift {
  transition: transform 0.3s var(--animation-curve-primary);
}

.hover-lift:hover {
  transform: translateY(-4px);
}

/* Grid system for Proven Results */
.thq-grid-auto-300 {
  display: grid;
  grid-gap: var(--spacing-xl);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@media (max-width: 768px) {
  .thq-grid-auto-300 {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .campaign-card {
    padding: var(--spacing-lg) !important;
  }
}

/* === HERO SECTION DRAMATIC TRANSFORMATION === */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-gradient-text {
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 50%, #14b8a6 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
}

/* KPI Dashboard Cards with Glow */
.kpi-card {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.kpi-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #3b82f6, #06b6d4, #14b8a6);
  border-radius: 24px;
  opacity: 0.5;
  filter: blur(20px);
  z-index: -1;
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Modal Enhancements */
#campaignModal {
  animation: fadeIn 0.3s ease-out;
}

#campaignModal .relative {
  animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Button Hover Effects */
.group:hover .absolute {
  animation: shimmer 0.8s ease-out;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Glassmorphism Effects */
.backdrop-blur-xl {
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.backdrop-blur-sm {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION ENHANCEMENTS
   ═══════════════════════════════════════════════════════════════ */

#hero {
  background: linear-gradient(135deg, #0b2a5a 0%, #0c3b7a 60%, #0fb7ff 100%);
  position: relative;
}

/* Hero Content Animations */
@media (prefers-reduced-motion: no-preference) {
  .hero-content > * {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
  }
  
  .hero-content > *:nth-child(1) { animation-delay: 0.1s; }
  .hero-content > *:nth-child(2) { animation-delay: 0.2s; }
  .hero-content > *:nth-child(3) { animation-delay: 0.3s; }
  .hero-content > *:nth-child(4) { animation-delay: 0.4s; }
  .hero-content > *:nth-child(5) { animation-delay: 0.5s; }
  .hero-content > *:nth-child(6) { animation-delay: 0.6s; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CTA Button Enhancements */
.btn-primary,
.btn-secondary {
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

/* Trust Line Styling */
.trustline {
  font-style: italic;
  opacity: 0.9;
  letter-spacing: 0.5px;
}

/* Live Results Card Enhancements */
#live-results {
  animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Mobile Optimizations */
@media (max-width: 640px) {
  #hero h1 {
    font-size: 2.5rem !important;
  }
  
  .subhead {
    font-size: 1.125rem !important;
  }
  
  .cta-row {
    flex-direction: column;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }
}

/* Accessibility: Focus States */
.btn-primary:focus-visible,
.btn-secondary:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.8);
  outline-offset: 4px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  #hero {
    background: #0b2a5a;
  }
  
  .btn-primary {
    border: 2px solid white;
  }
}


/* ═══════════════════════════════════════════════════════════════
   HERO SECTION - OPTIMIZED FOR 1080P VIEWPORT
   ═══════════════════════════════════════════════════════════════ */

#hero {
  min-height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  align-items: center;
}

/* Ensure content fits in viewport */
.hero-content {
  max-height: 90vh;
  overflow: visible;
}

.hero-content h1 {
  line-height: 1.1;
  margin-bottom: 1rem;
}

.subhead {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.cta-row {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.trustline {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  opacity: 0.9;
  font-style: italic;
  letter-spacing: 0.3px;
}

/* Chart Container */
.chart-container {
  animation: fadeInUp 1.2s ease-out 0.3s both;
  max-width: 550px;
  margin: 0 auto;
}

#live-results {
  max-height: 85vh;
  overflow: visible;
}

/* Animated Counter */
.counter {
  font-variant-numeric: tabular-nums;
}

/* Button Enhancements */
.btn-primary,
.btn-secondary {
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

/* Fade In Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Breakpoints for 1080p */
@media (max-width: 1024px) {
  #hero h1 {
    font-size: 3rem !important;
  }
  
  .subhead {
    font-size: 1rem !important;
  }
  
  #live-results {
    max-height: none;
  }
}

@media (max-width: 900px) {
  #hero {
    min-height: auto;
    max-height: none;
  }
  
  .hero-grid > div {
    grid-template-columns: 1fr;
  }
  
  .chart-container {
    order: -1;
    max-width: 100%;
    padding: 0;
  }
}

/* Mobile Optimizations */
@media (max-width: 640px) {
  .cta-row {
    flex-direction: column;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }
  
  #hero h1 {
    font-size: 2.5rem !important;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .chart-container,
  .btn-primary::before {
    animation: none;
    transition: none;
  }
}

/* Focus States */
.btn-primary:focus-visible,
.btn-secondary:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.8);
  outline-offset: 4px;
}


/* ═══════════════════════════════════════════════════════════════
   HERO SECTION - COMPACT SIZE (NOT FULL VIEWPORT)
   ═══════════════════════════════════════════════════════════════ */

#hero {
  min-height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.hero-grid {
  display: grid;
  align-items: center;
}

/* Compact content */
.hero-content {
  max-height: none;
  overflow: visible;
}

.hero-content h1 {
  line-height: 1.1;
  margin-bottom: 1rem;
}

.subhead {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.cta-row {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.trustline {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  opacity: 0.9;
  font-style: italic;
  letter-spacing: 0.3px;
}

/* Chart Container - Compact */
.chart-container {
  animation: fadeInUp 1.2s ease-out 0.3s both;
  max-width: 680px;
  margin: 0 auto;
}

/* Floating Card Animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

.floating-card {
  animation: float 5s ease-in-out infinite;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, box-shadow;
}

.floating-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 30px 60px -15px rgba(6, 182, 212, 0.35), 
              0 0 40px rgba(6, 182, 212, 0.2);
  animation-play-state: paused;
}

/* Chart canvas enhanced styling */
#growthChart {
  filter: drop-shadow(0 2px 8px rgba(6, 182, 212, 0.1));
  transition: filter 0.6s ease;
}

#growthChart.breakthrough {
  animation: breakthrough-flash 1.5s ease-out;
}

#live-results {
  max-height: none;
  overflow: visible;
}

/* === NAVBAR SPACING FIX === */
header,
nav,
.navbar,
.header-enhanced {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Remove accidental top margin/padding on hero */
#hero {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* If the Google tag section itself has a margin, tighten it */
.trust-indicator,
.google-tag,
.hero-badge-row {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

#live-results {
  padding-top: 2rem !important;
}

/* Make chart smaller and add spacing from nav */
#live-results {
  max-width: 450px !important; /* Makes the whole card narrower */
  margin-top: 3rem !important; /* Pushes it down from nav */
  padding: 1.5rem !important; /* Reduces internal padding */
}

.chart-container {
  margin-top: 2rem !important; /* Additional spacing if needed */
}

/* Make the chart canvas itself smaller */
#growthChart {
  max-height: 280px !important; /* Reduces chart height */
}

/* Reduce KPI metrics size */
.kpi-metric {
  padding: 0.75rem !important; /* Smaller padding */
  font-size: 0.9rem !important; /* Smaller text */
}

.kpi-metric .counter {
  font-size: 1.75rem !important; /* Smaller numbers */
}



