/* títulos de seção */
.titulo-secao {
  font-family: var(--font-titulo);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.subtitulo {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
  color: var(--cinza-claro);
}

/* #1 - Hero */
/* hero alto para a foto aparecer abaixo do texto e do formulário;
   o rodapé do hero acompanha a altura da tela para não cair abaixo da dobra
   (em telas baixas a foto continua por baixo dele) */
.hero {
  position: relative;
  min-height: 880px;
  padding: 32px 0 40px;
  background: var(--preto) url("../img/banner-hero.webp") no-repeat right top / cover;
}

.hero > .container {
  display: flex;
  flex-direction: column;
  min-height: clamp(540px, calc(100vh - 88px), 808px);
  min-height: clamp(540px, calc(100svh - 88px), 808px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
  margin-top: 40px;
}

.hero-texto h1 {
  max-width: 540px;
  font-family: var(--font-titulo);
  font-size: 44px;
  font-weight: 300;
  line-height: 1.15;
}

.hero-texto h1 strong {
  font-weight: 700;
}

.hero-texto p {
  max-width: 280px;
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.4;
}

.hero-form {
  padding: 28px 24px;
  background: rgba(0, 0, 0, .85);
  border: 1px solid var(--cinza-2f);
  border-radius: 4px;
}

.hero-form-titulo {
  margin-bottom: 20px;
  font-family: var(--font-titulo);
  font-size: 18px;
  line-height: 1.3;
  text-align: center;
}

.hero-form label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.hero-form input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  background: transparent;
  border: 1px solid var(--verde);
  border-radius: 2px;
  color: var(--branco);
  outline: none;
}

.hero-form input + label {
  margin-top: 12px;
}

.hero-form input:focus {
  box-shadow: 0 0 0 3px rgba(2, 252, 155, .25);
}

.hero-form input.is-erro {
  border-color: #ff5a5a;
}

.hero-form .btn {
  width: 100%;
  margin-top: 20px;
  font-size: 15px;
}

.hero-rodape {
  margin-top: auto;
  padding-top: 48px;
  text-align: center;
}

.hero-rodape > p:first-child {
  font-size: 16px;
}

.hero-tags {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 12px 0 0;
  padding: 8px 16px;
  list-style: none;
  border: 1px solid var(--cinza-5b);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cinza-claro);
}

.hero-tags li + li::before {
  content: "|";
  margin: 0 8px;
}

.hero-local {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 20px;
  margin-top: 20px;
  font-size: 16px;
}

.hero-local span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* #2 - Valorização */
.valorizacao {
  padding: 96px 0;
  background: var(--preto);
  text-align: center;
}

.beneficios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 60px;
  max-width: 1000px;
  margin: 64px auto 56px;
  padding: 0;
  list-style: none;
  text-align: left;
}

.beneficios img {
  width: 80px;
  height: 80px;
  margin: -8px 0 12px -8px;
}

.beneficios h3 {
  font-family: var(--font-titulo);
  font-size: 15px;
  font-weight: 700;
}

.beneficios p {
  max-width: 260px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--cinza-claro);
}

.selo-ciano {
  display: inline-block;
  padding: 10px 20px;
  background: var(--grad-ciano);
  box-shadow: 0 0 16px rgba(16, 239, 255, .35);
  color: var(--preto);
  font-family: var(--font-titulo);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
}

/* #3 - Muito mais que um espaço */
.espaco {
  padding: 96px 0 0;
  background: var(--cinza-0b);
}

/* carrossel: 4 fotos visíveis no desktop, setas avançam uma por vez (loop em js/index.js) */
.carrossel {
  --gap: 28px;
  position: relative;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 48px auto 0;
  padding: 0 var(--gutter) 64px;
  border-bottom: 1px solid var(--cinza-2f);
}

.fotos {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.fotos::-webkit-scrollbar {
  display: none;
}

.fotos:focus-visible {
  outline: 2px solid var(--verde);
  outline-offset: 4px;
}

.fotos img {
  flex: 0 0 calc((100% - var(--gap) * 3) / 4);
  width: calc((100% - var(--gap) * 3) / 4);
  min-width: 0;
  aspect-ratio: 373 / 411;
  object-fit: cover;
  border-radius: 4px;
  scroll-snap-align: start;
}

.carrossel-seta {
  position: absolute;
  top: calc((100% - 64px) / 2);
  width: 44px;
  height: 44px;
  margin-top: -22px;
  padding: 0;
  background: rgba(0, 0, 0, .8);
  border: 1px solid var(--verde);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(2, 252, 155, .3);
  cursor: pointer;
  transition: opacity .2s, transform .2s;
}

.carrossel-seta::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border: solid var(--verde);
  border-width: 2px 2px 0 0;
  transform: translate(-65%, -50%) rotate(45deg);
}

