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

:root {
  --bg-primary: #0f0f1a;
  --bg-secondary: #1a1a2e;
  --bg-card: #22223a;
  --text-primary: #e8e8e8;
  --text-secondary: #a0a0b8;
  --accent: #d4a843;
  --accent-hover: #e6bc5a;
  --success: #4a9d5a;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 1.1rem;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

/* === Hero === */
.hero {
  position: relative;
  padding: 6rem 0 5rem;
  overflow: hidden;
  background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 40%, #1f1a2e 60%, #0f0f1a 100%);
}

.hero-glow {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(212, 168, 67, 0.15) 0%, rgba(212, 168, 67, 0.06) 30%, transparent 60%);
  pointer-events: none;
}

.hero-layout {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.hero-cover-wrapper {
  flex-shrink: 0;
  perspective: 1000px;
  position: relative;
  transform-style: preserve-3d;
}

.hero-cover {
  height: 520px;
  width: auto;
  border-radius: 0 6px 6px 0;
  transform: rotateY(8deg) rotateX(2deg);
  box-shadow:
    -20px 30px 80px rgba(0, 0, 0, 0.7),
    0 0 100px rgba(212, 168, 67, 0.18),
    0 0 40px rgba(212, 168, 67, 0.1),
    5px 0 30px rgba(212, 168, 67, 0.06);
  transition: transform 0.4s ease;
  display: block;
}

.hero-cover-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 520px;
  background: linear-gradient(to right, #1a1410, #2a2018 40%, #3a2d20 70%, #2a2018);
  transform: rotateY(8deg) rotateX(2deg) translateX(-17px) rotateY(-90deg);
  transform-origin: right center;
  border-radius: 3px 0 0 3px;
  transition: transform 0.4s ease;
}

.hero-cover:hover {
  transform: rotateY(3deg) rotateX(1deg) translateY(-4px);
}

.hero-text {
  flex: 1;
}

.hero-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.hero h1 {
  font-size: 4rem;
  letter-spacing: 0.03em;
  margin-bottom: 0.2rem;
  color: var(--text-primary);
  line-height: 1.1;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-tagline {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-verse {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-secondary);
  border-left: 3px solid var(--accent);
  padding-left: 1.2rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-verse cite {
  display: block;
  font-size: 0.85rem;
  color: var(--accent);
  margin-top: 0.5rem;
  font-style: normal;
  font-family: var(--font-body);
}

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

.cta-link {
  font-size: 0.95rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(160, 160, 184, 0.3);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.cta-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* === CTA Button === */
.cta-button {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-primary);
  padding: 0.9rem 2.2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: background 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background: var(--accent-hover);
  color: var(--bg-primary);
  transform: translateY(-1px);
}

.cta-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.cta-secondary:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

/* === Sinopse === */
.sinopse {
  padding: 4rem 0;
}

.sinopse p {
  margin-bottom: 1.2rem;
  color: var(--text-secondary);
}

.sinopse p:last-child {
  margin-bottom: 0;
}

/* === JMM === */
.jmm {
  padding: 4rem 0;
}

.jmm-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(212, 168, 67, 0.3);
  border-radius: 12px;
  padding: 3rem 2.5rem;
  text-align: center;
}

.jmm-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.jmm-card h2 {
  margin-bottom: 1rem;
}

.jmm-card p {
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
}

.jmm-emphasis {
  color: var(--accent) !important;
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-top: 1rem;
}

/* === Get Book (unified download + donation) === */
.get-book {
  padding: 4rem 0;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

.get-book-intro {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.price-options {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.price-btn {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.price-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.price-btn.selected {
  border-color: var(--accent);
  background: rgba(212, 168, 67, 0.15);
  color: var(--accent);
  font-weight: 600;
}

.custom-amount {
  margin-bottom: 2rem;
}

.custom-amount label {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.custom-amount-input {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.custom-amount-input:focus-within {
  border-color: var(--accent);
}

.currency-prefix {
  padding: 0.6rem 0.8rem;
  color: var(--text-secondary);
  font-size: 1rem;
}

.custom-amount-input input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font-body);
  padding: 0.6rem 0.8rem 0.6rem 0;
  width: 80px;
  outline: none;
}

.buy-btn {
  font-size: 1.2rem;
  padding: 1.1rem 3rem;
}

.mp-notice {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-top: 0.8rem;
  opacity: 0.7;
}

/* === Autor === */
.autor {
  padding: 4rem 0;
  background: var(--bg-secondary);
}

.autor p {
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}

/* === Footer === */
.footer {
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}

.footer-copy {
  margin-top: 0.5rem;
}

/* === Loading state === */
.buy-btn.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* === Responsive === */
@media (max-width: 768px) {
  .hero {
    padding: 4rem 0 3rem;
  }

  .hero-layout {
    flex-direction: column;
    text-align: center;
    gap: 2.5rem;
  }

  .hero-cover {
    height: 380px;
    transform: rotateY(5deg) rotateX(1deg);
  }

  .hero-cover-wrapper::before {
    height: 380px;
    width: 14px;
    transform: rotateY(5deg) rotateX(1deg) translateX(-13px) rotateY(-90deg);
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-verse {
    text-align: left;
  }

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

  h2 {
    font-size: 1.6rem;
  }

  .jmm-card {
    padding: 2rem 1.5rem;
  }
}
