/* =========================================================
   IEP - Igreja do Evangelho Pleno
   Estilos Fase 1. Mobile-first (base pensada para 380px).
   Paleta: preto #0A0A0C / azul #3D6EFF / painel #141416
           texto #F5F5F7 / cinza #8B8D93
   Tipografia: Anton (titulos) + Inter (corpo)
   ========================================================= */

:root {
  --bg: #0A0A0C;
  --panel: #141416;
  --blue: #3D6EFF;
  --blue-soft: rgba(61, 110, 255, 0.14);
  --text: #F5F5F7;
  --muted: #8B8D93;
  --line: rgba(245, 245, 247, 0.09);
  --line-strong: rgba(245, 245, 247, 0.16);
  --title: 'Anton', 'Arial Narrow', sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --maxw: 1160px;
  /* Curvas de animacao (inspiradas em gsap/motion): */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);        /* easeOutQuint: entradas suaves */
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);      /* transicoes gerais */
  --spring: cubic-bezier(0.34, 1.4, 0.5, 1);      /* leve overshoot nos hovers */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--blue); color: #fff; }

a { color: inherit; text-decoration: none; }
img, svg, iframe { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- Reveal (IntersectionObserver) ----------
   Os reveals so ficam escondidos quando o JS assume o controle
   (classe .js no <html>). Sem JS, tudo aparece normalmente. */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Botoes ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
              border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), opacity 0.25s;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 24px rgba(61, 110, 255, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(61, 110, 255, 0.42); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-block { width: 100%; }

/* ---------- Marca ---------- */
.brand-mark { flex-shrink: 0; width: 34px; height: auto; }
.hero-marca {
  position: absolute;
  top: 50%;
  right: -4%;
  transform: translateY(-52%);
  width: min(56vh, 480px);
  height: auto;
  opacity: 0.045;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.footer-logo { width: 224px; max-width: 70vw; height: auto; opacity: 0.95; }

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease),
              border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-text {
  font-family: var(--title);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  line-height: 1;
}
.nav-links { display: none; gap: 30px; align-items: center; }
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links .nav-cta {
  color: var(--text);
  border: 1px solid var(--line-strong);
  padding: 8px 18px;
  border-radius: 999px;
}
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Toggle mobile */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  margin: 0 auto;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 0;
  background: rgba(10, 10, 12, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: max-height 0.4s var(--ease);
}
.nav-mobile.open { max-height: 320px; border-bottom: 1px solid var(--line); }
.nav-mobile a {
  padding: 16px 22px;
  font-size: 1.05rem;
  border-top: 1px solid var(--line);
  color: var(--text);
}
.nav-mobile a:first-child { border-top: none; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 0 80px;
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.hero::after {
  /* leve vinheta para o texto respirar sobre as particulas */
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at 50% 60%, transparent 30%, rgba(10, 10, 12, 0.55) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 22px;
}
.hero-title {
  font-family: var(--title);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: 0.01em;
  font-size: clamp(3.1rem, 15vw, 8.5rem);
  text-transform: uppercase;
}
.hero-title .line { display: block; }
.hero-title .accent { color: var(--blue); }
.hero-sub {
  margin-top: 26px;
  max-width: 30rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
}
.mouse {
  display: block;
  width: 24px; height: 38px;
  border: 2px solid var(--line-strong);
  border-radius: 14px;
  position: relative;
}
.wheel {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--blue);
  border-radius: 2px;
  animation: wheel 1.6s infinite;
}
@keyframes wheel {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(12px); }
}

/* ============ SECTIONS ============ */
.section { padding: 84px 0; }
.section-alt { background: var(--panel); }
.section-title {
  font-family: var(--title);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
  font-size: clamp(2rem, 8vw, 3.4rem);
}
.section-lead {
  margin-top: 16px;
  color: var(--muted);
  max-width: 34rem;
  font-size: 1.02rem;
}

/* ---------- Sobre ---------- */
.about-grid {
  margin-top: 36px;
  display: grid;
  gap: 34px;
}
.about-text p { color: var(--muted); margin-bottom: 16px; }
.about-text p:last-child { margin-bottom: 0; }
.verse {
  border-left: 3px solid var(--blue);
  padding: 6px 0 6px 22px;
}
.verse p { font-size: 1.1rem; line-height: 1.6; color: var(--text); }
.verse cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--blue);
}

