:root {
  color-scheme: dark;
  --bg: #030509;
  --steel: #dce7f5;
  --muted: #9fb2c7;
  --cyan: #46dfff;
  --cyan-deep: #0877ff;
  --twitch: #9b7cff;
  --tiktok: #ff3d75;
  --acid: #f2c84c;
  --mx: 50%;
  --my: 32%;
  --glow-x: 50%;
  --glow-y: 34%;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--steel);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(70, 223, 255, 0.16), transparent 18rem),
    radial-gradient(circle at 12% 58%, rgba(155, 124, 255, 0.12), transparent 18rem),
    radial-gradient(circle at 88% 52%, rgba(255, 61, 117, 0.12), transparent 18rem),
    linear-gradient(135deg, #020306 0%, #07101b 46%, #020306 100%);
  overflow-x: hidden;
}

body::before,
body::after,
.fx {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -4;
  opacity: 0.54;
  background:
    linear-gradient(90deg, rgba(3, 5, 9, 0.88), rgba(3, 5, 9, 0.42) 44%, rgba(3, 5, 9, 0.88)),
    linear-gradient(180deg, rgba(3, 5, 9, 0.8), rgba(3, 5, 9, 0.2) 46%, rgba(3, 5, 9, 0.9)),
    url("/assets/skynet30-banner.png") center / cover no-repeat;
  filter: saturate(1.16) contrast(1.08) brightness(0.66);
  transform: scale(1.04);
}

body::after {
  z-index: -1;
  opacity: 0.2;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(70, 223, 255, 0.09) 0 1px, transparent 1px 110px);
  mask-image: linear-gradient(180deg, transparent, black 16%, black 78%, transparent);
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

.fx-backlight {
  z-index: -3;
  background:
    radial-gradient(circle at 50% 48%, rgba(70, 223, 255, 0.2), transparent 14rem),
    radial-gradient(circle at 50% 48%, transparent 0 24%, rgba(70, 223, 255, 0.24) 24.2% 24.6%, transparent 24.8%),
    radial-gradient(circle at 50% 48%, transparent 0 36%, rgba(255, 61, 117, 0.18) 36.2% 36.5%, transparent 36.7%);
  filter: blur(2px) drop-shadow(0 0 28px rgba(70, 223, 255, 0.2));
  animation: backlightPulse 7s ease-in-out infinite;
}

.fx-grid {
  z-index: -2;
  opacity: 0.32;
  background:
    linear-gradient(120deg, transparent 0 42%, rgba(70, 223, 255, 0.12) 47%, transparent 52% 100%),
    linear-gradient(60deg, transparent 0 44%, rgba(255, 61, 117, 0.1) 49%, transparent 54% 100%),
    repeating-linear-gradient(0deg, rgba(70, 223, 255, 0.07) 0 1px, transparent 1px 86px),
    repeating-linear-gradient(90deg, rgba(70, 223, 255, 0.06) 0 1px, transparent 1px 86px);
  mask-image: radial-gradient(circle at 50% 46%, black 0 52%, transparent 82%);
}

.fx-scan {
  z-index: -1;
  opacity: 0.2;
  background:
    linear-gradient(180deg, transparent 0 34%, rgba(70, 223, 255, 0.1) 43%, transparent 53%),
    linear-gradient(180deg, transparent 0 72%, rgba(255, 255, 255, 0.08) 73%, transparent 74%);
  animation: scanDrift 8s linear infinite;
}

.poster {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4.4vw, 72px);
  isolation: isolate;
  overflow: hidden;
}

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

.poster::before {
  inset: 5vh 10vw;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 46%, rgba(70, 223, 255, 0.22), transparent 20rem),
    conic-gradient(from 220deg at 50% 50%, transparent 0 24%, rgba(70, 223, 255, 0.18) 31%, transparent 37% 62%, rgba(255, 61, 117, 0.16) 70%, transparent 78% 100%);
  filter: blur(10px);
  opacity: 0.9;
}

.poster::after {
  width: min(82vw, 1060px);
  height: min(42vw, 520px);
  z-index: -1;
  border: 1px solid rgba(70, 223, 255, 0.14);
  transform: skewX(-10deg);
  box-shadow:
    0 0 70px rgba(70, 223, 255, 0.08) inset,
    0 0 110px rgba(0, 0, 0, 0.42);
  opacity: 0.84;
}

