:root {
  --neon: #08f3cf;
  --neon-dim: rgba(8, 243, 207, .26);
  --green: #20ff78;
  --ink: #020707;
  --white: #f2fff9;
}

* {
  box-sizing: border-box;
}

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

body {
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
}

.prelander {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
}

.background-video,
.media-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.background-video {
  z-index: -8;
  filter: grayscale(.15) saturate(.72) contrast(1.05) brightness(.7);
}

.media-fallback {
  z-index: -9;
  background: url("https://once-humain.voltbattle.com/banni%C3%A8re/once-human-character-and-keyart.webp") center / cover no-repeat;
}

.vignette {
  position: absolute;
  inset: 0;
  z-index: -6;
  background:
    radial-gradient(circle at 50% 34%, rgba(8, 243, 207, .12), transparent 28%),
    linear-gradient(90deg, rgba(0, 7, 7, .95), rgba(0, 12, 12, .48) 42%, rgba(0, 7, 7, .95)),
    linear-gradient(0deg, rgba(0, 7, 7, .98) 0%, rgba(0, 7, 7, .44) 48%, rgba(0, 7, 7, .76) 100%);
}

.vignette::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .09) 0 1px, transparent 1px 5px),
    radial-gradient(circle at 50% 50%, transparent 0%, rgba(0, 0, 0, .52) 78%);
  opacity: .42;
  mix-blend-mode: screen;
  animation: scanlines 7s linear infinite;
}

.vignette::after {
  position: absolute;
  inset: 0;
  content: "";
  box-shadow: inset 0 0 120px rgba(0, 0, 0, .95);
}

.hud-corners {
  position: absolute;
  inset: 24px;
  z-index: 3;
  border: 1px solid rgba(8, 243, 207, .12);
  pointer-events: none;
}

.hud-corners::before,
.hud-corners::after {
  position: absolute;
  width: 42px;
  height: 42px;
  content: "";
  border-color: rgba(8, 243, 207, .78);
  filter: drop-shadow(0 0 10px rgba(8, 243, 207, .42));
}

.hud-corners::before {
  top: -1px;
  left: -1px;
  border-top: 3px solid;
  border-left: 3px solid;
}

.hud-corners::after {
  right: -1px;
  bottom: -1px;
  border-right: 3px solid;
  border-bottom: 3px solid;
}

.energy-field {
  position: absolute;
  inset: 0;
  z-index: -5;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  width: min(100% - 48px, 1900px);
  height: 100%;
  margin: 0 auto;
  padding: 20px 0 26px;
}

.logo {
  width: clamp(170px, 15vw, 320px);
  height: auto;
  opacity: .68;
  filter: drop-shadow(0 0 16px rgba(8, 243, 207, .25));
}

.hero-panel {
  align-self: start;
  justify-self: center;
  display: grid;
  justify-items: center;
  width: min(860px, 100%);
  transform: translateY(3vh);
}

.headline {
  text-align: center;
}

h1 {
  width: min(860px, 100%);
  margin: 0 auto;
  color: #f4fff9;
  font-size: clamp(42px, 4.7vw, 78px);
  line-height: 1.03;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow:
    0 0 18px rgba(8, 243, 207, .22),
    0 4px 0 rgba(0, 0, 0, .36);
}

h1 span {
  color: var(--neon);
  text-shadow:
    0 0 16px rgba(8, 243, 207, .88),
    0 0 36px rgba(8, 243, 207, .48);
}

.headline p {
  width: min(690px, 94%);
  margin: 16px auto 0;
  color: rgba(235, 255, 248, .78);
  font-size: clamp(15px, 1.22vw, 19px);
  line-height: 1.42;
  font-weight: 700;
  text-shadow: 0 2px 16px #000;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: min(840px, 100%);
  margin: 18px 0 10px;
}

.feature-row span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: var(--neon);
  border: 1px solid rgba(8, 243, 207, .28);
  border-radius: 3px;
  background: rgba(8, 243, 207, .1);
  font-size: clamp(10px, .85vw, 13px);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  text-align: center;
  box-shadow: inset 0 0 18px rgba(8, 243, 207, .08);
  white-space: nowrap;
}

.gameplay-card {
  position: relative;
  width: min(640px, 70vw);
  aspect-ratio: 16 / 8.45;
  overflow: hidden;
  border: 4px solid var(--green);
  border-radius: 10px;
  background: rgba(2, 10, 10, .7);
  box-shadow:
    0 0 0 1px rgba(8, 243, 207, .55),
    0 0 34px rgba(8, 243, 207, .42),
    0 22px 80px rgba(0, 0, 0, .68);
}

.gameplay-card::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  background:
    linear-gradient(120deg, rgba(8, 243, 207, .18), transparent 24%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .11) 0 1px, transparent 1px 4px);
  opacity: .34;
  pointer-events: none;
}

.gameplay-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.12) contrast(1.08);
}

.card-logo {
  position: absolute;
  top: 16px;
  left: 18px;
  z-index: 3;
  width: 118px;
  opacity: .88;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, .7));
  pointer-events: none;
}

.cta-zone {
  display: grid;
  justify-items: center;
  width: min(690px, 76vw);
  margin-top: 14px;
}

.cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: clamp(60px, 5vw, 78px);
  padding: 0 28px;
  overflow: hidden;
  color: #01120f;
  border: 3px solid rgba(8, 243, 207, .84);
  border-radius: 8px;
  background: linear-gradient(180deg, #18f6dd 0%, #09dcbf 100%);
  text-decoration: none;
  text-transform: uppercase;
  box-shadow:
    0 0 0 3px rgba(0, 20, 18, .82),
    0 0 36px rgba(8, 243, 207, .75),
    0 18px 60px rgba(0, 0, 0, .62);
  transition: transform .2s ease, filter .2s ease;
  animation: ctaPulse 1.8s ease-in-out infinite;
}

.cta-button:hover,
.cta-button:focus-visible {
  filter: brightness(1.08) saturate(1.1);
  transform: translateY(-3px);
  outline: none;
}

.cta-button::before,
.cta-button::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.cta-button::before {
  inset: 7px;
  border: 1px solid rgba(0, 42, 36, .42);
}

.cta-button::after {
  top: -35%;
  bottom: -35%;
  left: -34%;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .82), transparent);
  transform: skewX(-18deg);
  animation: ctaSweep 2.4s ease-in-out infinite;
}

.cta-glow {
  position: absolute;
  inset: auto 8% -70% 8%;
  height: 100%;
  background: radial-gradient(circle, rgba(8, 243, 207, .9), transparent 70%);
  filter: blur(20px);
}

.cta-text {
  position: relative;
  z-index: 1;
  font-size: clamp(20px, 1.75vw, 30px);
  font-weight: 1000;
  letter-spacing: 0;
  text-align: center;
}

.cta-arrow {
  position: relative;
  z-index: 1;
  font-size: clamp(17px, 1.6vw, 25px);
  animation: arrowNudge 1s ease-in-out infinite;
}

.cta-note {
  margin: 7px 0 0;
  color: rgba(8, 243, 207, .45);
  font-size: clamp(10px, .82vw, 13px);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ghost-line {
  position: absolute;
  left: 3vw;
  right: 3vw;
  bottom: -1.6vh;
  z-index: -1;
  margin: 0;
  color: rgba(145, 255, 235, .08);
  font-size: clamp(54px, 7.5vw, 142px);
  line-height: .82;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center;
}

.spark {
  position: fixed;
  z-index: 5;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--neon);
  box-shadow: 0 0 14px var(--neon), 0 0 28px var(--green);
  pointer-events: none;
  animation: sparkFly .7s ease-out forwards;
}

@keyframes ctaPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 3px rgba(0, 20, 18, .82),
      0 0 32px rgba(8, 243, 207, .62),
      0 18px 60px rgba(0, 0, 0, .62);
  }
  50% {
    box-shadow:
      0 0 0 3px rgba(0, 20, 18, .82),
      0 0 56px rgba(8, 243, 207, .9),
      0 18px 60px rgba(0, 0, 0, .62);
  }
}

@keyframes ctaSweep {
  0%,
  42% {
    left: -34%;
  }
  72%,
  100% {
    left: 112%;
  }
}

@keyframes arrowNudge {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(6px);
  }
}

@keyframes scanlines {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(28px);
  }
}

@keyframes sparkFly {
  to {
    opacity: 0;
    transform: translate(var(--spark-x), var(--spark-y)) scale(.25);
  }
}

@media (max-width: 980px) {
  .hero {
    width: min(100% - 28px, 760px);
    padding-top: 16px;
  }

  .hero-panel {
    transform: translateY(1vh);
  }

  .feature-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(560px, 100%);
    gap: 8px;
  }

  .feature-row span {
    white-space: normal;
  }

  .gameplay-card {
    width: min(560px, 86vw);
  }

  .cta-zone {
    width: min(620px, 88vw);
  }
}

@media (max-width: 560px) {
  .hud-corners {
    inset: 14px;
  }

  .logo {
    width: 142px;
  }

  h1 {
    font-size: clamp(34px, 10vw, 52px);
  }

  .headline p {
    margin-top: 10px;
    font-size: 13px;
  }

  .gameplay-card {
    width: 100%;
    border-width: 3px;
  }

  .card-logo {
    width: 82px;
    top: 10px;
    left: 12px;
  }

  .cta-zone {
    width: 100%;
  }

  .cta-button {
    padding: 0 16px;
  }
}

@media (max-height: 780px) and (min-width: 900px) {
  .hero {
    padding-top: 14px;
  }

  .logo {
    width: clamp(150px, 11vw, 230px);
  }

  .hero-panel {
    transform: translateY(-.5vh);
  }

  h1 {
    font-size: clamp(36px, 4vw, 62px);
  }

  .headline p {
    margin-top: 10px;
  }

  .feature-row {
    margin: 12px 0 9px;
  }

  .gameplay-card {
    width: min(570px, 58vw);
  }

  .cta-zone {
    width: min(620px, 64vw);
    margin-top: 12px;
  }

  .cta-button {
    min-height: 60px;
  }
}

@media (min-width: 1500px) and (min-height: 850px) {
  .hero-panel {
    transform: translateY(4vh);
  }

  .gameplay-card {
    width: 640px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
