/* ==========================================================================
   BIBLIOTECA DO AUTOR — ESTILOS PRINCIPAIS
   Design refinado para autores de thriller, mistério e horror psicológico.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,400;1,600&display=swap');

/* --- VARIÁVEIS DE DESIGN --- */
:root {
  --font-serif: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-editorial: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Paleta Noturna & Elegante */
  --bg-deep: #07090d;
  --bg-primary: #0a0d13;
  --bg-surface: #10141d;
  --bg-card: #151a24;
  --bg-card-hover: #1b212e;
  --bg-glass: rgba(13, 17, 25, 0.78);
  --bg-modal: #0e1219;

  /* Cores de Acento */
  --gold-300: #fae4a7;
  --gold-400: #f5dc8a;
  --gold-500: #d4af37;
  --gold-600: #b58d22;
  --gold-700: #8c6a12;
  --gold-gradient: linear-gradient(135deg, #fae4a7 0%, #d4af37 50%, #9e7a1d 100%);
  --gold-gradient-hover: linear-gradient(135deg, #ffffff 0%, #f5dc8a 50%, #d4af37 100%);
  --gold-glow: rgba(212, 175, 55, 0.28);
  --gold-border: rgba(212, 175, 55, 0.22);

  --wine-accent: #7b1e38;
  --wine-glow: rgba(123, 30, 56, 0.35);

  /* Texto */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #8392a5;
  --text-inverse: #090c12;

  /* Espaçamento e Transições */
  --container-max: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 12px 35px rgba(212, 175, 55, 0.25);
  --shadow-book: -8px 12px 25px rgba(0, 0, 0, 0.65), 0 0 15px rgba(0, 0, 0, 0.5);
}

/* --- RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  line-height: 1.68;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Fundo atmosférico global com névoa sutil */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: 
    radial-gradient(circle at 15% 20%, rgba(123, 30, 56, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(212, 175, 55, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(15, 23, 42, 0.3) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
}

button, input {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* --- TIPOGRAFIA DECORATIVA --- */
.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.serif-title {
  font-family: var(--font-serif);
  letter-spacing: 0.04em;
  font-weight: 700;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold-400);
  font-weight: 600;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.95rem;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 50px;
}

.section-tag::before {
  content: "♦";
  font-size: 0.7rem;
  color: var(--gold-400);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem auto;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  font-weight: 300;
}

/* --- HEADER FIXO & NAVEGAÇÃO --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: all 0.35s ease;
  padding: 1.25rem 0;
}

.site-header.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-gold);
  padding: 0.85rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

.logo-badge {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-gradient);
  color: var(--bg-deep);
  border-radius: 8px;
  font-weight: 900;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px var(--gold-glow);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold-gradient);
  transition: width 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-400);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  border: 1px solid var(--gold-500);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-400);
  background: rgba(212, 175, 55, 0.06);
}

.header-cta:hover {
  background: var(--gold-gradient);
  color: var(--bg-deep);
  box-shadow: 0 4px 15px var(--gold-glow);
  transform: translateY(-1px);
}

/* Botão Hamburguer Mobile */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-primary);
  z-index: 102;
}

.menu-toggle svg {
  width: 28px;
  height: 28px;
  stroke: var(--text-primary);
}

/* --- HERO SECTION --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 5rem 0;
  overflow: hidden;
}

.hero-bg-accent {
  position: absolute;
  top: 15%;
  right: -5%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.09) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 4rem;
}

.hero-content {
  max-width: 620px;
}

.hero-subtitle {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--gold-400);
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-subtitle-line {
  width: 40px;
  height: 1.5px;
  background: var(--gold-gradient);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.4rem;
  line-height: 1.12;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2.25rem;
  font-weight: 300;
}

.hero-quote-box {
  border-left: 2px solid var(--gold-500);
  padding-left: 1.25rem;
  margin-bottom: 2.5rem;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Botões Genéricos Reutilizáveis */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.85rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--gold-gradient);
  color: var(--bg-deep);
  box-shadow: 0 6px 20px var(--gold-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.4);
  background: var(--gold-gradient-hover);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold-500);
  color: var(--gold-400);
  transform: translateY(-2px);
}

.btn-hotmart {
  background: var(--gold-gradient);
  color: #0b0d13;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 5px 18px var(--gold-glow);
}

.btn-hotmart:hover {
  background: var(--gold-gradient-hover);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.45);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
}

/* Vitrine Visual na Hero (Composição de Livros) */
.hero-showcase {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}

.hero-book-stack {
  position: relative;
  width: 340px;
  height: 480px;
}

