:root {
  color-scheme: dark;
  --bg: #020611;
  --cyan: #38f5ff;
  --blue: #2b7dff;
  --violet: #7b5cff;
  --text: #f7fbff;
  --muted: #9ec9dc;
  --gaze-x: 0;
  --gaze-y: 0;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body {
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #020611;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 50%, rgba(56, 245, 255, .12), transparent 18%),
    radial-gradient(circle at 14% 22%, rgba(43, 125, 255, .22), transparent 27%),
    radial-gradient(circle at 86% 76%, rgba(123, 92, 255, .18), transparent 30%),
    linear-gradient(135deg, #01030a 0%, #061325 48%, #02040c 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: -4;
  background:
    conic-gradient(from 180deg at 50% 50%, transparent 0deg, rgba(56,245,255,.11) 42deg, transparent 86deg, rgba(43,125,255,.10) 156deg, transparent 224deg, rgba(123,92,255,.09) 302deg, transparent 360deg);
  filter: blur(42px);
  animation: nebula 28s linear infinite;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -15%;
  z-index: -3;
  background-image:
    linear-gradient(rgba(56, 245, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 245, 255, .07) 1px, transparent 1px);
  background-size: 78px 78px;
  transform: perspective(760px) rotateX(62deg) translateY(10%);
  transform-origin: center;
  mask-image: radial-gradient(ellipse at center, black 0 46%, transparent 74%);
  animation: gridMove 14s linear infinite;
}

.stars {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    radial-gradient(circle, rgba(164, 248, 255, .85) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(88, 164, 255, .55) 0 1px, transparent 1.5px);
  background-size: 76px 76px, 122px 122px;
  background-position: 12px 18px, 42px 64px;
  opacity: .42;
  filter: drop-shadow(0 0 6px rgba(56,245,255,.58));
  animation: starDrift 34s linear infinite;
}

.scan {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(56,245,255,.06), transparent);
  height: 34%;
  transform: translateY(-120%);
  animation: scan 8s ease-in-out infinite;
  opacity: .55;
}

.console {
  position: relative;
  width: min(100%, 980px);
  min-height: min(72vh, 660px);
  display: grid;
  place-items: center;
  border: 1px solid rgba(101, 217, 255, .18);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(8, 20, 38, .62), rgba(2, 7, 18, .30)),
    radial-gradient(circle at 50% 44%, rgba(56,245,255,.10), transparent 42%);
  box-shadow:
    0 0 60px rgba(30, 155, 255, .16),
    inset 0 0 80px rgba(56,245,255,.06);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.console::before,
.console::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-color: rgba(56, 245, 255, .48);
  pointer-events: none;
}

.console::before {
  top: 22px;
  left: 22px;
  border-top: 1px solid;
  border-left: 1px solid;
  border-radius: 22px 0 0 0;
}

.console::after {
  right: 22px;
  bottom: 22px;
  border-right: 1px solid;
  border-bottom: 1px solid;
  border-radius: 0 0 22px 0;
}

.hud {
  position: absolute;
  width: min(72vw, 480px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 24px rgba(56,245,255,.48));
}

.ring,
.core,
.node,
.blip { position: absolute; border-radius: 50%; }

.ring-one {
  inset: 0;
  border: 1px solid rgba(56,245,255,.35);
  background:
    conic-gradient(from 0deg, transparent 0 8%, rgba(56,245,255,.85) 9% 11%, transparent 12% 34%, rgba(43,125,255,.72) 35% 37%, transparent 38% 72%, rgba(123,92,255,.60) 73% 75%, transparent 76% 100%);
  mask: radial-gradient(circle, transparent 62%, black 63% 65%, transparent 66%);
  animation: spin 13s linear infinite;
}

.ring-two {
  inset: 13%;
  border: 1px dashed rgba(100, 215, 255, .42);
  animation: spinReverse 18s linear infinite;
}

.ring-three {
  inset: 27%;
  border: 1px solid rgba(56,245,255,.26);
  box-shadow: inset 0 0 28px rgba(56,245,255,.08), 0 0 28px rgba(56,245,255,.08);
  animation: pulse 3.8s ease-in-out infinite;
}

.core {
  width: 16%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255,255,255,.9) 0 8%, rgba(56,245,255,.48) 10% 32%, rgba(43,125,255,.24) 52%, transparent 72%);
  box-shadow: 0 0 20px rgba(255,255,255,.42), 0 0 58px rgba(56,245,255,.50), 0 0 108px rgba(43,125,255,.34);
  animation: coreBeat 2.6s ease-in-out infinite;
}

.node {
  width: 10px;
  height: 10px;
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan), 0 0 44px rgba(56,245,255,.65);
}

.node-a { transform: translate(0, -238px); animation: nodeOrbitA 7s linear infinite; }
.node-b { transform: translate(208px, 112px); animation: nodeOrbitB 9s linear infinite; }
.node-c { transform: translate(-202px, 126px); animation: nodeOrbitC 11s linear infinite; }

.blip {
  width: 58px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56,245,255,.95), transparent);
  border-radius: 999px;
  opacity: .72;
}