/* ---------- Pilares ---------- */
.pillars {
  margin-top: 36px;
  list-style: none;
  border-top: 1px solid var(--line);
}
.pillar {
  display: flex;
  gap: 20px;
  padding: 26px 4px;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.3s var(--ease);
}
.pillar:hover { padding-left: 12px; }
.pillar-num {
  font-family: var(--title);
  font-size: 1.4rem;
  color: var(--blue);
  line-height: 1.2;
  flex-shrink: 0;
  min-width: 42px;
}
.pillar-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.pillar-body p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Cards grids ---------- */
.cards-2, .cards-3, .cards-4, .cards-lideranca {
  margin-top: 36px;
  display: grid;
  gap: 16px;
}

/* Horarios */
.time-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.section-alt .time-card { background: var(--bg); }
.time-card:hover {
  transform: translateY(-6px);
  border-color: var(--blue);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}
.time-label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.time-big {
  font-family: var(--title);
  font-size: 2.6rem;
  color: var(--blue);
  line-height: 1;
}
.time-day { color: var(--text); font-weight: 500; }

/* Lideranca */
.leader-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.section-alt .leader-card { background: var(--bg); }
.leader-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-family: var(--title);
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.leader-card h3 { font-size: 1.15rem; font-weight: 600; }
.leader-role {
  display: block;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 4px 0 10px;
}
.leader-card p { color: var(--muted); font-size: 0.95rem; }

/* Card de lideranca com foto real */
.leader-destaque {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding: 32px 26px;
}
.leader-foto {
  position: relative;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--line-strong);
  background: var(--blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.leader-iniciais {
  font-family: var(--title);
  font-size: 2.4rem;
  color: var(--blue);
  line-height: 1;
}
/* Camada da foto: se o arquivo nao existir, nada pinta e as iniciais aparecem */
.leader-foto::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/pastor-rafael-quadrada.jpg');
  background-size: cover;
  background-position: center 22%;
}
.leader-destaque .leader-info p { max-width: 34rem; margin: 0 auto; }
.leader-destaque .avatar { margin-bottom: 0; width: 128px; height: 128px; font-size: 2.4rem; }

/* ---------- Celulas (carrossel) ---------- */
.celulas-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 8px;
}
.carrossel-nav { display: flex; gap: 10px; flex-shrink: 0; }
.carrossel-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), opacity 0.25s;
}
.carrossel-btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.carrossel-btn:disabled { opacity: 0.35; cursor: default; }
.carrossel-btn:disabled:hover { background: transparent; border-color: var(--line-strong); color: var(--text); }

