:root {
  --yellow: #ffdd00;
  --yellow-deep: #ffc400;
  --teal: #37c8d6;
  --teal-deep: #1fb2c2;
  --magenta: #ec1e79;
  --navy-ink: #122c49;      /* logo outline / dark text */
  --navy: #173a5e;          /* base background */
  --navy-dark: #0f2942;     /* darker rays / vignette */
  --navy-ray: #21507d;      /* lighter sunburst rays */
  --cream: #fdfcf3;
  --card-max: 720px;
}

* { box-sizing: border-box; }

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

body {
  font-family: "Nunito", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--cream);
  background: var(--navy);
  min-height: 100dvh;
  display: flex;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Brand sunburst background ---------- */
.rays {
  position: fixed;
  inset: -25%;
  z-index: 0;
  background: repeating-conic-gradient(
    from 0deg at 50% 42%,
    var(--navy-ray) 0deg 7deg,
    var(--navy-dark) 7deg 14deg
  );
  opacity: 0.55;
  animation: spin 90s linear infinite;
  will-change: transform;
}
.glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(55,200,214,0.16), transparent 60%),
    radial-gradient(ellipse 120% 100% at 50% 120%, rgba(15,41,66,0.9), transparent 60%);
  pointer-events: none;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* floating brand bubbles */
.bubbles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bubbles span {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  filter: blur(1px);
  animation: float 14s ease-in-out infinite;
}
.bubbles span:nth-child(1){ width: 22px; height: 22px; background: var(--yellow); left: 8%;  top: 22%; animation-delay: 0s; }
.bubbles span:nth-child(2){ width: 14px; height: 14px; background: var(--teal);   left: 84%; top: 30%; animation-delay: 2s; }
.bubbles span:nth-child(3){ width: 30px; height: 30px; background: var(--magenta);left: 78%; top: 68%; animation-delay: 4s; }
.bubbles span:nth-child(4){ width: 16px; height: 16px; background: var(--yellow); left: 15%; top: 74%; animation-delay: 1s; }
.bubbles span:nth-child(5){ width: 10px; height: 10px; background: var(--teal);   left: 46%; top: 12%; animation-delay: 3s; }
.bubbles span:nth-child(6){ width: 12px; height: 12px; background: var(--magenta);left: 30%; top: 40%; animation-delay: 5s; }

@keyframes float {
  0%,100% { transform: translateY(0) translateX(0); }
  50%     { transform: translateY(-26px) translateX(10px); }
}

/* ---------- Layout ---------- */
.stage {
  position: relative;
  z-index: 1;
  margin: auto;
  width: 100%;
  max-width: var(--card-max);
  padding: clamp(24px, 5vw, 56px) clamp(20px, 5vw, 40px) 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 3vw, 22px);
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--magenta);
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 6px 0 rgba(0,0,0,0.18);
}

/* warm-white badge so the dark "PODCAST" wordmark keeps full contrast
   against the navy sunburst; echoes the logo's own rounded frame */
.logo-card {
  width: clamp(240px, 60vw, 400px);
  background: #fffdf5;
  padding: clamp(14px, 3.2vw, 26px);
  border-radius: 34px;
  box-shadow:
    0 24px 46px rgba(6,18,32,0.5),
    0 0 0 3px rgba(255,255,255,0.06);
  animation: bob 5s ease-in-out infinite;
  will-change: transform;
}
.logo {
  display: block;
  width: 100%;
  height: auto;
}
@keyframes bob {
  0%,100% { transform: translateY(0) rotate(-0.6deg); }
  50%     { transform: translateY(-12px) rotate(0.6deg); }
}

.headline {
  font-family: "Fredoka", sans-serif;
  margin: 4px 0 0;
  line-height: 1.02;
  letter-spacing: 0.5px;
}
.headline .line-1 {
  display: block;
  font-size: clamp(2.4rem, 8vw, 4.6rem);
  font-weight: 700;
  color: var(--yellow);
  text-shadow: 0 4px 0 var(--navy-ink), 0 5px 0 var(--navy-ink), 0 14px 22px rgba(0,0,0,0.35);
}
.headline .line-2 {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.05rem, 3.4vw, 1.7rem);
  font-weight: 600;
  color: var(--teal);
}
.headline .line-2 em { color: var(--yellow); font-style: normal; }

.tagline {
  max-width: 46ch;
  margin: 0 auto;
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  line-height: 1.6;
  color: rgba(253,252,243,0.9);
}
.tagline strong { color: var(--yellow); }
.tagline em { font-style: italic; color: var(--cream); }
.tagline .c-teal    { color: #56d7e4; }
.tagline .c-magenta { color: #ff5aa0; }
.tagline .c-yellow  { color: var(--yellow); }

/* ---------- Notify form ---------- */
.notify {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 460px;
  margin-top: 4px;
}
.notify input {
  flex: 1 1 auto;
  min-width: 0;
  border: 3px solid var(--navy-ink);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--navy-ink);
  background: var(--cream);
  outline: none;
  transition: box-shadow .15s ease, transform .15s ease;
}
.notify input::placeholder { color: #8aa0ad; font-weight: 600; }
.notify input:focus { box-shadow: 0 0 0 4px rgba(55,200,214,0.5); }

.notify button {
  flex: 0 0 auto;
  cursor: pointer;
  border: 3px solid var(--navy-ink);
  border-radius: 14px;
  padding: 14px 22px;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy-ink);
  background: var(--yellow);
  transition: transform .08s ease, background .15s ease;
  white-space: nowrap;
}
.notify button:hover { background: #ffe64d; }
.notify button:active { transform: translateY(2px); }

.form-msg {
  min-height: 1.2em;
  margin: 2px 0 0;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--teal);
}
.form-msg.error { color: #ffd0e2; }
.form-msg.ok { color: var(--yellow); }

/* ---------- Social ---------- */
.social {
  display: flex;
  gap: 14px;
  margin-top: 6px;
}
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.18);
  color: var(--cream);
  transition: transform .12s ease, background .15s ease, color .15s ease;
}
.social a:hover {
  transform: translateY(-4px) scale(1.05);
  background: var(--teal);
  color: var(--navy-ink);
  border-color: var(--teal);
}
.social svg { width: 24px; height: 24px; fill: currentColor; }

/* ---------- Footer ---------- */
.foot {
  z-index: 1;
  font-size: 0.85rem;
  color: rgba(253,252,243,0.7);
  line-height: 1.6;
}
.foot strong { color: var(--teal); }
.foot .copy { margin: 2px 0 0; opacity: 0.8; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (max-width: 480px) {
  .notify { flex-direction: column; }
  .notify button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .rays, .logo-card, .bubbles span { animation: none; }
}
