:root {
  --bg: #020307;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 77% 50%, rgba(104,128,210,0.16) 0%, rgba(29,35,61,0.14) 17%, rgba(8,10,18,0.56) 34%, rgba(4,5,10,0.92) 60%, #010204 100%),
    linear-gradient(180deg, #040509 0%, #020307 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: white;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(circle at 72% 50%, rgba(140,167,255,0.09), transparent 13%),
    radial-gradient(circle at 82% 50%, rgba(255,255,255,0.05), transparent 10%),
    radial-gradient(circle at 60% 52%, rgba(118,92,255,0.05), transparent 12%);
  filter: blur(18px);
  mix-blend-mode: screen;
  animation: ambientPulse 7s ease-in-out infinite;
}

body::after {
  background: radial-gradient(circle at 82% 50%, rgba(188,206,255,0.08), transparent 19%);
  filter: blur(44px);
  opacity: 0.74;
}

.scene {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

.logo-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(33vw, 780px);
  aspect-ratio: 1880 / 1235;
  z-index: 8;
  pointer-events: none;
}

.logo-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
}

.logo-glow {
  filter: blur(8px) brightness(1.06);
  opacity: 0.12;
}

.logo-main {
  filter: drop-shadow(0 0 6px rgba(124,112,255,0.04)) drop-shadow(0 0 16px rgba(176,198,255,0.06));
  opacity: 0.98;
  animation: logoBreath 5.2s ease-in-out infinite;
}

.logo-wrap::before,
.logo-wrap::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: -10%;
  z-index: 3;
}

.logo-wrap::before {
  background:
    radial-gradient(circle at 24% 55%, rgba(116,92,255,0.16), transparent 16%),
    radial-gradient(circle at 70% 52%, rgba(171,196,255,0.12), transparent 18%),
    radial-gradient(circle at 96% 50%, rgba(255,255,255,0.18), transparent 18%);
  filter: blur(22px);
  opacity: 0.72;
  animation: textAura 6.5s ease-in-out infinite;
  z-index: -1;
}

.logo-wrap::after {
  background:
    radial-gradient(ellipse at 98% 50%, rgba(255,255,255,0.28), transparent 16%),
    radial-gradient(ellipse at 88% 50%, rgba(206,220,255,0.16), transparent 23%),
    radial-gradient(ellipse at 80% 50%, rgba(145,122,255,0.08), transparent 20%),
    linear-gradient(90deg,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,0) 56%,
      rgba(173,194,255,0.05) 72%,
      rgba(255,255,255,0.10) 88%,
      rgba(255,255,255,0) 100%);
  filter: blur(18px);
  mix-blend-mode: screen;
  animation: textIngress 4.6s ease-in-out infinite;
}

.mist {
  position: absolute;
  top: 50%;
  left: 55%;
  width: 34vw;
  height: 22vw;
  min-height: 180px;
  transform: translateY(-50%);
  z-index: 4;
  pointer-events: none;
  opacity: 0.82;
  filter: blur(28px);
  mix-blend-mode: screen;
  background:
    radial-gradient(ellipse at 100% 50%, rgba(255,255,255,0.46) 0%, rgba(255,255,255,0.24) 14%, rgba(255,255,255,0.08) 30%, transparent 58%),
    radial-gradient(ellipse at 86% 50%, rgba(215,226,255,0.22), transparent 28%),
    radial-gradient(ellipse at 68% 50%, rgba(182,201,255,0.12), transparent 24%),
    radial-gradient(ellipse at 42% 50%, rgba(146,122,255,0.08), transparent 20%),
    radial-gradient(ellipse at 12% 50%, rgba(173,160,255,0.08), transparent 16%);
  animation: mistPulse 3.8s ease-in-out infinite;
  mask-image:
    radial-gradient(ellipse at 100% 50%, black 0%, rgba(0,0,0,0.98) 16%, rgba(0,0,0,0.88) 28%, rgba(0,0,0,0.62) 46%, rgba(0,0,0,0.30) 62%, transparent 84%),
    radial-gradient(ellipse at 12% 50%, transparent 0%, rgba(0,0,0,0.18) 22%, black 44%, black 100%);
  -webkit-mask-image:
    radial-gradient(ellipse at 100% 50%, black 0%, rgba(0,0,0,0.98) 16%, rgba(0,0,0,0.88) 28%, rgba(0,0,0,0.62) 46%, rgba(0,0,0,0.30) 62%, transparent 84%),
    radial-gradient(ellipse at 12% 50%, transparent 0%, rgba(0,0,0,0.18) 22%, black 44%, black 100%);
}

