/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --rose: #e11d74;
    --rose-deep: #c81e6b;
    --plum: #7c3aed;
    --peach: #ff8fab;
    --cream: #fff5f8;
    --lav: #f3ecff;
    --ink: #2a1a2e;
    --muted: #8b7a90;
    --white: #ffffff;
    --border: #f3d9e4;
    --shadow-sm: 0 2px 8px rgba(225, 29, 116, 0.06);
    --shadow-md: 0 10px 30px rgba(225, 29, 116, 0.12);
    --shadow-lg: 0 24px 60px rgba(124, 58, 237, 0.18);
    --grad-hero: linear-gradient(135deg, #ff9a9e 0%, #fecfef 45%, #a18cd1 100%);
    --grad-brand: linear-gradient(120deg, var(--rose), var(--plum));
}

body {
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.65;
    color: var(--ink);
    background:
        radial-gradient(1200px 500px at 100% -10%, #ffe3ef 0%, transparent 60%),
        radial-gradient(900px 500px at -10% 20%, #efe6ff 0%, transparent 55%),
        var(--cream);
    overflow-x: hidden;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 22px;
}

/* Floating hearts background */
.hearts {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.hearts span {
    position: absolute;
    bottom: -40px;
    font-size: 1.6rem;
    opacity: 0.5;
    animation: floatUp linear infinite;
}
.hearts span:nth-child(1){ left: 6%;  animation-duration: 15s; animation-delay: 0s;   font-size: 1.2rem; }
.hearts span:nth-child(2){ left: 18%; animation-duration: 19s; animation-delay: 3s;   }
.hearts span:nth-child(3){ left: 32%; animation-duration: 22s; animation-delay: 1s;   font-size: 1rem; }
.hearts span:nth-child(4){ left: 47%; animation-duration: 17s; animation-delay: 5s;   }
.hearts span:nth-child(5){ left: 60%; animation-duration: 20s; animation-delay: 2s;   font-size: 1.1rem; }
.hearts span:nth-child(6){ left: 72%; animation-duration: 24s; animation-delay: 6s;   }
.hearts span:nth-child(7){ left: 85%; animation-duration: 16s; animation-delay: 1.5s; font-size: 1.3rem; }
.hearts span:nth-child(8){ left: 93%; animation-duration: 21s; animation-delay: 4s;   font-size: 1rem; }
@keyframes floatUp {
    0%   { transform: translateY(0) rotate(0);      opacity: 0; }
    12%  { opacity: 0.55; }
    100% { transform: translateY(-108vh) rotate(280deg); opacity: 0; }
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1);
    transition-delay: var(--d, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 245, 248, 0.72);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .3s ease, border-color .3s ease;
}
.header.scrolled {
    box-shadow: var(--shadow-sm);
    border-color: var(--border);
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}
.logo { display: flex; align-items: center; gap: .55rem; }
.logo-mark {
    font-size: 1.5rem;
    display: inline-block;
    animation: beat 1.6s ease-in-out infinite;
}
@keyframes beat {
    0%,100% { transform: scale(1); }
    14% { transform: scale(1.22); }
    28% { transform: scale(1); }
    42% { transform: scale(1.16); }
}
.logo h1 {
    font-size: 1.35rem;
    font-weight: 700;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}
.nav-links a {
    position: relative;
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    font-size: .98rem;
    transition: color .25s ease;
}
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -6px;
    width: 0; height: 2px;
    background: var(--grad-brand);
    border-radius: 2px;
    transition: width .3s ease;
}
.nav-links a:hover { color: var(--rose); }
.nav-links a:hover::after { width: 100%; }

/* Hero */
.hero {
    position: relative;
    z-index: 1;
    padding: 4.5rem 0 5rem;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    gap: 2.5rem;
}
.hero-badge {
    display: inline-block;
    background: var(--white);
    color: var(--rose-deep);
    font-weight: 700;
    font-size: .85rem;
    padding: .45rem 1rem;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    margin-bottom: 1.2rem;
}
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    line-height: 1.12;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 1.1rem;
}
.grad-text {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-style: italic;
}
.hero-subtitle {
    font-size: 1.12rem;
    color: var(--muted);
    max-width: 34rem;
    margin-bottom: 1.8rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.btn {
    display: inline-block;
    font-weight: 700;
    font-size: 1rem;
    padding: .85rem 1.7rem;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn-primary {
    background: var(--grad-brand);
    color: var(--white);
    box-shadow: 0 10px 24px rgba(225,29,116,.32);
}
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 16px 32px rgba(225,29,116,.4); }
.btn-ghost {
    background: var(--white);
    color: var(--plum);
    border: 2px solid var(--border);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--plum); }
