@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Space+Mono:wght@400;700&display=swap');

:root {
  --cyan: #1ec8ff;
  --blue: #0077ff;
  --white: #f5fbff;
  --bg: #020817;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--white);
  font-family: 'Orbitron', sans-serif;
}

body { overflow-x: hidden; }

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #020817;
}

.bg {
  position: absolute;
  inset: 0;
  z-index: -10;
  background:
    radial-gradient(circle at 70% 35%, rgba(0, 157, 255, .14), transparent 32%),
    linear-gradient(180deg, rgba(0, 8, 24, .12), rgba(0, 5, 18, .6)),
    url("background.png") center center / cover no-repeat;
  transform: scale(1.025);
  animation: backgroundBreath 9s ease-in-out infinite alternate;
}

.vignette {
  position: absolute;
  inset: 0;
  z-index: -8;
  background:
    radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,.32) 72%, rgba(0,0,0,.82) 100%),
    linear-gradient(90deg, rgba(0,0,0,.28), transparent 35%, transparent 68%, rgba(0,0,0,.36));
  pointer-events: none;
}

.scanlines {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: .13;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(0, 200, 255, .18) 4px,
    transparent 5px
  );
  animation: scan 8s linear infinite;
  mix-blend-mode: screen;
}

.noise {
  position: absolute;
  inset: -50%;
  z-index: 19;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  animation: noise .18s steps(2) infinite;
}

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

.star, .particle {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(80,210,255,.95);
}

.star {
  width: 2px;
  height: 2px;
  animation: twinkle var(--speed) ease-in-out infinite;
}

.particle {
  width: 3px;
  height: 3px;
  background: #20caff;
  box-shadow: 0 0 12px #20caff;
  animation: floatParticle var(--speed) linear infinite;
}

.content {
  position: relative;
  width: min(920px, 92vw);
  padding: 4rem 0 3rem;
  text-align: center;
  z-index: 10;
}

.top-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem 1rem;
  border: 1px solid rgba(50,205,255,.55);
  background: rgba(0,20,45,.48);
  backdrop-filter: blur(8px);
  color: #9be8ff;
  font: 700 .68rem/1 'Space Mono', monospace;
  letter-spacing: .14em;
  box-shadow: 0 0 25px rgba(0,170,255,.14), inset 0 0 18px rgba(0,170,255,.07);
  animation: badgePulse 2.5s ease-in-out infinite;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22d9ff;
  box-shadow: 0 0 6px #22d9ff, 0 0 18px #22d9ff;
  animation: blink .9s steps(2) infinite;
}

.speech {
  position: absolute;
  left: -80px;
  top: 22%;
  width: 230px;
  padding: 1.2rem 1rem 1.25rem;
  color: #10141b;
  background: #f8f9fa;
  border: 4px solid #10141b;
  border-radius: 48% 52% 46% 54% / 50% 46% 54% 50%;
  transform: rotate(-4deg);
  box-shadow: 7px 8px 0 rgba(0,0,0,.38), 0 0 35px rgba(70,210,255,.18);
  animation: bubbleFloat 4s ease-in-out infinite;
}

.speech-tail {
  position: absolute;
  right: 14px;
  bottom: -25px;
  width: 42px;
  height: 38px;
  background: #f8f9fa;
  border-right: 4px solid #10141b;
  border-bottom: 4px solid #10141b;
  transform: skew(24deg) rotate(18deg);
}

.speech strong,
.speech b,
.speech span {
  position: relative;
  display: block;
  z-index: 1;
}

.speech strong { font-size: .9rem; }
.speech b {
  margin: .15rem 0;
  font-size: 1.55rem;
  color: #075fd0;
}
.speech span {
  font-size: .72rem;
  font-weight: 900;
}

.headline-wrap {
  margin: 1.5rem auto 1.8rem;
  max-width: 760px;
}

.eyebrow {
  color: #62ddff;
  font: 700 .72rem/1.4 'Space Mono', monospace;
  letter-spacing: .18em;
  text-shadow: 0 0 12px rgba(25,200,255,.9);
  animation: glitchText 5s infinite;
}

h1 {
  margin: .25rem 0 0;
  font-size: clamp(3.5rem, 9vw, 7.6rem);
  line-height: .82;
  letter-spacing: -.055em;
  font-weight: 900;
  color: #fff;
  text-shadow:
    0 0 5px #fff,
    0 0 16px #00c8ff,
    0 0 45px rgba(0,140,255,.8),
    5px 5px 0 rgba(0,58,120,.55);
  animation: titleFlicker 6s infinite;
}

