/* Home hero (feature web-hero, AC-508, AC-510): the scroll-driven view of the lobby behind the title and the buttons.
 * Static version first: the space background of the page, the title and the buttons. The canvas is added by hero.js
 * and only shown (.is-live) once the first frame is drawn, so without WebGL, without the model or with reduced motion
 * nothing changes on screen. Colours come from the palette tokens of style.css. */

.hero-section {
  --hero-top: 64px;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: calc(100vh - var(--hero-top));
  min-height: calc(100svh - var(--hero-top));
  margin-bottom: 36px;
  padding: 12px 0 24px;
  overflow: hidden;
  background: transparent;
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  image-rendering: pixelated;
  transition: opacity 0.4s steps(6);
}

.hero-section.is-live .hero-canvas {
  opacity: 1;
}

/* Title, text and buttons stay on top of the scene on a dark panel so they remain readable at every angle (AC-506) */
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 640px;
  padding: 20px;
  background: rgba(5, 9, 34, 0.72);
  outline: 2px solid var(--black);
  box-shadow: inset 2px 2px 0 var(--space-4), inset -2px -2px 0 var(--space-2);
  overflow-wrap: break-word;
  word-break: break-word;
}

.hero-section:not(.is-live) .hero-content {
  background: transparent;
  outline: 0;
  box-shadow: none;
}

.hero-headline {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: clamp(24px, 5vw, 44px);
  line-height: 1.2;
  color: var(--white);
  text-shadow: 2px 2px 0 var(--black);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: var(--space-1);
  color: var(--aqua);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  outline: 2px solid var(--black);
}

.hero-lead {
  color: var(--white);
  font-size: 14px;
  line-height: 1.6;
  text-shadow: 1px 1px 0 var(--black);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 720px) {
  .hero-section {
    padding: 12px 0;
  }

  .hero-content {
    padding: 14px;
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-canvas {
    transition: none;
  }
}
