/* --- Variáveis e Tema --- */
:root {
  --primary: #0f172a;
  --primary-dark: #020617;
  --accent: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.5);
  --orange: #f97316;
  --text-main: #334155;
  --text-light: #94a3b8;
  --bg-body: #f8fafc;
  --white: #ffffff;

  --gradient-text: linear-gradient(135deg, #60a5fa 0%, #2dd4bf 100%);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
  --radius: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

h1,
h2,
h3,
h4 {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
  color: var(--primary);
}

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

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* --- ANIMAÇÕES DE SCROLL (REVEAL) --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Hero Section Dinâmica --- */
.hero {
  background-color: var(--primary);
  position: relative;
  padding: 100px 0 140px;
  overflow: hidden;
  color: var(--white);
}

/* Fundo animado (Blobs) */
.blob {
  position: absolute;
  background: var(--accent);
  filter: blur(80px);
  opacity: 0.4;
  border-radius: 50%;
  animation: moveBlob 10s infinite alternate;
}

.blob-1 {
  top: -10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: #4f46e5;
}

.blob-2 {
  bottom: 10%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: #06b6d4;
  animation-delay: -5s;
}

@keyframes moveBlob {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(20px, -20px) scale(1.1);
  }
}

/* Grid overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: white;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: #cbd5e1;
  margin-bottom: 2.5rem;
  max-width: 600px;
  font-weight: 300;
}

.hero-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  position: relative;
  z-index: 2;
}

/* Livro Flutuante com Reflexo */
.book-container {
  position: relative;
  perspective: 1000px;
}

.book-cover {
  width: 100%;
  max-width: 340px;
  border-radius: 8px;
  box-shadow:
    -20px 20px 40px rgba(0, 0, 0, 0.5),
    inset 2px 0px 5px rgba(255, 255, 255, 0.2);
  animation: float 6s ease-in-out infinite;
  transform: rotateY(-15deg);
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotateY(-15deg);
  }

  50% {
    transform: translateY(-15px) rotateY(-12deg);
  }
}

/* --- Botões --- */
.btn-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  gap: 8px;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.btn:hover {
  transform: translateY(-3px);
}

/* Botão Físico com Pulse */
.btn-physical {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
  box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7);
  animation: pulse-orange 2s infinite;
}

@keyframes pulse-orange {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(249, 115, 22, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
  }
}

/* Pausa a animação no hover para não tremer */
.btn-physical:hover {
  animation: none;
  box-shadow: 0 10px 20px rgba(234, 88, 12, 0.4);
}

.btn-amazon {
  background: #232f3e;
  color: #FF9900;
  border: 1px solid #3a4b5f;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

/* --- Cards Flutuantes (Glassmorphism Light) --- */
.cards-section {
  margin-top: -80px;
  position: relative;
  z-index: 10;
  padding-bottom: 80px;
}

.main-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 60px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.feature-item {
  padding: 30px;
  background: #f1f5f9;
  border-radius: 20px;
  transition: all 0.3s;
  border: 1px solid transparent;
}

.feature-item:hover {
  background: white;
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  border-color: var(--accent);
}

.icon-box {
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* --- Sumário Elegante --- */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 900px;
  margin: 0 auto;
}

.accordion-item {
  background: white;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: all 0.3s;
}

.accordion-item:hover {
  border-color: var(--accent);
}

.accordion-item.active {
  border-color: var(--accent);
  box-shadow: 0 5px 20px rgba(59, 130, 246, 0.1);
}

.accordion-header {
  padding: 24px 30px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chapter-title {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 600;
  color: var(--primary);
  font-size: 1.1rem;
}

.chapter-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  color: #e2e8f0;
  font-weight: 700;
  line-height: 1;
}

.accordion-item.active .chapter-num {
  color: var(--accent);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 30px;
  margin-left: 50px;
  /* Alinhado com o texto */
  color: #64748b;
}

.accordion-item.active .accordion-content {
  padding-bottom: 30px;
  max-height: 300px;
}

/* --- Autores --- */
.author-card {
  background: white;
  padding: 40px;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s;
}

.author-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.author-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(to bottom left, #f1f5f9 50%, transparent 50%);
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: #0077b5;
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}

.linkedin-link:hover {
  opacity: 0.8;
}

/* --- Footer --- */
footer {
  background: var(--primary-dark);
  color: #94a3b8;
  padding: 100px 0 50px;
  text-align: center;
  margin-top: 80px;
}

/* --- Mobile --- */
@media (max-width: 900px) {
  .hero-layout {
    flex-direction: column-reverse;
    text-align: center;
  }

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

  .hero p {
    margin: 0 auto 2.5rem;
  }

  .btn-group {
    justify-content: center;
  }

  .cards-section {
    margin-top: -40px;
    padding: 0 20px 60px;
  }

  .main-card {
    padding: 30px 20px;
  }

  .accordion-content {
    margin-left: 0;
  }

  .blob {
    opacity: 0.3;
  }
}
/* --- Utilities (Refactored from inline styles) --- */
.text-center { text-align: center; }
.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mb-50 { margin-bottom: 50px; }
.mt-10 { margin-top: 10px; }
.mt-60 { margin-top: 60px; }
.pb-100 { padding-bottom: 100px; }

.text-slate { color: #64748b; }
.text-white { color: white; }
.text-accent { color: var(--accent); }

.font-semibold { font-weight: 600; }
.text-sm { font-size: 0.95rem; }
.text-xs { font-size: 0.9rem; }
.opacity-50 { opacity: 0.5; }

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

.text-h2 { font-size: 2.5rem; }
.text-h3 { font-size: 1.8rem; }
