:root {
  --azul: #4a90e2;
  --azul-alt: #3498db;
  --roxo: #9b59b6;
  --dourado: #f1c40f;
  --dourado-alt: #e67e22;
  --bg: #0b1220;
  --bg-soft: #020617;
  --texto: #111827;
  --texto-claro: #f9fafb;
  --sombra-suave: 0 18px 45px rgba(15, 23, 42, 0.55);
  --raio: 20px;
  --transition: 0.25s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Montserrat", "Open Sans", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(155, 89, 182, 0.18), transparent 55%),
    radial-gradient(circle at bottom right, rgba(74, 144, 226, 0.18), transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 1));
  color: var(--texto-claro);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  animation: appFadeIn 0.8s ease-out;
}

/* Global page-level containment to avoid horizontal overflow from long strings */
html, body {
  overflow-x: hidden;
}

/* Ensure code/pre elements wrap (in case raw JS or long URLs are accidentally rendered) */
pre, code {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  flex: 1;
  padding: 24px 16px 96px;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
}

/* ---------- Animações base ---------- */
@keyframes appFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatSoft {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Utilitárias de reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- HERO / TOPO SAAS ---------- */
.hero {
  position: relative;
  border-radius: 30px;
  padding: 26px 26px 22px;
  color: var(--texto-claro);
  box-shadow: var(--sombra-suave);
  overflow: hidden;
  background:
    radial-gradient(circle at 0% 0%, rgba(241, 196, 15, 0.16), transparent 60%),
    radial-gradient(circle at 100% 0%, rgba(52, 152, 219, 0.4), transparent 55%),
    linear-gradient(135deg, #020617 0%, #020617 35%, #0f172a 100%);
  border: 1px solid rgba(148, 163, 184, 0.4);
  animation: fadeInScale 0.9s ease-out;
}

/* Ensure grid children can shrink and prevent any horizontal overflow */
.hero-inner,
.hero-grid,
.hero-grid > * {
  min-width: 0;
}

/* Extra safety for metadata */
.hero-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.hero-metadata .meta-item {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at 0 0,
    rgba(248, 250, 252, 0.14),
    transparent 55%
  );
  mix-blend-mode: screen;
  opacity: 0.7;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 10px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.8);
  font-size: 0.73rem;
  color: #e5e7eb;
}

.hero-badge-pill {
  font-size: 0.7rem;
  color: #9ca3af;
}

.hero-badge-pill strong {
  color: var(--dourado);
}

.hero-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: radial-gradient(circle at 30% 10%, #fef9c3, #facc15, #ea580c);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(234, 88, 12, 0.7);
  font-size: 0.9rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.1fr;
  gap: 20px;
  align-items: center;
  margin-top: 12px;
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: 2.1rem;
  line-height: 1.1;
  color: #fef9c3;
  text-shadow: 0 0 42px rgba(0, 0, 0, 0.9);
  margin-bottom: 6px;
}

.hero-title span.highlight {
  color: var(--dourado);
}

.hero-subtitle {
  font-size: 0.96rem;
  max-width: 95%;
  color: #e5e7eb;
  opacity: 0.9;
}

.hero-tagline {
  margin-top: 14px;
  font-size: 0.82rem;
  background: radial-gradient(circle at 0% 0%, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.8));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.hero-tagline span.icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 0, #fef3c7, #f59e0b, #b45309);
  font-size: 0.9rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.hero-cta {
  border-radius: 999px;
  border: none;
  padding: 9px 16px;
  background: linear-gradient(135deg, var(--azul-alt), var(--roxo));
  color: white;
  font-size: 0.86rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.55);
  transition: transform var(--transition), box-shadow var(--transition),
    filter var(--transition);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.7);
  filter: brightness(1.03);
}

.hero-cta-secondary {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 8px 14px;
  background: rgba(15, 23, 42, 0.7);
  color: #e5e7eb;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-metadata {
  margin-top: 10px;
  font-size: 0.74rem;
  color: #9ca3af;
}

.hero-metadata strong {
  color: #e5e7eb;
}

/* Make metadata items wrap cleanly on small screens and hide separators when space is tight */
.hero-metadata {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hero-metadata .meta-sep {
  display: inline-block;
  color: #9ca3af;
  margin: 0 6px;
}

/* Prevent metadata items from forcing horizontal overflow */
.hero-metadata {
  width: 100%;
  min-width: 0;
}
.hero-metadata .meta-item {
  min-width: 0; /* allow items to shrink below content width */
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 520px) {
  .hero-metadata {
    gap: 6px;
    font-size: 0.72rem;
  }
  .hero-metadata .meta-sep {
    display: none; /* hide separators on narrow screens to avoid awkward wrapping */
  }
}

.hero-image-wrapper {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.75);
  animation: floatSoft 6s ease-in-out infinite;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    145deg,
    rgba(15, 23, 42, 0.7) 0%,
    rgba(15, 23, 42, 0.35) 40%,
    transparent 70%
  );
}

