/* === Quantixis Coming Soon === */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Space Grotesk", "Inter", system-ui, -apple-system, sans-serif;
  background: #0a0414;
  color: #fff;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#root { width: 100vw; height: 100vh; }

.qx-root {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
}

/* === Background === */
.qx-bg-base {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse at 20% 20%, #4a1d6e 0%, transparent 55%),
    radial-gradient(ellipse at 80% 30%, #b9298a 0%, transparent 50%),
    radial-gradient(ellipse at 30% 85%, #6e1ea0 0%, transparent 55%),
    radial-gradient(ellipse at 85% 80%, #2a0d44 0%, transparent 60%),
    linear-gradient(135deg, #1a0826 0%, #2c0a3f 35%, #4a0d5e 70%, #1a0826 100%);
  background-size: 200% 200%;
  animation: qx-bgshift 18s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes qx-bgshift {
  0%   { background-position: 0% 0%, 100% 0%, 0% 100%, 100% 100%, 0% 0%; }
  50%  { background-position: 50% 30%, 60% 60%, 30% 50%, 70% 30%, 100% 100%; }
  100% { background-position: 100% 100%, 0% 100%, 100% 0%, 0% 0%, 0% 0%; }
}

.qx-orbs {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  filter: blur(60px);
  opacity: 0.7;
}
.qx-orb {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  will-change: transform;
}
.qx-orb-1 {
  width: 55vmin; height: 55vmin;
  left: -10vmin; top: -10vmin;
  background: radial-gradient(circle, #c91d8e 0%, rgba(201,29,142,0) 70%);
  animation: qx-orb1 22s ease-in-out infinite alternate;
}
.qx-orb-2 {
  width: 60vmin; height: 60vmin;
  right: -15vmin; top: 30%;
  background: radial-gradient(circle, #7a2cd1 0%, rgba(122,44,209,0) 70%);
  animation: qx-orb2 28s ease-in-out infinite alternate;
}
.qx-orb-3 {
  width: 50vmin; height: 50vmin;
  left: 30%; bottom: -15vmin;
  background: radial-gradient(circle, #ff3fb8 0%, rgba(255,63,184,0) 70%);
  animation: qx-orb3 25s ease-in-out infinite alternate;
}
@keyframes qx-orb1 { to { transform: translate(20vmin, 15vmin) scale(1.15); } }
@keyframes qx-orb2 { to { transform: translate(-15vmin, -10vmin) scale(0.9); } }
@keyframes qx-orb3 { to { transform: translate(15vmin, -20vmin) scale(1.2); } }

.qx-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* === Particles === */
.qx-particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.qx-particle {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.5px);
  animation: qx-float linear infinite;
  will-change: transform, opacity;
}
.qx-particle-violet {
  background: radial-gradient(circle, #d6b4ff 0%, rgba(214,180,255,0) 70%);
  box-shadow: 0 0 8px 2px rgba(186, 130, 255, 0.6);
}
.qx-particle-pink {
  background: radial-gradient(circle, #ffc6ec 0%, rgba(255,198,236,0) 70%);
  box-shadow: 0 0 8px 2px rgba(255, 105, 200, 0.5);
}
@keyframes qx-float {
  0%   { transform: translateY(0) translateX(0); }
  50%  { transform: translateY(-30vh) translateX(8vw); }
  100% { transform: translateY(-60vh) translateX(-4vw); opacity: 0; }
}

/* === Stage === */
.qx-stage {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  gap: clamp(16px, 2.5vh, 32px);
}

/* === Logo === */
.qx-logo-wrap {
  position: relative;
  width: clamp(180px, 28vmin, 320px);
  height: clamp(180px, 28vmin, 320px);
  opacity: 0;
  transform: scale(0.4) rotate(-25deg);
  filter: blur(20px);
  transition: opacity 1.1s cubic-bezier(.2,.8,.2,1),
              transform 1.4s cubic-bezier(.2,.8,.2,1),
              filter 1.1s cubic-bezier(.2,.8,.2,1);
}
.qx-logo-wrap.in {
  opacity: 1;
  transform: scale(1) rotate(0);
  filter: blur(0);
}
.qx-logo-wrap.in.float {
  animation: qx-logo-float 6s ease-in-out 1.4s infinite alternate;
}
@keyframes qx-logo-float {
  from { transform: translateY(0) rotate(-1.5deg); }
  to   { transform: translateY(-10px) rotate(1.5deg); }
}

.qx-logo {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 60px rgba(255, 60, 180, 0.45))
          drop-shadow(0 8px 30px rgba(140, 60, 255, 0.55));
  z-index: 2;
}

.qx-logo-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at center,
    rgba(255, 60, 180, 0.45) 0%,
    rgba(140, 60, 255, 0.3) 35%,
    transparent 70%);
  filter: blur(40px);
  z-index: 1;
  animation: qx-pulse 4s ease-in-out infinite;
}
@keyframes qx-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.08); }
}

/* === Brand wordmark === */
.qx-brand {
  margin: 0;
  font-family: "Sora", "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 9vmin, 110px);
  letter-spacing: 4px;
  line-height: 1;
  display: flex;
  text-align: center;
  color: #ffffff;
  text-shadow:
    0 0 30px rgba(255, 92, 200, 0.6),
    0 0 60px rgba(140, 60, 255, 0.45),
    0 4px 24px rgba(0, 0, 0, 0.5);
}
.qx-letter {
  display: inline-block;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  opacity: 0;
  transform: translateY(40px) scale(0.6);
  filter: blur(8px);
  transition: opacity .9s cubic-bezier(.2,.8,.2,1),
              transform .9s cubic-bezier(.2,.8,.2,1),
              filter   .9s cubic-bezier(.2,.8,.2,1);
}
.qx-letter.in {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* === Subtitle === */
.qx-subtitle {
  margin: 0;
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
  font-size: clamp(12px, 1.7vmin, 16px);
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 220, 245, 0.78);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 1.1s ease, transform 1.1s ease;
  text-align: center;
  position: relative;
  padding: 0 1em;
}
.qx-subtitle.in {
  opacity: 1;
  transform: translateY(0);
}
.qx-subtitle::before,
.qx-subtitle::after {
  content: "";
  position: absolute;
  top: 50%;
  width: clamp(20px, 5vmin, 60px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 180, 240, 0.6), transparent);
}
.qx-subtitle::before { right: 100%; }
.qx-subtitle::after  { left: 100%; }

/* === Progress shimmer === */
.qx-progress {
  width: clamp(160px, 28vmin, 260px);
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
  opacity: 0;
  transition: opacity .8s ease;
  margin-top: clamp(8px, 1vh, 16px);
}
.qx-progress.in { opacity: 1; }
.qx-progress-bar {
  height: 100%;
  width: 35%;
  background: linear-gradient(90deg,
    transparent 0%,
    #ff5cc8 30%,
    #c478ff 70%,
    transparent 100%);
  border-radius: 99px;
  animation: qx-progress 2.6s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(255, 92, 200, 0.7);
}
@keyframes qx-progress {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(360%); }
}

/* === Footer === */
.qx-foot {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  z-index: 10;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(255, 220, 245, 0.45);
  opacity: 0;
  transition: opacity 1s ease, transform 1s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}
.qx-foot.in {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.qx-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff5cc8;
  box-shadow: 0 0 10px #ff5cc8;
  animation: qx-blink 2s ease-in-out infinite;
}
@keyframes qx-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@media (max-width: 600px) {
  .qx-brand { letter-spacing: 6px; }
  .qx-foot { font-size: 10px; }
}