.blip-a { transform: rotate(28deg) translateX(150px); animation: blip 2.8s ease-in-out infinite; }
.blip-b { transform: rotate(-42deg) translateX(-170px); animation: blip 3.4s ease-in-out infinite reverse; }

.copy {
  position: relative;
  z-index: 2;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: 44px 22px;
}

.eyebrow {
  margin: 0 0 6px;
  color: rgba(173, 240, 255, .78);
  font-size: clamp(11px, 1.8vw, 15px);
  letter-spacing: .32em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(56,245,255,.48);
}

.eyes {
  position: relative;
  width: min(58vw, 330px);
  height: min(24vw, 128px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 5vw, 42px);
  transform: translateY(-2px);
}

.eyes::before {
  content: "";
  position: absolute;
  inset: -48% -16%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,245,255,.28), rgba(43,125,255,.10) 42%, transparent 68%);
  filter: blur(2px);
  z-index: -1;
  animation: auraPulse 4s ease-in-out infinite;
}

.eye {
  position: relative;
  width: clamp(96px, 22vw, 142px);
  aspect-ratio: 1.72;
  overflow: hidden;
  border-radius: 74% 18% 74% 18% / 68% 22% 68% 22%;
  transform: rotate(45deg);
  background:
    radial-gradient(circle at 44% 38%, rgba(255,255,255,.98) 0 8%, transparent 9%),
    radial-gradient(circle at 50% 50%, #f9fdff 0 43%, #cde9f5 56%, #7392a5 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.40),
    inset 0 -10px 24px rgba(13,31,56,.35),
    0 0 28px rgba(56,245,255,.55),
    0 0 82px rgba(43,125,255,.34);
  animation: blink 5.8s infinite;
}

.eye-right { animation-delay: .12s; }

.eye::before,
.eye::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background: #061325;
  transform: scaleY(0);
  transform-origin: top;
  animation: lidTop 5.8s infinite;
}

.eye::after {
  transform-origin: bottom;
  animation-name: lidBottom;
}

.pupil {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(calc(-50% + var(--gaze-x) * 14px), calc(-50% + var(--gaze-y) * 9px)) rotate(-45deg);
  background:
    radial-gradient(circle at 36% 28%, white 0 8%, transparent 9%),
    radial-gradient(circle, #02030a 0 22%, #17203a 23% 36%, #f0bd21 38% 58%, #7c4a08 72%, #2a1604 100%);
  box-shadow:
    inset 0 0 14px rgba(0,0,0,.72),
    0 0 12px rgba(255,221,68,.7),
    0 0 28px rgba(56,245,255,.42);
  transition: transform 100ms ease-out;
}

.subtitle {
  max-width: 520px;
  margin: 4px auto 0;
  color: rgba(224, 247, 255, .86);
  font-size: clamp(15px, 2.1vw, 22px);
  line-height: 1.35;
  text-shadow: 0 0 18px rgba(56,245,255,.36);
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinReverse { to { transform: rotate(-360deg); } }
@keyframes nebula { to { transform: rotate(360deg); } }
@keyframes gridMove { to { background-position: 0 78px, 78px 0; } }
@keyframes starDrift { to { background-position: 140px 220px, -120px 180px; } }
@keyframes scan { 0%, 35% { transform: translateY(-120%); } 70%, 100% { transform: translateY(280%); } }
@keyframes pulse { 0%, 100% { opacity: .55; transform: scale(.98); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes coreBeat { 0%, 100% { transform: scale(.90); } 50% { transform: scale(1.04); } }
@keyframes blip { 0%, 100% { opacity: .25; } 50% { opacity: .95; } }
@keyframes auraPulse { 0%, 100% { opacity: .68; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.06); } }

@keyframes blink {
  0%, 91%, 100% { transform: rotate(45deg) scaleY(1); }
  94%, 96% { transform: rotate(45deg) scaleY(.08); }
}

@keyframes lidTop {
  0%, 91%, 100% { transform: scaleY(0); }
  94%, 96% { transform: scaleY(.54); }
}

@keyframes lidBottom {
  0%, 91%, 100% { transform: scaleY(0); }
  94%, 96% { transform: scaleY(.54); }
}

@keyframes nodeOrbitA { to { transform: rotate(360deg) translate(0, -238px) rotate(-360deg); } }
@keyframes nodeOrbitB { to { transform: rotate(360deg) translate(208px, 112px) rotate(-360deg); } }
@keyframes nodeOrbitC { to { transform: rotate(-360deg) translate(-202px, 126px) rotate(360deg); } }

@media (max-width: 640px) {
  .hero { padding: 16px; }
  .console { min-height: 72vh; border-radius: 26px; }
  .hud { width: 88vw; opacity: .88; }
  .copy { gap: 18px; padding: 42px 16px; }
  .eyes { width: 76vw; height: 132px; gap: 18px; }
  .eye { width: clamp(94px, 35vw, 128px); }
  .pupil { transform: translate(calc(-50% + var(--gaze-x) * 10px), calc(-50% + var(--gaze-y) * 7px)) rotate(-45deg); }
  .subtitle { font-size: 16px; max-width: 310px; }
}

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