:root {
  --bg: #f7f8fa;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #8b5cf6;
  --primary-dark: #7c3aed;
  --accent: #ec4899;
  --shadow: rgba(0,0,0,0.08);
  --book-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
  text-decoration: none;
}

.header .logo-text {
  color: var(--text);
}

.header.sticky .logo-text {
  color: var(--primary);
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.35rem;
  border-radius: .75rem;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
}
.btn--primary { background: var(--book-gradient); color: #fff; box-shadow: 0 6px 16px var(--shadow); transition: transform 0.2s, box-shadow 0.2s; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3); }
.btn--large { padding: 1.1rem 2rem; font-size: 1.1rem; }
.btn--secondary { background: #fff; color: var(--text); border: 1px solid #e5e7eb; }

.btn--pulse { animation: pulse 2.2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(14,165,233, 0.4); }
  70% { box-shadow: 0 0 0 14px rgba(14,165,233, 0); }
  100% { box-shadow: 0 0 0 0 rgba(14,165,233, 0); }
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; padding: .75rem 0; }
.header.sticky { background: #fff; box-shadow: 0 6px 16px var(--shadow); }
.logo { height: 40px; width: auto; display: inline-block; }

.nav__list { list-style: none; display: flex; gap: 1rem; padding: 0; margin: 0; }
.nav__list a { color: var(--text); text-decoration: none; font-weight: 600; }
.nav__toggle { display: none; background: #fff; border: 1px solid #e5e7eb; border-radius: .5rem; padding: .4rem .6rem; }
.header__cta { display: inline-flex; }

/* Hero */
.hero { position: relative; overflow: hidden; min-height: 70vh; display: flex; align-items: center; background: var(--book-gradient); }
.hero__content { width: 100%; position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding: 3rem 0; }
.hero__cover { text-align: center; }
.book-cover { width: 100%; max-width: 350px; height: auto; border-radius: 0.75rem; box-shadow: 0 12px 32px rgba(0,0,0,0.25); transition: transform 0.3s; }
.book-cover:hover { transform: scale(1.05); }
.hero__text { text-align: left; color: #fff; }
.hero__title { font-family: 'Playfair Display', serif; font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; margin: 0 0 1rem; text-shadow: 0 2px 20px rgba(0,0,0,.2); }
.hero__subtitle { font-size: clamp(1.2rem, 3vw, 1.8rem); margin: 0 0 0.5rem; opacity: 0.95; font-weight: 300; }
.hero__author { font-size: clamp(1rem, 2vw, 1.3rem); margin: 0 0 2rem; opacity: 0.9; }
.hero__cta { margin-top: 2rem; }
.hero__guarantee { margin-top: 1rem; font-size: 0.95rem; opacity: 0.9; line-height: 1.8; }
.hero__image { width: 100%; height: 52vh; object-fit: cover; object-position: center; display: block; opacity: 0; transform: translateY(-8px); }
.hero.loaded .hero__image { animation: fadeDown .8s ease forwards; }
.hero__overlay { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1rem; z-index: 2; }
@keyframes fadeDown { to { opacity: 1; transform: translateY(0); } }

/* Stats */
.stats { padding: 1.5rem 0 1rem; background: #fff; box-shadow: 0 6px 16px var(--shadow); }
.stats__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.stat { background: #fff; border: 1px solid #eef; border-radius: .75rem; padding: .9rem; }
.stat__label { color: var(--muted); font-size: .9rem; }
.stat__value { font-weight: 700; font-size: 1.25rem; }
.progress { height: 14px; background: #eef2f7; border-radius: 999px; overflow: hidden; margin-top: .75rem; }
.progress__bar { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); width: 0%; }

/* Description */
.description { padding: 2rem 0; }
.description h2 { margin: 0 0 .5rem; }

/* Steps */
.steps { padding: 1.5rem 0 2rem; }
.steps__header { margin-bottom: .75rem; }
.steps__header h2 { margin: 0; }
.steps__subtitle { color: var(--muted); margin: .25rem 0 1rem; }
.steps__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.step { background: #fff; border: 1px solid #eef; border-radius: .75rem; padding: 1rem; display: grid; grid-template-columns: auto 48px 1fr; align-items: start; gap: .75rem; box-shadow: 0 6px 16px var(--shadow); }
.step__num { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(90deg, var(--primary), var(--accent)); color: #fff; display: grid; place-items: center; font-weight: 700; }
.step__icon { width: 40px; height: 40px; }
.step__title { font-weight: 700; }
.step__desc { color: var(--muted); margin-top: .15rem; }
.trust { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.badge { display: inline-flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid #eef; border-radius: 999px; padding: .4rem .8rem; box-shadow: 0 6px 16px var(--shadow); }
.badge img { width: 20px; height: 20px; }

/* Gallery */
.gallery { padding: 1.5rem 0 2.5rem; }
.gallery__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.gallery__item { overflow: hidden; border-radius: .75rem; box-shadow: 0 6px 16px var(--shadow); transform: scale(.96); opacity: 0; }
.gallery__item.visible { animation: zoomIn .5s ease forwards; }
.gallery__item img { display: block; width: 100%; height: 220px; object-fit: cover; }
@keyframes zoomIn { to { opacity: 1; transform: scale(1); } }

/* Highlights */
.highlights { padding: 3rem 0; background: #f9fafb; }
.highlights h2 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 2.8rem); text-align: center; margin: 0 0 2rem; color: var(--primary); }
.highlights__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.highlight { background: #fff; padding: 2rem; border-radius: 1rem; text-align: center; box-shadow: 0 4px 12px var(--shadow); transition: transform 0.3s, box-shadow 0.3s; }
.highlight:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.highlight__icon { font-size: 3rem; margin-bottom: 1rem; }
.highlight h3 { font-size: 1.3rem; margin: 0 0 0.75rem; color: var(--primary); }
.highlight p { color: var(--muted); line-height: 1.6; margin: 0; }

/* Author */
.author { padding: 3rem 0; background: #fff; }
.author__content { max-width: 800px; margin: 0 auto; }
.author h2 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 2.8rem); text-align: center; margin: 0 0 2rem; color: var(--primary); }
.author__message { font-size: 1.1rem; line-height: 1.9; }
.author__message .quote { margin: 1.2rem 0; font-style: italic; color: #4b5563; }
.author__message strong { color: var(--primary); font-style: normal; }

/* Testimonials */
.testimonials { padding: 3rem 0; background: #f9fafb; }
.testimonials h2 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 2.8rem); text-align: center; margin: 0 0 2rem; color: var(--primary); }
.testimonials__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.testimonial { background: #fff; padding: 2rem; border-radius: 1rem; box-shadow: 0 4px 12px var(--shadow); }
.testimonial__stars { font-size: 1.2rem; margin-bottom: 1rem; }
.testimonial__text { font-style: italic; color: #4b5563; line-height: 1.7; margin: 0 0 1rem; }
.testimonial__author { font-weight: 600; color: var(--primary); margin: 0; }

/* Contribute */
.contribute { padding: 3rem 0; background: var(--book-gradient); }
.contribute__box { background: #fff; border-radius: 1rem; padding: 3rem 2rem; text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,0.15); max-width: 700px; margin: 0 auto; }
.contribute__box h2 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 2.5rem); margin: 0 0 1rem; color: var(--primary); }
.contribute__price { font-size: 1.5rem; margin: 1rem 0; }
.contribute__price strong { color: var(--primary); font-size: 2rem; }
.contribute__guarantees { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; margin-top: 2rem; }
.guarantee { font-size: 0.95rem; color: var(--muted); }

/* Footer */
.footer { background: #1f2937; color: #cbd5e1; padding: 2rem 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer p { margin: 0.25rem 0; }
.footer strong { color: #fff; }

/* Floating CTA Mobile */
.floating-cta { position: fixed; right: 1rem; bottom: 1rem; z-index: 60; display: none; }

/* (modal de compartilhamento removido) */

/* Responsive */
@media (max-width: 900px) {
  .stats__grid, .steps__grid, .gallery__grid { grid-template-columns: repeat(2,1fr); }
  .hero__image { height: 46vh; }
  .highlights__grid, .testimonials__grid { grid-template-columns: repeat(2,1fr); }
  .hero { min-height: 60vh; }
  .hero__grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero__text { text-align: center; }
  .story__grid { grid-template-columns: 1fr; gap: 2rem; }
  .story__image { order: -1; }
}
@media (max-width: 640px) {
  .logo { height: 34px; }
  .nav__toggle { display: inline-flex; }
  .nav__list { position: absolute; right: 4%; top: 60px; background: #fff; border: 1px solid #eee; border-radius: .5rem; padding: .5rem; display: none; flex-direction: column; box-shadow: 0 6px 16px var(--shadow); }
  .nav__list.open { display: flex; }
  .header__cta { display: none; }
  .stats__grid, .steps__grid, .gallery__grid { grid-template-columns: 1fr; }
  .highlights__grid, .testimonials__grid { grid-template-columns: 1fr; }
  .container { width: min(1000px, 94%); }
  .btn { padding: .95rem 1.4rem; font-size: 1rem; }
  .stat__value { font-size: 1.15rem; }
  .gallery__item img { height: 190px; }
  .floating-cta { display: inline-flex; }
  .hero { min-height: 50vh; }
  .hero__grid { padding: 2rem 0; }
  .hero__text { text-align: center; }
  .contribute__box { padding: 2rem 1.5rem; }
  .contribute__guarantees { flex-direction: column; gap: 0.75rem; }
  .footer__inner { flex-direction: column; text-align: center; }
}
.story { padding: 3rem 0; background: #fff; }
.story__content { max-width: 1200px; margin: 0 auto; }
.story h2 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 2rem; text-align: center; color: var(--primary); }
.story__grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3rem; align-items: start; }
.story__text { font-size: 1.1rem; line-height: 1.8; }
.story__text .lead { font-size: 1.3rem; font-weight: 500; color: var(--primary); margin-bottom: 1.5rem; }
.story__text p { margin: 1rem 0; }
.story__image { text-align: center; }
.book-index { width: 100%; max-width: 400px; height: auto; border-radius: 0.5rem; box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.carousel { padding: 1rem 0 2rem; }
.carousel__viewport { position: relative; overflow: hidden; border-radius: .75rem; box-shadow: 0 6px 16px var(--shadow); background: #fff; }
.carousel__track { display: flex; transition: transform .35s ease; }
.carousel__item { min-width: 100%; }
.carousel__item img { display: block; width: 100%; height: clamp(220px, 40vh, 420px); object-fit: contain; object-position: center; background: #fff; }
.carousel__btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.4); color: #fff; border: 0; border-radius: 999px; width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; }
.carousel__btn:hover { background: rgba(0,0,0,.6); }
.carousel__btn.prev { left: .5rem; }
.carousel__btn.next { right: .5rem; }
.carousel__dots { display: flex; gap: .4rem; justify-content: center; margin-top: .5rem; }
.carousel__dot { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; cursor: pointer; }
.carousel__dot.active { background: var(--primary); }