:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f6fbff;
  background: #081018;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(8, 16, 24, 0.98), rgba(18, 32, 42, 0.96)),
    #081018;
}

.stub {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  isolation: isolate;
}

.stub::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  transform: perspective(900px) rotateX(58deg) translateY(6%);
  transform-origin: center bottom;
  animation: grid-drift 15s linear infinite;
}

.stub::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, transparent 0 18%, rgba(0, 159, 220, 0.16) 30%, transparent 44%),
    linear-gradient(300deg, transparent 0 22%, rgba(246, 190, 54, 0.10) 36%, transparent 52%),
    radial-gradient(ellipse at center, transparent 0 46%, rgba(8, 16, 24, 0.80) 78%);
  animation: light-sweep 9s ease-in-out infinite alternate;
}

.motion-field {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.line,
.plate {
  position: absolute;
  display: block;
  pointer-events: none;
}

.line {
  height: 2px;
  width: min(72vw, 920px);
  background: linear-gradient(90deg, transparent, rgba(92, 208, 255, 0.82), transparent);
  transform-origin: center;
  filter: drop-shadow(0 0 18px rgba(92, 208, 255, 0.32));
}

.line-a {
  top: 18%;
  left: -18%;
  animation: slide-right 8s ease-in-out infinite;
}

.line-b {
  right: -22%;
  bottom: 24%;
  background: linear-gradient(90deg, transparent, rgba(255, 213, 90, 0.72), transparent);
  animation: slide-left 9.5s ease-in-out infinite;
}

.line-c {
  top: 68%;
  left: 12%;
  width: min(46vw, 580px);
  opacity: 0.55;
  transform: rotate(-28deg);
  animation: pulse-line 6s ease-in-out infinite;
}

.line-d {
  top: 31%;
  right: 8%;
  width: min(38vw, 520px);
  opacity: 0.45;
  transform: rotate(33deg);
  animation: pulse-line 7s ease-in-out infinite reverse;
}

.plate {
  border: 1px solid rgba(255, 255, 255, 0.13);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(8, 16, 24, 0.22);
  box-shadow: inset 0 0 32px rgba(92, 208, 255, 0.07);
}

.plate-a {
  width: min(34vw, 430px);
  aspect-ratio: 1.8;
  left: 8%;
  top: 16%;
  transform: skewX(-14deg) rotate(-8deg);
  animation: plate-float 8s ease-in-out infinite;
}

.plate-b {
  width: min(42vw, 520px);
  aspect-ratio: 2.2;
  right: 7%;
  bottom: 12%;
  transform: skewX(12deg) rotate(7deg);
  animation: plate-float 10s ease-in-out infinite reverse;
}

.stub-content {
  width: min(100%, 920px);
  text-align: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: rgba(199, 225, 239, 0.72);
  font-size: clamp(13px, 1.5vw, 16px);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(48px, 10vw, 132px);
  line-height: 0.92;
  font-weight: 850;
  letter-spacing: 0;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22),
    0 24px 80px rgba(0, 159, 220, 0.30);
}

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

@keyframes light-sweep {
  from {
    transform: translateX(-2%) scale(1);
    opacity: 0.72;
  }
  to {
    transform: translateX(2%) scale(1.04);
    opacity: 1;
  }
}

@keyframes slide-right {
  0%,
  100% {
    transform: translateX(0) rotate(-12deg);
    opacity: 0.28;
  }
  50% {
    transform: translateX(46vw) rotate(-12deg);
    opacity: 0.78;
  }
}

@keyframes slide-left {
  0%,
  100% {
    transform: translateX(0) rotate(16deg);
    opacity: 0.25;
  }
  50% {
    transform: translateX(-42vw) rotate(16deg);
    opacity: 0.72;
  }
}

@keyframes pulse-line {
  0%,
  100% {
    opacity: 0.18;
  }
  50% {
    opacity: 0.72;
  }
}

@keyframes plate-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -18px;
  }
}

@media (max-width: 640px) {
  .stub {
    padding: 20px;
  }

  .stub::before {
    background-size: 48px 48px;
  }

  .plate-a,
  .plate-b {
    width: 72vw;
  }

  .line {
    width: 96vw;
  }
}

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