:root {
  --bg-deep: #071427;
  --bg-mid: #0d2240;
  --red-dark: #b5121b;
  --red-bright: #e1272d;
  --white-warm: #f5f1e8;
  --steel: #d7d0c3;
  --gold: #f1c26b;
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
  --radius: 28px;
  --max-width: 1280px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Orbitron", sans-serif;
  color: var(--white-warm);
  background:
    radial-gradient(circle at 50% 18%, rgba(225, 39, 45, 0.22), transparent 24%),
    radial-gradient(circle at 20% 78%, rgba(241, 194, 107, 0.12), transparent 28%),
    linear-gradient(180deg, #091224 0%, var(--bg-deep) 45%, #02050d 100%);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: clip;
  isolation: isolate;
}

.space-layer,
.grid-layer,
.poster-echo,
.banner-slice {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.space-layer {
  opacity: 0.5;
}

.space-layer-a {
  background-image:
    radial-gradient(circle at 12% 22%, rgba(255, 255, 255, 0.85) 0 1px, transparent 1.6px),
    radial-gradient(circle at 76% 18%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.6px),
    radial-gradient(circle at 34% 78%, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.6px),
    radial-gradient(circle at 88% 62%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.6px),
    radial-gradient(circle at 58% 48%, rgba(255, 255, 255, 0.5) 0 1px, transparent 1.6px);
  background-size: 280px 280px;
  animation: drift 56s linear infinite;
}

.space-layer-b {
  background-image:
    radial-gradient(circle at 20% 30%, rgba(241, 194, 107, 0.9) 0 1px, transparent 1.5px),
    radial-gradient(circle at 64% 70%, rgba(255, 255, 255, 0.65) 0 1px, transparent 1.5px),
    radial-gradient(circle at 84% 24%, rgba(255, 255, 255, 0.45) 0 1px, transparent 1.5px);
  background-size: 360px 360px;
  opacity: 0.3;
  animation: driftReverse 82s linear infinite;
}

.grid-layer {
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, transparent, black 14%, black 84%, transparent);
  opacity: 0.18;
}

.poster-echo {
  background-repeat: no-repeat;
  filter: saturate(1.15) contrast(1.05);
  opacity: 0.5;
}

.poster-echo--planet {
  background-image: url("assets/poster 2.png");
  inset: auto auto -8vh -12vw;
  width: 56vw;
  height: 72vh;
  background-size: 138%;
  background-position: 16% 22%;
  opacity: 0.34;
  filter: blur(5px) saturate(1.16);
  transform: rotate(-7deg);
}

.poster-echo--fleet {
  background-image: url("assets/poster 3.png");
  inset: 4vh -8vw auto auto;
  width: 46vw;
  height: 42vh;
  background-size: 142%;
  background-position: 74% 18%;
  opacity: 0.28;
  filter: blur(3px) saturate(1.12);
  animation: floatFleet 28s ease-in-out infinite;
}

.poster-echo--ring {
  background-image: url("assets/poster 4.png");
  inset: auto 8vw -20vh auto;
  width: 40vw;
  height: 50vh;
  background-size: 150%;
  background-position: 50% 78%;
  opacity: 0.42;
  filter: blur(1.6px) saturate(1.2) drop-shadow(0 0 50px rgba(241, 194, 107, 0.22));
  animation: pulseRing 15s ease-in-out infinite;
}

.banner-slice {
  background-image: linear-gradient(90deg, transparent 0%, rgba(225, 39, 45, 0.88) 14%, rgba(225, 39, 45, 0.88) 86%, transparent 100%);
  height: 14vh;
  inset: auto 0 16vh 0;
  opacity: 0.3;
}

.banner-slice--left {
  clip-path: polygon(0 20%, 48% 0, 44% 100%, 0 80%);
  transform: translateX(-12vw) rotate(-10deg);
}

.banner-slice--right {
  clip-path: polygon(56% 0, 100% 20%, 100% 80%, 52% 100%);
  transform: translateX(12vw) rotate(10deg);
}

.hero {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), var(--max-width));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.8fr);
  align-items: start;
  gap: 2.5rem;
  grid-template-areas:
    "copy poster"
    "band band";
  padding: 3.5rem 0 2rem;
}

.hero__copy {
  grid-area: copy;
  position: relative;
  max-width: 34rem;
  align-self: start;
  padding-top: 1rem;
}

