/* ===== RESET & VARIABLES ===== */
:root {
  --bg: #0b0c0e;
  --panel: #13151a;
  --panel-hover: #191c23;
  --text: #f0f1f3;
  --muted: #8b909a;
  --accent: #ffd23f;
  --accent-ink: #1a1a1a;
  --accent-glow: rgba(255, 210, 63, 0.08);
  --border: #1e2128;
  --border-light: #282c35;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  --radius: 14px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ===== LAYOUT ===== */
.container {
  width: min(1140px, 90vw);
  margin: 0 auto;
}
.narrow { width: min(760px, 90vw); }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(24px, 4vw, 36px); margin: 0 0 16px; font-weight: 800; }
h3 { font-size: clamp(16px, 2vw, 20px); font-weight: 700; }
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }
.link { color: var(--text); text-decoration: none; transition: color var(--transition); }
.link:hover { color: var(--accent); text-decoration: underline; }

/* ===== SECTION HEADERS ===== */
.section-header { max-width: 720px; margin-bottom: 40px; }
.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  line-height: 1.6;
  max-width: 640px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn:hover { background: var(--panel-hover); border-color: var(--border-light); transform: translateY(-1px); }
.btn--sm { padding: 8px 14px; font-size: 14px; }
.btn--lg { padding: 16px 28px; font-size: 17px; }
.btn--accent {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(255, 210, 63, 0.25);
}
.btn--accent:hover {
  filter: brightness(1.05);
  box-shadow: 0 6px 28px rgba(255, 210, 63, 0.35);
  transform: translateY(-2px);
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  background: rgba(11, 12, 14, 0.85);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand { font-weight: 800; font-size: 16px; letter-spacing: -0.01em; }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a { color: var(--muted); font-size: 14px; font-weight: 500; transition: color var(--transition); }
.nav a:hover { color: var(--text); }
.nav-toggle { display: none; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===== HERO ===== */
.hero {
  padding: clamp(48px, 8vw, 100px) 0 clamp(40px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 210, 63, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-eyebrow {
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
  line-height: 1.4;
}
.badge {
  display: inline-block;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}
.hero-copy .title {
  font-size: clamp(28px, 4.5vw, 48px);
  line-height: 1.08;
  margin: 0 0 18px;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.subtitle {
  color: var(--muted);
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.65;
  margin: 0 0 28px;
  max-width: 540px;
}
.cta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-follow { margin-top: 20px; font-size: 14px; }

.hero-art { display: grid; place-items: center; }
.cover { margin: 0; position: relative; }
.cover img {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 0;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.cover:hover img { transform: scale(1.02) translateY(-4px); }

/* ===== SECTIONS ===== */
.section { padding: clamp(56px, 8vw, 100px) 0; scroll-margin-top: 80px; }
.section.alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.015) 0%, transparent 60%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ===== PROBLEM CARDS ===== */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.problem-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.problem-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.problem-card:hover { border-color: var(--border-light); background: var(--panel-hover); }
.problem-card:hover::before { opacity: 1; }
.problem-number {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.problem-card h3 { margin-bottom: 10px; font-size: 18px; }
.problem-card p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0; }

/* ===== PROMISE CARDS ===== */
.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.promise-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  transition: all var(--transition);
}
.promise-card:hover { border-color: var(--border-light); transform: translateY(-3px); box-shadow: var(--shadow); }
.promise-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--accent-glow);
  border: 1px solid rgba(255, 210, 63, 0.15);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--accent);
}
.promise-card h3 { margin-bottom: 10px; }
.promise-card p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0; }

/* ===== REVEAL LIST (O que este livro revela) ===== */
.reveal-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 8px;
  counter-reset: reveal;
}
.reveal-list li {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 20px 20px 58px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  counter-increment: reveal;
  transition: all var(--transition);
}
.reveal-list li:hover { border-color: var(--border-light); background: var(--panel-hover); }
.reveal-list li::before {
  content: counter(reveal, decimal-leading-zero);
  position: absolute;
  left: 16px;
  top: 18px;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* ===== AUDIENCE GRID (Para quem é) ===== */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.audience-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: all var(--transition);
  position: relative;
}
.audience-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 20px; right: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition);
}
.audience-card:hover { border-color: var(--border-light); background: var(--panel-hover); }
.audience-card:hover::after { transform: scaleX(1); }
.audience-card h3 { font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--text); margin: 0; }

