/* ===========================================
   HERO - Main Landing Section
   =========================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px; /* Account for fixed header */
}

/* ===== BACKGROUND ===== */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

/* Gradient background */
.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 50% at 50% -20%,
      rgba(41, 135, 207, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse 60% 40% at 80% 60%,
      rgba(64, 224, 208, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse 50% 30% at 20% 80%,
      rgba(255, 191, 0, 0.08) 0%,
      transparent 50%
    ),
    linear-gradient(180deg, var(--pie-primary) 0%, var(--pie-neutral-dark) 100%);
}

/* Grid pattern overlay */
.hero-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: 60px 60px;
  mask-image: radial-gradient(
    ellipse 70% 70% at 50% 50%,
    black 0%,
    transparent 70%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 70% 70% at 50% 50%,
    black 0%,
    transparent 70%
  );
}

/* Floating orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: float 8s ease-in-out infinite;
}

.hero-orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(41, 135, 207, 0.15);
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(64, 224, 208, 0.1);
  top: 50%;
  right: -5%;
  animation-delay: 2s;
}

.hero-orb-3 {
  width: 250px;
  height: 250px;
  background: rgba(255, 191, 0, 0.08);
  bottom: 10%;
  left: 20%;
  animation-delay: 4s;
}

/* ===== CONTENT ===== */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  padding: var(--space-2xl) var(--container-padding);
}

/* Pre-title tag */
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  padding: 0.5rem 1rem;
  background: rgba(41, 135, 207, 0.1);
  border: 1px solid rgba(41, 135, 207, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--font-small);
  font-weight: var(--weight-medium);
  color: var(--pie-secondary);
}

.hero-tag-icon {
  width: 16px;
  height: 16px;
}

/* Main title */
.hero-title {
  font-size: var(--font-hero);
  font-weight: var(--weight-black);
  line-height: var(--line-hero);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
}

.hero-title-highlight {
  display: inline;
  background: linear-gradient(
    135deg,
    var(--pie-secondary) 0%,
    var(--pie-accent-1) 50%,
    var(--pie-accent-2) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 5s ease infinite;
}

/* Subtitle */
.hero-subtitle {
  font-size: 1.25rem;
  font-weight: var(--weight-regular);
  line-height: 1.7;
  color: rgba(253, 254, 254, 0.7);
  max-width: 680px;
  margin: 0 auto var(--space-2xl);
}

/* ===== CTA BUTTONS ===== */
.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-btn-primary {
  background: linear-gradient(
    135deg,
    var(--pie-secondary) 0%,
    var(--pie-accent-1) 100%
  );
  color: var(--pie-primary);
  font-weight: var(--weight-bold);
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: all var(--transition-base);
}

.hero-btn-primary:hover {
  box-shadow: 0 0 40px rgba(64, 224, 208, 0.4);
  transform: translateY(-3px);
}

.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 1rem 2rem;
  background: transparent;
  color: var(--pie-neutral-2);
  border: 1px solid rgba(253, 254, 254, 0.2);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: var(--weight-medium);
  transition: all var(--transition-base);
}

.hero-btn-secondary:hover {
  background: rgba(253, 254, 254, 0.05);
  border-color: rgba(253, 254, 254, 0.4);
}

/* ===== SCROLL INDICATOR ===== */
.hero-scroll {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(253, 254, 254, 0.5);
  font-size: var(--font-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.hero-scroll:hover {
  color: var(--pie-secondary);
}

.hero-scroll-icon {
  width: 24px;
  height: 36px;
  border: 2px solid currentColor;
  border-radius: 12px;
  position: relative;
}

.hero-scroll-icon::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: currentColor;
  border-radius: 2px;
  animation: scrollBounce 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%) translateY(10px);
    opacity: 0.5;
  }
}

/* ===== STATS BAR ===== */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xl);
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-size: var(--font-h2);
  font-weight: var(--weight-bold);
  color: var(--pie-neutral-2);
  margin-bottom: var(--space-xs);
}

.hero-stat-label {
  font-size: var(--font-small);
  color: rgba(253, 254, 254, 0.6);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 120px 0 var(--space-3xl);
  }

  .hero-content {
    padding: var(--space-xl) var(--container-padding);
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
  }

  .hero-scroll {
    display: none;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-lg);
  }
}