h1 span {
  color: #bdf3ff;
  background: linear-gradient(90deg, #fff, #56dbff, #fff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
}

.sub {
  margin: 1rem auto 0;
  max-width: 620px;
  color: #b9d9e8;
  font: 700 .82rem/1.6 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-shadow: 0 2px 12px #000;
}

.loading-box {
  width: min(650px, 90vw);
  margin: 0 auto;
  padding: 1rem 1.1rem .85rem;
  border: 1px solid rgba(45,211,255,.62);
  background: rgba(0,14,34,.65);
  backdrop-filter: blur(9px);
  box-shadow:
    0 0 22px rgba(0,177,255,.2),
    inset 0 0 22px rgba(0,177,255,.08);
  position: relative;
}

.loading-box::before,
.loading-box::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: #39d9ff;
  border-style: solid;
}
.loading-box::before {
  top: -1px; left: -1px;
  border-width: 2px 0 0 2px;
}
.loading-box::after {
  right: -1px; bottom: -1px;
  border-width: 0 2px 2px 0;
}

.loading-head,
.loading-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 700 .62rem/1.2 'Space Mono', monospace;
  letter-spacing: .08em;
}

.loading-head { color: #8bdfff; margin-bottom: .65rem; }
.loading-head strong {
  font-size: 1rem;
  color: #fff;
  text-shadow: 0 0 12px #00c8ff;
}

.loading-track {
  height: 22px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(40,210,255,.7);
  background: rgba(0,0,0,.45);
  box-shadow: inset 0 0 12px rgba(0,0,0,.9);
  clip-path: polygon(0 0, 98% 0, 100% 50%, 98% 100%, 0 100%, 1.5% 50%);
}

.loading-fill {
  width: 72%;
  height: 100%;
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.22) 0 8px, transparent 8px 16px),
    linear-gradient(90deg, #007cff, #28e5ff, #fff);
  box-shadow: 0 0 18px #00caff, 0 0 40px rgba(0,180,255,.55);
  animation: progressMove 1s linear infinite;
}

.loading-spark {
  position: absolute;
  top: -4px;
  left: 72%;
  width: 4px;
  height: 30px;
  background: #fff;
  box-shadow: 0 0 8px #fff, 0 0 25px #00d9ff, 0 0 50px #00d9ff;
  animation: sparkPulse 1.1s ease-in-out infinite;
}

.loading-foot {
  margin-top: .55rem;
  color: rgba(175,224,240,.62);
}

.loading-foot span:first-child {
  animation: statusBlink 1.4s steps(2) infinite;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
  margin: 1.35rem auto 0;
  width: min(720px, 92vw);
}

.card {
  padding: .8rem .4rem;
  border: 1px solid rgba(64,203,255,.25);
  background: rgba(0,10,26,.4);
  backdrop-filter: blur(4px);
  transition: .25s ease;
  animation: cardFloat 5s ease-in-out infinite;
}

.card:nth-child(2) { animation-delay: -.8s; }
.card:nth-child(3) { animation-delay: -1.6s; }
.card:nth-child(4) { animation-delay: -2.4s; }

.card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: rgba(70,220,255,.8);
  box-shadow: 0 0 28px rgba(0,190,255,.24);
}

.card i {
  display: block;
  min-height: 26px;
  margin-bottom: .35rem;
  font-style: normal;
  font-size: 1.35rem;
  filter: drop-shadow(0 0 7px #00cfff);
}

.card span {
  color: #a8d7e7;
  font: 700 .55rem/1.45 'Space Mono', monospace;
}

.signal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 1.25rem;
  color: rgba(190,225,240,.65);
  font: 700 .55rem 'Space Mono', monospace;
}

.signal span {
  width: 5px;
  height: 12px;
  background: #1ccfff;
  box-shadow: 0 0 8px #1ccfff;
  animation: equalizer .7s ease-in-out infinite alternate;
}
.signal span:nth-child(2) { height: 17px; animation-delay: -.15s; }
.signal span:nth-child(3) { height: 23px; animation-delay: -.3s; }
.signal span:nth-child(4) { height: 15px; animation-delay: -.45s; }
.signal span:nth-child(5) { height: 20px; animation-delay: -.6s; }
.signal label { margin-left: 8px; }
.signal b { color: #5ce5ff; }

.ufo {
  position: absolute;
  z-index: -1;
  top: -2vh;
  right: 6vw;
  width: min(48vw, 680px);
  height: 300px;
  transform: translateZ(0);
  animation: ufoHover 6s ease-in-out infinite;
  pointer-events: none;
}

.ufo-body {
  position: absolute;
  left: 5%;
  top: 5%;
  width: 90%;
  height: 45%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 35%, #55758a 0 4%, #14283c 18%, #06111f 62%, #01050b 100%);
  border: 2px solid rgba(103,220,255,.65);
  box-shadow: 0 0 20px rgba(0,190,255,.6), 0 0 80px rgba(0,110,255,.3);
}

.ufo-ring {
  position: absolute;
  left: 0;
  top: 16%;
  width: 100%;
  height: 45%;
  border-radius: 50%;
  border: 10px solid rgba(5,30,54,.9);
  box-shadow:
    inset 0 -6px 0 rgba(55,212,255,.8),
    0 0 20px rgba(0,200,255,.8);
  transform: rotateX(62deg);
}

.ufo-glow {
  position: absolute;
  left: 28%;
  top: 30%;
  width: 44%;
  height: 22%;
  border-radius: 50%;
  background: rgba(43,218,255,.9);
  box-shadow: 0 0 25px #00d9ff, 0 0 80px #0077ff, 0 0 150px rgba(0,150,255,.7);
  filter: blur(5px);
}

.beam {
  position: absolute;
  top: 42%;
  left: 27%;
  width: 46%;
  height: 58vh;
  min-height: 300px;
  clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
  background: linear-gradient(90deg,
    transparent,
    rgba(0,198,255,.13) 17%,
    rgba(47,224,255,.55) 50%,
    rgba(0,198,255,.13) 83%,
    transparent);
  filter: blur(1px);
  opacity: .8;
  animation: beamPulse 1.8s ease-in-out infinite;
}

.beam::before,
.beam::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 45%, rgba(255,255,255,.5) 50%, transparent 55%);
  animation: beamSweep 2.1s linear infinite;
}