.mist::before,
.mist::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 50%;
}

.mist::before {
  background:
    radial-gradient(ellipse at 96% 50%, rgba(255,255,255,0.34), transparent 16%),
    radial-gradient(ellipse at 82% 50%, rgba(226,236,255,0.18), transparent 20%),
    radial-gradient(ellipse at 62% 48%, rgba(189,207,255,0.08), transparent 18%),
    radial-gradient(ellipse at 38% 52%, rgba(151,128,255,0.06), transparent 16%);
  filter: blur(32px);
  opacity: 0.9;
  animation: mistShimmer 4.4s ease-in-out infinite;
  mask-image: radial-gradient(ellipse at 94% 50%, black 0%, rgba(0,0,0,0.92) 24%, rgba(0,0,0,0.48) 48%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 94% 50%, black 0%, rgba(0,0,0,0.92) 24%, rgba(0,0,0,0.48) 48%, transparent 78%);
}

.mist::after {
  background:
    radial-gradient(ellipse at 98% 50%, rgba(255,255,255,0.20), transparent 12%),
    radial-gradient(ellipse at 88% 50%, rgba(214,226,255,0.10), transparent 18%),
    radial-gradient(ellipse at 75% 50%, rgba(255,255,255,0.06), transparent 14%);
  filter: blur(18px);
  opacity: 0.9;
  animation: mistDrift 5.2s ease-in-out infinite;
}

.edge-fill {
  position: absolute;
  top: -10%;
  right: -14vw;
  width: 28vw;
  height: 120%;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  background:
    radial-gradient(ellipse at 72% 50%, rgba(255,255,255,0.44) 0%, rgba(236,242,255,0.26) 22%, rgba(196,212,255,0.14) 42%, transparent 72%),
    linear-gradient(180deg,
      rgba(255,255,255,0.22) 0%,
      rgba(210,223,255,0.12) 18%,
      rgba(193,208,255,0.08) 50%,
      rgba(214,226,255,0.12) 82%,
      rgba(255,255,255,0.22) 100%);
  filter: blur(60px);
  mix-blend-mode: screen;
}

.nebula-wrap {
  position: absolute;
  right: -7vw;
  top: 50%;
  width: min(56vw, 1120px);
  height: min(62vw, 1120px);
  transform: translateY(-50%);
  z-index: 6;
  pointer-events: none;
  filter: saturate(112%);
}

.nebula,
.nebula::before,
.nebula::after,
.nebula-core,
.nebula-halo,
.nebula-swirls,
.nebula-edges,
.nebula-burst {
  position: absolute;
  inset: 0;
  border-radius: 48% 52% 57% 43% / 44% 58% 42% 56%;
  transform-origin: 78% 50%;
}

.nebula {
  background:
    radial-gradient(circle at 84% 50%, rgba(255,255,255,1) 0 10%, rgba(255,255,255,0.98) 14%, rgba(248,250,255,0.94) 21%, rgba(225,235,255,0.70) 30%, rgba(191,210,255,0.34) 41%, transparent 56%),
    radial-gradient(circle at 70% 50%, rgba(191,210,255,0.22), transparent 26%),
    radial-gradient(circle at 60% 50%, rgba(131,108,255,0.12), transparent 18%);
  filter: blur(15px);
  animation: coreThrob 2.8s ease-in-out infinite;
}

.nebula::before {
  content: "";
  background:
    radial-gradient(circle at 85% 32%, rgba(255,255,255,0.78), transparent 15%),
    radial-gradient(circle at 84% 69%, rgba(255,255,255,0.74), transparent 15%),
    radial-gradient(circle at 73% 47%, rgba(214,226,255,0.40), transparent 21%),
    radial-gradient(circle at 66% 60%, rgba(151,173,255,0.22), transparent 18%),
    radial-gradient(circle at 61% 42%, rgba(137,111,255,0.16), transparent 18%);
  filter: blur(28px);
  animation: cloudRotate 7s ease-in-out infinite alternate;
  opacity: 0.98;
}

.nebula::after {
  content: "";
  background:
    conic-gradient(from 0deg at 82% 50%,
      rgba(255,255,255,0.00) 0deg,
      rgba(255,255,255,0.16) 34deg,
      rgba(203,218,255,0.14) 74deg,
      rgba(255,255,255,0.00) 112deg,
      rgba(255,255,255,0.14) 174deg,
      rgba(136,111,255,0.10) 215deg,
      rgba(255,255,255,0.00) 292deg,
      rgba(255,255,255,0.12) 332deg,
      rgba(255,255,255,0.00) 360deg);
  filter: blur(34px);
  opacity: 0.84;
  animation: spinNebula 9s linear infinite;
}

