/* ==========================================================================
   DESIGN SYSTEM - O QUINTO PRIMORDIAL (A CONCESSÃO DOS DEUSES & O JURAMENTO DO CAVALEIRO)
   Theme: Epic Dark High Fantasy (Celestial Gold, Glacial Frost & Cobalt Blue)
   ========================================================================== */

:root {
  --bg-void: #070a12;
  --bg-surface: #0e1424;
  --bg-surface-elevated: #161e33;
  --bg-glass: rgba(14, 20, 36, 0.75);
  
  --gold-primary: #dfb249;
  --gold-light: #f7d57f;
  --gold-glow: rgba(223, 178, 73, 0.4);

  --frost-blue: #70c5ff;
  --frost-glow: rgba(112, 197, 255, 0.35);

  --cobalt-blue: #2563eb;
  --cobalt-glow: rgba(37, 99, 235, 0.4);

  --crimson-amber: #e63946;
  --crimson-glow: rgba(230, 57, 70, 0.35);

  --text-main: #e8ecf4;
  --text-muted: #9aa5b9;
  --text-gold: #f3cf7a;

  --border-gold: rgba(223, 178, 73, 0.25);
  --border-glass: rgba(255, 255, 255, 0.08);

  --font-title: 'Cinzel Decorative', serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Outfit', sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition-fast: 0.25s ease;
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Global Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* Particle Canvas Background */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* Typography Utility */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

p {
  color: var(--text-muted);
}

a {
  color: var(--gold-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--gold-light);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-normal);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-primary {
  background: linear-gradient(135deg, #dfb249 0%, #b8861d 100%);
  color: #070a12;
  box-shadow: 0 4px 20px var(--gold-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(223, 178, 73, 0.6);
  color: #000;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: var(--border-gold);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(223, 178, 73, 0.15);
  border-color: var(--gold-primary);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, #ffd700 0%, #d4af37 100%);
  color: #000000;
  font-weight: 700;
}

.btn-full {
  width: 100%;
}

.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-glow:hover::after {
  opacity: 1;
}

/* Header & Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 16px 0;
  transition: var(--transition-normal);
  background: rgba(7, 10, 18, 0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
}

.navbar.scrolled {
  padding: 10px 0;
  background: rgba(7, 10, 18, 0.94);
  border-bottom: 1px solid var(--border-gold);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: #ffffff;
  font-weight: 700;
}

.brand-img-logo {
  height: 38px;
  width: auto;
  border-radius: 4px;
  border: 1px solid var(--border-gold);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  padding: 6px 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold-primary);
  transition: var(--transition-fast);
}

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

.highlight-link {
  color: var(--gold-light) !important;
  border: 1px solid var(--border-gold);
  padding: 6px 14px !important;
  border-radius: 20px;
  background: rgba(223, 178, 73, 0.08);
}

.highlight-link:hover {
  background: rgba(223, 178, 73, 0.2);
}

.highlight-link::after {
  display: none;
}

/* Audio Widget */
.audio-widget {
  display: flex;
  align-items: center;
  gap: 4px;
}

.audio-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-gold);
  border-radius: 20px 0 0 20px;
  color: var(--gold-primary);
  padding: 6px 12px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.audio-btn:hover {
  background: rgba(223, 178, 73, 0.15);
  box-shadow: 0 0 12px var(--gold-glow);
}

.audio-btn.playing {
  background: var(--gold-primary);
  color: #000;
}

.audio-next-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-gold);
  border-left: none;
  border-radius: 0 20px 20px 0;
  color: var(--gold-primary);
  padding: 6px 10px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.audio-next-btn:hover {
  background: rgba(223, 178, 73, 0.2);
  color: var(--gold-light);
  box-shadow: 0 0 12px var(--gold-glow);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Page Hero Header (Subpages) */
.page-hero {
  padding-top: 140px;
  padding-bottom: 40px;
  background: linear-gradient(180deg, rgba(14, 20, 36, 0.8) 0%, var(--bg-void) 100%);
  border-bottom: 1px solid var(--border-glass);
}

.page-hero-title {
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.page-hero-desc {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.15rem;
}

/* Section Header Common */
.section-header {
  margin-bottom: 50px;
}

.text-center {
  text-align: center;
}

.section-subtitle {
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--gold-primary);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.section-title span {
  color: var(--gold-primary);
  text-shadow: 0 0 20px var(--gold-glow);
}

.section-desc {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.divider-gold {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  color: var(--gold-primary);
  font-size: 1.2rem;
}

/* HERO SECTION */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 80px;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 30%, rgba(14, 20, 36, 0.4) 0%, rgba(7, 10, 18, 0.95) 80%);
  z-index: 1;
}

.hero-glow-gold {
  position: absolute;
  top: 15%;
  left: 20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(223, 178, 73, 0.15) 0%, transparent 70%);
  filter: blur(60px);
  z-index: 1;
}

.hero-glow-frost {
  position: absolute;
  bottom: 15%;
  right: 15%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(112, 197, 255, 0.12) 0%, transparent 70%);
  filter: blur(80px);
  z-index: 1;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(223, 178, 73, 0.1);
  border: 1px solid var(--border-gold);
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 2.8rem;
  line-height: 1.15;
  margin-bottom: 20px;
}

