/* ============ TOKENS ============ */
:root {
  --cream: #fff8f0;
  --ink: #2d2a4a;
  --ink-soft: #6b6785;
  --peach: #ffb4a2;
  --peach-soft: #ffe3da;
  --mint: #9ee0c5;
  --mint-soft: #dcf5ea;
  --sky: #9ccbff;
  --sky-soft: #ddecff;
  --lemon: #ffd96a;
  --lemon-soft: #fff2c4;
  --lilac: #c9b6ff;
  --lilac-soft: #ece5ff;
  --pink: #ff9ec7;
  --pink-soft: #ffe0ee;
  --blue: #6fa8ff;
  --blue-soft: #d6e6ff;
  --coral: #ff7a59;
  --radius: 28px;
  --shadow: 0 10px 30px rgba(45, 42, 74, 0.08);
  --shadow-lg: 0 20px 50px rgba(45, 42, 74, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Nunito", system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .logo, .age-num {
  font-family: "Fredoka", "Nunito", sans-serif;
  line-height: 1.15;
}

a { color: inherit; text-decoration: none; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  background: var(--coral);
  color: #fff;
  font-weight: 800;
  padding: 16px 30px;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 6px 0 #d9573a;
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 9px 0 #d9573a; }
.btn:active { transform: translateY(3px); box-shadow: 0 3px 0 #d9573a; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; box-shadow: inset 0 0 0 2px var(--ink); }

.btn-small { padding: 10px 20px; font-size: .9rem; box-shadow: 0 4px 0 #d9573a; color: #fff !important; }

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 6vw;
  background: rgba(255, 248, 240, 0.8);
  backdrop-filter: blur(12px);
}

.logo { font-size: 1.7rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.logo-mark {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  background: var(--mint);
  border-radius: 14px;
  font-size: 1.3rem;
  transform: rotate(-8deg);
  transition: transform .3s;
}
.logo:hover .logo-mark { transform: rotate(8deg) scale(1.1); }

.nav-links { display: flex; align-items: center; gap: 30px; font-weight: 700; }
.nav-links a:not(.btn) { position: relative; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 3px; border-radius: 3px; background: var(--coral);
  transition: width .25s;
}
.nav-links a:not(.btn):hover::after { width: 100%; }

.menu-toggle, .burger { display: none; }

/* ============ HERO ============ */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 60px 6vw 100px;
  min-height: 86vh;
}

.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: -1; }
.blob-1 { width: 380px; height: 380px; background: var(--peach); top: -60px; left: -100px; animation: drift 14s ease-in-out infinite; }
.blob-2 { width: 320px; height: 320px; background: var(--sky); bottom: 0; right: 10%; animation: drift 18s ease-in-out infinite reverse; }
.blob-3 { width: 260px; height: 260px; background: var(--lemon); top: 30%; left: 40%; animation: drift 16s ease-in-out infinite; }

.pill {
  display: inline-block;
  background: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  animation: pop .8s ease-out both;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  margin-bottom: 22px;
  animation: rise .8s .1s ease-out both;
}

.squiggle {
  color: var(--coral);
  position: relative;
  white-space: nowrap;
}
.squiggle::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -10px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 14' preserveAspectRatio='none'%3E%3Cpath d='M0 7 Q 12.5 0 25 7 T 50 7 T 75 7 T 100 7' fill='none' stroke='%23ffd96a' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x;
  background-size: 100% 100%;
  z-index: -1;
}

.hero p { font-size: 1.2rem; color: var(--ink-soft); max-width: 520px; animation: rise .8s .2s ease-out both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin: 34px 0 44px; animation: rise .8s .3s ease-out both; }

.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; animation: rise .8s .4s ease-out both; }
.hero-stats strong { display: block; font-family: "Fredoka", sans-serif; font-size: 1.8rem; }
.hero-stats span { color: var(--ink-soft); font-size: .9rem; font-weight: 600; }