.nebula-core {
  background:
    radial-gradient(ellipse at 86% 50%, rgba(255,255,255,1) 0 7%, rgba(255,255,255,0.90) 12%, rgba(230,239,255,0.54) 20%, transparent 32%),
    radial-gradient(ellipse at 79% 50%, rgba(214,227,255,0.20), transparent 26%);
  filter: blur(8px);
  animation: flareKick 2.6s ease-in-out infinite;
  mix-blend-mode: screen;
}

.nebula-halo {
  background:
    radial-gradient(circle at 82% 50%, transparent 0 15%, rgba(255,255,255,0.18) 23%, transparent 34%),
    radial-gradient(circle at 82% 50%, transparent 0 21%, rgba(144,121,255,0.08) 32%, transparent 42%);
  filter: blur(16px);
  opacity: 0.66;
  animation: haloPulse 3.2s ease-in-out infinite;
}

.nebula-swirls {
  background:
    radial-gradient(ellipse at 72% 28%, rgba(255,255,255,0.24), transparent 16%),
    radial-gradient(ellipse at 69% 71%, rgba(255,255,255,0.20), transparent 18%),
    radial-gradient(ellipse at 57% 50%, rgba(160,185,255,0.18), transparent 20%),
    radial-gradient(ellipse at 55% 36%, rgba(130,105,255,0.11), transparent 15%),
    radial-gradient(ellipse at 58% 64%, rgba(147,168,255,0.12), transparent 15%);
  filter: blur(28px);
  opacity: 0.95;
  animation: swirlShift 5.2s ease-in-out infinite alternate;
}

.nebula-edges {
  background:
    radial-gradient(ellipse at 91% 50%, rgba(255,255,255,0.78), transparent 9%),
    radial-gradient(ellipse at 87% 50%, rgba(244,248,255,0.36), transparent 20%),
    radial-gradient(ellipse at 77% 50%, rgba(186,207,255,0.18), transparent 28%);
  filter: blur(18px);
  animation: edgeFlash 2.9s ease-in-out infinite;
  opacity: 0.94;
}

.nebula-burst {
  background:
    radial-gradient(ellipse at 88% 50%, rgba(255,255,255,0.98) 0 5%, rgba(255,255,255,0.00) 18%),
    radial-gradient(ellipse at 84% 50%, rgba(255,255,255,0.26), transparent 26%);
  filter: blur(10px);
  animation: burstExplode 2.5s ease-in-out infinite;
  mix-blend-mode: screen;
  opacity: 0.96;
}

.veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 9;
  background:
    radial-gradient(circle at 67% 50%, rgba(143,121,255,0.04), transparent 10%),
    radial-gradient(circle at 75% 50%, rgba(180,201,255,0.08), transparent 12%),
    radial-gradient(circle at 84% 50%, rgba(255,255,255,0.12), transparent 16%);
  filter: blur(22px);
  mix-blend-mode: screen;
  animation: veilMove 4.1s ease-in-out infinite;
}

.copy {
  position: absolute;
  left: 50%;
  top: calc(50% + min(18vw, 235px));
  transform: translateX(-50%);
  z-index: 10;
  width: min(90vw, 760px);
  text-align: center;
  pointer-events: none;
}

.tagline {
  margin: 0;
  font-size: clamp(14px, 1.15vw, 20px);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(229,236,255,0.74);
  text-shadow: 0 0 16px rgba(142,166,255,0.12);
}

.soon {
  margin: 14px 0 0;
  font-size: clamp(11px, 0.82vw, 14px);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  text-shadow: 0 0 14px rgba(176,198,255,0.08);
}

