/* ============================================================
   HERO
   ============================================================ */

.hero {
  min-height: 100vh;
  padding-top: 79px; /* matches nav height (3px border + 76px inner) */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-inline: 40px;
  padding-bottom: 80px;
}

/* Subtle dot grid background */
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--border-md) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.4;
  pointer-events: none;
}

/* Radial fade over the grid */
.hero__fade {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, transparent 30%, var(--bg) 80%);
  pointer-events: none;
}

/* Content wrapper */
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  width: 100%;
}

/* Eyebrow */
.hero__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.3s;
}

/* Headline */
.hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(54px, 8vw, 110px);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 28px;
}

/* Each line slides up individually */
.hero__line {
  display: block;
  overflow: hidden;
}

.hero__line-inner {
  display: block;
  opacity: 0;
  transform: translateY(105%);
  animation: slideUp 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero__line:nth-child(1) .hero__line-inner { animation-delay: 0.45s; }
.hero__line:nth-child(2) .hero__line-inner { animation-delay: 0.60s; }
.hero__line:nth-child(3) .hero__line-inner { animation-delay: 0.75s; }

.hero__line--accent .hero__line-inner { color: var(--accent); }
/* Use text-sec (not muted) so the line stays legible */
.hero__line--light  .hero__line-inner { color: var(--text-sec); font-weight: 400; }

/* Decorative divider */
.hero__divider {
  width: 0;
  height: 1px;
  background: var(--border-md);
  margin-inline: auto;
  margin-block: 28px;
  animation: drawLine 0.8s ease forwards 1.1s;
}

/* Sub text */
.hero__sub {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-sec);
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: 44px;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 1.0s;
}

/* Buttons row */
.hero__btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 1.2s;
}

/* Stats row */
.hero__stats {
  display: flex;
  gap: 56px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 1.5s;
}

/* Scroll hint */
.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeIn 1s ease forwards 2.2s;
}

.hero__scroll span {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero__scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, var(--border-md), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* Mobile */
@media (max-width: 640px) {
  .hero { padding-inline: 18px; }
  .hero__headline { font-size: clamp(44px, 12vw, 72px); }
  .hero__stats { gap: 32px; }
}
