:root {
  --sunshine: #ffc93c;
  --coral: #ff6f59;
  --sky: #3fa7d6;
  --grass: #4bb989;
  --plum: #6a4c93;
  --cream: #fffaf0;
  --ink: #2e2b3f;
  --ink-soft: #58546b;
  --white: #ffffff;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 12px 30px rgba(46, 43, 63, 0.12);
  --shadow-hover: 0 16px 36px rgba(46, 43, 63, 0.18);
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Baloo 2", "Segoe UI", system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Fredoka", "Baloo 2", "Segoe UI", system-ui, sans-serif;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

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

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(255, 111, 89, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 14px 30px rgba(255, 111, 89, 0.5);
}

.btn-secondary {
  background: var(--white);
  color: var(--plum);
  box-shadow: var(--shadow);
}

.btn-large {
  padding: 18px 36px;
  font-size: 1.2rem;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 240, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(46, 43, 63, 0.06);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--plum);
  text-decoration: none;
}

.brand .brand-emoji {
  font-size: 1.6rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  color: var(--ink-soft);
}

.nav-links a:hover {
  color: var(--coral);
}

.nav-cta {
  background: var(--coral);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
}

/* Hero */
.hero {
  position: relative;
  padding: 64px 0 96px;
  overflow: hidden;
}

.hero-bg-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  z-index: 0;
}

.shape-1 {
  width: 320px;
  height: 320px;
  background: var(--sunshine);
  top: -120px;
  right: -80px;
  opacity: 0.35;
}

.shape-2 {
  width: 220px;
  height: 220px;
  background: var(--sky);
  bottom: -80px;
  left: -60px;
  opacity: 0.25;
}

.hero-bg-photo {
  position: absolute;
  inset: -5%;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: blur(28px) saturate(1.1) brightness(0.92);
  transform: scale(1.1);
  opacity: 0.55;
}

.hero-bg-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.55) 0%, rgba(255, 250, 240, 0.85) 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  background: var(--grass);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 3.2rem;
  color: var(--plum);
}

.hero h1 .highlight {
  color: var(--coral);
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.book-cover-wrap {
  position: relative;
  transform: rotate(-3deg);
  transition: transform 0.3s ease;
}

.book-cover-wrap:hover {
  transform: rotate(0deg);
}

.book-cover-wrap img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  width: 320px;
}

.badge-new {
  position: absolute;
  top: -14px;
  right: -14px;
  background: var(--sunshine);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 10px 14px;
  border-radius: 50%;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.1;
  box-shadow: var(--shadow);
  transform: rotate(12deg);
}

/* Section generic */
section {
  padding: 72px 0;
}

.section-title {
  font-size: 2.2rem;
  color: var(--plum);
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 48px;
  font-size: 1.1rem;
}

/* About / story section */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.about-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.about-card img {
  border-radius: var(--radius-md);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 16px;
}

.feature-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-weight: 600;
  color: var(--ink);
}

.feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: var(--sunshine);
}

/* Characters / heroes strip */
.heroes {
  background: linear-gradient(180deg, var(--cream) 0%, #fef1e0 100%);
}

.hero-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.hero-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.hero-card .avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
}

.hero-card h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.hero-card p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0;
}

.avatar-coral { background: var(--coral); }
.avatar-sky { background: var(--sky); }
.avatar-grass { background: var(--grass); }
.avatar-plum { background: var(--plum); }

/* Author */
.author {
  background: var(--white);
}

.author-grid {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 40px;
  align-items: center;
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow);
}

.author-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.4rem;
  background: linear-gradient(135deg, var(--sky), var(--grass));
  color: var(--white);
  box-shadow: var(--shadow);
}

.author-name {
  font-size: 1.6rem;
  color: var(--plum);
  margin-bottom: 4px;
}

.author-role {
  color: var(--coral);
  font-weight: 700;
  margin-bottom: 16px;
  display: block;
}

/* Reviews */
.reviews {
  background: linear-gradient(180deg, #fef1e0 0%, var(--cream) 100%);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow);
}

.stars {
  color: var(--sunshine);
  font-size: 1.1rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.review-quote {
  font-style: italic;
  color: var(--ink);
}

.review-author {
  margin-top: 16px;
  font-weight: 700;
  color: var(--plum);
  font-size: 0.95rem;
}

/* Buy section */
.buy {
  background: var(--plum);
  color: var(--white);
  text-align: center;
  border-radius: var(--radius-lg);
  margin: 0 24px;
  padding: 64px 32px;
  position: relative;
  overflow: hidden;
}

.buy .container {
  max-width: 700px;
}

.buy h2 {
  color: var(--white);
  font-size: 2.4rem;
}

.buy p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
}

.price-tag {
  display: inline-block;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--sunshine);
  margin: 8px 0 24px;
}

.buy-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.buy .btn-primary {
  background: var(--sunshine);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(255, 201, 60, 0.35);
}

.buy-note {
  margin-top: 20px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Newsletter / footer */
footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 28px;
  margin-top: 72px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 12px;
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-links a {
  text-decoration: none;
  color: inherit;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--sunshine);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

/* Placeholder cover illustration */
.cover-illustration {
  width: 320px;
  height: 400px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
}

/* Responsive */
@media (max-width: 920px) {
  .hero .container,
  .about-grid,
  .author-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .review-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .author-grid {
    padding: 32px 24px;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .hero-cards {
    grid-template-columns: 1fr;
  }

  .buy {
    margin: 0 12px;
    padding: 48px 20px;
  }

  .buy h2 {
    font-size: 1.8rem;
  }
}
