/* =====================================================
   RESET / BASE
===================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body{
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: transparent; /* ✅ fundo vem do vídeo */
  color: #e8edf6;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* ✅ garante stack correto acima do vídeo */
header, section, footer{
  position: relative;
  z-index: 1;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; cursor: pointer; }
ul{ list-style: none; }

/* =====================================================
   VIDEO BACKGROUND GLOBAL
===================================================== */
.video-bg{
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background: #04070d; /* fallback */
}

.video-bg video{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(1200px 700px at 15% 10%, rgba(16, 40, 70, .55), rgba(4, 7, 13, .92) 62%),
    rgba(4, 7, 13, .42);
}

/* =====================================================
   REVEAL ANIMATION (Premium)
   - ui.js deve adicionar .is-visible quando entrar na tela
===================================================== */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  filter: none;
  transition:
    opacity .7s ease,
    transform .7s ease,
    filter .7s ease;
  will-change: opacity, transform, filter;
}

.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
  filter: none;
}

/* delay por atributo data-delay="1..6" */
.reveal[data-delay="1"]{ transition-delay: .05s; }
.reveal[data-delay="2"]{ transition-delay: .12s; }
.reveal[data-delay="3"]{ transition-delay: .19s; }
.reveal[data-delay="4"]{ transition-delay: .26s; }
.reveal[data-delay="5"]{ transition-delay: .33s; }
.reveal[data-delay="6"]{ transition-delay: .40s; }