.carrossel {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carrossel::-webkit-scrollbar { display: none; }

.celula-card {
  flex: 0 0 auto;
  width: 78%;
  max-width: 300px;
  scroll-snap-align: start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.celula-card:hover { transform: translateY(-4px); border-color: var(--blue); }
.celula-foto {
  position: relative;
  aspect-ratio: 4 / 3;
  /* fundo de fallback: simbolo da igreja centralizado */
  background:
    var(--foto, none) center / cover no-repeat,
    url('assets/logo-simbolo.png') center / 44% no-repeat,
    var(--bg);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.celula-fallback {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(10, 10, 12, 0.55);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
/* Quando a foto real existe, ela cobre o simbolo e escondemos o aviso */
.celula-card[style*="assets/celula"] .celula-foto { }
.celula-info { padding: 18px 20px 22px; }
.celula-info h3 { font-size: 1.1rem; font-weight: 600; }
.celula-dia {
  display: block;
  margin-top: 4px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* Comunidade */
.min-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 22px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.min-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  background: linear-gradient(180deg, var(--panel), rgba(61, 110, 255, 0.06));
}
.min-card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.min-card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Visite-nos ---------- */
.visit-grid {
  display: grid;
  gap: 40px;
}
.info-list {
  list-style: none;
  margin: 28px 0;
  border-top: 1px solid var(--line);
}
.info-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.info-key {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.info-val { color: var(--text); }
.map-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}
.map { width: 100%; height: 240px; border: 0; filter: grayscale(0.2) contrast(1.05); }

/* Formulario */
.visit-form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 22px;
}
.section-alt .visit-form { background: var(--bg); }
.form-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 20px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--text);
}
.field label .opt { color: var(--muted); font-weight: 400; }
.field input,
.field textarea {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(139, 141, 147, 0.7); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.field.invalid input { border-color: #ff5c72; }
.field-error {
  display: block;
  color: #ff8a98;
  font-size: 0.8rem;
  margin-top: 6px;
  min-height: 0;
}
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 4px 0 20px;
  cursor: pointer;
}
.checkbox input { margin-top: 3px; accent-color: var(--blue); width: 17px; height: 17px; flex-shrink: 0; }
.form-note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}
.form-feedback {
  margin-top: 12px;
  font-size: 0.92rem;
  text-align: center;
  min-height: 1.2em;
}
.form-feedback.success { color: #4ade80; }
.form-feedback.error { color: #ff8a98; }

/* Estado carregando do botao */
.btn-spinner {
  display: none;
  width: 17px; height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn.loading { opacity: 0.85; pointer-events: none; }
.btn.loading .btn-label { display: none; }
.btn.loading .btn-spinner { display: inline-block; }

/* ============ FOOTER ============ */
.footer {
  background: var(--panel);
  border-top: 1px solid var(--line);
  padding: 48px 0 40px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: center;
  align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--muted); transition: color 0.25s; }
.footer-links a:hover { color: var(--blue); }
.footer-endereco { color: var(--muted); font-size: 0.9rem; }
.info-link { color: var(--text); transition: color 0.25s; }
.info-link:hover { color: var(--blue); }
.footer-copy { color: var(--muted); font-size: 0.82rem; }

/* ============ WhatsApp flutuante ============ */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float.hidden { transform: translateY(90px); opacity: 0; pointer-events: none; }

/* ============ Breakpoints ============ */
@media (max-width: 719px) {
  /* marca d agua menor e mais discreta no celular */
  .hero-marca { width: 78vw; right: -22vw; opacity: 0.035; }
}

@media (min-width: 720px) {
  .cards-2 { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .cards-lideranca { max-width: 640px; }
  .leader-destaque { flex-direction: row; text-align: left; gap: 26px; }
  .leader-destaque .leader-info p { margin: 0; }
  .about-grid { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
  .section { padding: 100px 0; }
}

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
  .visit-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .map { height: 300px; }
  .wa-float { width: 60px; height: 60px; right: 26px; bottom: 26px; }
}

@media (min-width: 1100px) {
  .pillars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
  }
  .pillar:nth-last-child(-n+2) { }
}

/* =========================================================
   MELHORIAS DE UX / ANIMACAO (Fase 1.1)
   Tudo em JS/CSS puro. Curvas inspiradas em gsap/motion.
   Respeita prefers-reduced-motion.
   ========================================================= */

/* ---------- Barra de progresso de leitura ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--blue), #7aa0ff);
  box-shadow: 0 0 12px rgba(61, 110, 255, 0.6);
  z-index: 60;
  pointer-events: none;
  will-change: transform;
}

/* ---------- Reveal: variacoes direcionais + stagger ----------
   Aplicadas via data-reveal="left|right|zoom" e --d (delay) pelo JS. */
.js .reveal { transition-delay: var(--reveal-delay, 0s); }
.js [data-reveal="left"]  { transform: translateX(-32px); }
.js [data-reveal="right"] { transform: translateX(32px); }
.js [data-reveal="zoom"]  { transform: scale(0.94); }
.js [data-reveal].is-visible { transform: none; }

/* ---------- Nav: link da secao ativa ---------- */
.nav-links a.ativo { color: var(--text); }
.nav-links a.ativo::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Botao magnetico (hero e envio) ---------- */
.btn.magnetico { will-change: transform; }

/* ---------- Hero: entrada das linhas do titulo ---------- */
.js .hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(26px);
}
.js .hero-title.entrou .line {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js .hero-title.entrou .line:nth-child(2) { transition-delay: 0.12s; }

/* Quando o GSAP assume, as transicoes CSS saem de cena (o GSAP controla) */
html.gsap-on .reveal { transition: none; }
html.gsap-on .hero-title .line { transition: none; opacity: 1; }
.hero-title .ch { display: inline-block; will-change: transform; }

/* ---------- Cards com leve inclinacao 3D (tilt) ---------- */
.time-card, .min-card, .celula-card, .leader-card {
  transform-style: preserve-3d;
}

/* ---------- Carrossel: card ativo em destaque ---------- */
.celula-card {
  transition: transform 0.45s var(--ease), border-color 0.3s var(--ease),
              box-shadow 0.45s var(--ease), opacity 0.45s var(--ease);
}
.carrossel.tem-destaque .celula-card { opacity: 0.55; }
.carrossel.tem-destaque .celula-card.ativo {
  opacity: 1;
  border-color: var(--line-strong);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.45);
}
/* Foto entra com fade quando carrega */
.celula-foto { transition: filter 0.6s var(--ease); }
.celula-card:not(.tem-foto) .celula-foto { filter: saturate(0.6); }

/* Cursor de arrastar no carrossel */
.carrossel { cursor: grab; }
.carrossel.arrastando { cursor: grabbing; scroll-snap-type: none; }
.carrossel.arrastando .celula-card { transition: none; }

/* ---------- Rodape do carrossel (trilha + contador) ---------- */
.carrossel-rodape {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.carrossel-trilha {
  position: relative;
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.carrossel-trilha-fill {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 20%;
  border-radius: 999px;
  background: var(--blue);
  transition: transform 0.35s var(--ease), width 0.35s var(--ease);
  will-change: transform;
}
.carrossel-contador {
  font-family: var(--title);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  flex-shrink: 0;
  min-width: 74px;
  text-align: right;
}

/* ---------- Botao voltar ao topo ---------- */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 82px;
  z-index: 39;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(20, 20, 22, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
              border-color 0.25s, color 0.25s;
}
.to-top.visivel { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--blue); color: var(--blue); }

@media (min-width: 900px) {
  .to-top { right: 26px; bottom: 96px; width: 50px; height: 50px; }
}

/* ---------- Parallax leve no simbolo do hero ---------- */
.js .hero-marca { will-change: transform; }

/* =========================================================
   ELEMENTOS DE FUNDO DAS SECOES
   Orbs de brilho azul flutuando + trama de pontos discreta.
   Mesma linguagem das particulas do hero. pointer-events: none.
   ========================================================= */
.section { position: relative; overflow: hidden; }
.section > .container { position: relative; z-index: 2; }

/* Orbs de luz azul (dois por secao, cantos opostos) */
.section::before,
.section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(70px);
}
.section::before {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(61, 110, 255, 0.20), transparent 68%);
  top: -110px; left: -120px;
  animation: orbA 20s ease-in-out infinite alternate;
}
.section::after {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(61, 110, 255, 0.13), transparent 70%);
  bottom: -140px; right: -110px;
  animation: orbB 26s ease-in-out infinite alternate;
}
/* Alterna os lados a cada secao, pra nao ficar repetitivo */
.section:nth-of-type(even)::before { left: auto; right: -120px; }
.section:nth-of-type(even)::after { right: auto; left: -110px; }

