/* ===== Poppins auto-hospedada (subset latin) ===== */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("assets/fonts/poppins-300.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/poppins-400.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/poppins-500.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/poppins-600.woff2") format("woff2");
}

:root {
  --bg-deep: #04100b;
  --bg-green: #0c2a1d;
  --bg-green-2: #0a3322;
  --gold: #d4af6a;
  --gold-bright: #e7c885;
  --green-accent: #5cbf80;
  --green-soft: #7fd29c;
  --text: #f3f6f4;
  --text-muted: #b9c8c0;
  --font: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-weight: 300;
  background: var(--bg-deep);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ============ HERO ============ */
.hero {
  --pad-x: clamp(24px, 7vw, 110px);
  position: relative;
  min-height: auto;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(132px, 32vw, 184px) var(--pad-x) clamp(28px, 7vw, 48px);
}

/* Fade no fim da hero: dissolve para a cor de início dos depoimentos */
.hero__fade {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: clamp(150px, 32vw, 240px);
  background: linear-gradient(180deg, rgba(2, 8, 5, 0) 0%, rgba(2, 8, 5, 0.7) 55%, #020805 100%);
  z-index: 2;
  pointer-events: none;
}

/* Logo no topo, alinhado à esquerda com a headline */
.hero__brand {
  position: absolute;
  top: clamp(24px, 6vw, 48px);
  left: clamp(54px, 15vw, 130px);
  width: clamp(46px, 12vw, 64px);
  height: auto;
  z-index: 4;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45));
}

/* ---- Fundo ---- */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    /* vinheta escura: meio->direita e abaixo do mockup = verde bem escuro */
    radial-gradient(125% 120% at 80% 66%, transparent 26%, rgba(2, 9, 6, 0.6) 72%, rgba(1, 5, 3, 0.92) 100%),
    /* brilho suave no canto inferior esquerdo */
    radial-gradient(58% 48% at 2% 100%, rgba(28, 88, 58, 0.5) 0%, transparent 66%),
    /* verde claro no topo (esquerda/centro) */
    radial-gradient(90% 55% at 24% -4%, rgba(40, 120, 80, 0.62) 0%, transparent 62%),
    /* verde claro descendo por todo o lado esquerdo (e à esquerda do mockup) */
    radial-gradient(75% 110% at -4% 40%, rgba(44, 126, 84, 0.85) 0%, rgba(18, 62, 42, 0.32) 44%, transparent 78%),
    /* base verde escuro quase preto (diagonal p/ direita-baixo) */
    linear-gradient(150deg, #0e3526 0%, #0a2719 34%, #061710 62%, #03100a 84%, #020805 100%);
}

/* Circuito impresso (PCB) em canvas — mais forte no topo/direita,
   suave atrás do texto para manter legibilidade */
