:root {
  --bg: #030814;
  --bg2: #07111f;
  --bg3: #0b1f3c;
  --text: #f5fbff;
  --muted: #96abc0;
  --cyan: #73d5ff;
  --cyan2: #5ddcff;
  --blue: #0772ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 50% 22%, rgba(32, 114, 210, .18), transparent 34%),
    linear-gradient(180deg, var(--bg2) 0%, #040b15 56%, var(--bg) 100%);
}

.bg,
.grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.grid {
  opacity: .10;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 82%);
  animation: gridMove 18s linear infinite;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(88px);
  opacity: .22;
}

.orb-1 {
  width: 440px;
  height: 440px;
  background: var(--cyan2);
  top: -150px;
  left: -130px;
  animation: floatA 10s ease-in-out infinite;
}

.orb-2 {
  width: 520px;
  height: 520px;
  background: var(--blue);
  right: -180px;
  bottom: -190px;
  animation: floatB 12s ease-in-out infinite;
}

.orb-3 {
  width: 260px;
  height: 260px;
  background: #1cb7ff;
  left: 56%;
  top: 18%;
  opacity: .10;
  animation: floatC 13s ease-in-out infinite;
}

.wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.logo {
  width: min(460px, 82vw);
  height: auto;
  user-select: none;
  transform-origin: center bottom;
  filter: drop-shadow(0 12px 22px rgba(0, 102, 255, 0.18));
  animation:
    fadeUp .8s cubic-bezier(.2,.75,.25,1) both,
    popJump 2.8s 1s cubic-bezier(.2,.75,.25,1) infinite;
  will-change: transform;
}

h1 {
  margin: 18px 0 0;
  font-size: clamp(38px, 6.5vw, 78px);
  line-height: .98;
  letter-spacing: -0.055em;
  font-weight: 900;
  text-shadow: 0 0 36px rgba(93, 220, 255, .14);
  animation: fadeUp .8s .14s cubic-bezier(.2,.7,.2,1) both;
}

.dots i {
  font-style: normal;
  color: var(--cyan2);
  opacity: .2;
  animation: dot 1.4s infinite;
}

.dots i:nth-child(2) { animation-delay: .18s; }
.dots i:nth-child(3) { animation-delay: .36s; }

p {
  margin: 16px 0 0;
  font-size: clamp(15px, 2vw, 20px);
  color: var(--muted);
  animation: fadeUp .8s .24s cubic-bezier(.2,.7,.2,1) both;
}

@keyframes popJump {
  0% {
    transform: translateY(0) scale(1);
  }
  10% {
    transform: translateY(0) scale(1.01, .985);
  }
  22% {
    transform: translateY(-12px) scale(.995, 1.015);
  }
  32% {
    transform: translateY(-28px) scale(.99, 1.02);
  }
  42% {
    transform: translateY(-12px) scale(.997, 1.01);
  }
  52% {
    transform: translateY(0) scale(1.01, .985);
  }
  58% {
    transform: translateY(-6px) scale(.998, 1.006);
  }
  66% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes dot {
  0%, 20%, 100% { opacity: .2; transform: translateY(0); }
  45% { opacity: 1; transform: translateY(-2px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes gridMove {
  to { transform: translateY(52px); }
}

@keyframes floatA {
  50% { transform: translate(28px, 38px) scale(1.08); }
}

@keyframes floatB {
  50% { transform: translate(-38px, -20px) scale(.95); }
}

@keyframes floatC {
  50% { transform: translate(-30px, 32px); }
}

@media (max-width: 640px) {
  .logo {
    width: min(360px, 86vw);
  }

  p {
    max-width: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo,
  .grid,
  .orb,
  .dots i,
  h1,
  p {
    animation: none !important;
  }
}
