/* ================================================================
   AIERPNav Hero System — 2026 AI-Native Design
   Luminous gradients, glass morphism, subtle motion
   Mobile-first, CSS-only animations, performance-optimized
   ================================================================ */

/* ── Keyframe Animations ─────────────────────────────────────── */

@keyframes hero-glow-drift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.15; }
  33% { transform: translate(40px, -30px) scale(1.1); opacity: 0.22; }
  66% { transform: translate(-20px, 20px) scale(0.95); opacity: 0.12; }
}

@keyframes hero-glow-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.1; }
  50% { transform: translate(-50px, 30px) scale(1.15); opacity: 0.18; }
}

@keyframes hero-mesh-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-fade-up-delayed {
  0%, 20% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes hero-scale-in {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes hero-gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes hero-border-glow {
  0%, 100% { border-color: rgba(16, 185, 129, 0.15); }
  50% { border-color: rgba(16, 185, 129, 0.35); }
}

@keyframes hero-pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes hero-counter-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

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

@keyframes grid-fade {
  0%, 100% { opacity: 0.025; }
  50% { opacity: 0.05; }
}

/* ── Hero Base ───────────────────────────────────────────────── */

.hero-2026 {
  position: relative;
  overflow: hidden;
  background: linear-gradient(170deg, #060e1a 0%, #0a1628 30%, #0f2340 70%, #0d1f3a 100%);
  padding: 8rem 0 5rem;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

/* Animated gradient mesh orbs */
.hero-2026::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -10%;
  width: 60vw;
  max-width: 700px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, rgba(16, 185, 129, 0.04) 40%, transparent 70%);
  border-radius: 50%;
  animation: hero-glow-drift 12s ease-in-out infinite;
  pointer-events: none;
  will-change: transform, opacity;
}

.hero-2026::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 50vw;
  max-width: 550px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.10) 0%, rgba(59, 130, 246, 0.02) 45%, transparent 70%);
  border-radius: 50%;
  animation: hero-glow-drift-2 15s ease-in-out infinite;
  pointer-events: none;
  will-change: transform, opacity;
}

/* Grid overlay with subtle pulse */
.hero-2026-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: grid-fade 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

/* Noise texture overlay for depth */
.hero-2026-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.hero-2026-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

/* ── Hero Typography ─────────────────────────────────────────── */

.hero-2026-label {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #34d399;
  margin-bottom: 1.75rem;
  animation: hero-fade-up 0.8s ease both;
}

.hero-2026-label::before {
  content: '';
  width: 2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, #34d399);
}

.hero-2026-label .label-dot {
  width: 6px;
  height: 6px;
  background: #34d399;
  border-radius: 50%;
  animation: hero-pulse-soft 2s ease-in-out infinite;
}

.hero-2026 h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #ffffff;
  max-width: 780px;
  margin-bottom: 1.5rem;
  animation: hero-fade-up 0.8s ease 0.1s both;
}

/* Gradient accent text */
.hero-2026 h1 .gradient-text {
  background: linear-gradient(135deg, #34d399 0%, #10b981 40%, #6ee7b7 70%, #34d399 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: hero-gradient-shift 6s ease infinite;
}

.hero-2026-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.8;
  color: #94a3b8;
  max-width: 580px;
  margin-bottom: 2.5rem;
  animation: hero-fade-up 0.8s ease 0.2s both;
}

/* ── Hero CTA Buttons ────────────────────────────────────────── */

.hero-2026-ctas {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  animation: hero-fade-up 0.8s ease 0.3s both;
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15), 0 4px 16px rgba(16, 185, 129, 0.1);
}

.hero-btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.25), 0 8px 24px rgba(16, 185, 129, 0.2);
}

.hero-btn-primary:hover::before {
  opacity: 1;
}

.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-1px);
}

/* ── Hero Stats Row ──────────────────────────────────────────── */

.hero-2026-stats {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  animation: hero-fade-up 0.8s ease 0.5s both;
}

.hero-2026-stat {
  animation: hero-counter-up 0.6s ease both;
}

.hero-2026-stat:nth-child(2) { animation-delay: 0.6s; }
.hero-2026-stat:nth-child(3) { animation-delay: 0.7s; }
.hero-2026-stat:nth-child(4) { animation-delay: 0.8s; }

.hero-2026-stat-value {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.75rem;
  color: #34d399;
  line-height: 1;
  margin-bottom: 0.375rem;
}

