:root {
  --preto: #2a2d33;
  --verde: #00ffa8;
  --branco: #eff2f5;
  --cinza-txt: #bcc6cf;
  --card: #383c42;
  --card-alt: #373a40;
  --glow: 0 0 16px rgba(0, 255, 168, 0.16);
  --btn-glow: 0 0 38px rgba(0, 255, 168, 0.21);
  --wrap: 1320px;   /* área de conteúdo (bom em 1366 e aproveita melhor as telas 1920/1536) */
}

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

/* compensa o header fixo (sticky) para o anchor scroll não cortar os títulos */
html { scroll-behavior: smooth; scroll-padding-top: 116px; }

body {
  font-family: "Kanit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 300;
  color: var(--branco);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  /* fundo do Figma: base escura + brilhos verdes espalhados pela página */
  background-color: var(--preto);
  background-image:
    radial-gradient(50vw 34vw at 90% 13%, rgba(0, 255, 168, 0.10), transparent 60%),
    radial-gradient(48vw 34vw at 2% 33%, rgba(0, 255, 168, 0.09), transparent 60%),
    radial-gradient(60vw 42vw at 84% 60%, rgba(0, 255, 168, 0.08), transparent 60%),
    radial-gradient(58vw 40vw at 50% 99%, rgba(0, 255, 168, 0.09), transparent 55%);
  background-repeat: no-repeat;
}
/* texturas fotográficas da cerimônia (bem sutis, mescladas por luminosidade) */
body::before,
body::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: -1;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  mix-blend-mode: luminosity;
}
body::before {
  top: 0;
  height: min(1200px, 90vh);
  background-image: url("assets/bg-topo.jpg");
  opacity: .12;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
}
body::after {
  bottom: 0;
  height: min(1150px, 95vh);
  background-image: url("assets/bg-base.jpg");
  opacity: .16;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 34%, #000 78%);
  mask-image: linear-gradient(180deg, transparent 0%, transparent 34%, #000 78%);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 700; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 1024px) { .wrap { padding: 0 40px; } }

h1, h2 {
  font-weight: 500;
  color: var(--verde);
  line-height: 1.05;
}
h1 { font-size: clamp(2rem, 8vw, 4.7rem); }
h2 { font-size: clamp(1.7rem, 6vw, 3.2rem); }
h3 { font-weight: 500; font-size: 1.25rem; color: var(--branco); }

p { font-size: 1rem; }
.sec p { color: var(--branco); }

/* ---------- botão ---------- */
.btn {
  display: inline-block;
  background: var(--verde);
  color: var(--preto);
  font-weight: 500;
  font-size: 1.1rem;
  padding: 18px 26px;
  border-radius: 8px;
  box-shadow: var(--btn-glow);
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn--sm { font-size: .95rem; padding: 12px 20px; }
.btn--dark { background: var(--preto); color: var(--verde); }

/* ---------- topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, backdrop-filter .25s ease, border-color .25s ease;
}
/* fundo + blur só depois que a página rola (classe via JS) */
.topbar.is-scrolled {
  background: rgba(42, 45, 51, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.topbar__logo img { width: 132px; }
/* CTA fixo no header (mobile mostra só "Votar") */
.topbar__inner .btn--sm { display: inline-block; order: 2; margin-left: auto; white-space: nowrap; }
.topbar__cta-ext { display: none; }

.nav__toggle {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: none;
  padding: 0;
  order: 3;
  margin-left: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--branco);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__links {
  position: absolute;
  top: 100%;
  right: 16px;
  z-index: 60;
  flex-direction: column;
  gap: 4px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px;
  min-width: 210px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.nav__links:not([hidden]) { display: flex; }
.nav__links a {
  padding: 9px 12px;
  border-radius: 8px;
  font-weight: 500;
  letter-spacing: .5px;
  line-height: 1.2;
}
.nav__links a:hover { background: rgba(0, 255, 168, 0.1); color: var(--verde); }

/* ---------- hero ---------- */
/* A imagem do troféu (blob verde + selo já embutidos no PNG) fica sempre
   encostada na borda direita da janela, transbordando para fora — é assim
   que o recorte da mão/braço funciona. overflow:hidden no .hero corta o excesso. */
.hero {
  position: relative;
  padding: 40px 0 0;
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 2; display: flex; flex-direction: column; }
.hero__copy { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; padding-bottom: 32px; }
.hero__copy p { font-size: 1.15rem; max-width: 40ch; }
.hero__art {
  position: relative;
  z-index: 1;
  display: block;
  width: 115%;
  max-width: 500px;
  margin-left: auto;
  margin-right: -16%;              /* joga a imagem para fora da borda direita */
  aspect-ratio: 981 / 900;         /* corta o espaço vazio embaixo do PNG */
  object-fit: cover;
  object-position: top center;
}

/* ---------- entrada das seções (easing) ---------- */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
}

/* passo a passo: cada etapa entra em sequência */
.reveal .step {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1.2s cubic-bezier(.16, 1, .3, 1), transform 1.2s cubic-bezier(.16, 1, .3, 1);
}
.reveal.is-visible .step { opacity: 1; transform: none; }
.reveal.is-visible .step:nth-child(1) { transition-delay: .25s; }
.reveal.is-visible .step:nth-child(2) { transition-delay: .95s; }
.reveal.is-visible .step:nth-child(3) { transition-delay: 1.65s; }
.reveal.is-visible .step:nth-child(4) { transition-delay: 2.35s; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal .step { opacity: 1; transform: none; }
}

/* ---------- seções base ---------- */
.sec { padding: 56px 0; }
.sec__head { display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; }
.sec__head--center { text-align: center; align-items: center; }
.sec__head--center p { max-width: 60ch; }
.sec__head p { color: var(--branco); font-size: 1.05rem; }
.sec__cta { text-align: center; margin-top: 40px; }

/* ---------- split (indicação) ---------- */
.split { display: flex; flex-direction: column; gap: 32px; }
.split__media img { border-radius: 24px; width: 100%; object-fit: cover; }
.split__copy { display: flex; flex-direction: column; gap: 20px; }
.split__copy p { color: var(--branco); }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: 1fr; gap: 20px; }
.card {
  background: var(--card);
  border: 1px solid transparent;
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}
.card h3 { font-size: 1.2rem; }
.card p { color: var(--cinza-txt); font-size: .95rem; }
.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(0, 255, 168, 0.12);
  color: var(--verde);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s ease, transform .18s ease;
}
.card__icon svg,
.card__icon img { width: 26px; height: 26px; }

/* efeito verde só no hover (antes era fixo no 3º card) */
@media (hover: hover) {
  .card:hover {
    border-color: rgba(0, 255, 168, 0.57);
    background: linear-gradient(180deg, rgba(0, 255, 168, 0.11) 0%, rgba(0, 255, 168, 0) 46%), var(--card);
    box-shadow: var(--glow), inset 0 0 7px rgba(0, 255, 168, 0.46);
  }
  .card:hover h3 { color: var(--verde); }
  .card:hover .card__icon { background: rgba(0, 255, 168, 0.2); }
}

/* passos numerados — sem card, badges ligadas por uma linha (igual Figma) */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin: 48px 0;
  position: relative;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  position: relative;
}
.step h3 { color: var(--branco); font-size: 1.15rem; }
.step p { color: var(--cinza-txt); font-size: .95rem; max-width: 30ch; }
.step__num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #254741;   /* cobre a linha que passa por trás */
  border: 2px solid var(--verde);
  color: var(--verde);
  font-weight: 600;
  font-size: 1.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* ---------- banner verde ---------- */
.banner {
  background: var(--verde);
  color: var(--preto);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column-reverse;   /* mobile: imagem embaixo do texto */
}
.banner__media { display: flex; justify-content: center; align-items: flex-end; }
.banner__media img { max-height: 380px; width: auto; object-fit: contain; display: block; }
.banner__copy { display: flex; flex-direction: column; gap: 20px; padding: 32px; }

.banner__copy h2 { color: var(--preto); }
.banner__copy p { color: var(--preto); }
.banner__copy .btn { align-self: flex-start; }

/* ---------- depoimentos (carrossel infinito) ---------- */
.depo__people { max-width: 552px; width: 100%; height: auto; margin-top: 6px; }
/* mobile: card em largura cheia, setas embaixo */
.depo { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; }
.depo__viewport { flex: 1 1 100%; order: 1; min-width: 0; overflow: hidden; padding: 24px 0 0; }
.depo__nav--prev { order: 2; }
.depo__nav--next { order: 3; }
.depo__track {
  list-style: none;
  display: flex;
  gap: 24px;
  will-change: transform;
  transition: transform .45s ease;
}
.depo__item {
  flex: 0 0 100%;            /* mobile: 1 card por vez */
  box-sizing: border-box;
  align-items: center;
  justify-content: center;   /* texto centralizado na vertical */
  text-align: center;
  gap: 24px;
  padding: clamp(32px, 3.5vw, 48px);
}
.depo__text { color: var(--branco); font-size: 1.05rem; }
.depo__author {
  font-weight: 500;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pin {
  width: 13px;
  height: 16px;
  flex: 0 0 auto;
  background: var(--verde);
  -webkit-mask: no-repeat center / contain;
  mask: no-repeat center / contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 16'%3E%3Cpath d='M6.5 0C2.9 0 0 2.9 0 6.5 0 11 6.5 16 6.5 16S13 11 13 6.5C13 2.9 10.1 0 6.5 0zm0 9A2.5 2.5 0 1 1 6.5 4a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 16'%3E%3Cpath d='M6.5 0C2.9 0 0 2.9 0 6.5 0 11 6.5 16 6.5 16S13 11 13 6.5C13 2.9 10.1 0 6.5 0zm0 9A2.5 2.5 0 1 1 6.5 4a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
}
.depo__nav {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, opacity .15s ease;
}
.depo__nav img { width: 17px; height: 17px; display: block; }
.depo__nav:hover { background: rgba(0, 255, 168, 0.14); border-color: rgba(0, 255, 168, 0.5); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 40px 0; }
.foot__inner { display: flex; flex-direction: column; gap: 28px; align-items: center; text-align: center; }
.foot__brand, .foot__selos { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; }
.foot__brand a, .foot__selos a { display: inline-flex; transition: opacity .15s ease; }
.foot__brand a:hover, .foot__selos a:hover { opacity: .75; }
.foot__brand img { height: 34px; width: auto; }
.foot__brand img[alt*="Prêmio"] { height: 46px; }
.foot__selos img { background: #fff; border-radius: 10px; padding: 6px 10px; height: 42px; width: auto; box-sizing: border-box; }
.foot__social { list-style: none; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; }
.foot__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--branco);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, color .15s ease;
}
.foot__social a:hover { background: var(--verde); color: var(--preto); }
.foot__social svg { width: 18px; height: 18px; }

/* ============ TABLET ============ */
@media (min-width: 720px) {
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .depo__item { flex-basis: calc((100% - 24px) / 2); }
  /* imagem da pessoa: fundo colado na base, cabeça vazando pra cima do card */
  .banner {
    position: relative;
    overflow: visible;
    flex-direction: row;
    align-items: stretch;
  }
  .banner--reverse { flex-direction: row-reverse; }
  .banner__media {
    flex: 0 0 45%;
    position: relative;
    align-self: stretch;
    justify-content: flex-start;
  }
  .banner__media img {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: calc(100% + 56px);
    max-height: none;
    object-fit: contain;
    object-position: bottom center;
  }
  .banner--reverse .banner__media img { left: auto; right: 0; }
  .banner__copy { flex: 1 1 60%; padding: 48px; }
  .foot__inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ============ DESKTOP ============ */
@media (min-width: 992px) {
  html { scroll-padding-top: 140px; }
  .sec { padding: 88px 0; }
  .topbar__logo img { width: 193px; }
  .topbar__inner { padding-top: 30px; padding-bottom: 30px; }
  .topbar__cta-ext { display: inline; }

  .nav__toggle { display: none; }
  .nav__links,
  .nav__links[hidden] {
    display: flex !important;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    margin-left: auto;
    background: none;
    border: 0;
    padding: 0;
    min-width: 0;
    box-shadow: none;
  }
  .nav__links a { padding: 6px 2px; }
  .nav__links a:hover { background: none; }
  .topbar__inner .btn--sm { display: inline-block; order: 0; margin-left: 28px; }

  /* herói: troféu encostado na borda direita da janela, topo alinhado (sem corte) */
  .hero { padding: 0; }
  .hero__inner { min-height: 640px; justify-content: center; }
  .hero__copy {
    position: relative;
    z-index: 2;
    gap: 40px;
    padding: 100px 0;
    max-width: 620px;
  }
  .hero__copy h1 { font-size: clamp(2rem, 3.6vw, 3.4rem); }
  .hero__copy p { font-size: clamp(1.05rem, 1.5vw, 1.35rem); line-height: 1.4; max-width: 30ch; }
  .hero__art {
    position: absolute;
    top: 24px;
    right: calc(100% - 100vw);   /* encosta na borda da janela, ignora a barra de rolagem */
    height: auto;
    width: min(46vw, 720px);
    max-width: none;
    margin: 0;
    aspect-ratio: auto;
  }

  .split { flex-direction: row; align-items: center; gap: 64px; }
  .split__media, .split__copy { flex: 1 1 50%; }
  .split__copy p { font-size: 1.15rem; }

  .sec__head--between { flex-direction: row; align-items: flex-start; gap: 80px; }
  .sec__head--between h2 { flex: 0 0 42%; }
  .sec__head--between p { flex: 1 1 58%; font-size: 1.2rem; }

  .cards--4 { grid-template-columns: repeat(4, 1fr); }

  /* passos: 4 colunas ligadas por uma linha verde que "desenha" na entrada */
  .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 72px 0; }
  .steps::before {
    content: "";
    position: absolute;
    top: 28px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: var(--verde);
    opacity: .55;
    transform-origin: left center;
    /* linha desenha no mesmo ritmo em que os passos surgem */
    transition: transform 2.1s linear .25s;
  }
  .reveal .steps::before { transform: scaleX(0); }
  .reveal.is-visible .steps::before { transform: scaleX(1); }

  /* carrossel: 3 cards por vez, setas embaixo e centralizadas */
  .depo__viewport { padding: 24px 0 4px; }
  .depo__item { flex-basis: calc((100% - 48px) / 3); }

  h1 { font-size: 4.7rem; }
  h2 { font-size: 3.2rem; }
}

/* ============ DESKTOP LARGO — troféu cresce junto com a tela ============ */
@media (min-width: 1200px) {
  .hero__inner { min-height: 780px; }
  .hero__art { width: min(46vw, 880px); }
}
@media (min-width: 1440px) {
  .hero__inner { min-height: min(880px, 92vh); }
  .hero__art { width: min(48vw, 1000px); }
}
@media (min-width: 1700px) {
  .hero__inner { min-height: min(1000px, 92vh); }
  .hero__art { width: min(50vw, 1140px); }
}