.beam span {
  position: absolute;
  top: 0;
  width: 3px;
  height: 100%;
  background: rgba(180,245,255,.7);
  filter: blur(1px);
  animation: beamRay 1s ease-in-out infinite alternate;
}
.beam span:nth-child(1) { left: 40%; }
.beam span:nth-child(2) { left: 50%; animation-delay: -.3s; }
.beam span:nth-child(3) { left: 60%; animation-delay: -.7s; }

.corner {
  position: absolute;
  z-index: 30;
  color: rgba(145,211,229,.62);
  font: 700 .55rem 'Space Mono', monospace;
  letter-spacing: .12em;
  text-shadow: 0 0 10px rgba(0,200,255,.5);
}
.corner-tl { top: 18px; left: 20px; }
.corner-tr { top: 18px; right: 20px; }
.corner-bl { bottom: 18px; left: 20px; }
.corner-br { bottom: 18px; right: 20px; }

@keyframes backgroundBreath { to { transform: scale(1.055); } }
@keyframes scan { to { transform: translateY(14px); } }
@keyframes noise { 0% { transform: translate(0,0); } 25% { transform: translate(2%, -1%); } 50% { transform: translate(-1%, 2%); } 75% { transform: translate(1%, 1%); } 100% { transform: translate(0,0); } }
@keyframes twinkle { 0%,100% { opacity:.2; transform:scale(.7); } 50% { opacity:1; transform:scale(1.7); } }
@keyframes floatParticle { from { transform: translateY(110vh) translateX(0); opacity:0; } 10% { opacity:.8; } 90% { opacity:.8; } to { transform: translateY(-15vh) translateX(80px); opacity:0; } }
@keyframes bubbleFloat { 0%,100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-1deg) translateY(-10px); } }
@keyframes badgePulse { 50% { box-shadow: 0 0 35px rgba(0,180,255,.3), inset 0 0 25px rgba(0,180,255,.12); } }
@keyframes blink { 50% { opacity:.25; } }
@keyframes glitchText { 0%,90%,100% { transform:none; } 92% { transform:translateX(2px); } 94% { transform:translateX(-2px); } 96% { transform:none; } }
@keyframes titleFlicker { 0%,94%,100% { opacity:1; } 95% { opacity:.85; } 96% { opacity:1; } 97% { opacity:.7; } 98% { opacity:1; } }
@keyframes shimmer { to { background-position: 200% center; } }
@keyframes progressMove { to { background-position: 40px 0, 100% 0; } }
@keyframes sparkPulse { 50% { opacity:.4; transform:scaleY(.6); } }
@keyframes statusBlink { 50% { opacity:.35; } }
@keyframes cardFloat { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-3px); } }
@keyframes ufoHover { 0%,100% { transform:translateY(0) rotate(-1deg); } 50% { transform:translateY(15px) rotate(1deg); } }
@keyframes beamPulse { 0%,100% { opacity:.5; transform:scaleX(.93); } 50% { opacity:.95; transform:scaleX(1.04); } }
@keyframes beamSweep { from { transform:translateX(-80%); } to { transform:translateX(80%); } }
@keyframes beamRay { to { opacity:.15; transform:scaleX(.2); } }
@keyframes equalizer { to { transform:scaleY(.35); opacity:.45; } }

@media (max-width: 900px) {
  .ufo { right: -15vw; top: 2vh; width: 70vw; opacity: .7; }
  .content { padding-top: 5rem; }
}

@media (max-width: 650px) {
  .hero { align-items: flex-end; }
  .content { padding: 7rem 0 2.5rem; }
  .top-badge { font-size: .52rem; }
  .ufo { top: -1vh; right: -26vw; width: 105vw; opacity: .52; }
  .headline-wrap { margin-top: 1.2rem; }
  h1 { font-size: clamp(3rem, 17vw, 5.2rem); }
  .sub { font-size: .62rem; padding: 0 1rem; }
  .loading-box { width: 92vw; }
  .cards { grid-template-columns: repeat(2, 1fr); width: 92vw; }
  .corner-tl, .corner-tr { top: 10px; }
  .corner-bl, .corner-br { bottom: 10px; }
  .corner { font-size: .45rem; }
  .corner-bl { display:none; }
  .corner-br { right: 10px; }
  .beam { height: 60vh; }
}

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