.circuit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(140% 120% at 80% 10%, #000 0%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0.2) 72%, rgba(0,0,0,0.08) 100%);
  mask-image: radial-gradient(140% 120% at 80% 10%, #000 0%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0.2) 72%, rgba(0,0,0,0.08) 100%);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: 0;
}
.hero__glow--top {
  width: 55%;
  height: 38%;
  top: -10%;
  right: -8%;
  background: radial-gradient(circle, rgba(60, 150, 95, 0.3), transparent 70%);
}
.hero__glow--bottom {
  display: none;
}

/* ---- Conteúdo ---- */
.hero__content {
  position: relative;
  z-index: 3;
  max-width: 560px;
}

.hero__title {
  font-weight: 300;
  font-size: clamp(1.75rem, 9.2vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--text);
  /* desce só a headline, sem empurrar subtexto/botão */
  transform: translateY(clamp(40px, 14vw, 76px));
}
.hero__title .gold { color: var(--gold); }
.hero__title .green {
  font-weight: 600;
  background: linear-gradient(180deg, #cdae63 0%, #9bb35e 38%, #6cac66 70%, #57a86a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero__text {
  margin: clamp(80px, 22vw, 120px) auto 0;
  max-width: 430px;
  font-size: clamp(1.02rem, 4.4vw, 1.18rem);
  line-height: 1.55;
  color: var(--text);
  font-weight: 300;
  text-align: center;
}

/* ---- CTA ---- */
.cta {
  display: flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: clamp(40px, 10vw, 60px) auto 0;
  padding: 18px 30px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 500;
  font-size: clamp(0.78rem, 3.6vw, 0.9rem);
  letter-spacing: 0.1em;
  color: #ffffff;
  background: linear-gradient(180deg, #2bbf63 0%, #1f9e4f 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 14px 30px rgba(28, 150, 75, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  animation: cta-pulse 2.6s ease-in-out infinite;
}
@keyframes cta-pulse {
  0%, 100% {
    box-shadow:
      0 14px 30px rgba(28, 150, 75, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.25),
      0 0 0 0 rgba(43, 191, 99, 0.45);
  }
  50% {
    box-shadow:
      0 14px 32px rgba(28, 150, 75, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.25),
      0 0 0 12px rgba(43, 191, 99, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cta { animation: none; }
}
.cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow:
    0 18px 38px rgba(28, 150, 75, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.cta__icon { width: 22px; height: 22px; flex-shrink: 0; }

/* ============ PHONE MOCKUP ============ */
/* A imagem já vem inclinada e com o aparelho no canto superior direito do
   seu próprio canvas transparente — então usamos como camada posicionada. */
.phone-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.phone-img {
  position: absolute;
  top: -3%;
  right: -8%;
  width: 112%;
  height: auto;
  filter: drop-shadow(0 30px 55px rgba(0, 0, 0, 0.5));
}

/* ============ RESPONSIVE ============ */
@media (min-width: 768px) {
  .hero {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding-top: clamp(28px, 7vw, 80px);
  }
  .hero__content { max-width: 600px; }
  .hero__title { font-size: clamp(3rem, 5vw, 4.6rem); transform: none; }
  .hero__text { margin-top: clamp(20px, 2.4vw, 32px); }
  .phone-img {
    top: 50%;
    right: -4%;
    width: auto;
    height: 118%;
    transform: translateY(-50%);
  }
}

@media (min-width: 1200px) {
  .phone-img { right: 2%; height: 122%; }
}

/* Telas bem estreitas: aparelho um pouco maior, sangrando à direita */
@media (max-width: 420px) {
  .phone-img { width: 118%; right: -10%; top: -2%; }
}

/* ============ DEPOIMENTOS ============ */
.testimonials {
  position: relative;
  z-index: 1; /* cria contexto de empilhamento para o glow ficar sobre a hero */
  padding: clamp(36px, 8vw, 72px) 0 clamp(56px, 11vw, 104px);
  /* começa na MESMA cor em que a hero termina -> transição contínua, sem faixa */
  background:
    radial-gradient(80% 50% at 50% 46%, rgba(20, 70, 47, 0.22) 0%, transparent 62%),
    linear-gradient(180deg, #020805 0%, #03100b 16%, #061a12 50%, #03100b 100%);
  overflow-x: clip;
}

.section-title,
.section-sub,
.marquee,
.testimonials__cta {
  position: relative;
  z-index: 1;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  padding: 0 24px;
}
.section-sub {
  text-align: center;
  margin-top: 12px;
  padding: 0 24px;
  font-size: clamp(0.95rem, 4vw, 1.1rem);
  font-weight: 300;
  color: var(--text-muted);
}

.marquee {
  margin-top: clamp(34px, 7vw, 56px);
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: clamp(16px, 4vw, 28px);
  animation: marquee-scroll 32s linear infinite;
}
.marquee:hover .marquee__track {
  animation-play-state: paused;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.tcard {
  margin: 0;
  flex: 0 0 auto;
}
.tcard img {
  display: block;
  height: clamp(420px, 64vh, 560px);
  width: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
}

.testimonials__cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(44px, 9vw, 72px);
  padding: 0 24px;
}
.testimonials__cta .cta {
  margin: 0;
}

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