/* ============================================
   SAINT ANALYTICS - Hero Component
   High-impact hero section · Inter
   ============================================ */

/* === HERO BACKGROUND GRID === */
.hero-grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: var(--grid-pattern);
  background-size: var(--grid-size) var(--grid-size);
  pointer-events: none;
  z-index: 0;
}

/* === HERO SECTION === */
.hero-section-new {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-32) var(--space-4) var(--space-16);
  overflow: hidden;
}

/* Alternative class name for reuse */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-32) var(--space-4) var(--space-16);
  overflow: hidden;
}

/* === HERO CONTAINER === */
.hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
}

/* === HERO BADGE === */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--primary-muted);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-8);
  animation: fadeInUp 0.6s ease-out;
}

.hero-badge .badge-icon {
  color: var(--primary);
  font-size: var(--text-sm);
}

.hero-badge span {
  color: var(--primary);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  letter-spacing: var(--tracking-wide);
  font-family: var(--font-mono);
}

/* === HERO TITLE === */
.hero-title-new {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--foreground);
  margin-bottom: var(--space-6);
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-highlight {
  display: inline;
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 50%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === HERO SUBTITLE === */
.hero-subtitle-new {
  font-family: var(--font-sans);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--foreground-muted);
  max-width: 700px;
  margin: 0 auto var(--space-12);
  line-height: var(--leading-relaxed);
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* === HERO STATS === */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--font-bold);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--foreground-muted);
  margin-top: var(--space-2);
}

/* === HERO CTA === */
.hero-cta-group {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.cta-button-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-8);
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  text-decoration: none;
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
  transition: all var(--transition-normal);
}

.cta-button-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
  color: #ffffff;
}

.cta-button-primary i {
  transition: transform var(--transition-fast);
}

.cta-button-primary:hover i {
  transform: translateX(4px);
}

.cta-button-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-8);
  background: transparent;
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: all var(--transition-normal);
}

.cta-button-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-muted);
}

/* === HERO BACKGROUND EFFECTS === */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Grid pattern */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: var(--grid-pattern);
  background-size: var(--grid-size) var(--grid-size);
  opacity: 0.5;
}

/* Gradient overlay */
.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at bottom, rgba(16, 185, 129, 0.04) 0%, transparent 50%);
}

/* Glow effect */
.hero-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: var(--gradient-glow);
  filter: blur(100px);
  opacity: 0.6;
  pointer-events: none;
  z-index: 1;
  animation: pulse-glow 4s ease-in-out infinite;
}

/* === HERO CONTENT === */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
}

/* === HERO BADGE (alt classes) === */
.hero-badge-icon {
  color: var(--primary);
  font-size: var(--text-sm);
}

.hero-badge-text {
  color: var(--primary);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  letter-spacing: var(--tracking-wide);
  font-family: var(--font-mono);
}

/* === HERO TITLE (alt classes) === */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--foreground);
  margin-bottom: var(--space-6);
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-title-gradient {
  display: block;
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 50%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === HERO SUBTITLE (alt classes) === */
.hero-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--foreground-muted);
  max-width: 700px;
  margin: 0 auto var(--space-12);
  line-height: var(--leading-relaxed);
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* === HERO STAT (alt classes) === */
.hero-stat {
  text-align: center;
}

.hero-stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--font-bold);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.hero-stat-label {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--foreground-muted);
  margin-top: var(--space-2);
}

/* === HERO CTA BUTTONS (alt classes) === */
.hero-cta {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-8);
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  text-decoration: none;
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
  transition: all var(--transition-normal);
}

.hero-cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
  color: #ffffff;
}

.hero-cta-primary i {
  transition: transform var(--transition-fast);
}

.hero-cta-primary:hover i {
  transform: translateX(4px);
}

.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-8);
  background: transparent;
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: all var(--transition-normal);
}

.hero-cta-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-muted);
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.8;
  }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero-section-new,
  .hero {
    padding: var(--space-24) var(--space-4) var(--space-12);
    min-height: auto;
  }

  .hero-badge {
    padding: var(--space-2) var(--space-3);
    margin-bottom: var(--space-6);
  }

  .hero-badge span,
  .hero-badge-text {
    font-size: var(--text-xs);
  }

  .hero-subtitle-new,
  .hero-subtitle {
    margin-bottom: var(--space-8);
  }

  .hero-stats {
    gap: var(--space-4);
    margin-bottom: var(--space-8);
  }

  .stat-number,
  .hero-stat-number {
    font-size: var(--text-2xl);
  }

  .stat-label,
  .hero-stat-label {
    font-size: var(--text-xs);
  }

  .hero-cta-group,
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .cta-button-primary,
  .cta-button-secondary,
  .hero-cta-primary,
  .hero-cta-secondary {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: var(--space-4) var(--space-6);
  }

  .hero-glow {
    width: 400px;
    height: 400px;
  }
}

@media (max-width: 480px) {
  .hero-section-new,
  .hero {
    padding: var(--space-20) var(--space-3) var(--space-10);
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-4);
  }

  .stat-item,
  .hero-stat {
    padding: var(--space-2) 0;
  }
}
