:root {
  --red: #e53935;
  --orange: #fb8c00;
  --yellow: #ffd54f;
  --yellow-deep: #f9a825;
  --green: #43a047;
  --blue: #1e88e5;
  --blue-deep: #1565c0;
  --purple: #8e24aa;
  --ink: #2b2a33;
  --ink-soft: #5a5868;
  --paper: #fffdf8;
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* Atmosphere */

.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, #ffe9a0 0%, transparent 58%),
    radial-gradient(ellipse 55% 40% at 100% 30%, #b3e0ff 0%, transparent 52%),
    radial-gradient(ellipse 50% 38% at 0% 70%, #ffd0a0 0%, transparent 50%),
    linear-gradient(168deg, #fff4c8 0%, #eaf5ff 48%, #ffe6c4 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  animation: drift 13s var(--ease) infinite alternate;
}

.orb-a {
  width: clamp(2.25rem, 5.5vw, 3.75rem);
  height: clamp(2.25rem, 5.5vw, 3.75rem);
  background: var(--red);
  top: 10%;
  left: 7%;
  animation-duration: 11s;
}

.orb-b {
  width: clamp(1.5rem, 3.8vw, 2.5rem);
  height: clamp(1.5rem, 3.8vw, 2.5rem);
  background: var(--blue);
  top: 16%;
  right: 9%;
  animation-duration: 14s;
  animation-delay: -2s;
}

.orb-c {
  width: clamp(1.85rem, 4.5vw, 3rem);
  height: clamp(1.85rem, 4.5vw, 3rem);
  background: var(--green);
  bottom: 30%;
  left: 5%;
  animation-duration: 15s;
  animation-delay: -4s;
}

.orb-d {
  width: clamp(1.35rem, 3.2vw, 2.1rem);
  height: clamp(1.35rem, 3.2vw, 2.1rem);
  background: var(--orange);
  top: 52%;
  right: 6%;
  animation-duration: 12s;
  animation-delay: -1s;
}

.orb-e {
  width: clamp(1.1rem, 2.8vw, 1.85rem);
  height: clamp(1.1rem, 2.8vw, 1.85rem);
  background: var(--purple);
  bottom: 12%;
  right: 20%;
  animation-duration: 16s;
  animation-delay: -6s;
}

.star {
  position: absolute;
  width: clamp(0.85rem, 1.9vw, 1.25rem);
  height: clamp(0.85rem, 1.9vw, 1.25rem);
  background: var(--yellow-deep);
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  animation: twinkle 3.2s ease-in-out infinite;
}

.star-a {
  top: 14%;
  left: 20%;
}

.star-b {
  top: 28%;
  right: 16%;
  animation-delay: 1.1s;
  background: var(--yellow);
}

.star-c {
  bottom: 18%;
  left: 16%;
  animation-delay: 2s;
  width: clamp(0.65rem, 1.5vw, 0.95rem);
  height: clamp(0.65rem, 1.5vw, 0.95rem);
}

.blob {
  position: absolute;
  border-radius: 42% 58% 52% 48% / 48% 42% 58% 52%;
  filter: blur(48px);
  opacity: 0.32;
  animation: morph 18s ease-in-out infinite alternate;
}

.blob-a {
  width: min(46vw, 30rem);
  height: min(46vw, 30rem);
  background: #ffd54f;
  top: -10%;
  right: -8%;
}

.blob-b {
  width: min(52vw, 34rem);
  height: min(52vw, 34rem);
  background: #81d4fa;
  bottom: -14%;
  left: -12%;
  animation-delay: -7s;
}

@keyframes drift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(14px, -20px);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.85) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.1) rotate(14deg);
  }
}

@keyframes morph {
  from {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  to {
    transform: translate(22px, -14px) rotate(16deg) scale(1.07);
  }
}

/* Page */

main {
  position: relative;
  z-index: 1;
}

/* Hero — one composition, logo-led */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 3.5vw, 2rem);
  min-height: 100dvh;
  padding: clamp(1.5rem, 5vw, 3rem) clamp(1.25rem, 5vw, 2.5rem)
    clamp(2rem, 5vw, 3rem);
  text-align: center;
}

.hero-stage {
  width: min(78vw, 22rem);
  animation: rise 0.95s var(--ease) both;
}

.logo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  margin-inline: auto;
  filter: drop-shadow(0 20px 32px rgba(43, 42, 51, 0.16));
  animation: float 5.5s ease-in-out infinite;
  will-change: transform;
}

.hero-copy {
  width: min(100%, 34rem);
  animation: rise 0.95s var(--ease) 0.12s both;
}

.brand {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.brand .letter,
.brand .word {
  display: inline;
}

/* Logo letter colors: S a a l i m */
.letter-s {
  color: var(--red);
}

.letter-a1 {
  color: var(--orange);
}

.letter-a2 {
  color: var(--yellow-deep);
}

.letter-l {
  color: var(--green);
}

.letter-i {
  color: var(--blue);
}

.letter-m {
  color: var(--purple);
}

/* Logo ribbon words */
.word-and {
  margin-left: 0.35em;
  color: var(--blue);
}

.word-kids {
  margin-left: 0.28em;
  color: var(--blue-deep);
}

.headline {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3.2vw, 1.55rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}

.lede {
  margin: 0 auto 1.5rem;
  max-width: 30rem;
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--ink-soft);
}

.watch {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.8rem 1.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.6vw, 1.2rem);
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  border-radius: 1.15rem;
  box-shadow: 0 8px 0 color-mix(in srgb, var(--blue-deep) 78%, #000);
}

.watch-dots {
  display: inline-flex;
  gap: 0.28rem;
}

.watch-dots span {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--yellow);
  animation: bounce-dot 1.2s ease-in-out infinite;
}

.watch-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.watch-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

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

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

@keyframes bounce-dot {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* Intent — below the fold */

.intent {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem) clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  animation: rise 0.95s var(--ease) 0.22s both;
}

.intent h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.6vw, 1.85rem);
  font-weight: 700;
  color: var(--ink);
}

.intent > p {
  margin: 0 auto 1.75rem;
  max-width: 32rem;
  font-size: clamp(1rem, 2.4vw, 1.1rem);
  color: var(--ink-soft);
}

.offerings {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1.35rem;
}

.offerings li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.3vw, 1.1rem);
  font-weight: 600;
  color: var(--ink);
}

.dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--c);
  flex-shrink: 0;
}

.footer {
  padding: 0 clamp(1.25rem, 5vw, 2.5rem) clamp(2rem, 5vw, 3rem);
  text-align: center;
}

.footer p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--blue-deep);
}

/* Larger screens — bigger logo presence */

@media (min-width: 480px) {
  .hero-stage {
    width: min(70vw, 26rem);
  }
}

@media (min-width: 768px) {
  .hero {
    gap: 1.75rem;
    padding-block: clamp(2rem, 4vh, 3rem);
  }

  .hero-stage {
    width: min(55vw, 34rem);
  }
}

@media (min-width: 1024px) {
  .hero-stage {
    width: min(48vw, 40rem);
  }
}

/* Short viewports — keep CTA in view */

@media (max-height: 760px) {
  .hero {
    gap: 1rem;
    padding-block: 1.25rem;
  }

  .hero-stage {
    width: min(52vw, 20rem);
  }

  .lede {
    margin-bottom: 1.1rem;
  }
}

@media (max-height: 640px) {
  .hero-stage {
    width: min(42vw, 16rem);
  }

  .logo {
    animation: none;
  }

  .brand {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }
}

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