:root {
  --pearl-bg: rgba(255, 255, 255, 0.78);
  --pearl-bg-hover: rgba(255, 255, 255, 0.92);
  --prism-border: linear-gradient(
    135deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(167, 139, 250, 0.34) 35%,
    rgba(244, 114, 182, 0.28) 65%,
    rgba(56, 189, 248, 0.38) 100%
  );
}

body {
  background:
    radial-gradient(circle at 12% 14%, rgba(196, 181, 253, 0.24), transparent 44%),
    radial-gradient(circle at 86% 18%, rgba(125, 211, 252, 0.24), transparent 46%),
    radial-gradient(circle at 74% 82%, rgba(251, 207, 232, 0.22), transparent 46%),
    linear-gradient(155deg, #ffffff 0%, #fafaff 38%, #f8fbff 72%, #fdfaff 100%);
  color: #1e293b;
  min-height: 100vh;
  overflow-x: hidden;
}

@keyframes floatSoft {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(18px, -14px) scale(1.04);
  }
}

.pearl-orb {
  position: fixed;
  border-radius: 9999px;
  filter: blur(96px);
  pointer-events: none;
  z-index: 0;
  animation: floatSoft 15s ease-in-out infinite;
}

.orb-lavender {
  top: -120px;
  left: -80px;
  width: 480px;
  height: 480px;
  background: rgba(167, 139, 250, 0.2);
}

.orb-sky {
  top: 26%;
  right: -120px;
  width: 520px;
  height: 520px;
  background: rgba(56, 189, 248, 0.2);
  animation-delay: -5s;
}

.orb-blush {
  bottom: -130px;
  left: 24%;
  width: 460px;
  height: 460px;
  background: rgba(244, 114, 182, 0.16);
  animation-delay: -9s;
}

/* Mother-of-Pearl Frosted White Glass Panel */
.pearl-panel {
  position: relative;
  background: var(--pearl-bg);
  backdrop-filter: blur(26px) saturate(165%);
  -webkit-backdrop-filter: blur(26px) saturate(165%);
  border: 1px solid rgba(255, 255, 255, 0.96);
  box-shadow:
    0 18px 46px -18px rgba(99, 102, 241, 0.12),
    inset 0 1px 1px rgba(255, 255, 255, 1);
  transition: transform 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease;
}

.pearl-panel::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.25px;
  background: var(--prism-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.75;
  transition: opacity 0.28s ease;
}

.pearl-panel-interactive:hover {
  background: var(--pearl-bg-hover);
  transform: translateY(-3px);
  box-shadow:
    0 26px 58px -18px rgba(124, 58, 237, 0.16),
    inset 0 1px 1px rgba(255, 255, 255, 1);
}

.pearl-panel-interactive:hover::before {
  opacity: 1;
}

/* Luminous Pastel-Prism Glass Card for Moon Plan */
.pearl-moon-card {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.8) 0%,
    rgba(139, 92, 246, 0.76) 46%,
    rgba(56, 189, 248, 0.8) 100%
  );
  backdrop-filter: blur(26px) saturate(185%);
  -webkit-backdrop-filter: blur(26px) saturate(185%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 28px 68px -18px rgba(99, 102, 241, 0.32),
    inset 0 1px 1px rgba(255, 255, 255, 0.75);
}

.pearl-nav {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 28px -12px rgba(99, 102, 241, 0.12);
}

.logo-pearl {
  filter: drop-shadow(0 2px 8px rgba(139, 92, 246, 0.18));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.logo-pearl:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 4px 12px rgba(56, 189, 248, 0.3));
}

.typed-cursor {
  color: #8b5cf6;
}

@media (prefers-reduced-motion: reduce) {
  .pearl-orb {
    animation: none;
  }
  .pearl-panel,
  .logo-pearl {
    transition: none;
  }
}