@keyframes ambientPulse {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}
@keyframes logoBreath {
  0%, 100% {
    opacity: 0.96;
    filter: drop-shadow(0 0 6px rgba(124,112,255,0.04)) drop-shadow(0 0 16px rgba(176,198,255,0.06));
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(124,112,255,0.07)) drop-shadow(0 0 20px rgba(176,198,255,0.08));
  }
}
@keyframes textAura {
  0%, 100% { transform: translateX(0) scale(1); opacity: 0.74; }
  50% { transform: translateX(1.3%) scale(1.03); opacity: 1; }
}
@keyframes textIngress {
  0%, 100% { transform: translateX(0); opacity: 0.46; }
  50% { transform: translateX(-1.2%); opacity: 0.86; }
}
@keyframes mistPulse {
  0%, 100% { opacity: 0.72; transform: translateY(-50%) scaleX(0.98) scaleY(0.96); }
  50% { opacity: 1; transform: translateY(-50%) scaleX(1.03) scaleY(1.06); }
}
@keyframes mistShimmer {
  0%, 100% { opacity: 0.48; transform: translateX(0) scaleX(1); }
  50% { opacity: 0.82; transform: translateX(0.7%) scaleX(1.02); }
}
@keyframes mistDrift {
  0%, 100% { opacity: 0.56; transform: translateX(0) scale(1); }
  50% { opacity: 0.92; transform: translateX(-0.9%) scale(1.04); }
}
@keyframes coreThrob {
  0%, 100% { transform: scale(0.98); filter: blur(15px); }
  50% { transform: scale(1.06); filter: blur(12px); }
}
@keyframes cloudRotate {
  0% { transform: rotate(-5deg) scale(0.98); }
  50% { transform: rotate(3deg) scale(1.03); }
  100% { transform: rotate(-2deg) scale(1.01); }
}
@keyframes spinNebula {
  from { transform: rotate(0deg) scale(1); }
  to { transform: rotate(360deg) scale(1.03); }
}
@keyframes flareKick {
  0%, 100% { transform: scale(0.92); opacity: 0.68; }
  50% { transform: scale(1.18); opacity: 1; }
}
@keyframes haloPulse {
  0%, 100% { transform: scale(0.94); opacity: 0.42; }
  50% { transform: scale(1.09); opacity: 0.78; }
}
@keyframes swirlShift {
  0% { transform: rotate(-4deg) translateX(0) scale(0.98); }
  100% { transform: rotate(4deg) translateX(-1.5%) scale(1.04); }
}
@keyframes edgeFlash {
  0%, 100% { opacity: 0.72; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.08); }
}
@keyframes burstExplode {
  0%, 100% { transform: scale(0.88); opacity: 0.7; }
  50% { transform: scale(1.22); opacity: 1; }
}
@keyframes veilMove {
  0%, 100% { transform: translateX(0); opacity: 0.55; }
  50% { transform: translateX(-1.2%); opacity: 0.95; }
}

@media (max-width: 1400px) {
  .logo-wrap { width: min(36vw, 680px); }
  .copy { top: calc(50% + min(19vw, 215px)); }
  .mist { left: 56.4%; width: 30vw; }
  .nebula-wrap { right: -12vw; width: min(58vw, 980px); height: min(63vw, 980px); }
}

@media (max-width: 1100px) {
  .logo-wrap { width: min(42vw, 560px); }
  .copy { top: calc(50% + min(22vw, 190px)); width: min(92vw, 620px); }
  .tagline { font-size: clamp(13px, 1.45vw, 18px); letter-spacing: 0.18em; }
  .soon { font-size: clamp(10px, 1vw, 13px); letter-spacing: 0.32em; }
  .mist {
    left: 58%;
    width: 25vw;
    height: 20vw;
    min-height: 130px;
    filter: blur(28px);
  }
  .nebula-wrap {
    right: -18vw;
    width: 70vw;
    height: 76vw;
  }
}

@media (max-width: 760px) {
  .logo-wrap { width: min(56vw, 360px); }
  .copy { top: calc(50% + min(30vw, 165px)); width: min(90vw, 360px); }
  .tagline { font-size: clamp(11px, 3.2vw, 14px); letter-spacing: 0.16em; }
  .soon { margin-top: 10px; font-size: clamp(9px, 2.3vw, 11px); letter-spacing: 0.26em; }
  .mist {
    left: 57%;
    width: 28vw;
    height: 24vw;
    min-height: 100px;
    filter: blur(22px);
  }
  .nebula-wrap {
    right: -32vw;
    width: 96vw;
    height: 108vw;
  }
}

@media (min-width: 2200px) {
  .logo-wrap { width: min(31vw, 900px); }
  .mist {
    left: 52.8%;
    width: 40vw;
    height: 24vw;
    filter: blur(38px);
    opacity: 0.86;
  }
  .nebula-wrap {
    right: -4vw;
    width: min(64vw, 1480px);
    height: min(76vw, 1720px);
  }
  .edge-fill {
    opacity: 0.92;
    right: -10vw;
    width: 34vw;
  }
  .logo-wrap::after { filter: blur(22px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}