/* hero art */
.hero-art { position: relative; height: 520px; display: grid; place-items: center; }
.art-circle {
  position: relative;
  width: 420px; height: 420px;
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  background: linear-gradient(135deg, var(--mint) 0%, var(--sky) 100%);
  box-shadow: var(--shadow-lg);
  animation: morph 10s ease-in-out infinite;
}

.book {
  position: absolute;
  width: 130px; height: 170px;
  border-radius: 10px 18px 18px 10px;
  display: grid; place-items: center;
  font-family: "Fredoka", sans-serif;
  font-size: 2.2rem; font-weight: 700; color: #fff;
  box-shadow: inset 12px 0 0 rgba(0,0,0,.1), var(--shadow-lg);
}
.book-a { background: var(--coral); top: 60px; left: 50px; transform: rotate(-12deg); animation: bob 4s ease-in-out infinite; }
.book-b { background: var(--blue); top: 110px; left: 150px; transform: rotate(4deg); z-index: 2; animation: bob 4.6s .4s ease-in-out infinite; }
.book-c { background: var(--pink); top: 170px; left: 250px; transform: rotate(14deg); animation: bob 5s .8s ease-in-out infinite; }

.float { position: absolute; font-size: 2.6rem; animation: floaty 6s ease-in-out infinite; filter: drop-shadow(0 6px 8px rgba(0,0,0,.08)); }
.f1 { top: 4%; left: 12%; }
.f2 { top: 8%; right: 6%; animation-delay: -1s; font-size: 3.2rem; }
.f3 { bottom: 10%; left: 4%; animation-delay: -2s; }
.f4 { bottom: 2%; right: 18%; animation-delay: -3s; font-size: 3.4rem; }
.f5 { top: 46%; right: -2%; animation-delay: -4s; }

/* ============ MARQUEE ============ */
.marquee {
  background: var(--ink);
  color: var(--cream);
  padding: 18px 0;
  overflow: hidden;
  transform: rotate(-1.5deg);
  margin: 0 -10px;
}
.marquee-track {
  display: inline-flex; gap: 24px;
  white-space: nowrap;
  font-family: "Fredoka", sans-serif;
  font-size: 1.4rem;
  animation: scroll 28s linear infinite;
}
.marquee-track span { color: var(--lemon); }

/* ============ SECTIONS ============ */
.section { padding: 110px 6vw; }
.section-tinted { background: #fff; border-radius: 60px; margin: 0 2vw; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.eyebrow {
  display: inline-block;
  color: var(--coral);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .85rem;
  margin-bottom: 12px;
}
h2 { font-size: clamp(2rem, 4vw, 3rem); }
.lead { font-size: 1.15rem; color: var(--ink-soft); margin-top: 16px; }

/* ============ CATEGORIES ============ */
.categories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cat {
  padding: 36px 28px;
  border-radius: var(--radius);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
}
.cat:hover { transform: translateY(-10px) rotate(-1.5deg); box-shadow: var(--shadow-lg); }
.cat-icon {
  display: grid; place-items: center;
  width: 72px; height: 72px;
  background: #fff;
  border-radius: 22px;
  font-size: 2.2rem;
  margin-bottom: 22px;
  transition: transform .4s;
}
.cat:hover .cat-icon { transform: rotate(-10deg) scale(1.1); }
.cat h3 { font-size: 1.4rem; margin-bottom: 6px; }
.cat p { color: var(--ink-soft); font-weight: 600; }
.cat-peach { background: var(--peach-soft); }
.cat-mint { background: var(--mint-soft); }
.cat-sky { background: var(--sky-soft); }
.cat-lemon { background: var(--lemon-soft); }