.hero-book-card {
  position: absolute;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-book);
  transition: transform 0.5s ease, z-index 0.3s ease;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: #080a0f;
  cursor: pointer;
}

.hero-book-card.book-1 {
  width: 230px;
  height: 345px;
  top: 40px;
  left: -20px;
  z-index: 1;
  transform: rotate(-9deg);
  opacity: 0.88;
}

.hero-book-card.book-2 {
  width: 240px;
  height: 240px;
  bottom: 25px;
  right: -25px;
  z-index: 2;
  transform: rotate(8deg);
  opacity: 0.95;
}

.hero-book-card.book-3 {
  width: 240px;
  height: 360px;
  top: 15px;
  left: 45px;
  z-index: 3;
  transform: rotate(0deg);
  box-shadow: 0 18px 45px rgba(0,0,0,0.85), 0 0 25px rgba(212, 175, 55, 0.3);
}

.hero-book-stack:hover .hero-book-card.book-1 {
  transform: rotate(-13deg) translateX(-15px) scale(0.98);
  opacity: 1;
}

.hero-book-stack:hover .hero-book-card.book-2 {
  transform: rotate(12deg) translateX(15px) scale(1.02);
  opacity: 1;
}

.hero-book-stack:hover .hero-book-card.book-3 {
  transform: scale(1.04) translateY(-8px);
}

.hero-book-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Efeito lombada realista */
.book-spine-effect::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.5), rgba(255,255,255,0.15) 30%, rgba(0,0,0,0.3) 100%);
  pointer-events: none;
  z-index: 5;
}

/* --- SEÇÃO ESTANTE DE LIVROS --- */
.bookshelf-section {
  padding: 6rem 0;
  position: relative;
}

/* Abas de Categorias / Gêneros Literários */
.category-tabs-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
}

.category-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.35rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.category-tab-btn:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.35);
  color: var(--gold-300);
  transform: translateY(-2px);
}

.category-tab-btn.active {
  background: var(--gold-gradient);
  color: #0b0e14;
  border-color: var(--gold-500);
  font-weight: 700;
  box-shadow: 0 4px 18px var(--gold-glow);
  transform: translateY(-2px);
}

.tab-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.category-tab-btn.active .tab-counter {
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-weight: 700;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  transition: opacity 0.3s ease;
}

.book-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  position: relative;
}

.book-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold-border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(212, 175, 55, 0.12);
  background: var(--bg-card-hover);
}

.book-card-header {
  position: relative;
  padding: 2rem 1.5rem 1rem 1.5rem;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, transparent 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 350px;
}

.book-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-300);
  border: 1px solid var(--gold-500);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  z-index: 6;
  backdrop-filter: blur(4px);
}

.book-cover-wrap {
  position: relative;
  width: auto;
  max-width: 250px;
  height: 320px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-book);
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-card:hover .book-cover-wrap {
  transform: scale(1.03);
  box-shadow: -10px 16px 30px rgba(0, 0, 0, 0.75), 0 0 20px var(--gold-glow);
}

.book-cover-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

.book-card-body {
  padding: 1.75rem 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.book-genre {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-400);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.book-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.book-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 1.15rem;
}

.book-short-synopsis {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.book-card-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.book-card-actions .btn {
  flex: 1;
}

/* Espaço para futuro livro / placeholder */
.future-book-card {
  border: 1px dashed rgba(212, 175, 55, 0.35);
  background: rgba(16, 20, 29, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  min-height: 480px;
}

.future-book-content {
  max-width: 320px;
}

.future-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  color: var(--gold-400);
}

.future-icon svg {
  width: 28px;
  height: 28px;
}

/* --- SEÇÃO SOBRE O AUTOR --- */
.author-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-surface) 50%, var(--bg-primary) 100%);
  position: relative;
}

.author-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4.5rem;
  align-items: center;
}

.author-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.author-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius-xl);
  padding: 10px;
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.3) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
}

.author-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: top center;
  border-radius: calc(var(--radius-xl) - 6px);
  display: block;
}

.author-badge-floating {
  position: absolute;
  bottom: -15px;
  right: 15px;
  background: var(--bg-surface);
  border: 1px solid var(--gold-500);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.author-badge-floating svg {
  width: 24px;
  height: 24px;
  color: var(--gold-400);
}

.author-badge-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-400);
  font-weight: 700;
}

.author-badge-sub {
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 600;
}

.author-content {
  max-width: 650px;
}

.author-lead {
  font-size: 1.25rem;
  color: var(--text-primary);
  font-family: var(--font-editorial);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.author-bio p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-size: 1.02rem;
  line-height: 1.75;
}

.author-bio p strong {
  color: var(--gold-300);
}