.title-sub {
  display: block;
  font-size: 0.9rem;
  letter-spacing: 4px;
  color: var(--gold-primary);
  font-weight: 400;
  margin-bottom: 8px;
}

.title-highlight {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.2rem;
  color: var(--text-gold);
  margin-top: 6px;
  font-weight: 400;
}

.hero-tagline {
  font-size: 1.15rem;
  font-family: var(--font-serif);
  color: var(--text-main);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  border-top: 1px solid var(--border-glass);
  padding-top: 24px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Hero Visual Book Frame */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.book-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius-md);
  padding: 12px;
  background: rgba(14, 20, 36, 0.4);
  border: 1px solid var(--border-gold);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px var(--gold-glow);
  transition: var(--transition-normal);
}

.book-frame:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 50px rgba(223, 178, 73, 0.5);
}

.book-cover-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  display: block;
}

/* VIDEO TRAILER SECTION */
.video-trailer-section {
  padding: 80px 0;
  background: var(--bg-surface);
}

.video-container-box {
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.official-video-player {
  width: 100%;
  height: auto;
  display: block;
}

/* SAGA / LORE SECTION */
.saga-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-void) 0%, var(--bg-surface) 50%, var(--bg-void) 100%);
  position: relative;
}

.saga-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
}

.saga-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 40px;
  position: relative;
  backdrop-filter: blur(10px);
}

.quote-symbol {
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: 0.8;
  color: var(--gold-primary);
  opacity: 0.3;
  position: absolute;
  top: 20px;
  left: 20px;
}

.lead-quote {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: #ffffff;
  line-height: 1.6;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.synopsis-body p {
  font-size: 1.05rem;
  margin-bottom: 18px;
  line-height: 1.8;
}

.saga-footer-quote {
  border-top: 1px solid var(--border-glass);
  padding-top: 20px;
  margin-top: 24px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold-light);
  text-align: center;
}

.saga-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lore-card {
  background: rgba(14, 20, 36, 0.6);
  padding: 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  transition: var(--transition-normal);
}

.lore-card:hover {
  transform: translateX(6px);
  background: rgba(22, 30, 51, 0.8);
}

.border-gold { border-left: 4px solid var(--gold-primary); }
.border-crimson { border-left: 4px solid var(--crimson-amber); }
.border-frost { border-left: 4px solid var(--frost-blue); }

.lore-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.lore-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.lore-card p {
  font-size: 0.95rem;
}

/* SPOTLIGHT GALLERY GRID */
.gallery-spotlight-section {
  padding: 90px 0;
}

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

.spotlight-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-normal);
}

.spotlight-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

.spotlight-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.spotlight-caption {
  padding: 16px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-main);
}

/* BOOK ONE SUBPAGE DETAILS */
.book-details-section {
  padding: 80px 0;
}

.book-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.book-detail-img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.book-detail-text h2 {
  font-size: 2.2rem;
  margin-top: 12px;
  margin-bottom: 20px;
}

.book-detail-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.badge-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.gold-badge {
  background: rgba(223, 178, 73, 0.2);
  color: var(--gold-light);
  border: 1px solid var(--gold-primary);
}

/* CONTOS GRID SUBPAGE */
.contos-section {
  padding: 80px 0;
}

.contos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.conto-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.conto-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-6px);
}

.conto-img-wrapper {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.conto-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.conto-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0,0,0,0.7);
  color: var(--gold-light);
  border: 1px solid var(--gold-primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
}

.conto-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.conto-content h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.conto-content p {
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.7;
}

.conto-content .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* PORTFOLIO MASONRY & TRAILERS */
.trailers-gallery-section {
  padding: 60px 0;
}

.trailers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.video-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.video-card h3 {
  font-size: 1.2rem;
  margin-top: 12px;
}

.portfolio-video {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  display: block;
}

.portfolio-gallery-section {
  padding: 60px 0;
}

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

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  height: 340px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(7, 10, 18, 0.95) 0%, transparent 100%);
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-size: 1.1rem;
}

/* AUTHOR PAGE GRID */
.autor-page-section {
  padding: 80px 0;
}

.author-page-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.author-photo-card img {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gold-primary);
  box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 30px var(--gold-glow);
}

