:root {
  --cream: #fbf7f2;       /* matches the panda PNG background exactly */
  --navy: #28497c;
  --navy-soft: #2e4d82;
  --charcoal: #2b2b2e;
  --muted: #6b6f78;
  --accent-warm: #e0a23c;
}

* { box-sizing: border-box; }

html, body { margin: 0; height: 100%; }

body {
  min-height: 100vh;
  font-family: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--charcoal);
  background: var(--cream);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ---------- Stage / layout ---------- */
.stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 24px;
}

.hero { text-align: center; max-width: 620px; }

.panda-wrap {
  position: relative;
  width: 480px;
  max-width: 92vw;
  margin: 0 auto -10px;
}

/* PNG hero — gentle breathing/bob. The PNG already carries its own soft
   shadow + the cream backdrop, so no drop-shadow here (it would box-shadow
   the rectangle). */
.panda {
  width: 100%;
  height: auto;
  display: block;
  transform-origin: 50% 78%;
  animation: snooze 5s ease-in-out infinite;
}
@keyframes snooze {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-6px) scale(1.018); }
}

/* ---------- Floating Zzz (live) ---------- */
.zzz {
  position: absolute;
  top: -2%;
  left: 54%;
  width: 90px;
  height: 120px;
  pointer-events: none;
  z-index: 2;
}
.z {
  position: absolute;
  font-family: "Baloo 2", sans-serif;
  font-weight: 800;
  color: var(--navy);
  opacity: 0;
  animation: floatZ 4s ease-in-out infinite;
}
.z1 { font-size: 18px; left: 0;   animation-delay: 0s;   }
.z2 { font-size: 25px; left: 20px; animation-delay: 1.3s; }
.z3 { font-size: 33px; left: 44px; animation-delay: 2.6s; }

@keyframes floatZ {
  0%   { transform: translateY(20px) rotate(-8deg) scale(0.6); opacity: 0; }
  25%  { opacity: 1; }
  100% { transform: translateY(-54px) rotate(10deg) scale(1.1); opacity: 0; }
}

/* ---------- Wordmark ---------- */
.title {
  font-family: "Baloo 2", "Segoe UI", sans-serif;
  font-size: clamp(3rem, 12vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--charcoal);
  margin: 0;
  line-height: 0.95;
}
.title-accent { color: var(--navy); }

/* dotted divider line */
.divider {
  position: relative;
  width: 130px;
  height: 2px;
  background: var(--navy);
  opacity: 0.4;
  margin: 12px auto 16px;
  border-radius: 2px;
}
.divider-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--navy);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.tagline {
  font-size: clamp(1rem, 3.6vw, 1.3rem);
  color: var(--navy);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin: 0 auto 1.4em;
}

/* ---------- Status pill ---------- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(31, 58, 99, 0.14);
  padding: 0.5em 1em;
  border-radius: 999px;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-warm);
  box-shadow: 0 0 0 0 rgba(224, 162, 60, 0.6);
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(224, 162, 60, 0.6); }
  70%  { box-shadow: 0 0 0 12px rgba(224, 162, 60, 0); }
  100% { box-shadow: 0 0 0 0 rgba(224, 162, 60, 0); }
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 16px;
  font-size: 0.8rem;
  color: var(--muted);
}
.footer-sep { margin: 0 0.5em; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