.carrossel-ant {
  left: calc(var(--gutter) - 22px);
}

.carrossel-ant::before {
  transform: translate(-35%, -50%) rotate(-135deg);
}

.carrossel-prox {
  right: calc(var(--gutter) - 22px);
}

.carrossel-seta:hover {
  transform: scale(1.08);
}

.carrossel-seta:focus-visible {
  outline: 2px solid var(--verde);
  outline-offset: 3px;
}

/* #4 - Login Celebrate */
.celebrate {
  padding: 56px 0 72px;
  background: var(--cinza-0b);
  text-align: center;
}

.celebrate-sub {
  margin-top: 12px;
  font-family: var(--font-titulo);
  font-size: 24px;
}

.celebrate .pacotes {
  margin-top: 40px;
  text-align: left;
}

.celebrate-nota {
  max-width: 820px;
  margin: 40px auto 24px;
  font-size: 16px;
  color: var(--cinza-claro);
}

/* #5 - CTA simulador */
.cta-simulador {
  padding: 0 0 96px;
  background: var(--cinza-0b);
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 72px;
  border: 1px solid var(--amarelo);
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(247, 172, 6, .08) 0%, rgba(0, 0, 0, 0) 60%);
}

.cta-box h2 {
  font-family: var(--font-titulo);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
}

.cta-box .btn {
  flex-shrink: 0;
  font-size: 18px;
  padding: 12px 24px;
}

/* #6 - Depoimentos */
.depoimentos {
  padding: 72px 0 96px;
  background: #151515;
}

.depoimentos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 48px;
}

.depoimento {
  margin: 0;
  padding: 32px 36px 48px;
  min-height: 420px;
  background: var(--preto);
  border-radius: 4px;
}

/* logos com tamanhos proporcionais ao layout, centralizados numa faixa de 94px */
.depoimento img {
  --logo-h: 94px;
  display: block;
  height: var(--logo-h);
  width: auto;
  margin: calc((94px - var(--logo-h)) / 2) 0 calc((94px - var(--logo-h)) / 2 + 20px);
}

.depoimento .logo-amazon { --logo-h: 72px; }
.depoimento .logo-binance { --logo-h: 94px; }
.depoimento .logo-logitech { --logo-h: 81px; }

.depoimento p {
  font-size: 21px;
  line-height: 1.4;
  color: var(--cinza-claro);
}

/* responsivo */
@media (max-width: 1024px) {
  .hero-texto h1 {
    font-size: 36px;
  }

  .beneficios {
    gap: 40px 32px;
  }

  .cta-box {
    padding: 32px;
  }

  .cta-box h2 {
    font-size: 28px;
  }

  .depoimentos-grid {
    gap: 20px;
  }

  .depoimento {
    padding: 28px 24px;
    min-height: 0;
  }

  .depoimento p {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .titulo-secao {
    font-size: 28px;
  }

  .subtitulo br,
  .titulo-secao br {
    display: none;
  }

  .hero {
    min-height: 0;
    background-position: 70% center;
  }

  .hero > .container {
    min-height: 0;
  }

  .hero .logo {
    display: block;
    text-align: center;
  }

  .hero .logo img {
    margin: 0 auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 32px;
  }

  .hero-texto {
    text-align: center;
  }

  .hero-texto h1 {
    font-size: 30px;
  }

  .hero-texto p {
    margin: 16px auto 0;
  }

  .hero-tags {
    gap: 6px 14px;
    font-size: 11px;
  }

  .hero-tags li + li::before {
    content: none;
  }

  .valorizacao,
  .espaco {
    padding-top: 64px;
  }

  .valorizacao {
    padding-bottom: 64px;
  }

  .beneficios {
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
    margin: 40px 0;
  }

  .selo-ciano {
    font-size: 14px;
  }

  /* carrossel mobile: arrasta com o dedo, foto seguinte aparece na borda */
  .carrossel {
    --gap: 16px;
    padding-bottom: 40px;
  }

  .fotos img {
    flex-basis: 72%;
    width: 72%;
  }

  .carrossel-seta {
    display: none;
  }

  .celebrate .pacotes {
    margin-top: 32px;
  }

  .cta-box {
    flex-direction: column;
    text-align: center;
    padding: 28px 20px;
  }

  .cta-box h2 {
    font-size: 24px;
  }

  .cta-box .btn {
    width: 100%;
    font-size: 16px;
  }

  .depoimentos {
    padding: 56px 0 64px;
  }

  .depoimentos-grid {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }
}

@media (max-width: 480px) {
  .beneficios {
    grid-template-columns: 1fr;
  }

  .beneficios p {
    max-width: none;
  }

  .celebrate .btn {
    width: 100%;
    font-size: 14px;
  }
}