.author-page-text h2 {
  font-size: 2.2rem;
  margin-top: 12px;
  margin-bottom: 20px;
}

.author-page-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.author-quote-box {
  margin-top: 24px;
  padding: 20px;
  background: rgba(223, 178, 73, 0.08);
  border-left: 4px solid var(--gold-primary);
  border-radius: var(--radius-sm);
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold-light);
  font-size: 1.15rem;
}

.author-actions-row {
  display: flex;
  gap: 16px;
}

.margin-top-30 { margin-top: 30px; }
.margin-top-40 { margin-top: 40px; }

/* DEGUSTAÇÃO READER SECTION */
.degustacao-section {
  padding: 80px 0;
  background: rgba(7, 10, 18, 0.8);
}

.reader-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.reader-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(14, 20, 36, 0.9);
  border-bottom: 1px solid var(--border-glass);
}

.reader-chapter-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--gold-primary);
}

.chapter-dropdown {
  background: var(--bg-void);
  color: var(--text-main);
  border: 1px solid var(--border-gold);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.reader-font-controls {
  display: flex;
  gap: 8px;
}

.font-btn, .theme-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.font-btn:hover, .theme-btn:hover {
  background: var(--gold-primary);
  color: #000;
}

.reader-paper {
  padding: 50px 60px;
  background: var(--bg-surface-elevated);
  transition: var(--transition-normal);
}

.reader-paper.light-mode {
  background: #f7f4ea;
  color: #1a1a1a;
}

.reader-paper.light-mode .reader-chapter-title {
  color: #2b1f0d;
}

.reader-paper.light-mode p {
  color: #333333;
}

.reader-paper.light-mode .reading-meta {
  color: #8b6d20;
}

.reader-chapter-header {
  text-align: center;
  margin-bottom: 36px;
}

.reading-meta {
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--gold-primary);
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}

.reader-chapter-title {
  font-size: 2rem;
  font-family: var(--font-serif);
}

.reader-text-body {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.9;
}

.reader-text-body p {
  margin-bottom: 24px;
  text-align: justify;
}

.dropcap-p::first-letter {
  font-family: var(--font-title);
  font-size: 3.5rem;
  float: left;
  line-height: 0.85;
  padding-right: 12px;
  padding-top: 4px;
  color: var(--gold-primary);
}

.reader-footer-actions {
  text-align: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-glass);
}

/* NEWSLETTER / INSCRIÇÃO SECTION */
.inscricao-section, .inscricao-page-section {
  padding: 90px 0;
  position: relative;
}

.subscription-card {
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-surface-elevated) 100%);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  text-align: center;
  position: relative;
}

.border-gold-glowing {
  border: 1px solid var(--gold-primary);
  box-shadow: 0 0 40px var(--gold-glow);
}

.card-badge {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--gold-light);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.sub-title {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.sub-description {
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.sub-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
  margin: 0 auto;
}

.form-group {
  position: relative;
}

.input-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: var(--gold-primary);
}