.hero-stats { display: flex; gap: 2.2rem; }
.stat { display: flex; flex-direction: column; }
.stat strong {
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--grad-brand);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { font-size: .85rem; color: var(--muted); }

/* Hero visual - book stack */
.hero-visual { display: flex; justify-content: center; }
.book-stack {
    position: relative;
    width: 280px;
    height: 320px;
}
.book {
    position: absolute;
    width: 150px;
    height: 200px;
    border-radius: 14px 20px 20px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.4rem;
    box-shadow: var(--shadow-lg);
    animation: sway 6s ease-in-out infinite;
}
.book.b1 { top: 20px;  left: 10px;  background: linear-gradient(160deg,#ff9a9e,#ff5f8f); transform: rotate(-10deg); z-index: 1; }
.book.b2 { top: 55px;  left: 70px;  background: linear-gradient(160deg,#c471f5,#8b5cf6); transform: rotate(4deg);  z-index: 2; animation-delay: .6s; }
.book.b3 { top: 100px; left: 130px; background: linear-gradient(160deg,#fbc2eb,#f472b6); transform: rotate(12deg); z-index: 3; animation-delay: 1.2s; }
@keyframes sway {
    0%,100% { transform: translateY(0) rotate(var(--r,0)); }
    50%     { transform: translateY(-14px) rotate(var(--r,0)); }
}
.book.b1 { --r: -10deg; }
.book.b2 { --r: 4deg; }
.book.b3 { --r: 12deg; }

/* Generic Section */
.section {
    position: relative;
    z-index: 1;
    padding: 4.5rem 0;
}
.section.alt {
    background: rgba(255,255,255,.6);
    backdrop-filter: blur(4px);
}
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: .6rem;
    color: var(--ink);
}
.section-subtitle {
    text-align: center;
    color: var(--muted);
    font-size: 1.08rem;
    margin-bottom: 3rem;
}

/* Book grid */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.8rem;
}
.book-card {
    display: flex;
    gap: 1.1rem;
    background: var(--white);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: transform .3s ease, box-shadow .3s ease;
}
.book-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.book-cover {
    flex-shrink: 0;
    width: 92px;
    height: 130px;
    border-radius: 8px 12px 12px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    color: #fff;
    box-shadow: 0 8px 18px rgba(0,0,0,.14);
    position: relative;
    overflow: hidden;
}
.book-cover::before {
    content: "";
    position: absolute; left: 8px; top: 0; bottom: 0;
    width: 3px; background: rgba(255,255,255,.35);
}
.cover-1 { background: linear-gradient(160deg,#ff6a88,#ff99ac); }
.cover-2 { background: linear-gradient(160deg,#7367f0,#a78bfa); }
.cover-3 { background: linear-gradient(160deg,#f6416c,#ff9a8b); }
.cover-4 { background: linear-gradient(160deg,#4facfe,#8f6ed5); }
.cover-5 { background: linear-gradient(160deg,#f79d65,#f4749a); }
.cover-6 { background: linear-gradient(160deg,#e05297,#b24592); }
.book-info { display: flex; flex-direction: column; }
.genre {
    align-self: flex-start;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--plum);
    background: var(--lav);
    padding: .2rem .6rem;
    border-radius: 999px;
    margin-bottom: .4rem;
}
.book-info h3 {
    font-size: 1.12rem;
    font-weight: 700;
    margin-bottom: .35rem;
    color: var(--ink);
}
.book-info p {
    font-size: .9rem;
    color: var(--muted);
    margin-bottom: auto;
}
.book-meta {
    display: flex;
    gap: .6rem;
    margin-top: .7rem;
    font-size: .8rem;
    font-weight: 700;
}
.rating { color: var(--rose-deep); }
.age {
    color: var(--plum);
    background: var(--lav);
    padding: .1rem .55rem;
    border-radius: 999px;
}

/* Age timeline */
.age-timeline {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
    padding-left: 1rem;
}
.age-timeline::before {
    content: "";
    position: absolute;
    left: 27px; top: 12px; bottom: 12px;
    width: 3px;
    background: linear-gradient(var(--rose), var(--plum));
    border-radius: 3px;
}
.age-item {
    display: flex;
    gap: 1.3rem;
    padding: 1rem 0;
    position: relative;
}
.age-dot {
    flex-shrink: 0;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--peach);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    z-index: 1;
    box-shadow: var(--shadow-sm);
    transition: transform .3s ease, border-color .3s ease;
}
.age-item:hover .age-dot { transform: scale(1.12); border-color: var(--plum); }
.age-body {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.1rem 1.4rem;
    flex: 1;
    box-shadow: var(--shadow-sm);
    transition: transform .3s ease, box-shadow .3s ease;
}
.age-item:hover .age-body { transform: translateX(6px); box-shadow: var(--shadow-md); }
.age-label {
    font-size: .78rem;
    font-weight: 700;
    color: var(--rose);
    text-transform: uppercase;
    letter-spacing: .05em;
}
.age-body h3 { font-size: 1.25rem; margin: .2rem 0 .3rem; }
.age-body p { font-size: .92rem; color: var(--muted); }

/* Quote marquee */
.quote-section { padding-bottom: 5rem; overflow: hidden; }
.marquee {
    margin-top: .5rem;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
    display: flex;
    gap: 1.2rem;
    width: max-content;
    animation: scrollX 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scrollX {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.quote-chip {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.1rem;
    white-space: nowrap;
    background: var(--white);
    border: 1px solid var(--border);
    padding: 1rem 1.6rem;
    border-radius: 999px;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

/* Reviews */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.6rem;
}
.review-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.6rem;
    box-shadow: var(--shadow-sm);
    transition: transform .3s ease, box-shadow .3s ease;
}
.review-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.review-stars { color: #f5a524; letter-spacing: .1em; margin-bottom: .6rem; }
.review-card p {
    font-size: 1rem;
    color: var(--ink);
    margin-bottom: 1.2rem;
    font-style: italic;
}
.reviewer { display: flex; align-items: center; gap: .7rem; }
.avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--lav);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
}
.reviewer strong { display: block; font-size: .95rem; }
.reviewer small { color: var(--muted); font-size: .8rem; }

/* CTA band */
.cta-band {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 4rem 0;
}
.cta-band .container {
    background: var(--grad-hero);
    border-radius: 28px;
    padding: 3.2rem 1.5rem;
    box-shadow: var(--shadow-lg);
}
.cta-band h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: .6rem;
    text-shadow: 0 2px 10px rgba(124,58,237,.25);
}
.cta-band p { color: rgba(255,255,255,.95); margin-bottom: 1.6rem; font-size: 1.05rem; }
.cta-band .btn-primary { background: #fff; color: var(--rose-deep); }
.cta-band .btn-primary:hover { color: var(--rose-deep); }

/* Footer */
.footer {
    position: relative;
    z-index: 1;
    background: linear-gradient(120deg, #3b1d3f, #2a1a2e);
    color: #fff;
    padding: 2.6rem 0;
}
.footer-content { text-align: center; }
.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: .6rem;
}
.footer-content p { margin-bottom: .4rem; opacity: .9; }
.footer-note { font-size: .85rem; opacity: .6; max-width: 30rem; margin: .4rem auto 0; }

/* Responsive */
@media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { order: -1; margin-bottom: 1rem; }
    .book-stack { transform: scale(.85); }
    .hero-title { font-size: 2.8rem; }
    .section-title { font-size: 2.1rem; }
}
@media (max-width: 560px) {
    .navbar { flex-direction: column; gap: .8rem; }
    .nav-links { gap: 1.1rem; flex-wrap: wrap; justify-content: center; font-size: .9rem; }
    .hero-title { font-size: 2.2rem; }
    .hero-stats { gap: 1.4rem; }
    .book-card { flex-direction: column; align-items: center; text-align: center; }
    .book-info { align-items: center; }
    .genre { align-self: center; }
    .cta-band h2 { font-size: 1.7rem; }
}

@media (prefers-reduced-motion: reduce) {
    .hearts span, .logo-mark, .book, .marquee-track { animation: none; }
    .reveal { transition: none; opacity: 1; transform: none; }
}
