:root {
  --bg-primary: #f8fafc;
  --accent-blue: #0066ff;
  --accent-cyan: #00c6ff;
  --accent-indigo: #4f46e5;
  --accent-slate: #0b2341;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-primary);
  background: radial-gradient(120% 100% at 50% 20%, #ffffff 0%, #f5f8fc 50%, #e8f0fa 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  user-select: none;
  -webkit-user-select: none;
}

/* Background canvas for silky fluid waves, dot-matrix & ambient motes */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Ambient chromatic lighting backdrop */
.aurora-container {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  filter: blur(120px);
  -webkit-filter: blur(120px);
  opacity: 0.75;
}

.orb {
  position: absolute;
  border-radius: 50%;
  will-change: transform, opacity;
}

.orb-1 {
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.4) 0%, rgba(147, 197, 253, 0.15) 55%, transparent 75%);
  top: -20%;
  left: 10%;
  animation: gentleDrift1 28s ease-in-out infinite alternate;
}

.orb-2 {
  width: 65vw;
  height: 65vw;
  max-width: 850px;
  max-height: 850px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.28) 0%, rgba(196, 181, 253, 0.12) 55%, transparent 75%);
  bottom: -25%;
  right: -5%;
  animation: gentleDrift2 32s ease-in-out infinite alternate;
}

.orb-3 {
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.25) 0%, rgba(125, 211, 252, 0.1) 50%, transparent 70%);
  top: 45%;
  left: -15%;
  animation: gentleDrift3 26s ease-in-out infinite alternate;
}

.orb-4 {
  width: 55vw;
  height: 55vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.25) 0%, rgba(56, 189, 248, 0.1) 55%, transparent 75%);
  top: 60%;
  right: 25%;
  animation: gentleDrift4 30s ease-in-out infinite alternate;
}

@keyframes gentleDrift1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8vw, 8vh) scale(1.08); }
  100% { transform: translate(-5vw, 15vh) scale(0.95); }
}

@keyframes gentleDrift2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-10vw, -8vh) scale(1.06); }
  100% { transform: translate(4vw, -16vh) scale(0.94); }
}

@keyframes gentleDrift3 {
  0% { transform: translate(0, 0) scale(0.96); }
  50% { transform: translate(12vw, -10vh) scale(1.12); }
  100% { transform: translate(6vw, 6vh) scale(1); }
}

@keyframes gentleDrift4 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-12vw, 10vh) scale(1.08); }
  100% { transform: translate(-4vw, -8vh) scale(0.96); }
}

/* Subtle architectural vignette overlay */
.vignette {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, transparent 40%, rgba(200, 218, 242, 0.35) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Mouse light spotlight */
.mouse-spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(550px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 102, 255, 0.05), transparent 70%);
  transition: opacity 0.5s ease;
}

/* Center stage container */
.center-stage {
  position: relative;
  z-index: 10;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

/* Logo wrapper & breathing glow */
.logo-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: organicFloat 7.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.logo-glow {
  position: absolute;
  width: 110%;
  height: 110%;
  border-radius: 36px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, rgba(37, 99, 235, 0.18) 45%, transparent 70%);
  filter: blur(36px);
  -webkit-filter: blur(36px);
  pointer-events: none;
  transform: translateZ(-20px);
  animation: pulseGlow 5s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

@keyframes pulseGlow {
  0% {
    opacity: 0.5;
    transform: translateZ(-20px) scale(0.95);
  }
  100% {
    opacity: 0.85;
    transform: translateZ(-20px) scale(1.08);
  }
}

@keyframes organicFloat {
  0%, 100% {
    transform: translateY(0px) rotate3d(0, 0, 1, 0deg);
  }
  50% {
    transform: translateY(-10px) rotate3d(0, 0, 1, 0.2deg);
  }
}

/* 3D Glassmorphic Logo Card with refined proportions */
.logo-card {
  position: relative;
  width: min(70vw, 240px);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 251, 255, 0.86) 100%);
  backdrop-filter: blur(36px) saturate(190%);
  -webkit-backdrop-filter: blur(36px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 
    0 20px 48px -12px rgba(15, 35, 75, 0.09),
    0 8px 20px -6px rgba(0, 102, 255, 0.1),
    0 0 0 1px rgba(220, 232, 245, 0.65),
    inset 0 1.5px 3px 0 rgba(255, 255, 255, 1),
    inset 0 -1.5px 3px 0 rgba(220, 232, 245, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 22px;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.18s cubic-bezier(0.2, 0, 0.1, 1), box-shadow 0.3s ease;
  overflow: hidden;
}

.logo-card:hover {
  box-shadow: 
    0 28px 60px -12px rgba(15, 35, 75, 0.13),
    0 12px 28px -6px rgba(0, 102, 255, 0.15),
    0 0 0 1px rgba(220, 232, 245, 0.85),
    inset 0 1.5px 4px 0 rgba(255, 255, 255, 1),
    inset 0 -1.5px 3px 0 rgba(220, 232, 245, 0.45);
}

/* Image inside */
.logo-img {
  width: 100%;
  max-width: 165px;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 4px 12px rgba(15, 35, 75, 0.06));
  transform: translateZ(24px);
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Dynamic glass glare shine */
.logo-shine {
  position: absolute;
  inset: 0;
  border-radius: 26px;
  background: radial-gradient(
    circle at var(--shine-x, 50%) var(--shine-y, 50%),
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0.25) 30%,
    transparent 60%
  );
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

/* Subtle interactive click pulse */
.ripple-circle {
  position: fixed;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 102, 255, 0.45);
  pointer-events: none;
  z-index: 5;
  transform: translate(-50%, -50%) scale(0);
  animation: subtleRipple 1.4s cubic-bezier(0.1, 0.8, 0.2, 1) forwards;
}

@keyframes subtleRipple {
  0% {
    width: 0px;
    height: 0px;
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(0);
  }
  50% {
    opacity: 0.3;
  }
  100% {
    width: 550px;
    height: 550px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Small screen optimization */
@media (max-width: 640px) {
  .logo-card {
    width: min(70vw, 200px);
    padding: 22px 16px;
    border-radius: 20px;
  }
  .logo-img {
    max-width: 140px;
  }
  .logo-shine {
    border-radius: 20px;
  }
}