.hero__copy::before {
  content: "";
  position: absolute;
  inset: -8rem auto auto -5rem;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 39, 45, 0.28) 0%, rgba(225, 39, 45, 0.08) 46%, transparent 72%);
  filter: blur(24px);
  z-index: -1;
  animation: pulseTitle 16s ease-in-out infinite;
}

h1,
.hero__tagline {
  margin: 0;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(3.6rem, 9.5vw, 8.8rem);
  line-height: 0.9;
  letter-spacing: 0.03em;
  text-wrap: balance;
  text-shadow:
    0 0 35px rgba(225, 39, 45, 0.18),
    0 2px 0 rgba(0, 0, 0, 0.24);
}

.hero__tagline {
  margin-top: 1.25rem;
  font-size: clamp(1.15rem, 2.4vw, 2rem);
  letter-spacing: 0.34em;
  color: var(--steel);
}

.hero__poster {
  grid-area: poster;
  position: relative;
  justify-self: end;
  align-self: center;
  width: min(100%, 540px);
  margin: 0;
}

.pillar-band {
  grid-area: band;
  align-self: end;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.25rem 0 0.25rem;
}

.pillar-chip {
  padding: 1rem 0 0.5rem;
  border: 0;
  border-top: 1px solid rgba(245, 241, 232, 0.18);
  background: transparent;
  color: var(--white-warm);
  text-align: left;
  font: inherit;
  cursor: default;
}

.pillar-chip__title {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.pillar-chip__copy {
  display: block;
  max-width: 24rem;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  color: var(--steel);
  font-family: sans-serif;
  font-size: 0.98rem;
  line-height: 1.45;
  letter-spacing: 0.01em;
  text-transform: none;
  transition:
    max-height 220ms ease,
    opacity 220ms ease,
    margin-top 220ms ease;
}

.pillar-chip:hover .pillar-chip__copy,
.pillar-chip:focus-visible .pillar-chip__copy {
  max-height: 7rem;
  margin-top: 0.8rem;
  opacity: 1;
}

.hero__glow {
  position: absolute;
  inset: 16% -8% auto;
  height: 68%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(225, 39, 45, 0.3) 0%, rgba(225, 39, 45, 0.1) 30%, transparent 74%);
  filter: blur(28px);
  animation: pulse 14s ease-in-out infinite;
}

.poster-frame {
  position: relative;
  width: 100%;
  border: 1px solid rgba(245, 241, 232, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.02);
  box-shadow: var(--shadow);
}

.poster-downloads {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.35rem;
  color: var(--steel);
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.poster-downloads__label {
  opacity: 0.88;
  margin-right: 0.2rem;
}

.poster-downloads__separator {
  color: rgba(245, 241, 232, 0.34);
}

.poster-downloads a {
  color: var(--white-warm);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 241, 232, 0.25);
  padding-bottom: 0.08rem;
  transition: border-color 180ms ease, color 180ms ease;
}

.poster-downloads a:hover,
.poster-downloads a:focus-visible {
  color: var(--gold);
  border-color: rgba(241, 194, 107, 0.65);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 800ms ease, transform 800ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-48px, 60px, 0);
  }
}

@keyframes driftReverse {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(34px, -44px, 0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.62;
    transform: scale(1);
  }
  50% {
    opacity: 0.82;
    transform: scale(1.03);
  }
}

@keyframes pulseRing {
  0%,
  100% {
    opacity: 0.34;
    transform: translateY(0) scale(1);
  }
  50% {
    opacity: 0.4;
    transform: translateY(-0.45vh) scale(1.015);
  }
}

@keyframes floatFleet {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-0.35vw, 0.45vh, 0);
  }
}

@keyframes pulseTitle {
  0%,
  100% {
    opacity: 0.66;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.03);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "poster"
      "band";
    gap: 1.5rem;
    justify-items: center;
    padding: 2.5rem 0 3rem;
  }

  .hero__copy {
    max-width: 42rem;
    text-align: center;
    padding-top: 0;
  }

  .hero__copy::before {
    inset: -7rem 50% auto auto;
    transform: translateX(50%);
  }

  .hero__poster {
    justify-self: center;
    align-self: start;
    width: min(100%, 28rem);
  }

  .pillar-band {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .pillar-chip {
    text-align: center;
  }

  .pillar-chip__copy {
    margin-inline: auto;
  }

  .poster-echo--planet {
    width: 80vw;
    height: 50vh;
    inset: auto auto -8vh -20vw;
    background-size: 128%;
    background-position: 20% 22%;
  }

  .poster-echo--fleet {
    width: 62vw;
    height: 28vh;
    inset: 4vh -14vw auto auto;
    background-size: 132%;
    background-position: 76% 18%;
  }

  .poster-echo--ring {
    width: 58vw;
    height: 34vh;
    inset: auto auto -10vh 42vw;
    background-size: 138%;
    background-position: 52% 76%;
  }
}