.hero-cross {
  position: absolute;
  left: 14px;
  top: 14px;
  width: 30px;
  height: 44px;
  border-radius: 999px;
  border: 2px solid rgba(248, 250, 252, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.95;
  backdrop-filter: blur(6px);
}

.hero-cross::before,
.hero-cross::after {
  content: "";
  position: absolute;
  background: rgba(248, 250, 252, 0.95);
  border-radius: 999px;
}

.hero-cross::before {
  width: 3px;
  height: 24px;
}

.hero-cross::after {
  width: 16px;
  height: 3px;
}

.hero-label {
  position: absolute;
  right: 14px;
  bottom: 14px;
  font-size: 0.72rem;
  background: linear-gradient(135deg, #facc15, #eab308, #fb923c);
  color: #422006;
  padding: 5px 11px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(234, 179, 8, 0.9);
}

/* ---------- SEÇÕES PRINCIPAIS / CARDS ---------- */
section {
  margin-top: 24px;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 1.32rem;
  margin-bottom: 10px;
  color: #e5e7eb;
}

/* Cards “conteúdo” / “comunidade” em estilo painel SaaS */
#home-section > section,
#content-section,
#community-section {
  background: radial-gradient(circle at 0% 0%, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.93));
  border-radius: 24px;
  padding: 20px 18px 22px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.6);
  backdrop-filter: blur(28px);
}

#content-section,
#community-section {
  margin-top: 28px;
}

/* Texto base */
#home-section p,
#content-section p,
#community-section p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #e5e7eb;
}

/* Global safety: ensure long unbroken strings (URLs, pasted code) wrap and don't overflow containers */
h1, h2, h3, h4, h5, p, li, span, a, .ebook-content, .module-body, .hero-subtitle {
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}

/* Ensure module cards and content areas don't force overflow */
.module-img, .module-body, .ebook-hero-img, .hero-image-wrapper, .hero-grid {
  min-width: 0;
}

/* Benefícios */
.benefits-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

.benefit {
  background: radial-gradient(circle at 0 0, rgba(37, 99, 235, 0.25), rgba(15, 23, 42, 0.96));
  border-radius: 16px;
  padding: 10px 10px 10px 12px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(59, 130, 246, 0.45);
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition), background var(--transition);
}

.benefit:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.95);
  border-color: rgba(129, 140, 248, 0.9);
  background: radial-gradient(circle at 0 0, rgba(129, 140, 248, 0.4), rgba(15, 23, 42, 0.97));
}

.benefit-icon {
  width: 28px;
  height: 28px;
  border-radius: 11px;
  background: radial-gradient(circle at 30% 0, #fef3c7, #f97316, #7c2d12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.benefit-text {
  font-size: 0.8rem;
  color: #e5e7eb;
}

.verse-box {
  margin-top: 16px;
  background: radial-gradient(circle at top left, rgba(248, 250, 252, 0.06), #020617);
  border-radius: 18px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(250, 204, 21, 0.7);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.95);
  position: relative;
  overflow: hidden;
}

.verse-box::before {
  content: "“";
  position: absolute;
  font-family: "Playfair Display", serif;
  font-size: 4.8rem;
  color: rgba(250, 250, 249, 0.12);
  top: -30px;
  right: 16px;
}

.verse-ref {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #facc15;
  margin-bottom: 3px;
}

.verse-text {
  font-size: 0.86rem;
  font-style: italic;
  color: #f9fafb;
}

.home-phrase {
  margin-top: 16px;
  font-size: 0.88rem;
  text-align: center;
  color: #cbd5f5;
}

.home-phrase strong {
  color: #facc15;
}

/* ---------- GRADE DE MÓDULOS ---------- */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.module-card {
  background: radial-gradient(circle at 0 0, rgba(59, 130, 246, 0.18), rgba(15, 23, 42, 0.97));
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(59, 130, 246, 0.5);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition), translate var(--transition), background var(--transition);
  position: relative;
}

.module-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 1);
  border-color: rgba(196, 181, 253, 0.9);
  background: radial-gradient(circle at 0 0, rgba(196, 181, 253, 0.36), rgba(15, 23, 42, 0.98));
}

.module-card::after {
  content: "Ver módulo";
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 0.7rem;
  color: rgba(191, 219, 254, 0.98);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.module-card:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.module-img {
  height: 96px;
  overflow: hidden;
}

.module-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 0.4s ease;
}

.module-card:hover .module-img img {
  transform: scale(1.09);
}

.module-body {
  padding: 10px 10px 12px;
}

.module-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #e5e7eb;
  margin-bottom: 4px;
}

.module-desc {
  font-size: 0.78rem;
  color: #cbd5f5;
}

/* ---------- DETALHE / EBOOK ---------- */
.module-detail {
  display: none;
  margin-top: 10px;
}

.module-detail.active {
  display: block;
}

