/* ========================================
   HERO SECTION — ASCII grid canvas hero
   ======================================== */

.hero {
  position: relative;
  width: 100vw;
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding-bottom: 6vh;
}

/* ---------- ASCII GRID (Canvas) ---------- */
.hero__ascii-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

/* ---------- CONTENT LAYER ---------- */
.hero__content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 clamp(1.5rem, 5vw, 6rem);
  max-width: 64rem;
  width: 100%;
  pointer-events: none;
}

.hero__content > * {
  pointer-events: auto;
}

/* Quiet zone backdrop -- soft vignette behind text for readability */
.hero__content::before {
  content: '';
  position: absolute;
  top: -3rem;
  left: clamp(0rem, 3vw, 4rem);
  right: 40%;
  bottom: -3rem;
  background: radial-gradient(
    ellipse 120% 120% at 20% 50%,
    rgba(19, 20, 20, 0.95) 0%,
    rgba(19, 20, 20, 0.8) 50%,
    transparent 100%
  );
  z-index: -1;
  pointer-events: none;
}

/* ---------- HEADLINE ---------- */
.hero__title {
  font-family: "Darker Grotesque", var(--font-display);
  font-weight: 800;
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-transform: uppercase;
}

.hero__title-line {
  display: block;
  overflow: hidden;
}

.hero__title-line-inner {
  display: block;
  transform: translateY(120%);
}

.hero__title-accent {
  color: var(--teal);
}

/* ---------- TAGLINE ---------- */
.hero__tagline {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--ink-dim);
  margin-top: 1.5rem;
  max-width: 34rem;
  line-height: 1.6;
  overflow: hidden;
}

.hero__tagline-inner {
  display: block;
  transform: translateY(120%);
}

/* ---------- CTAs ---------- */
.hero__actions {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-top: 2.5rem;
  opacity: 0;
  transform: translateY(16px);
  flex-wrap: wrap;
}

.hero__cue {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.hero__cue:hover {
  color: var(--teal);
}

.hero__cue:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(69,216,197,0.14);
}

.hero__cue svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ========================================
   STATS BAR
   ======================================== */
.stats-bar {
  position: relative;
  border-top: none;
  padding: 1rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg-0);
}

.stats-bar__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-dim);
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 6vw;
  line-height: 1.8;
}

.stats-bar__stat {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.stats-bar__num {
  color: var(--teal);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 1.6ch;
  text-align: right;
  display: inline-block;
}

.stats-bar__sep {
  color: var(--ink-faint);
  margin: 0 0.85rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
  .hero__title {
    font-size: clamp(3rem, 9vw, 5rem);
  }
}

@media (max-width: 600px) {
  .hero__content {
    padding: 0 1.25rem;
  }
  .hero__content::before {
    left: -1rem;
    right: 20%;
  }
  .hero__title {
    font-size: clamp(2.5rem, 11vw, 4rem);
  }
  .hero__tagline {
    font-size: 0.95rem;
    margin-top: 1.25rem;
  }
  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 2rem;
  }
  .stats-bar__inner {
    font-size: 0.72rem;
  }
  .stats-bar__sep {
    margin: 0 0.5rem;
  }
}

@media (max-width: 375px) {
  .hero__title {
    font-size: 2.5rem;
  }
  .hero__content {
    padding: 0 1rem;
  }
}

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  .hero__title-line-inner,
  .hero__tagline-inner {
    transform: none !important;
  }
  .hero__actions {
    opacity: 1 !important;
    transform: none !important;
  }
}