.hero-2026-stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

/* ── Glass Card (for floating preview elements) ──────────────── */

.hero-glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2rem;
  animation: hero-scale-in 0.8s ease 0.4s both;
  transition: border-color 0.3s;
}

.hero-glass-card:hover {
  border-color: rgba(16, 185, 129, 0.2);
}

/* ── Hero Badge (premium/product labels) ─────────────────────── */

.hero-2026-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 100px;
  padding: 0.5rem 1.25rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #34d399;
  margin-bottom: 1.75rem;
  animation: hero-fade-up 0.8s ease both;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-2026-badge .badge-dot {
  width: 6px;
  height: 6px;
  background: #34d399;
  border-radius: 50%;
  animation: hero-pulse-soft 2s ease-in-out infinite;
}

/* ── Premium Product Hero (for paid tools) ───────────────────── */

.hero-2026.hero-product {
  padding: 7rem 0 4rem;
  min-height: auto;
  text-align: center;
}

.hero-2026.hero-product .hero-2026-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-2026.hero-product h1 {
  max-width: 680px;
  text-align: center;
}

.hero-2026.hero-product .hero-2026-subtitle {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.hero-2026.hero-product .hero-2026-stats {
  justify-content: center;
}

/* ── Report Preview Strip ────────────────────────────────────── */

.hero-preview-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 1.5rem 0;
  margin-top: 2.5rem;
  animation: hero-fade-up 0.8s ease 0.6s both;
}

.hero-preview-strip::-webkit-scrollbar { display: none; }

.hero-preview-chip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.875rem 1.25rem;
  transition: all 0.3s;
  animation: hero-border-glow 4s ease-in-out infinite;
}

.hero-preview-chip:nth-child(even) {
  animation-delay: 2s;
}

.hero-preview-chip:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-2px);
}

.hero-preview-chip-icon {
  font-size: 1.25rem;
}

.hero-preview-chip-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: #e2e8f0;
}

.hero-preview-chip-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  color: #64748b;
}

/* ── Animated Score Display ──────────────────────────────────── */

.hero-score-display {
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.hero-score-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.06);
}

.hero-score-ring-fill {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #10b981;
  border-right-color: #10b981;
  animation: hero-mesh-rotate 3s linear infinite;
}

.hero-score-value {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 3.5rem;
  color: #ffffff;
  line-height: 1;
}

.hero-score-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  margin-top: 0.25rem;
}

/* ── Section Transition (fluid, not stacked) ─────────────────── */

.hero-2026-fade-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, #0a1628);
  pointer-events: none;
  z-index: 1;
}

.hero-2026-fade-bottom.to-cream {
  background: linear-gradient(to bottom, transparent, #f8fafc);
}

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 768px) {
  .hero-2026 {
    padding: 6.5rem 0 3.5rem;
    min-height: auto;
  }

  .hero-2026.hero-product {
    padding: 6rem 0 3rem;
  }

  .hero-2026 h1 {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .hero-2026-subtitle {
    font-size: 0.95rem;
  }

  .hero-2026-stats {
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .hero-2026-stat-value {
    font-size: 1.4rem;
  }

  .hero-2026-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-btn-primary,
  .hero-btn-secondary {
    justify-content: center;
    text-align: center;
  }

  .hero-preview-strip {
    margin-left: -2rem;
    margin-right: -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .hero-2026-inner {
    padding: 0 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-2026 {
    padding: 5.5rem 0 3rem;
  }

  .hero-2026-stats {
    gap: 1.25rem;
  }

  .hero-2026-stat-value {
    font-size: 1.25rem;
  }

  .hero-preview-chip {
    padding: 0.75rem 1rem;
  }
}

/* ── Reduced Motion ──────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .hero-2026::before,
  .hero-2026::after,
  .hero-2026-grid,
  .hero-2026-label,
  .hero-2026 h1,
  .hero-2026-subtitle,
  .hero-2026-ctas,
  .hero-2026-stats,
  .hero-2026-stat,
  .hero-glass-card,
  .hero-2026-badge,
  .hero-preview-strip,
  .hero-preview-chip,
  .hero-score-ring-fill,
  .hero-2026 h1 .gradient-text,
  .label-dot,
  .badge-dot {
    animation: none !important;
  }

  .hero-2026::before { opacity: 0.15; }
  .hero-2026::after { opacity: 0.1; }
  .hero-2026-grid { opacity: 0.03; }
}