@media (prefers-reduced-motion: reduce){
  .reveal{
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* =====================================================
   CONTAINER / TYPO
===================================================== */
.container{
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
}

.h2{
  font-size: 34px;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.h3{
  font-size: 20px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.p{
  color: rgba(226,232,240,.86);
  font-size: 14.5px;
}

.section__subtitle{
  color: rgba(226,232,240,.82);
  margin: 0 0 30px 0;
  max-width: 760px;
}

.muted{ color: rgba(226,232,240,.72); }

/* =====================================================
   HEADER
===================================================== */
.header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(4, 7, 13, .78);
  backdrop-filter: none;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.header__inner{
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo{ height: 34px; }

.nav{
  display: flex;
  gap: 26px;
  align-items: center;
}

.nav a{
  font-size: 14px;
  color: rgba(226,232,240,.86);
  opacity: .9;
  transition: opacity .2s ease, color .2s ease;
}

.nav a:hover{ opacity: 1; color: #fff; }

/* =====================================================
   BUTTONS
===================================================== */
.btn{
  border: none;
  border-radius: 999px;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .2s ease, filter .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }
.btn--sm{ padding: 10px 16px; font-size: 13px; }

.btn--primary{
  background: linear-gradient(135deg, #ff3d3d, #ff6a6a);
  color: #fff;
}
.btn--primary:hover{ filter: brightness(1.06); transform: translateY(-1px); }

.btn--ghost{
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
}
.btn--ghost:hover{ background: rgba(255,255,255,.08); }

.btn--dark{
  background: #0b1220;
  color: #fff;
  border: 1px solid rgba(255,255,255,.10);
}
.btn--dark:hover{ filter: brightness(1.08); transform: translateY(-1px); }

/* =====================================================
   BOTÕES WHATSAPP (PADRÃO GLOBAL)
   - Aplica verde WhatsApp em qualquer botão com:
     1) class="btn btn--whatsapp"  (manual) OU
     2) class="btn ... js-wa-link" (automático)
   - NÃO afeta o botão flutuante (.wa-float)
   - Maior especificidade para sobrescrever btn--ghost/btn--primary
===================================================== */
.btn.btn--whatsapp,
.btn.js-wa-link:not(.wa-float){
  background: #25D366; /* Verde oficial WhatsApp */
  background-color: #25D366;
  color: #ffffff;
  border: none;
  font-weight: 800;
  text-decoration: none;
  transition:
    background-color .2s ease,
    transform .2s ease,
    box-shadow .2s ease,
    filter .2s ease;
}

.btn.btn--whatsapp:hover,
.btn.js-wa-link:not(.wa-float):hover{
  background: #1ebe5d;
  background-color: #1ebe5d;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

.btn.btn--whatsapp:active,
.btn.js-wa-link:not(.wa-float):active{
  transform: translateY(0);
}

.btn.btn--whatsapp:focus-visible,
.btn.js-wa-link:not(.wa-float):focus-visible{
  outline: 2px solid rgba(37, 211, 102, 0.6);
  outline-offset: 2px;
}

/* =====================================================
   HERO
===================================================== */
.hero{
  padding: 110px 0 70px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.hero__grid{
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 52px;
  align-items: center;
}

.pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.06);
  color: rgba(226,232,240,.92);
  margin-bottom: 18px;
}

.hero__title{
  font-size: 46px;
  line-height: 1.14;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.text-gradient{
  background: linear-gradient(90deg, #42f2c8, #6aff9c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle{
  max-width: 560px;
  color: rgba(226,232,240,.88);
  margin-bottom: 18px;
  font-size: 15.5px;
}

.hero__list{
  display: grid;
  gap: 10px;
  margin: 18px 0 24px;
  color: rgba(226,232,240,.92);
  font-size: 14px;
}

.hero__actions{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.hero__note{
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: rgba(226,232,240,.78);
}

/* Hero card (métricas) */
.hero__card{
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 26px 70px rgba(0,0,0,.55);
}

.card__header{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.card__header img{
  width: 80px;
  height: 80px;
  border-radius: 12px;
}

.card__header strong{
  display: block;
  font-size: 14px;
}

.card__header span{
  display: block;
  font-size: 12px;
  color: rgba(226,232,240,.72);
}

.card__image{
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(0,0,0,.18);
}

.card__footer{
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: rgba(226,232,240,.72);
}

/* =====================================================
   INTEGRAÇÕES ERP (SLIDER)
===================================================== */
.integracoes{
  padding: 18px 0 22px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.integracoes__title{
  text-align: center;
  font-size: 13px;
  color: rgba(226,232,240,.82);
  margin-bottom: 12px;
}

.integracoes__slider{
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  border-radius: 18px;
  padding: 14px 0;
}

/* fade lateral */
.integracoes__slider::before,
.integracoes__slider::after{
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 70px;
  z-index: 2;
  pointer-events: none;
}
.integracoes__slider::before{
  left: 0;
  background: linear-gradient(90deg, rgba(4,7,13,1), rgba(4,7,13,0));
}
.integracoes__slider::after{
  right: 0;
  background: linear-gradient(270deg, rgba(4,7,13,1), rgba(4,7,13,0));
}

.integracoes__track{
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  padding-left: 26px;
  animation: integracoes-marquee 24s linear infinite;
  will-change: transform;
}

/* logos em cinza */
.integracoes__track img{
  height: 34px;
  width: auto;
  display: block;
  opacity: .85;
  filter: grayscale(100%);
  flex-shrink: 0;
}

@keyframes integracoes-marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce){
  .integracoes__track{ animation: none; }
}

/* =====================================================
   SECTION BASE
===================================================== */
.section{
  padding: 90px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}

/* =====================================================
   TAG / CHECKLIST
===================================================== */
.tag{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .02em;
  color: rgba(226,232,240,.92);
  margin-bottom: 12px;
}
.tag::before{
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, #ff3d3d, #ff6a6a);
  box-shadow: 0 0 0 3px rgba(255, 80, 80, .12);
}

.checklist{
  margin-top: 14px;
  display: grid;
  gap: 8px;
  color: rgba(226,232,240,.88);
  font-size: 14px;
}

/* =====================================================
   CORTEX SECTION GRID (texto + imagem)
===================================================== */
.section__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: center;
  margin-top: 26px;
}

.section__grid--reverse .section__box{ order: 2; }
.section__grid--reverse .section__media{ order: 1; }

.section__box{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}

.section__media{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 18px 55px rgba(0,0,0,.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.media__img{
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.06);
  object-fit: cover;
}

/* =====================================================
   CARDS GRID (Padrão)
===================================================== */
.cards-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 18px 45px rgba(0,0,0,.30);
  display: flex;
  flex-direction: column;
  min-height: 180px;
}

/* Fluxos 2x2 */
#fluxos .cards-grid{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* =====================================================
   SIMULADOR
===================================================== */
.simulador{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
  margin-top: 18px;
}

.simulador__form,
.simulador__resultado{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 18px 50px rgba(0,0,0,.30);
}

.simulador__form label{
  display: block;
  margin: 12px 0 6px;
  font-size: 13px;
  color: rgba(226,232,240,.9);
}

.simulador__form input,
.simulador__form textarea{
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
  color: #fff;
  outline: none;
}

.simulador__form input:focus,
.simulador__form textarea:focus{
  border-color: rgba(66, 242, 200, .55);
}

/* grade de checkboxes - alinhada e clicável */
.checks{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  margin: 10px 0 10px;
}

.checks label{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  color: rgba(226,232,240,.92);
}

.checks label:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
}

.checks input[type="checkbox"]{
  margin: 0;
  width: 16px;
  height: 16px;
  accent-color: #42f2c8;
}

/* linha "incluir PABX" */
.inline{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  cursor: pointer;
  user-select: none;
}
.inline input[type="checkbox"]{
  margin: 0;
  width: 16px;
  height: 16px;
  accent-color: #42f2c8;
}

/* botão full width do simulador */
#btn-calcular{
  width: 100%;
  margin-top: 14px;
}

/* resultado (premium) */
.simulador__resultado h3{
  margin-bottom: 10px;
}

.result-line{
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 14px;
}

.result-line strong{
  color: rgba(226,232,240,.92);
  font-weight: 800;
}

.result-line span{
  color: rgba(226,232,240,.88);
  text-align: right;
}

.result-section{
  margin-top: 14px;
  padding-top: 6px;
}

/* =====================================================
   FAQ Accordion
===================================================== */
.accordion{
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.acc-item{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0,0,0,.25);
}

.acc-btn{
  width: 100%;
  background: transparent;
  border: none;
  color: #fff;
  padding: 18px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  font-weight: 800;
  font-size: 15px;
  text-align: left;
}

.acc-btn:hover{ background: rgba(255,255,255,.04); }

.acc-icon{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  font-size: 18px;
  flex: 0 0 auto;
}

.acc-panel{
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  padding: 0 18px;
}

.acc-panel .p{
  padding: 0 0 16px 0;
  color: rgba(226,232,240,.86);
}

/* =====================================================
   CTA
===================================================== */
.cta{
  padding: 58px 18px;
  text-align: center;
  background: linear-gradient(135deg, #ff3d3d, #ff6a6a);
  color: #fff;
}

.cta h2{
  font-size: 26px;
  margin-bottom: 6px;
}

.cta p{ opacity: .95; margin-bottom: 18px; }

.cta__actions{
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.cta small{ opacity: .9; }

/* =====================================================
   FOOTER
===================================================== */
.footer{
  padding: 26px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.12);
}

.footer__inner{
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  opacity: .86;
}

/* =====================================================
   MODALS (Email + Buy)
===================================================== */
.modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.62);
  backdrop-filter: none;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 18px;
}

.modal-overlay.active{ display: flex; }
.modal-overlay.is-open{ display: flex; }

/* animação do modal */
.modal-overlay.active .modal,
.modal-overlay.is-open .modal{
  animation: modalIn .22s ease both;
}

@keyframes modalIn{
  from{ transform: translateY(10px) scale(.98); opacity: 0; }
  to{ transform: translateY(0) scale(1); opacity: 1; }
}

.modal{
  width: 100%;
  max-width: 460px;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 26px 70px rgba(0,0,0,.55);
  position: relative;
}

.modal__close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.modal__close:hover{
  background: rgba(255,255,255,.10);
  transform: translateY(-1px);
}

.modal label{
  display: block;
  margin: 10px 0 6px;
  font-size: 13px;
  color: rgba(226,232,240,.92);
}

.modal input,
.modal textarea{
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
  color: #fff;
  outline: none;
}

.modal input:focus,
.modal textarea:focus{
  border-color: rgba(66, 242, 200, .55);
}

/* resumo no modal de compra */
#buy-summary{
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  border-radius: 14px;
  padding: 12px 12px;
  line-height: 1.45;
}

/* =====================================================
   WHATSAPP FLOAT
===================================================== */
.wa-float{
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 22px 50px rgba(0,0,0,.55);
  z-index: 100;
  transition: transform .2s ease, filter .2s ease;
}

.wa-float:hover{ transform: translateY(-3px); filter: brightness(1.02); }

.wa-float img{
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* =====================================================
   RESPONSIVO
===================================================== */
@media (max-width: 1024px){
  .cards-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px){
  .nav{ display: none; }
  .hero__grid{ grid-template-columns: 1fr; }
  .hero__title{ font-size: 38px; }

  .section__grid{ grid-template-columns: 1fr; }
  .section__grid--reverse .section__box,
  .section__grid--reverse .section__media{ order: unset; }

  .simulador{ grid-template-columns: 1fr; }
  #fluxos .cards-grid{ grid-template-columns: 1fr; }
  .footer__inner{ flex-direction: column; }
}

@media (max-width: 640px){
  .hero__actions{ flex-direction: column; }
  .hero__actions .btn{ width: 100%; }
  .cta__actions{ flex-direction: column; }
  .cta__actions .btn{ width: 100%; }
  .cards-grid{ grid-template-columns: 1fr; }

  .checks{ grid-template-columns: 1fr; }
}
