/* ===================================================
   Oráculo Bíblico — Landing Page
   Versão otimizada: scroll fluido, mobile estável
   =================================================== */

:root {
  --bg: #070b18;
  --bg-2: #0d1630;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --text: #f7fbff;
  --muted: #aeb9cb;
  --muted-2: #7f8da4;
  --cyan: #03dce6;
  --cyan-2: #44e7ff;
  --gold: #e6b84d;
  --purple: #8b5cf6;
  --blue: #2b5cff;
  --border: rgba(255,255,255,.14);
  --shadow: 0 30px 100px rgba(0,0,0,.42);
  --radius: 28px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #050812 0%, #0a1022 48%, #060913 100%);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Camadas decorativas em div fixa — pintada UMA vez na GPU,
   sem repaint durante scroll. Substitui body::before/::after. */
.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  will-change: transform;
  contain: strict;
}
.page-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .38;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 74%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 74%);
}
.page-bg::after {
  content: "";
  position: absolute;
  inset: auto -20% -45% -20%;
  height: 55vh;
  background: radial-gradient(ellipse at center, rgba(3, 220, 230, .14), transparent 62%);
}

.page-glow-top {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 100vh;
  pointer-events: none;
  z-index: -3;
  will-change: transform;
  contain: strict;
  background:
    radial-gradient(circle at 12% 0%, rgba(3, 220, 230, .18), transparent 34rem),
    radial-gradient(circle at 86% 8%, rgba(139, 92, 246, .15), transparent 30rem),
    radial-gradient(circle at 50% 50%, rgba(230, 184, 77, .05), transparent 32rem);
}

a { color: inherit; text-decoration: none; }
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
button, input, textarea { font: inherit; }

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

/* ── Skip link ─────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 100;
  background: var(--cyan);
  color: #03101c;
  padding: 12px 16px;
  border-radius: 10px;
}
.skip-link:focus { left: 12px; }

/* ── Header ────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  background: rgba(5, 9, 20, .78);
  border-bottom: 1px solid rgba(255,255,255,.08);
  will-change: transform;
}
.header-inner {
  height: 82px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  font-weight: 900;
  letter-spacing: -.03em;
}
.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(3,220,230,.22));
}
.brand span { font-size: 18px; color: #fff; white-space: nowrap; }
.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
  color: #dce7f8;
  font-size: 14px;
}
.main-nav a { opacity: .82; transition: opacity .2s ease, color .2s ease; }
.main-nav a:hover { opacity: 1; color: var(--cyan); }
.header-cta {
  padding: 12px 18px;
  border: 1px solid rgba(3, 220, 230, .45);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(3, 220, 230, .07);
  box-shadow: inset 0 0 22px rgba(3,220,230,.08);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.nav-toggle { display: none; background: none; border: none; }

/* ── Hero ──────────────────────────────────────── */
.section-glow { position: relative; }
.section-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 68% 38%, rgba(3,220,230,.22), transparent 22rem),
    radial-gradient(circle at 22% 24%, rgba(230,184,77,.10), transparent 26rem);
  pointer-events: none;
}
.hero {
  padding: 78px 0 70px;
  min-height: calc(100vh - 82px);
  display: grid;
  align-items: center;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
  gap: 72px;
  align-items: center;
}

/* ── Tipografia ────────────────────────────────── */
.eyebrow {
  margin: 0 0 18px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 800;
}
h1, h2, h3 { margin: 0; letter-spacing: -.045em; }
h1 { font-size: clamp(42px, 7vw, 82px); line-height: .96; max-width: 860px; }
h2 { font-size: clamp(32px, 5vw, 58px); line-height: 1.02; }
h3 { font-size: 22px; line-height: 1.18; }
p { color: var(--muted); line-height: 1.75; }
.hero-lead {
  font-size: 18px;
  max-width: 650px;
  margin: 26px 0 0;
}

/* ── Botões ────────────────────────────────────── */
.hero-actions, .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-actions { margin-top: 34px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  color: #02131f;
  background: linear-gradient(135deg, var(--cyan), #7cf7ff 46%, #f0c35a 120%);
  box-shadow: 0 18px 46px rgba(3,220,230,.25);
}
.btn-ghost {
  color: #eef6ff;
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.16);
}

/* ── Tags (proof / principles / audience) ──────── */
.hero-proof {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-proof span, .principles span, .audience-list span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.055);
  color: #dce9f7;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
}

/* ── Hero Visual (Telefone) ────────────────────── */
.hero-visual {
  position: relative;
  min-height: 660px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.halo {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(3,220,230,.15), transparent 56%),
    conic-gradient(from 180deg, transparent, rgba(3,220,230,.36), rgba(139,92,246,.26), transparent);
  animation: rotateHalo 14s linear infinite;
  will-change: transform;
}
@keyframes rotateHalo { to { transform: rotate(1turn); } }