.brand-core {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: clamp(14px, 2.1vw, 26px);
  text-align: center;
}

.logo-stage {
  position: relative;
  width: clamp(238px, 30vw, 462px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.logo-stage::before,
.logo-stage::after,
.logo-ring {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}

.logo-stage::before {
  inset: 5.5%;
  border: 1px solid rgba(70, 223, 255, 0.28);
  box-shadow:
    0 0 38px rgba(70, 223, 255, 0.26),
    0 0 96px rgba(70, 223, 255, 0.16),
    0 0 140px rgba(255, 61, 117, 0.1);
}

.logo-stage::after {
  inset: 17%;
  background:
    radial-gradient(circle, rgba(70, 223, 255, 0.26), transparent 54%),
    radial-gradient(circle at 68% 42%, rgba(255, 61, 117, 0.16), transparent 34%);
  filter: blur(20px);
  opacity: 0.95;
}

.logo-ring-one {
  inset: 0;
  border: 1px solid rgba(70, 223, 255, 0.2);
  border-left-color: transparent;
  border-right-color: rgba(255, 61, 117, 0.24);
  animation: ringSpin 18s linear infinite;
}

.logo-ring-two {
  inset: 9%;
  border: 1px dashed rgba(242, 200, 76, 0.22);
  animation: ringSpin 26s linear infinite reverse;
}

.brand-logo {
  position: relative;
  z-index: 1;
  width: 86%;
  height: 86%;
  object-fit: contain;
  filter:
    drop-shadow(0 0 18px rgba(70, 223, 255, 0.3))
    drop-shadow(0 30px 42px rgba(0, 0, 0, 0.72));
  animation: logoFloat 7s ease-in-out infinite;
}

h1 {
  position: relative;
  margin: 0;
  font-family: "Oxanium", sans-serif;
  font-size: clamp(3.25rem, 7.4vw, 8rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #f5f8ff;
  text-shadow:
    0 0 15px rgba(70, 223, 255, 0.34),
    0 0 36px rgba(70, 223, 255, 0.22),
    0 0 64px rgba(255, 61, 117, 0.12);
}

h1::before,
h1::after {
  content: "";
  position: absolute;
  top: 50%;
  width: clamp(48px, 8vw, 132px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(70, 223, 255, 0.74), rgba(255, 61, 117, 0.45), transparent);
}

h1::before {
  right: calc(100% + clamp(10px, 2vw, 30px));
}

h1::after {
  left: calc(100% + clamp(10px, 2vw, 30px));
}

.platforms {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.platform-link {
  position: absolute;
  top: 50%;
  width: clamp(244px, 23.5vw, 338px);
  min-height: 126px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  overflow: hidden;
  color: #f5f8ff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.025)),
    rgba(4, 7, 12, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 24px 72px rgba(0, 0, 0, 0.54);
  backdrop-filter: blur(18px);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
  pointer-events: auto;
  transform: translateY(-50%);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    filter 220ms ease;
}

.platform-link::before,
.platform-link::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.platform-link::before {
  background:
    linear-gradient(120deg, transparent 0 34%, rgba(255, 255, 255, 0.36) 45%, transparent 56% 100%),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  opacity: 0;
  transform: translateX(-120%);
}

.platform-link::after {
  opacity: 0.96;
  transform: scale(1.1);
  filter: blur(18px);
}

.platform-link:hover,
.platform-link:focus-visible {
  border-color: rgba(70, 223, 255, 0.72);
  filter: saturate(1.16);
  outline: none;
}

.platform-link:hover::before,
.platform-link:focus-visible::before {
  animation: sweep 1.05s ease;
}

.platform-link-twitch {
  left: clamp(18px, 3.2vw, 76px);
  border-color: rgba(155, 124, 255, 0.42);
}

.platform-link-twitch:hover,
.platform-link-twitch:focus-visible {
  transform: translateY(-50%) translateX(8px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 28px 84px rgba(0, 0, 0, 0.62),
    0 0 44px rgba(155, 124, 255, 0.28);
}

.platform-link-twitch::after {
  background:
    radial-gradient(circle at 14% 26%, rgba(155, 124, 255, 0.36), transparent 24%),
    radial-gradient(circle at 82% 76%, rgba(70, 223, 255, 0.2), transparent 30%);
}

.platform-link-tiktok {
  right: clamp(18px, 3.2vw, 76px);
  border-color: rgba(255, 61, 117, 0.42);
}

.platform-link-tiktok:hover,
.platform-link-tiktok:focus-visible {
  transform: translateY(-50%) translateX(-8px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 28px 84px rgba(0, 0, 0, 0.62),
    0 0 44px rgba(255, 61, 117, 0.27);
}

.platform-link-tiktok::after {
  background:
    radial-gradient(circle at 14% 26%, rgba(255, 61, 117, 0.34), transparent 24%),
    radial-gradient(circle at 82% 76%, rgba(70, 223, 255, 0.22), transparent 30%);
}

.platform-icon,
.platform-copy {
  position: relative;
  z-index: 1;
}

.platform-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 34px rgba(70, 223, 255, 0.12);
}

.platform-link-twitch .platform-icon {
  color: var(--twitch);
  box-shadow:
    0 0 28px rgba(155, 124, 255, 0.18),
    0 0 52px rgba(70, 223, 255, 0.1);
}

.platform-link-tiktok .platform-icon {
  color: var(--tiktok);
  box-shadow:
    0 0 28px rgba(255, 61, 117, 0.18),
    0 0 52px rgba(70, 223, 255, 0.1);
}

.platform-icon svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
  filter: drop-shadow(0 0 12px currentColor);
}

.platform-copy {
  display: grid;
  gap: 7px;
}

.platform-copy strong {
  font-family: "Oxanium", sans-serif;
  font-size: clamp(1.22rem, 2.2vw, 1.7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.platform-copy small {
  color: #c8d7e8;
  font-size: clamp(0.72rem, 0.95vw, 0.9rem);
  line-height: 1.12;
  white-space: nowrap;
  word-break: break-word;
}

.reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.99);
}

.js .reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 700ms ease,
    transform 760ms cubic-bezier(0.18, 0.8, 0.2, 1);
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-9px) scale(1.012);
  }
}

@keyframes ringSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes backlightPulse {
  0%,
  100% {
    opacity: 0.84;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

@keyframes sweep {
  0% {
    opacity: 0;
    transform: translateX(-120%);
  }
  18% {
    opacity: 0.68;
  }
  100% {
    opacity: 0;
    transform: translateX(120%);
  }
}

@keyframes scanDrift {
  0% {
    transform: translateY(-1.5%);
  }
  50% {
    transform: translateY(1.5%);
  }
  100% {
    transform: translateY(-1.5%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1100px) {
  .platform-link {
    width: min(34vw, 310px);
    min-width: 220px;
    min-height: 112px;
    padding: 16px;
  }

  .platform-icon {
    width: 54px;
    height: 54px;
  }

  .platform-icon svg {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 860px) {
  body {
    overflow-y: auto;
  }

  body::before {
    opacity: 0.44;
    transform: scale(1.12);
  }

  .poster {
    min-height: 100svh;
    align-content: center;
    gap: 22px;
    padding: 20px 14px 24px;
    overflow: hidden;
  }

  .poster::after {
    width: 86vw;
    height: 60vh;
    transform: skewX(-5deg);
  }

  .brand-core {
    gap: 10px;
  }

  .logo-stage {
    width: min(68vw, 292px);
  }

  h1 {
    font-size: clamp(2.8rem, 14vw, 5rem);
    letter-spacing: 0.015em;
  }

  h1::before,
  h1::after {
    display: none;
  }

  .platforms {
    position: relative;
    inset: auto;
    width: min(100%, 560px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    pointer-events: auto;
  }

  .platform-link {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    min-width: 0;
    min-height: 88px;
    padding: 14px;
    transform: none;
  }

  .platform-link:hover,
  .platform-link:focus-visible,
  .platform-link-twitch:hover,
  .platform-link-twitch:focus-visible,
  .platform-link-tiktok:hover,
  .platform-link-tiktok:focus-visible {
    transform: translateY(-3px);
  }
}

@media (max-width: 520px) {
  .poster {
    gap: 16px;
    padding: 18px 12px 20px;
  }

  .logo-stage {
    width: min(72vw, 254px);
  }

  .platform-link {
    grid-template-columns: 50px 1fr;
    gap: 12px;
    min-height: 82px;
  }

  .platform-icon {
    width: 50px;
    height: 50px;
  }

  .platform-icon svg {
    width: 28px;
    height: 28px;
  }
}
