:root {
  --bg: #050712;
  --text: #eef6ff;
  --muted: rgba(238, 246, 255, 0.68);
  --line: rgba(125, 230, 255, 0.15);
  --glow: rgba(55, 220, 255, 0.45);
  --pink: rgba(255, 60, 210, 0.34);
  --violet: rgba(130, 90, 255, 0.38);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow: hidden;
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
}

.stage {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  isolation: isolate;
  background:
    radial-gradient(circle at 18% 24%, rgba(44, 189, 255, 0.18), transparent 28%),
    radial-gradient(circle at 82% 74%, rgba(255, 57, 196, 0.16), transparent 32%),
    linear-gradient(135deg, #03040c 0%, #081226 48%, #050712 100%);
}

.stage::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -3;
  background:
    radial-gradient(circle, rgba(255,255,255,0.9) 0 1px, transparent 1.8px) 12px 18px / 130px 120px,
    radial-gradient(circle, rgba(125,230,255,0.85) 0 1px, transparent 1.9px) 70px 44px / 180px 160px,
    radial-gradient(circle, rgba(255,90,220,0.75) 0 1px, transparent 2px) 32px 88px / 240px 220px;
  opacity: 0.38;
  animation: drift 34s linear infinite;
}

.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at center, transparent 0 38%, rgba(2, 3, 10, 0.78) 78%);
  pointer-events: none;
}

.grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 52px 52px;
  transform: perspective(700px) rotateX(58deg) translateY(12%);
  transform-origin: bottom center;
  opacity: 0.38;
  animation: gridFlow 9s linear infinite;
}

.noise {
  position: absolute;
  inset: -50%;
  opacity: 0.05;
  z-index: 2;
  background-image:
    linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.7) 45%, transparent 52%),
    repeating-radial-gradient(circle, rgba(255,255,255,0.35) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
  animation: shimmer 5.8s steps(6) infinite;
  pointer-events: none;
}

.orb {
  position: absolute;
  width: 34vmax;
  height: 34vmax;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  z-index: -2;
}

.orb-one {
  top: -12vmax;
  left: -8vmax;
  background: var(--glow);
  animation: floatOne 17s ease-in-out infinite;
}

.orb-two {
  right: -13vmax;
  bottom: -11vmax;
  background: var(--pink);
  animation: floatTwo 21s ease-in-out infinite;
}

.orb-three {
  width: 24vmax;
  height: 24vmax;
  left: 48%;
  top: 58%;
  background: var(--violet);
  animation: floatThree 14s ease-in-out infinite;
}

.hero {
  position: relative;
  width: min(92vw, 980px);
  padding: clamp(2rem, 5vw, 5rem);
  text-align: center;
  border: 1px solid rgba(140, 230, 255, 0.20);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.025)),
    rgba(6, 10, 24, 0.42);
  box-shadow:
    0 0 70px rgba(35, 190, 255, 0.16),
    inset 0 0 50px rgba(255,255,255,0.035);
  backdrop-filter: blur(18px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, transparent, rgba(100, 230, 255, 0.85), transparent, rgba(255, 65, 210, 0.55), transparent);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: borderPulse 6.5s linear infinite;
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 1.2rem;
  font-size: clamp(0.72rem, 1.5vw, 0.92rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(145, 232, 255, 0.78);
}

h1 {
  margin: 0;
  font-size: clamp(3.3rem, 11vw, 9rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
  text-shadow:
    0 0 24px rgba(72, 218, 255, 0.42),
    0 0 70px rgba(255, 58, 213, 0.18);
}

.subtitle {
  margin: 1.5rem 0 0;
  font-size: clamp(1.05rem, 2.7vw, 1.75rem);
  letter-spacing: 0.16em;
  color: var(--muted);
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to { transform: translate3d(-90px, 70px, 0) rotate(1deg); }
}

@keyframes gridFlow {
  from { background-position: 0 0; }
  to { background-position: 0 52px; }
}

@keyframes shimmer {
  0%, 100% { transform: translate3d(-2%, -1%, 0) rotate(0deg); }
  50% { transform: translate3d(2%, 1%, 0) rotate(1deg); }
}

@keyframes floatOne {
  0%, 100% { transform: translate(0, 0) scale(1); }
  47% { transform: translate(8vw, 9vh) scale(1.18); }
}

@keyframes floatTwo {
  0%, 100% { transform: translate(0, 0) scale(1); }
  53% { transform: translate(-10vw, -7vh) scale(0.9); }
}

@keyframes floatThree {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-42%, -62%) scale(1.22); }
}

@keyframes borderPulse {
  from { filter: hue-rotate(0deg); opacity: 0.55; }
  50% { opacity: 0.95; }
  to { filter: hue-rotate(360deg); opacity: 0.55; }
}

@media (max-width: 640px) {
  .hero {
    border-radius: 24px;
  }

  .grid {
    background-size: 38px 38px;
  }
}
