/* Front page layout — terminal-readout hero, premise, content warning, CTA */

.hero {
  position: relative;
  z-index: 2;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 2rem 1.5rem 4rem;
}

.hero__grid {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.terminal {
  width: 100%;
  max-width: 40rem;
}

.hero__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--steel-dim);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.85) contrast(1.05);
}

.hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(21, 19, 15, 0) 45%, rgba(21, 19, 15, 0.85) 100%),
    linear-gradient(100deg, rgba(21, 19, 15, 0.3), transparent 45%);
}

@media (max-width: 860px) {
  .hero {
    min-height: auto;
    padding: 2rem 1.5rem 3rem;
  }
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero__visual {
    aspect-ratio: 16 / 9;
    max-height: 260px;
  }
}

.terminal__log {
  font-size: 0.85rem;
  color: var(--verdigris);
  min-height: 4.8em;
  white-space: pre-wrap;
  margin-bottom: 1.5rem;
}

.terminal__log .cursor {
  display: inline-block;
  width: 0.55em;
  background: var(--verdigris);
  animation: blink 1s steps(1) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .terminal__log .cursor {
    animation: none;
  }
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero__title {
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  line-height: 0.95;
  margin-bottom: 1rem;
  opacity: 0;
}

.hero__title.is-visible {
  opacity: 1;
}

.hero__tagline {
  font-size: 1.02rem;
  max-width: 52ch;
  margin-bottom: 2rem;
  opacity: 0;
}

.hero__tagline.is-visible {
  opacity: 1;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
}

.hero__actions.is-visible {
  opacity: 1;
}

main {
  position: relative;
  z-index: 2;
}

.section {
  max-width: 44rem;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.section--tight {
  padding-top: 0;
}

#devlog-teaser {
  max-width: 54rem;
  padding-bottom: 0.5rem;
}

#support {
  padding-top: 0.5rem;
}

.premise p {
  font-size: 1rem;
}

.cta-band {
  position: relative;
  z-index: 2;
  padding: 6rem 1.5rem 7rem;
  border-top: var(--border-grime);
  border-bottom: var(--border-grime);
  background-image:
    linear-gradient(180deg, rgba(21, 19, 15, 0.88), rgba(21, 19, 15, 0.94)),
    url("../game/img/explore/scrap3.webp");
  background-size: cover;
  background-position: center;
}

.cta-band__inner {
  max-width: 44rem;
  margin: 0 auto;
}

.cta-band h2 {
  margin-bottom: 1rem;
}
