/* =========================================================
   HERO (Home)
========================================================= */

/* Container principal da Home */
.home-content{
  max-width: 1280px;          /* mesmo conceito da navbar */
  margin: 0 auto;
  min-height: 90vh;
  padding: 0px 24px 0;        /* TOP já considera navbar */
  display: flex;
  align-items: flex-start;
  gap: 64px;
}

/* Coluna esquerda */
.home-content-left{
  flex: 1;
  padding-left: 55px;         /* ajuste fino para alinhar com o logo */
  margin-top: 120px;
}

/* Coluna direita */
.home-content-right{
  flex: 1;
  display: flex;
  justify-content: center;
}

.home-content-right img{
  max-width: 100%;
  height: auto;
  margin-top: 0px;
}

/* CTA */
.cta-banner{
  display: inline-block;
  background: #0055aa;
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 18px;
}

/* Botões */
.action-buttons{
  margin-top: 28px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.home-hero-title{
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
               'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 42px;
  color: #1f2937; /* cinza escuro SaaS */
  margin-bottom: 24px;
}

.home-hero-title span{
  display: block;
  font-weight: 700;
  color: #6b7280; /* cinza secundário */
}

.home-content p{
  font-size: 20px;
  color: #0055aa;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.5;
}


/* =========================================================
   WX - Base (Container / Sections)
========================================================= */

.wx-container{
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 16px;
}

.wx-section{
  padding: 72px 0;
}


/* =========================================================
   WX - Products (Section + Cards)
========================================================= */

.wx-products{
  background: #f6f7f9;
  padding: 96px 0;
  border-top: 0px solid rgba(17,24,39,.06);
  border-bottom: 1px solid rgba(17,24,39,.06);
}

.wx-products__header{
  margin-bottom: 22px;
}

.wx-products__title{
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #111827;
}

.wx-products__subtitle{
  margin: 0;
  color: #6b7280;
  line-height: 1.6;
}

.wx-products__grid{
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Card base */
.wx-card{
  background: #fff;
  border: 1px solid rgba(17,24,39,.10);
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(17,24,39,.06);
}

/* Card produtos: layout para CTA ficar embaixo */
.wx-products__card{
  padding: 16px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}

.wx-products__card:hover{
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

.wx-products__content{
  flex: 1;
}

.wx-products__name{
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.wx-products__desc{
  margin: 0;
  font-size: .95rem;
  line-height: 1.55;
  color: #374151;
}

.wx-products__divider{
  border: 0;
  height: 1px;
  background: #eef0f3;
  margin: 14px 0 0;
}

.wx-products__action{
  margin-top: auto;
  padding-top: 14px;
}

.wx-products__link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
  color: #0b5ed7;
}

.wx-products__link:hover{
  text-decoration: underline;
}

/* Wave decorativa */
.wx-products--wave{
  position: relative;
  background-color: #f6f7f9;
  overflow: hidden;
}

.wx-products--wave::before{
  content: "";
  position: absolute;
  top: -200px;
  left: 0;
  width: 100%;
  height: 500px;
  background-image: url("/assets/images/bg_wave.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
  pointer-events: none;
  z-index: 0;
}

.wx-products--wave > .wx-container{
  position: relative;
  z-index: 1;
}


/* =========================================================
   WX - Home Sections (wx-home-*)
========================================================= */

.wx-home-container{
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 16px;
}

.wx-home-section{
  padding: 64px 0;
}

.wx-home-section--muted{
  background: #eef1f5;
  border-top: 1px solid #eef2f6;
  border-bottom: 1px solid #eef2f6;
}

.wx-home-header{
  margin-bottom: 22px;
}

.wx-home-h2{
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: #111827;
}

.wx-home-sub{
  margin: 0;
  color: #6b7280;
  line-height: 1.6;
}

.wx-home-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.wx-home-grid--2{
  grid-template-columns: repeat(2, 1fr);
}

.wx-home-card{
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

.wx-home-h3{
  margin: 0 0 8px;
  font-size: 16px;
  color: #111827;
}

.wx-home-p{
  margin: 0 0 10px;
  color: #374151;
  line-height: 1.65;
  font-size: .95rem;
}

/* KPIs */
.wx-home-kpis{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.wx-home-kpi{
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
}

.wx-home-kpi__label{
  display: inline-block;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 8px;
}

.wx-home-kpi__value{
  display: block;
  font-size: 18px;
  color: #111827;
  margin-bottom: 6px;
}

.wx-home-kpi__desc{
  margin: 0;
  color: #374151;
  line-height: 1.6;
  font-size: .95rem;
}

/* Steps */
.wx-home-steps{
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.wx-home-step{
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
}

.wx-home-step__num{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #0b5ed7;
  background: #e7f0ff;
  border: 1px solid rgba(11,94,215,.18);
}

/* Actions / Buttons */
.wx-home-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.wx-home-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: #0b5ed7;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.wx-home-btn:hover{
  filter: brightness(.97);
}

.wx-home-btn--ghost{
  background: #fff;
  border-color: #d1d5db;
  color: #111827;
}

/* FAQ */
.wx-home-faq{
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.wx-home-faq__item{
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 12px 14px;
}

.wx-home-faq__item summary{
  cursor: pointer;
  font-weight: 700;
  color: #111827;
}

.wx-home-faq__item p{
  margin: 10px 0 0;
  color: #374151;
  line-height: 1.65;
}

/* CTA box */
.wx-home-cta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(231,240,255,.65), rgba(255,255,255,.9));
}


/* =========================================================
   WX - Slice (CTA com imagem)
========================================================= */

.wx-slice{
  background:#f6f7f9;
  padding: 30px 0;
}
#home{
  scroll-margin-top: calc(var(--nav-h, 72px) + 12px);
}
.wx-slice__wrap{
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: stretch;
  gap: 0;
  position: relative;
  overflow: hidden;
}

/* COLUNA ESQUERDA */
.wx-slice__left{
  position: relative;
  min-height: 520px;
}

/* Painel roxo */
.wx-slice__panel{
  position: absolute;
  left: 0;
  right: -72px;
  top: 70px;
  bottom: 0;
  background: #4b3cf0;
  padding: 72px 72px 64px 105px;
  display:flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}

/* Diagonal do roxo */
.wx-slice__panel::after{
  content:"";
  position:absolute;
  top: 0;
  right: -180px;
  width: 240px;
  height: 100%;
  background: #4b3cf0;
  transform: skewX(-1deg);
  transform-origin: top;
}

/* COLUNA DIREITA (imagem) */
.wx-slice__right{
  max-height: 520px;
  position: relative;
  min-height: 520px;
  z-index: 3;
}

.wx-slice__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
  clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
}

/* Tipografia */
.wx-slice__eyebrow{
  margin: 0 0 14px;
  color: rgba(255,255,255,.92);
  font-weight: 600;
}

.wx-slice__title{
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.wx-slice__title span{
  font-weight: 800;
}

.wx-slice__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: fit-content;
  padding: 12px 18px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-weight: 800;
  text-decoration:none;
}


/* =========================================================
   RESPONSIVO (unificado)
========================================================= */

@media (max-width: 1024px){
  .wx-products__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 992px){
  .home-content{
    flex-direction: column;
    gap: 32px;
    align-items: center;
    padding: calc(var(--nav-h, 72px) + 16px) 16px 24px;
  }

  .home-content-left{
    padding-left: 0;
    text-align: center;
    margin-top: 0px;
  }

  .action-buttons{
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 980px){
  .wx-slice__wrap{
    grid-template-columns: 1fr;
  }

  .wx-slice__panel{
    position: relative;
    top: 0;
    right: 0;
    padding: 42px 20px;
  }

  .wx-slice__panel::after{
    display:none;
  }

  .wx-slice__img{
    clip-path: none;
  }

  .wx-home-grid{
    grid-template-columns: repeat(2, 1fr);
  }

  .wx-home-kpis{
    grid-template-columns: 1fr;
  }

  .wx-home-grid--2{
    grid-template-columns: 1fr;
  }

  .wx-home-cta{
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px){
  .wx-products--wave::before{
    display: none;
  }
}

@media (max-width: 576px){
  .home-hero-title{
    font-size: 32px;
    line-height: 36px;
  }

  .home-content p{
    font-size: 18px;
  }

  .action-buttons a{
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 560px){
  .wx-section{
    padding: 56px 0;
  }

  .wx-products__grid{
    grid-template-columns: 1fr;
  }
}