@media (max-width: 640px) {
  .hero {
    width: min(calc(100% - 1.25rem), var(--max-width));
    gap: 1.1rem;
    padding: 1.25rem 0 2rem;
  }

  .hero__poster {
    width: 100%;
    max-width: 20rem;
    padding-inline: 0;
  }

  .poster-frame {
    width: 100%;
  }

  .poster-downloads {
    margin-top: 1.1rem;
    padding-inline: 0.35rem;
    font-size: 0.88rem;
    letter-spacing: 0.13em;
    row-gap: 0.35rem;
  }

  .poster-downloads__label {
    flex-basis: 100%;
    margin-right: 0;
  }

  h1 {
    font-size: clamp(2.4rem, 12vw, 4rem);
    line-height: 0.94;
  }

  .hero__tagline {
    margin-top: 0.9rem;
    font-size: clamp(0.92rem, 4.2vw, 1.2rem);
    letter-spacing: 0.22em;
  }

  .banner-slice {
    height: 10vh;
    inset: auto 0 11vh 0;
  }

  .poster-echo--planet {
    width: 96vw;
    height: 42vh;
    inset: auto auto -4vh -36vw;
    background-size: 132%;
    background-position: 22% 24%;
  }

  .poster-echo--fleet {
    width: 82vw;
    height: 24vh;
    inset: 10vh -28vw auto auto;
    background-size: 136%;
    background-position: 74% 18%;
  }

  .poster-echo--ring {
    width: 82vw;
    height: 28vh;
    inset: auto auto -8vh 34vw;
    background-size: 142%;
    background-position: 52% 76%;
  }
}

@media (max-width: 420px) {
  .hero {
    width: min(calc(100% - 1rem), var(--max-width));
    gap: 0.9rem;
    padding: 1rem 0 1.75rem;
  }

  .hero__poster {
    max-width: 18rem;
  }

  h1 {
    font-size: clamp(2.15rem, 11vw, 3.2rem);
  }

  .hero__tagline {
    letter-spacing: 0.16em;
  }

  .pillar-band {
    gap: 0.8rem;
  }

  .poster-downloads {
    gap: 0.45rem;
    font-size: 0.8rem;
    line-height: 1.5;
    letter-spacing: 0.1em;
  }
}

@media (max-height: 860px) {
  .hero {
    min-height: auto;
    padding-top: 2rem;
    gap: 1.5rem;
  }

  .hero__copy {
    padding-top: 0;
  }

  h1 {
    font-size: clamp(2.8rem, 7vw, 5.6rem);
  }

  .hero__tagline {
    margin-top: 0.9rem;
    font-size: clamp(1rem, 1.8vw, 1.35rem);
  }

  .hero__poster {
    align-self: start;
    width: min(100%, 24rem);
  }

  .poster-downloads {
    margin-top: 0.9rem;
  }
}

@media (max-width: 1500px) and (max-height: 1100px) and (min-width: 981px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem);
    gap: 1.25rem;
    padding-top: 2rem;
  }

  .hero__copy {
    max-width: 28rem;
    padding-top: 0;
  }

  h1 {
    font-size: clamp(2.9rem, 6.6vw, 5.6rem);
    line-height: 0.92;
  }

  .hero__tagline {
    margin-top: 0.85rem;
    font-size: clamp(1rem, 1.5vw, 1.35rem);
    letter-spacing: 0.24em;
  }

  .hero__poster {
    align-self: start;
    width: min(100%, 20rem);
  }

  .poster-downloads {
    margin-top: 0.85rem;
    font-size: 0.88rem;
    letter-spacing: 0.12em;
  }
}

@media (max-height: 860px) and (max-width: 980px) {
  .hero {
    gap: 1rem;
    padding-top: 1.5rem;
  }

  .hero__poster {
    width: min(100%, 18.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}