/* ===== ABOUT SECTION ===== */
.about-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 40px;
  align-items: center;
}
.about-photo img {
  width: 100%;
  border-radius: var(--radius);
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.3));
}
.about-copy p { color: var(--muted); line-height: 1.7; }
.about-copy h2 { color: var(--text); }

/* ===== CTA BAND ===== */
.cta-band {
  text-align: center;
  padding: clamp(56px, 8vw, 90px) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(255, 210, 63, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.cta-eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 10px; }
.cta-title { margin: 0 0 12px; font-size: clamp(24px, 4vw, 36px); }
.cta-sub { margin: 0 0 28px; color: var(--muted); max-width: 540px; margin-left: auto; margin-right: auto; font-size: 16px; line-height: 1.6; }
.cta-share { margin-top: 16px; color: var(--muted); font-size: 14px; }

/* ===== AUTHOR NOTE ===== */
.author-note {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
}
.author-note::before {
  content: '"';
  position: absolute;
  top: 16px;
  right: 28px;
  font-size: 72px;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.1;
  line-height: 1;
}
.author-note h2 { margin-bottom: 18px; }
.author-note p { margin: 12px 0; line-height: 1.7; }

/* ===== AUTHOR SECTION ===== */
.author-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
}
.author-photo img {
  width: 100%;
  border-radius: var(--radius);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.3));
}
.author-bio p { margin: 12px 0; color: var(--muted); line-height: 1.7; }
.author-bio h2 { color: var(--text); }

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 48px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.socials { display: flex; gap: 18px; }
.socials .with-icon { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); transition: color var(--transition); }
.socials .with-icon:hover { color: var(--text); }
.socials .with-icon .icon { width: 20px; height: 20px; display: inline-block; }
.socials .with-icon[aria-label="YouTube"] .icon { color: #ff0000; }
.fineprint { color: var(--muted); font-size: 13px; }

/* ===== FLOATING DOWNLOAD ===== */
.float-download {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  border-radius: 9999px;
  padding: 14px 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(255, 210, 63, 0.3);
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}
.float-download.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.float-download:hover { box-shadow: 0 12px 40px rgba(255, 210, 63, 0.4); transform: translateY(-2px); }

/* ===== SCROLL REVEAL ANIMATIONS ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .cover img { transition: none; }
  .float-download { opacity: 1; transform: none; pointer-events: auto; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1060px) {
  .promise-grid { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-art { order: -1; }
  .cover img { max-width: 380px; margin: 0 auto; }
  .hero-copy .title { font-size: clamp(26px, 5vw, 38px); }
  .subtitle { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .hero-follow { text-align: center; }
  .section-header { max-width: 100%; }

  .about-grid { grid-template-columns: 1fr; }
  .about-photo { text-align: center; }
  .about-photo img { max-width: 380px; margin: 0 auto; }

  .author-grid { grid-template-columns: 1fr; }
  .author-photo { text-align: center; }
  .author-photo img { max-width: 280px; margin: 0 auto; }

  .problem-grid { grid-template-columns: 1fr; }
  .reveal-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(11, 12, 14, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 20px;
    gap: 16px;
    backdrop-filter: blur(12px);
  }
  .nav-toggle { display: flex; }

  .audience-grid { grid-template-columns: 1fr; }
  .promise-grid { grid-template-columns: 1fr; }
  .hero-eyebrow { font-size: 16px; }

  .footer-inner { flex-direction: column; gap: 14px; text-align: center; }
  .socials { flex-direction: column; gap: 10px; }

  .float-download { right: 12px; bottom: 12px; padding: 12px 18px; font-size: 14px; }
}

/* ===== DESKTOP ENHANCEMENTS ===== */
@media (min-width: 1060px) {
  .hero-grid { grid-template-columns: 1fr 1.15fr; }
  .about-grid { grid-template-columns: 460px 1fr; }
  .audience-grid { grid-template-columns: repeat(4, 1fr); }
}
