/* ============================================================
   HERO
   Full-viewport dark section with fluid headline + dual CTA.
   Subtle dot-grid background for texture.
============================================================ */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* No section padding override — hero fills full viewport */
  padding-block: 0;
}

/* --- Dot grid background texture --- */
.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(0, 0, 0, 0.05) 1px,
    transparent 1px
  );
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* Fade edges of grid so it doesn't clash with sections below */
.hero__bg-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 50%,
    transparent 30%,
    var(--color-bg) 100%
  );
}

/* --- Content --- */
.hero__content {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--navbar-height) + var(--space-20)); /* clear navbar */
  padding-bottom: var(--space-28);
}

/* --- Eyebrow label --- */
.hero__eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-6);
}

/* --- Headline --- */
.hero__headline {
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

.hero__headline em {
  font-style: normal;
  color: var(--color-accent);
}

/* --- Sub-headline --- */
.hero__sub {
  font-size: var(--text-lg);
  color: var(--color-muted);
  line-height: var(--line-height-relaxed);
  max-width: 75ch;
  margin-bottom: var(--space-10);
}

/* --- CTA buttons --- */
.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

/* --- Shared button base --- */
.btn {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  border-radius: var(--border-radius-sm);
  transition: opacity var(--transition-fast), color var(--transition-fast),
              border-color var(--transition-fast);
  white-space: nowrap;
}

/* Primary: filled teal */
.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-bg);
  padding: var(--space-3) var(--space-8);
}

.btn--primary:hover {
  opacity: 0.85;
}

/* Ghost: text link with arrow */
.btn--ghost {
  background: none;
  color: var(--color-muted);
  padding: var(--space-3) 0;
  border-bottom: var(--border-width) solid transparent;
}

.btn--ghost:hover {
  color: var(--color-text);
  border-bottom-color: var(--color-border);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero__content {
    padding-top: calc(var(--navbar-height) + var(--space-10));
    padding-bottom: var(--space-20);
  }

  .hero__headline {
    font-size: clamp(2.25rem, 10vw, 3.5rem);
  }

  .hero__sub {
    font-size: var(--text-base);
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }
}

@media (max-width: 480px) {
  .hero__content {
    padding-top: calc(var(--navbar-height) + var(--space-6));
    padding-bottom: var(--space-16);
  }

  .hero__headline {
    font-size: clamp(2rem, 11vw, 2.5rem);
  }
}
