:root {
  --purple-dark: #0f0717;
  --purple-card: #221233;
  --purple-border: #4a226e;
  --gold-primary: #f3c669;
  --gold-hover: #ffd988;
  --text-light: #ece6f2;
  --text-muted: #bda8d1;
  --paper-bg: #fdfcf7;
  --paper-text: #2b261f;
  --author-bg: #2a2c30;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--purple-dark);
  color: var(--text-light);
  overflow-x: hidden;
}

/* Fundo de Vídeo Fixo */
.video-bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
}

#bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 7, 23, 0.55);
  z-index: -1;
}

/* Primeira Tela - Hero Container (Bloco 1) */
.hero-container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
}

.hero-card {
  background: rgba(34, 18, 51, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--purple-border);
  border-radius: 16px;
  max-width: 950px;
  width: 100%;
  padding: 40px;
  display: flex;
  gap: 40px;
  align-items: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.cover-wrapper {
  flex-shrink: 0;
}

.book-cover {
  width: 280px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.7);
  border: 1px solid rgba(243, 198, 105, 0.4);
}

/* Logo do Título em PNG */
.title-wrapper {
  margin-bottom: 20px;
}

.book-title-logo {
  max-width: 100%;
  height: auto;
  max-height: 110px;
  object-fit: contain;
}

.synopsis {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 12px;
}

/* Botões Duplos Dourados */
.cta-buttons {
  display: flex;
  gap: 15px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 24px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-primary), #d49e35);
  color: #0f0717;
  box-shadow: 0 4px 15px rgba(243, 198, 105, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-hover), var(--gold-primary));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243, 198, 105, 0.5);
}

/* --- ANIMAÇÕES DE ENTRADA ENCADEADAS --- */

/* 1. Capa deslizando da esquerda */
.animate-slide-left {
  opacity: 0;
  animation: slideInLeft 1s cubic-bezier(0.25, 1, 0.5, 1) 0.2s forwards;
}

/* 2. Logo do título caindo do topo */
.animate-drop-down {
  opacity: 0;
  animation: dropDown 0.9s cubic-bezier(0.25, 1, 0.5, 1) 0.6s forwards;
}

/* 3. Sinopse aparecendo em Fade */
.animate-fade-in {
  opacity: 0;
  animation: fadeIn 1s ease-out 1s forwards;
}

/* 4. Botões subindo do fundo */
.animate-slide-up {
  opacity: 0;
  animation: slideUp 0.8s ease-out 1.3s forwards;
}

/* Keyframes das Animações */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes dropDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Bloco 2: Leitor de Capítulo */
.reader-section {
  max-width: 900px;
  margin: 80px auto;
  padding: 0 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 30px;
}

.section-header h2 {
  font-family: 'Cinzel', serif;
  font-size: 2.2rem;
  color: var(--gold-primary);
}

.book-frame {
  background: var(--paper-bg);
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), inset 0 0 15px rgba(0,0,0,0.08);
  border: 1px solid #e0d9c8;
}

.book-page {
  max-height: 450px;
  overflow-y: auto;
  padding-right: 20px;
}

/* Barra de Rolagem */
.book-page::-webkit-scrollbar {
  width: 8px;
}
.book-page::-webkit-scrollbar-track {
  background: #eae2d0;
  border-radius: 4px;
}
.book-page::-webkit-scrollbar-thumb {
  background: #a89575;
  border-radius: 4px;
}

.chapter-text {
  font-family: 'Merriweather', serif;
  color: var(--paper-text);
  font-size: 0.98rem;
  line-height: 1.8;
}

.chapter-text p {
  margin-bottom: 16px;
  text-indent: 20px;
}

/* Bloco 3: Seção do Autor (Fundo Cinza + Borda Dourada) */
.author-section {
  max-width: 850px;
  margin: 80px auto;
  padding: 0 20px;
}

.author-card {
  background: rgba(42, 44, 48, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--gold-primary);
  border-radius: 12px;
  padding: 35px;
  display: flex;
  gap: 30px;
  align-items: center;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.author-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-primary);
  flex-shrink: 0;
}

.author-info h2 {
  font-family: 'Cinzel', serif;
  color: var(--gold-primary);
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.author-info p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #e0e0e0;
}

/* Rodapé */
footer {
  background: rgba(15, 7, 23, 0.95);
  border-top: 1px solid var(--purple-border);
  padding: 30px 20px;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.social-btn {
  color: var(--gold-primary);
  text-decoration: none;
  padding: 8px 20px;
  border: 1px solid var(--gold-primary);
  border-radius: 20px;
  transition: all 0.3s;
  font-size: 0.9rem;
}

.social-btn:hover {
  background: var(--gold-primary);
  color: var(--purple-dark);
}

.copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsividade Mobile */
@media (max-width: 768px) {
  .hero-card {
    flex-direction: column;
    text-align: center;
    padding: 25px;
  }
  .author-card {
    flex-direction: column-reverse;
    text-align: center;
    padding: 25px;
  }
  .book-cover {
    width: 200px;
  }
  .cta-buttons {
    justify-content: center;
    flex-direction: column;
  }
  .author-photo {
    width: 120px;
    height: 120px;
  }
}