/* ============ PRODUCTS ============ */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.product {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.product:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.product-img {
  position: relative;
  height: 220px;
  display: grid; place-items: center;
  font-size: 5.5rem;
}
.product-img span { transition: transform .5s cubic-bezier(.34,1.56,.64,1); }
.product:hover .product-img span { transform: scale(1.18) rotate(-8deg); }
.bg-peach { background: var(--peach-soft); }
.bg-mint { background: var(--mint-soft); }
.bg-sky { background: var(--sky-soft); }
.bg-lilac { background: var(--lilac-soft); }

.tag {
  position: absolute; top: 16px; left: 16px;
  background: var(--ink); color: #fff;
  font-style: normal; font-size: .75rem; font-weight: 800;
  padding: 5px 12px; border-radius: 999px;
}
.tag-new { background: var(--coral); }

.product-body { padding: 22px 24px 24px; }
.age {
  display: inline-block;
  font-size: .78rem; font-weight: 800;
  background: var(--lemon-soft);
  padding: 3px 12px; border-radius: 999px;
  margin-bottom: 10px;
}
.product h3 { font-size: 1.25rem; margin-bottom: 6px; }
.product p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 18px; }
.product-foot { display: flex; justify-content: space-between; align-items: center; }
.product-foot strong { font-family: "Fredoka", sans-serif; font-size: 1.35rem; }
.add {
  width: 46px; height: 46px;
  border-radius: 50%; border: none;
  background: var(--ink); color: #fff;
  font-size: 1.6rem; cursor: pointer;
  transition: transform .3s, background .3s;
}
.add:hover { background: var(--coral); transform: rotate(90deg) scale(1.1); }

/* ============ AGES ============ */
.ages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.age-card {
  position: relative;
  padding: 44px 36px;
  border-radius: 40px;
  overflow: hidden;
  transition: transform .3s;
}
.age-card:hover { transform: scale(1.03); }
.age-card::before {
  content: "";
  position: absolute; right: -40px; top: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
}
.a1 { background: var(--peach); }
.a2 { background: var(--mint); }
.a3 { background: var(--lilac); }
.age-num { font-size: 4rem; font-weight: 700; margin-bottom: 4px; }
.age-card h3 { font-size: 1.5rem; margin-bottom: 18px; }
.age-card ul { list-style: none; margin-bottom: 26px; }
.age-card li { padding: 6px 0 6px 30px; position: relative; font-weight: 700; }
.age-card li::before {
  content: "✓";
  position: absolute; left: 0; top: 7px;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  font-size: .7rem;
  background: #fff; border-radius: 50%;
}
.age-card a {
  display: inline-block;
  background: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform .2s;
}
.age-card a:hover { transform: translateX(6px); }

/* ============ WHY ============ */
.why { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: center; }
.why-art { display: grid; place-items: center; }
.why-blob {
  position: relative;
  width: min(420px, 80vw); aspect-ratio: 1;
  background: linear-gradient(160deg, var(--lemon) 0%, var(--peach) 100%);
  border-radius: 60% 40% 55% 45% / 45% 55% 45% 55%;
  animation: morph 12s ease-in-out infinite;
}
.why-blob span { position: absolute; font-size: 4.5rem; animation: floaty 5s ease-in-out infinite; }
.w1 { top: 18%; left: 20%; }
.w2 { top: 30%; right: 18%; animation-delay: -1.5s !important; font-size: 5.5rem !important; }
.w3 { bottom: 16%; left: 36%; animation-delay: -3s !important; }

.features { margin-top: 34px; display: grid; gap: 18px; }
.feature {
  display: flex; gap: 18px; align-items: flex-start;
  background: #fff;
  padding: 20px 22px;
  border-radius: 22px;
  box-shadow: var(--shadow);
  transition: transform .3s;
}
.feature:hover { transform: translateX(8px); }
.feature:nth-child(2) > span { background: var(--pink-soft); }
.feature:nth-child(3) > span { background: var(--blue-soft); }
.feature > span {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 54px; height: 54px;
  background: var(--mint-soft);
  border-radius: 16px;
  font-size: 1.6rem;
}
.feature h4 { font-size: 1.15rem; margin-bottom: 2px; }
.feature p { color: var(--ink-soft); }

/* ============ REVIEWS ============ */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.review {
  padding: 34px 30px;
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 600;
  transition: transform .3s;
}
.review p { margin-bottom: 22px; }
.review footer { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: .95rem; }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; background: #fff; border-radius: 50%; }
.r1 { background: var(--peach-soft); transform: rotate(-2deg); }
.r2 { background: var(--sky-soft); transform: rotate(1.5deg) translateY(16px); }
.r3 { background: var(--mint-soft); transform: rotate(-1deg); }
.review:hover { transform: rotate(0) translateY(-6px); }

