/* ==========================================================================
   Pandopus pre launch splash. Standalone, animated, self contained.
   ========================================================================== */

:root {
  --brand-500: #7c3aed;
  --brand-400: #9457f0;
  --gold-500: #ffc12e;
  --ink: #241a3a;
  --font-display: "Poppins", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

img { display: block; max-width: 100%; height: auto; }

html, body { margin: 0; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: linear-gradient(135deg, #fbf3ff 0%, #efe7ff 45%, #fff3cf 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: clamp(2.75rem, 9vh, 6.5rem) 1.3rem 3rem;
  overflow-x: hidden;
  position: relative;
}

/* Soft drifting colour blobs */
body::before,
body::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(14px);
  z-index: 0;
  opacity: 0.55;
}
body::before {
  position: fixed;
  width: 48vmax; height: 48vmax;
  background: radial-gradient(circle, rgba(148, 87, 240, 0.45), transparent 62%);
  top: -16vmax; right: -14vmax;
  animation: drift1 16s ease-in-out infinite;
}
body::after {
  position: fixed;
  width: 42vmax; height: 42vmax;
  background: radial-gradient(circle, rgba(255, 193, 46, 0.5), transparent 62%);
  bottom: -16vmax; left: -12vmax;
  animation: drift2 19s ease-in-out infinite;
}

@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-5vmax, 4vmax) scale(1.08); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5vmax, -4vmax) scale(1.1); }
}

.splash {
  position: relative;
  z-index: 1;
  max-width: 640px;
  width: 100%;
}

.splash .mascot {
  width: min(90vw, 560px);
  height: auto;
  aspect-ratio: 1000 / 539;
  margin: 0 auto 1.6rem;
  filter: drop-shadow(0 30px 50px rgba(83, 20, 166, 0.3));
  animation: float 6.5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-0.6deg); }
  50% { transform: translateY(-16px) rotate(0.6deg); }
}

.splash .wordmark {
  width: min(86vw, 460px);
  margin: 0 auto clamp(3.25rem, 8vh, 5rem);
  animation: rise 0.8s ease both;
}

.splash .badge {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-500);
  background: rgba(124, 58, 237, 0.12);
  padding: 0.42rem 1rem;
  border-radius: 999px;
  margin: 0 auto 1.1rem;
  animation: rise 0.8s ease 0.08s both;
}

.splash h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 5.5vw, 2.7rem);
  line-height: 1.22;
  padding-bottom: 0.12em;
  margin: 0 0 0.6rem;
  background: linear-gradient(120deg, #6d28d9, #9457f0 55%, #f5a623);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rise 0.8s ease 0.1s both;
}

.splash p {
  font-size: clamp(1rem, 2.5vw, 1.18rem);
  color: #4b4361;
  max-width: 34rem;
  margin: 0 auto 1.8rem;
  animation: rise 0.8s ease 0.2s both;
}

.splash .sub {
  font-size: 0.98rem;
  color: #7a7090;
  max-width: 30rem;
  margin: 0 auto;
  animation: rise 0.8s ease 0.34s both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

/* Rippling dots loader (a nod to octopus tentacle suckers) */
.loader {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  align-items: center;
  height: 34px;
  margin: 0 auto 1.9rem;
  animation: rise 0.8s ease 0.25s both;
}
.loader span {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--gold-500));
  box-shadow: 0 6px 14px -6px rgba(124, 58, 237, 0.7);
  animation: bob 1.25s ease-in-out infinite;
}
.loader span:nth-child(1) { animation-delay: 0s; }
.loader span:nth-child(2) { animation-delay: 0.12s; }
.loader span:nth-child(3) { animation-delay: 0.24s; }
.loader span:nth-child(4) { animation-delay: 0.36s; }
.loader span:nth-child(5) { animation-delay: 0.48s; }

@keyframes bob {
  0%, 100% { transform: translateY(6px) scale(0.78); opacity: 0.4; }
  40% { transform: translateY(-12px) scale(1.12); opacity: 1; }
}

.splash .foot {
  margin-top: 2.4rem;
  font-size: 0.85rem;
  color: #7a7090;
  animation: rise 0.8s ease 0.4s both;
}

.splash .foot a {
  color: var(--brand-500);
  text-decoration: none;
  font-weight: 600;
}

.splash .foot a:hover {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .splash .mascot,
  body::before,
  body::after,
  .loader span { animation: none; }
  .splash .wordmark,
  .splash .badge,
  .splash h1,
  .splash p,
  .splash .sub,
  .loader,
  .splash .foot { animation: none; }
  .loader span { opacity: 1; transform: none; }
}