@keyframes orbA {
  from { transform: translate(0, 0); }
  to   { transform: translate(40px, 30px); }
}
@keyframes orbB {
  from { transform: translate(0, 0); }
  to   { transform: translate(-36px, -26px); }
}

/* Brilho azul que segue o cursor pela pagina inteira (interacao de fundo) */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 480px; height: 480px;
  margin: -240px 0 0 -240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 110, 255, 0.10), transparent 60%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s var(--ease-soft);
  will-change: transform;
}
.cursor-glow.on { opacity: 1; }

/* Trama de pontos discreta nos paineis escuros */
.section-alt {
  background-color: var(--panel);
  background-image: radial-gradient(rgba(245, 245, 247, 0.035) 1px, transparent 1.4px);
  background-size: 24px 24px;
}

/* Linha-guia sutil no topo de cada secao */
.section::before,
.section::after { will-change: transform; }

/* Hovers dos cards com leve overshoot (mais fluido e moderno) */
.time-card, .min-card, .leader-card {
  transition: transform 0.55s var(--spring), border-color 0.3s var(--ease-soft),
              box-shadow 0.45s var(--ease-soft), background 0.3s var(--ease-soft);
}
.btn { transition: transform 0.4s var(--spring), background 0.25s var(--ease-soft),
        border-color 0.25s var(--ease-soft), box-shadow 0.3s var(--ease-soft), opacity 0.25s; }

@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
  .js .hero-title .line { opacity: 1; transform: none; }
  .carrossel.tem-destaque .celula-card { opacity: 1; }
  .to-top { transition: opacity 0.2s; }
  .section::before, .section::after { animation: none; }
}