/* ============ JOIN ============ */
.join {
  position: relative;
  margin: 110px 6vw;
  padding: 80px 30px;
  text-align: center;
  background: var(--ink);
  color: var(--cream);
  border-radius: 50px;
  overflow: hidden;
}
.join h2 { color: #fff; margin-bottom: 12px; }
.join p { color: #c9c6e0; font-size: 1.1rem; max-width: 520px; margin: 0 auto 34px; }
.j1 { top: 20%; left: 8%; }
.j2 { bottom: 18%; right: 9%; animation-delay: -2s; }
.join-form {
  display: flex; gap: 10px;
  max-width: 480px; margin: 0 auto;
  background: #fff;
  padding: 8px;
  border-radius: 999px;
}
.join-form input {
  flex: 1; min-width: 0;
  border: none; outline: none;
  padding: 0 20px;
  font: inherit; font-size: 1rem;
  background: transparent;
  color: var(--ink);
}
.join-form .btn { box-shadow: none; padding: 14px 24px; }
.join-form .btn:hover { transform: scale(1.04); box-shadow: none; }

/* ============ FOOTER ============ */
.footer { padding: 40px 6vw 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 40px; }
.footer-grid p { color: var(--ink-soft); margin-top: 14px; max-width: 260px; }
.footer h4 { margin-bottom: 12px; font-size: 1.1rem; }
.footer-grid a:not(.logo) { display: block; color: var(--ink-soft); font-weight: 600; padding: 3px 0; transition: color .2s; }
.footer-grid a:not(.logo):hover { color: var(--coral); }
.copy { text-align: center; color: var(--ink-soft); font-size: .9rem; padding-top: 24px; border-top: 2px dashed #eadfd2; }

/* ============ ANIMATIONS ============ */
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-18px) rotate(6deg); }
}
@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.1); }
}
@keyframes morph {
  0%, 100% { border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; }
  50% { border-radius: 58% 42% 55% 45% / 42% 58% 42% 58%; }
}
@keyframes scroll { to { transform: translateX(-50%); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.6); } 70% { transform: scale(1.06); } 100% { opacity: 1; transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .categories, .products { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 40px; }
  .hero p { margin: 0 auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-art { height: 460px; }
  .why { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 760px) {
  .burger {
    display: flex; flex-direction: column; gap: 5px;
    cursor: pointer; padding: 8px; z-index: 60;
  }
  .burger span { width: 26px; height: 3px; background: var(--ink); border-radius: 3px; transition: .3s; }
  .nav-links {
    position: absolute; top: 100%; left: 16px; right: 16px;
    flex-direction: column; gap: 18px;
    background: #fff;
    padding: 28px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    opacity: 0; pointer-events: none;
    transform: translateY(-10px);
    transition: .3s;
  }
  .menu-toggle:checked ~ .nav-links { opacity: 1; pointer-events: auto; transform: none; }
  .menu-toggle:checked + .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle:checked + .burger span:nth-child(2) { opacity: 0; }
  .menu-toggle:checked + .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .nav { padding: 14px 16px; }
  .section { padding: 80px 16px; }
  .section-tinted { margin: 0; border-radius: 36px; }
  .categories, .products, .ages, .reviews { grid-template-columns: 1fr; }
  .r2 { transform: rotate(1.5deg); }
  .hero { padding: 30px 16px 70px; min-height: auto; }
  .hero-art { height: 340px; }
  .art-circle { width: 290px; height: 290px; }
  .book { width: 90px; height: 120px; font-size: 1.6rem; }
  .book-a { top: 40px; left: 30px; }
  .book-b { top: 80px; left: 100px; }
  .book-c { top: 120px; left: 170px; }
  .join { margin: 70px 16px; padding: 60px 20px; border-radius: 36px; }
  .join-form { flex-direction: column; border-radius: 26px; }
  .join-form input { padding: 14px 16px; text-align: center; }
  .footer { padding: 30px 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