.phone {
  position: relative;
  overflow: hidden;
  background: #050812;
  border: 1px solid rgba(255,255,255,.17);
  box-shadow: var(--shadow), 0 0 0 1px rgba(3,220,230,.16);
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone-main {
  width: min(330px, 74vw);
  aspect-ratio: 738 / 1600;
  border-radius: 42px;
  padding: 10px;
}
.phone-main img { border-radius: 32px; }
.phone-bar {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 74px;
  height: 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.22);
  z-index: 2;
}

/* Cards flutuantes — background opaco, SEM backdrop-filter */
.floating-card {
  position: absolute;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(9, 16, 34, .90);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 20px 50px rgba(0,0,0,.30);
  font-weight: 900;
  color: #f7fbff;
  font-size: 13px;
  animation: floatCard 6s ease-in-out infinite;
}
.card-one { left: 0; top: 120px; animation-delay: 0s; }
.card-two { right: 10px; top: 185px; animation-delay: 1.5s; }
.card-three { left: 20px; bottom: 170px; animation-delay: 3s; }
.card-four { right: 0; bottom: 110px; animation-delay: 4.5s; }

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── Trust Strip ───────────────────────────────── */
.trust-strip { padding: 16px 0 60px; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.trust-grid article {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.11);
}
.trust-grid strong { display: block; font-size: 16px; margin-bottom: 6px; }
.trust-grid span { color: var(--muted); font-size: 14px; }

/* ── Sections ──────────────────────────────────── */
.section { padding: 90px 0; }
.section-heading { max-width: 780px; margin: 0 auto 44px; text-align: center; }
.section-heading.left { text-align: left; margin: 0; }
.section-heading p { margin: 18px 0 0; }

/* ── Cards (SEM backdrop-filter) ───────────────── */
.feature-card,
.article-card,
.theology-panel,
.quote-panel,
.cta-panel,
.gallery-grid figure {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.045));
  box-shadow: 0 24px 70px rgba(0,0,0,.23);
}

/* ── Features Grid ─────────────────────────────── */
.features-grid, .article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card {
  position: relative;
  min-height: 260px;
  padding: 30px;
  border-radius: var(--radius);
  overflow: hidden;
}
.feature-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -45% auto;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(3,220,230,.18), transparent 70%);
  pointer-events: none;
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: rgba(3,220,230,.12);
  color: var(--cyan);
  font-size: 25px;
  margin-bottom: 24px;
}
.feature-card p { margin: 16px 0 0; }