.ebook-wrapper {
  background: radial-gradient(circle at 0 0, rgba(37, 99, 235, 0.28), rgba(15, 23, 42, 0.98));
  border-radius: 22px;
  padding: 18px 16px 20px;
  box-shadow: 0 26px 60px rgba(15, 23, 42, 1);
  border: 1px solid rgba(129, 140, 248, 0.85);
  animation: fadeUp 0.5s ease-out;
}

.ebook-header {
  text-align: center;
  margin-bottom: 12px;
}

.ebook-title {
  font-family: "Playfair Display", serif;
  font-size: 1.45rem;
  color: #f9fafb;
  margin-bottom: 6px;
}

.ebook-sub {
  font-size: 0.8rem;
  color: #cbd5f5;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: radial-gradient(circle at 0 0, rgba(37, 99, 235, 0.3), rgba(15, 23, 42, 0.96));
  color: #e5e7eb;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  margin-top: 6px;
  border: 1px solid rgba(129, 140, 248, 0.9);
}

.tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--azul), var(--roxo));
}

.ebook-hero-img {
  margin: 14px 0;
  border-radius: 16px;
  overflow: hidden;
  max-height: 230px;
}

.ebook-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ebook-content p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 10px;
  color: #e5e7eb;
}

.ebook-content h3 {
  font-size: 1rem;
  margin-top: 14px;
  margin-bottom: 6px;
  color: #e5e7eb;
  position: relative;
  padding-left: 10px;
}

.ebook-content h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--azul), var(--roxo));
}

.ebook-content ul,
.ebook-content ol {
  margin: 4px 0 10px 20px;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.ebook-content li + li {
  margin-top: 4px;
}

.verse-highlight {
  margin: 10px 0;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.22), rgba(15, 23, 42, 0.95));
  border-radius: 16px;
  padding: 10px 12px;
  border: 1px dashed rgba(250, 204, 21, 0.9);
}

.verse-highlight p {
  margin: 0;
  font-style: italic;
  font-size: 0.85rem;
  color: #fefce8;
}

.verse-highlight span {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: right;
  color: #facc15;
}

.ebook-back {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.btn-ghost {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  padding: 6px 12px;
  background: rgba(15, 23, 42, 0.8);
  color: #e5e7eb;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition),
    box-shadow var(--transition), border-color var(--transition);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.9);
}

.btn-ghost span.icon {
  font-size: 0.9rem;
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.96);
  transform: translateY(-1px);
  border-color: rgba(191, 219, 254, 0.9);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 1);
}

.btn-primary {
  border-radius: 999px;
  border: none;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--azul-alt), var(--roxo));
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin-top: 12px;
  box-shadow: 0 16px 38px rgba(37, 99, 235, 0.9);
  transition: transform var(--transition), box-shadow var(--transition),
    filter var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(37, 99, 235, 1);
  filter: brightness(1.03);
}

/* ---------- COMUNIDADE ---------- */
.card-comunidade {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border: none;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 14px 32px rgba(22, 163, 74, 0.9);
  margin-top: 8px;
}

.whatsapp-btn span.icon {
  font-size: 1.1rem;
}

.community-highlight {
  margin-top: 12px;
  font-size: 0.8rem;
  color: #e5e7eb;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.community-highlight-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: radial-gradient(circle at 0 0, rgba(59, 130, 246, 0.6), rgba(15, 23, 42, 1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* ---------- NAV INFERIOR (MOBILE APP) ---------- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: radial-gradient(circle at 0 0, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 1));
  backdrop-filter: blur(20px);
  box-shadow: 0 -14px 40px rgba(15, 23, 42, 1);
  z-index: 100;
  border-top: 1px solid rgba(148, 163, 184, 0.6);
}

.bottom-nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  padding: 8px 12px 10px;
}

.nav-item {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  color: #9ca3af;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 999px;
  transition: background var(--transition), color var(--transition),
    transform var(--transition), box-shadow var(--transition);
}

.nav-item-icon {
  font-size: 1.05rem;
}

.nav-item.active {
  background: radial-gradient(circle at 0 0, rgba(59, 130, 246, 0.4), rgba(15, 23, 42, 0.98));
  color: #e5e7eb;
  font-weight: 700;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 1);
}

.nav-item span.label {
  font-size: 0.75rem;
}

.hidden {
  display: none !important;
}

/* ---------- RESPONSIVIDADE ---------- */
@media (max-width: 768px) {
  main {
    padding-inline: 12px;
  }

  .hero-grid {
    grid-template-columns: 1.1fr 1fr;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .modules-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .hero {
    padding: 20px 16px 18px;
  }

  .hero-title {
    font-size: 1.72rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-image-wrapper {
    order: -1;
    max-height: 220px;
    margin-bottom: 8px;
  }

  .benefits-list {
    grid-template-columns: 1fr;
  }

  .modules-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1024px) {
  main {
    padding-top: 34px;
  }

  .hero {
    padding: 30px 32px 24px;
  }

  #home-section > section,
  #content-section,
  #community-section {
    padding: 22px 22px 26px;
  }

  .modules-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}