.author-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.pillar-icon {
  color: var(--gold-400);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.pillar-text h4 {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.pillar-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0;
}

/* --- SEÇÃO DE DEPOIMENTOS --- */
.testimonials-section {
  padding: 6rem 0;
  position: relative;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.testimonial-card:hover {
  border-color: rgba(212, 175, 55, 0.25);
  transform: translateY(-4px);
}

.rating-stars {
  display: flex;
  gap: 0.3rem;
  color: var(--gold-400);
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.testimonial-text {
  color: var(--text-secondary);
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.reader-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--gold-400);
  font-size: 0.95rem;
}

.reader-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.reader-book {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- SEÇÃO NEWSLETTER / CONTATO --- */
.newsletter-section {
  padding: 6rem 0;
  position: relative;
}

.newsletter-box {
  background: radial-gradient(circle at 50% 0%, rgba(123, 30, 56, 0.25) 0%, var(--bg-card) 75%);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-xl);
  padding: 4rem 2.5rem;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(212, 175, 55, 0.08);
  position: relative;
  overflow: hidden;
}

.newsletter-box h3 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.newsletter-box p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto 2.5rem auto;
}

.newsletter-form {
  display: flex;
  max-width: 520px;
  margin: 0 auto;
  gap: 0.75rem;
}

.newsletter-input {
  flex: 1;
  padding: 0.95rem 1.5rem;
  background: rgba(8, 11, 17, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.newsletter-input:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 15px var(--gold-glow);
}

.newsletter-form .btn {
  white-space: nowrap;
}

.newsletter-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
  display: block;
}

/* --- FOOTER --- */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4.5rem 0 2.5rem 0;
  position: relative;
  z-index: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand h4 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
  max-width: 380px;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.social-btn:hover {
  background: var(--gold-gradient);
  color: var(--bg-deep);
  border-color: var(--gold-500);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px var(--gold-glow);
}

.social-btn svg {
  width: 18px;
  height: 18px;
}

.footer-nav h5 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-400);
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.footer-nav ul li {
  margin-bottom: 0.75rem;
}

.footer-nav ul a {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.footer-nav ul a:hover {
  color: var(--gold-400);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hotmart-disclaimer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.hotmart-disclaimer svg {
  width: 16px;
  height: 16px;
  color: var(--gold-500);
}

/* --- MODAL DE SINOPSE COMPLETA --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 5, 8, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-modal);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px var(--gold-glow);
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  background: var(--wine-accent);
  color: #fff;
  border-color: transparent;
  transform: rotate(90deg);
}

.modal-body {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2.5rem;
  padding: 3rem;
}

.modal-book-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-cover-wrap {
  width: 100%;
  max-width: 270px;
  height: 350px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-book);
  margin-bottom: 1.5rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
}

.modal-cover-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}

.modal-specs-box {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-size: 0.85rem;
}

.modal-specs-box h5 {
  color: var(--gold-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.spec-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.spec-line span:first-child {
  color: var(--text-muted);
}

.modal-content-col {
  display: flex;
  flex-direction: column;
}

.modal-genre-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-400);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.modal-book-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.modal-book-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.modal-quote {
  border-left: 2px solid var(--gold-500);
  background: rgba(212, 175, 55, 0.04);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
}

.modal-synopsis-text {
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 1rem;
  margin-bottom: 2rem;
}

.modal-synopsis-text p {
  margin-bottom: 1.2rem;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.tag-pill {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-cta-area {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Toast de Notificação */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--gold-500);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px var(--gold-glow);
  color: var(--text-primary);
  font-size: 0.9rem;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-notice svg {
  width: 20px;
  height: 20px;
  color: var(--gold-400);
  flex-shrink: 0;
}

/* --- RESPONSIVIDADE (MOBILE-FIRST ADAPTATIONS) --- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-subtitle {
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-quote-box {
    text-align: left;
  }

  .author-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .author-visual {
    order: -1;
  }

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

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-surface);
    border-left: 1px solid var(--gold-border);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem 2rem;
    gap: 1.75rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
    transition: right 0.4s ease;
    z-index: 101;
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-link {
    font-size: 1.15rem;
  }

  .header-cta {
    display: none;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 1.9rem;
  }

  .modal-body {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }

  .modal-cover-wrap {
    max-width: 180px;
  }

  .modal-book-title {
    font-size: 1.75rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .author-pillars {
    grid-template-columns: 1fr;
  }

  .book-card-actions {
    flex-direction: column;
  }

  .book-card-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.1rem;
  }

  .hero-book-stack {
    width: 250px;
    height: 380px;
  }

  .hero-book-card {
    width: 220px;
    height: 340px;
  }

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