/* ── Theology ──────────────────────────────────── */
.theology {
  background:
    linear-gradient(90deg, rgba(3,220,230,.06), transparent),
    radial-gradient(circle at 20% 20%, rgba(230,184,77,.10), transparent 32rem);
}
.theology-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 22px;
  align-items: stretch;
}
.theology-panel, .quote-panel {
  border-radius: 34px;
  padding: 42px;
}
.theology-panel p { font-size: 17px; }
.principles { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.quote-panel { display: grid; place-items: center; text-align: center; }
.quote-panel img { width: 230px; filter: drop-shadow(0 0 42px rgba(3,220,230,.16)); }
.quote-panel blockquote { margin: 20px 0 0; font-size: 20px; line-height: 1.45; color: #eef6ff; }

/* ── App Section ───────────────────────────────── */
.app-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 62px;
  align-items: center;
}
.check-list { margin: 28px 0 32px; padding: 0; list-style: none; }
.check-list li {
  position: relative;
  padding-left: 30px;
  color: #d7e4f5;
  margin: 12px 0;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 900;
}

.showcase {
  min-height: 640px;
  position: relative;
  overflow: hidden;
}
.showcase .phone {
  position: absolute;
  border-radius: 34px;
  padding: 8px;
}
.showcase .phone img { border-radius: 26px; }
.showcase .large {
  width: 280px;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  z-index: 3;
}
.showcase .small { width: 220px; opacity: .92; }
.showcase .small:first-child { left: 0; top: 86px; transform: rotate(-5deg); }
.showcase .small:last-child { right: 0; top: 104px; transform: rotate(5deg); }

/* ── Gallery ───────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.gallery-grid figure {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  min-width: 0;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 738/1600;
  object-fit: cover;
}
.gallery-grid figcaption {
  padding: 12px 12px 14px;
  color: #eef6ff;
  font-size: 13px;
  text-align: center;
  font-weight: 800;
}

/* ── Audience ──────────────────────────────────── */
.audience { background: rgba(255,255,255,.025); }
.audience-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.audience-list { display: flex; flex-wrap: wrap; gap: 12px; }
.audience-list span { padding: 14px 18px; font-size: 15px; }

/* ── Articles ──────────────────────────────────── */
.article-card {
  padding: 30px;
  border-radius: var(--radius);
  min-height: 240px;
}
.article-card span {
  color: var(--gold);
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: .12em;
}
.article-card h3 { margin-top: 22px; }
.article-card p { margin-bottom: 0; }

/* ── CTA / Contato ─────────────────────────────── */
.cta { padding: 90px 0 100px; }
.cta-panel {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 42px;
  padding: 48px;
  border-radius: 38px;
  background:
    radial-gradient(circle at 20% 0%, rgba(3,220,230,.16), transparent 30rem),
    linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.052));
}
.contact-form { display: grid; gap: 14px; }
.contact-form label { display: grid; gap: 8px; color: #e9f4ff; font-weight: 700; }
.contact-form input, .contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  color: var(--text);
  padding: 14px 16px;
  outline: none;
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus {
  border-color: rgba(3,220,230,.7);
  box-shadow: 0 0 0 4px rgba(3,220,230,.12);
}
.form-note { margin: 0; font-size: 12px; color: var(--muted-2); }

/* ── Footer ────────────────────────────────────── */
.site-footer {
  border-top: 1px solid rgba(255,255,255,.09);
  background: rgba(1,4,12,.78);
  padding: 46px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
}
.site-footer img { width: 160px; margin-bottom: 18px; }
.site-footer p { max-width: 520px; margin: 0; }
.site-footer nav { display: grid; gap: 12px; color: #d5e4f6; }
.site-footer nav a:hover, .footer-bottom a:hover { color: var(--cyan); }
.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

/* ── Reveal Animations ─────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s cubic-bezier(.25,.46,.45,.94), transform .6s cubic-bezier(.25,.46,.45,.94);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Stagger em grids */
.features-grid .reveal:nth-child(2) { transition-delay: .08s; }
.features-grid .reveal:nth-child(3) { transition-delay: .16s; }
.features-grid .reveal:nth-child(4) { transition-delay: .24s; }
.features-grid .reveal:nth-child(5) { transition-delay: .32s; }
.features-grid .reveal:nth-child(6) { transition-delay: .40s; }

.gallery-grid .reveal:nth-child(2) { transition-delay: .06s; }
.gallery-grid .reveal:nth-child(3) { transition-delay: .12s; }
.gallery-grid .reveal:nth-child(4) { transition-delay: .18s; }
.gallery-grid .reveal:nth-child(5) { transition-delay: .24s; }
.gallery-grid .reveal:nth-child(6) { transition-delay: .30s; }

/* ── RESPONSIVO: Tablet ────────────────────────── */
@media (max-width: 1040px) {
  .header-cta { display: none; }
  .hero-grid, .app-grid, .theology-grid, .audience-grid, .cta-panel {
    grid-template-columns: 1fr;
  }
  .hero-visual { min-height: 600px; }
  .trust-grid, .features-grid, .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .showcase { min-height: 580px; }
}

/* ── RESPONSIVO: Mobile ────────────────────────── */
@media (max-width: 760px) {
  .container { width: min(100% - 28px, var(--container)); }
  .header-inner { height: 68px; }
  .brand img { width: 44px; height: 44px; }
  .brand span { font-size: 15px; }

  .nav-toggle {
    margin-left: auto;
    display: inline-grid;
    gap: 5px;
    width: 44px;
    height: 44px;
    place-content: center;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    border-radius: 14px;
    cursor: pointer;
  }
  .nav-toggle span { width: 20px; height: 2px; background: #fff; border-radius: 2px; display: block; }

  .main-nav {
    position: fixed;
    inset: 68px 14px auto 14px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 22px;
    background: rgba(7, 11, 24, .97);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    display: none;
    z-index: 60;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 12px; font-size: 16px; }

  .hero { padding: 40px 0 44px; min-height: auto; }
  .hero-grid { gap: 30px; }
  h1 { font-size: clamp(36px, 10vw, 54px); }
  h2 { font-size: clamp(28px, 8vw, 42px); }
  .hero-lead { font-size: 16px; }
  .btn { width: 100%; }

  .hero-visual {
    min-height: 460px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .phone-main { width: min(280px, 72vw); }
  .halo { width: 380px; height: 380px; }

  .floating-card { font-size: 11px; padding: 10px 12px; }
  .card-one { left: 4px; top: 60px; }
  .card-two { right: 4px; top: 120px; }
  .card-three { left: 4px; bottom: 120px; }
  .card-four { right: 4px; bottom: 60px; }

  .trust-grid, .features-grid, .article-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .theology-panel, .quote-panel, .cta-panel { padding: 24px; border-radius: 24px; }

  .showcase { min-height: 480px; }
  .showcase .large { width: 210px; }
  .showcase .small { width: 160px; }
  .showcase .small:first-child { left: 0; top: 120px; }
  .showcase .small:last-child { right: 0; top: 140px; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

/* ── RESPONSIVO: Small Mobile ──────────────────── */
@media (max-width: 420px) {
  .container { width: calc(100% - 20px); }
  .hero-proof { gap: 8px; }
  .hero-proof span { font-size: 11px; padding: 8px 10px; }
  .floating-card { font-size: 10px; padding: 8px 10px; max-width: 120px; text-align: center; }
  .phone-main { width: min(260px, 78vw); }

  .showcase .small { display: none; }
  .showcase .large { width: min(220px, 70vw); }
  .showcase { min-height: 380px; }

  .quote-panel img { width: 160px; }
  .quote-panel blockquote { font-size: 17px; }
}

/* ── Reduced Motion ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none !important; }
  .halo { animation: none; }
  .floating-card { animation: none; }
  .btn { transition: none; }
}