.form-input {
  width: 100%;
  padding: 16px 16px 16px 48px;
  background: var(--bg-void);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 1rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus {
  border-color: var(--gold-light);
  box-shadow: 0 0 12px var(--gold-glow);
}

.form-success-message {
  display: none;
  padding: 24px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid #22c55e;
  border-radius: var(--radius-sm);
  margin-top: 20px;
}

.form-success-message.active {
  display: block;
}

.success-icon {
  font-size: 2.5rem;
  color: #22c55e;
  margin-bottom: 10px;
}

.sub-guarantee {
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* FOOTER */
.footer {
  background: #030509;
  padding: 40px 0;
  border-top: 1px solid var(--border-glass);
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* RESPONSIVE DESIGN BREAKPOINTS */
@media (max-width: 1100px) {
  .spotlight-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio-masonry {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .hero-container, .book-detail-grid, .author-page-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .contos-grid, .trailers-grid {
    grid-template-columns: 1fr;
  }
  .hero-tagline {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions, .author-actions-row {
    justify-content: center;
  }
  .hero-meta {
    justify-content: center;
  }
  .saga-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border-gold);
    display: none;
  }
  .nav-menu.mobile-open {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-title, .page-hero-title {
    font-size: 2.2rem;
  }
  .spotlight-grid, .portfolio-masonry {
    grid-template-columns: 1fr;
  }
  .reader-paper {
    padding: 30px 20px;
  }
  .reader-toolbar {
    flex-direction: column;
    gap: 12px;
  }
}


/* ============================================================
   FORMULÁRIO MAILERLITE (tema O Quinto Primordial)
   ============================================================ */
.ml-form-embedContainer { width: 100%; box-sizing: border-box; }
.ml-form-embedContainer .ml-form-embedWrapper { background: transparent; max-width: 100%; width: 100%; }
.ml-form-embedContainer .ml-form-align-center { text-align: center; }
.ml-form-embedContainer .ml-form-embedContent { text-align: center; margin-bottom: 1rem; }
.ml-form-embedContainer .ml-form-embedContent h4 { font-family: var(--font-title); color: var(--gold-light); font-size: 1.5rem; margin: 0 0 .5rem 0; }
.ml-form-embedContainer .ml-form-embedContent p { color: var(--text-muted); font-family: var(--font-sans); font-size: 1rem; margin: 0; }
.ml-form-embedContainer .ml-form-formContent { margin-bottom: 1rem; }
.ml-form-embedContainer .ml-form-fieldRow { margin-bottom: .8rem; text-align: left; }
.ml-form-embedContainer .ml-form-fieldRow.ml-last-item { margin-bottom: 0; }
.ml-form-embedContainer input.form-control {
  width: 100%; box-sizing: border-box; padding: .95rem 1.1rem;
  background-color: rgba(255,255,255,.05); color: var(--text-main);
  border: 1px solid var(--border-gold); border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-size: 1rem; line-height: 1.4;
  transition: var(--transition-fast);
}
.ml-form-embedContainer input.form-control:focus { outline: none; border-color: var(--gold-primary); background-color: rgba(255,255,255,.08); }
.ml-form-embedContainer input.form-control::placeholder { color: var(--text-muted); }
.ml-form-embedContainer .ml-form-embedSubmit { margin-top: 1rem; position: relative; }
.ml-form-embedContainer .ml-form-embedSubmit button.primary {
  width: 100%; padding: .95rem 1rem; cursor: pointer; border: none;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
  color: #1a1205; border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-weight: 700; font-size: 1.05rem; letter-spacing: .02em;
  transition: var(--transition-fast);
}
.ml-form-embedContainer .ml-form-embedSubmit button.primary:hover { filter: brightness(1.08); box-shadow: 0 0 22px var(--gold-glow); }
.ml-form-embedContainer .ml-form-embedSubmit button.loading {
  display: none; width: 100%; padding: .95rem; border: none; border-radius: var(--radius-sm);
  background: var(--gold-primary); color: #1a1205; cursor: default;
}
.ml-form-embedSubmitLoad { display: inline-block; width: 20px; height: 20px; }
.ml-form-embedSubmitLoad:after {
  content: " "; display: block; width: 11px; height: 11px; margin: 1px auto; border-radius: 50%;
  border: 4px solid #1a1205; border-color: #1a1205 #1a1205 #1a1205 transparent;
  animation: ml-spin 1.1s linear infinite;
}
@keyframes ml-spin { 100% { transform: rotate(360deg); } }
.ml-form-embedContainer .ml-form-successContent { text-align: center; padding: 1rem 0; }
.ml-form-embedContainer .ml-form-successContent h4 { font-family: var(--font-title); color: var(--gold-light); font-size: 1.5rem; margin: 0 0 .5rem 0; }
.ml-form-embedContainer .ml-form-successContent p { color: var(--text-main); font-family: var(--font-sans); }
.ml-form-embedContainer .ml-error input.form-control { border-color: var(--crimson-amber); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }


/* Ajustes finos: imagens que cortavam a cabeça mostram o topo */
img[src*="003.jpeg"], img[src*="009.jpeg"], img[src*="010.jpeg"], img[src*="012.jpeg"], img[src*="023.jpeg"], img[src*="024.jpeg"] {
  object-position: top center !important;
}
/* Espaço acima da caixa "Um menino que não deveria existir" */
.cliffhanger-section { margin-top: 3rem; }


/* Vídeos verticais em tamanho confortável no PC (celular não muda) */
@media (min-width: 768px) {
  .video-container-box { max-width: 380px; }
  .portfolio-video { max-width: 300px; margin-left: auto; margin-right: auto; }
}

/* Botão secreto da Pedra do Destino (página do autor) */
.author-page-visual { text-align: center; }
.secret-stone-btn { display: block; width: 84px; margin: 1.5rem auto 0; opacity: .55; transition: opacity .3s ease, transform .3s ease, filter .3s ease; cursor: pointer; }
.secret-stone-btn img { width: 100%; height: auto; display: block; border-radius: 50%; }
.secret-stone-btn:hover { opacity: 1; transform: scale(1.06); filter: drop-shadow(0 0 16px var(--gold-glow)); }

/* Imagem da página de boas-vindas: 100% no celular, menor no PC */
.welcome-img { width: 100%; }
@media (min-width: 768px) {
  .welcome-img { width: auto; max-height: 360px; display: block; margin-left: auto; margin-right: auto; }
}
