/* Hero: claim, CTAs, and the morph stage (window shell + logomark layer) */

.hero {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  /* compact enough that the stage — and the morph in it — starts above the
     fold of a 900px-tall viewport */
  padding: 6.5rem clamp(16px, 3vw, 32px) 0;
  text-align: center;
}

/* faint construction grid, module 24 per the guide */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 20% 0;
  z-index: -1;
  background-image: linear-gradient(rgba(232, 230, 220, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 230, 220, 0.035) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(75% 65% at 50% 30%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(75% 65% at 50% 30%, #000 0%, transparent 100%);
}

.hero__eyebrow {
  margin: 0 0 1.4rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__claim {
  margin: 0 auto;
  max-width: 21ch;
  font-size: clamp(1.85rem, 4.8vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.06;
  text-wrap: balance;
}

.hero__sub {
  margin: 1.2rem auto 0;
  max-width: 41rem;
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--muted);
}

.hero__row {
  margin-top: 1.9rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.stage {
  position: relative;
  margin: 2.8rem auto 0;
  max-width: 1104px;
  aspect-ratio: 16 / 10;
  min-height: 360px;
}

/* the app-window shell; internals are styled in replica.css */
.window {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  text-align: left;
  background: var(--app-bg);
  color: var(--app-text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.window--on {
  opacity: 1;
}

.morph {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.morph__sq {
  position: absolute;
  background: var(--fleet);
  transition: left 1s cubic-bezier(0.22, 0.9, 0.28, 1), top 1s cubic-bezier(0.22, 0.9, 0.28, 1),
    width 1s cubic-bezier(0.22, 0.9, 0.28, 1), height 1s cubic-bezier(0.22, 0.9, 0.28, 1),
    background-color 1s ease, border-radius 1s ease, opacity 0.45s ease;
  opacity: 0;
}

.morph__sq--in {
  opacity: 1;
}

.morph__sq--core {
  background: var(--accent);
}

.morph--done .morph__sq {
  opacity: 0;
}

@media (max-width: 760px) {
  .stage {
    aspect-ratio: 4 / 3.4;
  }
}

@media (max-width: 480px) {
  .hero__eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.16em;
  }

  .stage {
    aspect-ratio: 1 / 1.05;
  }
}
