:root {
  --bg0: #07110f;
  --bg1: #0c1f1a;
  --ink: #e8f2ec;
  --muted: #8aa89a;
  --accent: #d4ff4a;
  --accent-dim: #9fc92a;
  --line: rgba(212, 255, 74, 0.18);
  --font-display: "Syne", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--ink);
  font-family: var(--font-mono);
  background: var(--bg0);
  overflow-x: hidden;
}

.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 50% -10%, #16382c 0%, transparent 55%),
    linear-gradient(180deg, var(--bg1) 0%, var(--bg0) 70%);
}

.stage__glow {
  position: absolute;
  inset: 18% 10% auto;
  height: 40%;
  background: radial-gradient(ellipse at center, rgba(212, 255, 74, 0.12), transparent 65%);
  animation: pulse 6s ease-in-out infinite;
}

.stage__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 75%);
  transform: perspective(600px) rotateX(58deg) translateY(-8%);
  transform-origin: center top;
  animation: grid-drift 18s linear infinite;
}

.stage__scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
  opacity: 0.35;
}

.top {
  position: relative;
  z-index: 2;
  padding: 1rem 1.25rem;
}

.top__back {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.top__back:hover {
  color: var(--accent);
}

.hero {
  position: relative;
  z-index: 2;
  max-width: 40rem;
  margin: 0 auto;
  padding: 8vh 1.25rem 3rem;
  min-height: calc(100vh - 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 12vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--accent);
  text-shadow: 0 0 40px rgba(212, 255, 74, 0.25);
  animation: brand-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.headline {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 3.2vw, 1.55rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  animation: rise 0.7s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.lede {
  margin: 0 0 2rem;
  max-width: 28rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  animation: rise 0.7s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.play {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.play__item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 0.85rem;
  row-gap: 0.15rem;
  align-items: baseline;
  padding: 0.95rem 1rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  border-bottom-color: rgba(138, 168, 154, 0.22);
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  animation: rise 0.65s calc(0.28s + var(--i) * 0.07s) cubic-bezier(0.22, 1, 0.36, 1) both;
}

.play__item:hover,
.play__item:focus-visible {
  background: rgba(212, 255, 74, 0.06);
  border-color: rgba(212, 255, 74, 0.35);
  outline: none;
  transform: translateX(4px);
}

.play__tag {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dim);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  opacity: 0.9;
}

.play__title {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.play__sub {
  grid-column: 2;
  grid-row: 2;
  font-size: 0.82rem;
  color: var(--muted);
}

.play__go {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--accent);
  font-size: 1.25rem;
  opacity: 0.55;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.play__item:hover .play__go,
.play__item:focus-visible .play__go {
  opacity: 1;
  transform: translateX(3px);
}

@keyframes brand-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes grid-drift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 48px;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-top: 4vh;
  }

  .play__tag {
    writing-mode: horizontal-tb;
    transform: none;
    grid-row: 1;
    font-size: 0.6rem;
  }

  .play__title {
    grid-column: 1 / 3;
    grid-row: 2;
  }

  .play__sub {
    grid-column: 1 / 3;
    grid-row: 3;
  }

  .play__go {
    grid-column: 3;
    grid-row: 1 / span 3;
  }

  .play__item {
    grid-template-rows: auto auto auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stage__glow,
  .stage__grid,
  .brand,
  .headline,
  .lede,
  .play__item {
    animation: none;
  }
}
