/* ── Hero principal ── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-copy {
  position: relative;
}

.hero-copy-inner {
  position: relative;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0 6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.22fr);
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 901px) {
  .hero-content {
    width: min(1380px, calc(100% - 1.5rem));
  }

  .hero-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(2.5rem, 5vw, 5.5rem);
  }

  .hero-copy {
    flex: 0 1 460px;
    max-width: 44%;
  }

  .hero-visual {
    flex: 0 1 min(56%, 760px);
    margin-left: auto;
  }
}

.hero-visual {
  position: relative;
  opacity: 0;
  transform: scale(0.95);
  width: 100%;
}

.hero-video-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  aspect-ratio: 16 / 11;
  min-height: 340px;
  background: var(--bg-muted);
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* ── Partículas na seção Sobre ── */
.section-particles {
  position: relative;
  overflow: hidden;
}

.section-particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.32;
  pointer-events: none;
}

.section-particles-content {
  position: relative;
  z-index: 1;
}

/* ── Cards com imagem de fundo ── */
.card-bg {
  position: relative;
  padding: 0;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: var(--bg-muted);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  box-shadow: var(--shadow-lg);
}

.card-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0) 0%,
    rgba(15, 23, 42, 0.25) 45%,
    rgba(15, 23, 42, 0.82) 78%,
    rgba(15, 23, 42, 0.95) 100%
  );
  z-index: 0;
}

.card-bg-content {
  position: relative;
  z-index: 1;
  padding: 1.75rem 1.5rem 1.5rem;
  color: #fff;
}

.card-bg-content h3 {
  color: #fff;
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.card-bg-content p {
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.card-bg--visual::before {
  display: none;
}

.card-bg--visual {
  aspect-ratio: 8 / 9;
  min-height: 0;
  background-size: contain;
  background-position: center;
  background-color: #050505;
  border: none;
  box-shadow: var(--shadow);
}

/* ── Como funciona ── */
.section-como-funciona {
  background: var(--bg-soft);
}

@media (min-width: 901px) {
  .section-como-funciona {
    position: relative;
    background-color: #050505;
    background-image: url("../assets/como-funciona-desktop.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
  }

  .section-como-funciona::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(5, 5, 5, 0.55) 0%,
      rgba(5, 5, 5, 0.72) 45%,
      rgba(5, 5, 5, 0.88) 100%
    );
    z-index: 0;
  }

  .section-como-funciona .container {
    position: relative;
    z-index: 1;
  }

  .section-como-funciona .section-header .kicker {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #bbf7d0;
  }

  .section-como-funciona .section-header h2 {
    color: #fff;
  }

  .section-como-funciona .section-header .lead {
    color: rgba(255, 255, 255, 0.88);
  }

  .section-como-funciona .step-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    backdrop-filter: blur(6px);
  }

  .section-como-funciona .step-card h3 {
    color: #fff;
  }

  .section-como-funciona .step-card p {
    color: rgba(255, 255, 255, 0.78);
  }

  .section-como-funciona .btn-ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .section-como-funciona .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
  }
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  counter-reset: step;
}

.step-card {
  text-align: center;
  padding: 1.5rem 1rem;
  position: relative;
}

.step-card::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.step-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

/* ── Showcase — carrossel automático ── */
.showcase {
  position: relative;
}

.showcase--bleed {
  width: 100%;
}

.showcase-track {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 0 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.showcase-track::-webkit-scrollbar { display: none; }

.showcase--auto {
  overflow: hidden;
}

.showcase--auto .showcase-track {
  overflow-x: visible;
  scroll-snap-type: none;
  width: max-content;
}

.showcase-track--auto {
  animation: showcase-marquee 32s linear infinite;
  will-change: transform;
}

.showcase-track--auto:hover {
  animation-play-state: paused;
}

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

.showcase-item {
  flex: 0 0 min(460px, 86vw);
  scroll-snap-align: center;
}

.showcase-item .media-slot {
  margin-bottom: 1rem;
  transition: transform 0.4s ease;
}

.showcase-item .media-slot--showcase {
  aspect-ratio: 16 / 10;
  max-height: 320px;
  border: none;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  padding: 0;
  box-shadow: var(--shadow);
}

.showcase-item .media-slot--showcase img {
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.showcase-item h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.showcase-item p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

@media (min-width: 900px) {
  #recursos .showcase--bleed {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  #recursos .showcase--bleed .showcase-track {
    gap: 1.25rem;
    padding: 1rem clamp(0.5rem, 1vw, 0.75rem) 2rem;
  }

  #recursos .showcase-item {
    flex: 0 0 clamp(500px, 36vw, 620px);
  }

  #recursos .showcase-item .media-slot--showcase {
    max-height: none;
  }

  .coins-bridge--cart {
    justify-content: flex-end;
    padding-right: 0;
  }

  .coins-bridge--cart .coins-bridge__parallax {
    width: min(400px, 30vw);
    margin-right: clamp(-1rem, -2vw, 0rem);
    margin-left: auto;
  }
}

/* ── Recursos + Para quem é — carrinho entre seções ── */
.recursos-para-quem-zone {
  position: relative;
  overflow: visible;
  background: #fff;
}

.recursos-para-quem-zone #recursos {
  position: relative;
  z-index: 2;
  background: transparent;
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.recursos-para-quem-zone #recursos .container,
.recursos-para-quem-zone #recursos .section-header,
.recursos-para-quem-zone #recursos .showcase,
.recursos-para-quem-zone #recursos .showcase-item {
  position: relative;
  z-index: 3;
}

.coins-bridge--cart {
  height: clamp(7rem, 16vw, 10rem);
  margin-top: clamp(-4rem, -7vw, -2.5rem);
  margin-bottom: clamp(-4rem, -7vw, -2.5rem);
  justify-content: flex-end;
  padding-right: clamp(0.25rem, 2vw, 1.25rem);
}

.coins-bridge__parallax--cart,
.coins-bridge--cart .coins-bridge__parallax {
  width: min(300px, 46vw);
  margin-left: auto;
  margin-right: clamp(0.5rem, 5vw, 4rem);
}

.coins-bridge__img--cart {
  object-position: center 58%;
  mix-blend-mode: screen;
  filter: contrast(1.4) saturate(1.65) brightness(1.1);
  opacity: 0.94;
  transform: translateY(4%);
}

.coins-bridge__img--cart.coins-bridge__img--overlay {
  opacity: 0.5;
  transform: translateY(4%) scale(1.03);
}

/* ── Para quem é — profile cards ── */
.para-quem-cta-zone {
  position: relative;
  overflow: visible;
  background: #fff;
}

.section-para-quem {
  position: relative;
  z-index: 2;
  overflow: visible;
  background: transparent;
  padding-top: clamp(1rem, 3vw, 2rem);
  padding-bottom: clamp(4rem, 9vw, 6rem);
}

.section-para-quem .section-header,
.section-para-quem .profile-cards,
.section-para-quem .profile-card {
  position: relative;
  z-index: 3;
}

.section-para-quem .container {
  position: relative;
  z-index: 3;
}

.coins-bridge--moedas {
  height: clamp(11rem, 24vw, 16rem);
  margin-top: clamp(-4rem, -8vw, -2rem);
  margin-bottom: clamp(-3rem, -6vw, -1.5rem);
}

.coins-bridge {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.coins-bridge__parallax {
  position: relative;
  width: min(1180px, 135vw);
  will-change: transform;
  z-index: 0;
}

.coins-bridge__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center 72%;
  mix-blend-mode: screen;
  filter: contrast(1.45) saturate(1.7) brightness(1.12);
  opacity: 0.92;
  transform: translateY(6%);
}

.coins-bridge__img--overlay {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  transform: translateY(6%) scale(1.04);
  object-position: center 72%;
}

.section-after-para-quem {
  position: relative;
  z-index: 4;
  background: transparent;
  padding-top: clamp(5rem, 11vw, 8rem);
}

.section-after-para-quem .container {
  position: relative;
  z-index: 1;
}

.section-after-para-quem .cta-banner {
  margin-top: clamp(3rem, 8vw, 5rem);
  position: relative;
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .coins-bridge__parallax[data-parallax-target] {
    transform: none !important;
  }
}

.profile-cards {
  align-items: stretch;
}

.profile-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--card);
  border-radius: 1.5rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.12);
}

.profile-card__cover-wrap {
  margin: 0;
  padding: 0;
  height: 9.5rem;
  overflow: hidden;
  flex-shrink: 0;
}

.profile-card__cover {
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center top;
  transform: translateY(-18%);
  border-radius: 0;
  display: block;
}

.profile-card__avatar-wrap {
  width: 5.75rem;
  height: 5.75rem;
  margin: -2.875rem auto 0;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a, #064e3b, #22c55e);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.profile-card__avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 3px solid #fff;
  background: var(--bg-muted);
  display: block;
}

.profile-card__body {
  flex: 1;
  padding: 1rem 1.35rem 1.25rem;
  text-align: center;
}

.profile-card__body h3 {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.profile-card__body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 28ch;
  margin-inline: auto;
}

.profile-card__footer {
  margin: 0 0.85rem 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: var(--bg-muted);
  text-align: center;
}

.profile-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.08);
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.profile-card__link:hover {
  transform: translateY(-1px);
  background: #fff;
  color: var(--primary-dark);
}

.profile-card__link--primary {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.28);
}

.profile-card__link--primary:hover {
  background: var(--primary-dark);
  color: #fff;
}

@media (max-width: 899px) {
  .profile-cards {
    grid-template-columns: 1fr;
    max-width: 22rem;
    margin-inline: auto;
  }

  .profile-card__cover-wrap {
    height: 8.5rem;
  }
}

/* legacy */
.audience-card {
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.audience-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.audience-card .card-icon { font-size: 1.8rem; }

.audience-card p {
  color: var(--muted);
  flex: 1;
  margin-bottom: 1.25rem;
}

/* ── CTA final ── */
.cta-banner {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  text-align: center;
  color: #fff;
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 50ch;
  margin: 0 auto 1.5rem;
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--accent);
  box-shadow: none;
}

.cta-banner .btn-primary:hover {
  background: var(--bg-soft);
  color: var(--accent);
}

/* ── Fornecedores ── */
.zero-cost-banner {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.08) 0%, rgba(34, 197, 94, 0.15) 100%);
  border: 1px solid rgba(22, 163, 74, 0.25);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin-bottom: 3rem;
}

.zero-cost-banner h2 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.zero-cost-banner p {
  color: var(--muted);
  max-width: 55ch;
  margin: 0 auto 1.25rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-soft);
}

.feature-list li:last-child { border-bottom: none; }

.feature-list li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.download-buttons--start {
  justify-content: flex-start;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: var(--text);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: transform 0.2s, background 0.2s;
}

.store-btn:hover {
  background: #1e293b;
  color: #fff;
  transform: translateY(-2px);
}

.store-btn small {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.7;
}

.store-btn span {
  font-size: 1rem;
}

.store-btn--soon {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.store-btn--web {
  background: var(--primary);
}

.store-btn--web:hover {
  background: var(--primary-dark);
  color: #fff;
}

.download-hint {
  margin: 1rem auto 0;
  max-width: 42ch;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Página fornecedor: blocos de benefício ── */
.supplier-copy__lead {
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 38ch;
  line-height: 1.65;
}

.supplier-benefits {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.supplier-benefit {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.supplier-benefit__icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.supplier-benefit h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: var(--text);
}

.supplier-benefit p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Stats ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-item span {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ── Reveal animations (GSAP targets) ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
}

@media (max-width: 900px) {
  .hero {
    overflow: visible;
    align-items: flex-start;
    min-height: auto;
    padding-top: var(--header-h);
  }

  .hero-content {
    padding-top: 0;
    padding-bottom: 3rem;
    width: 100%;
  }

  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual {
    order: -1;
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
  .hero-video-wrap {
    border-radius: 0;
    border-left: none;
    border-right: none;
    aspect-ratio: 16 / 10;
    min-height: 240px;
  }

  .section-como-funciona {
    position: relative;
    background-color: #050505;
    background-image: url("../assets/como-funciona-mobile.png");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    overflow: hidden;
  }

  .section-como-funciona::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(5, 5, 5, 0.5) 0%,
      rgba(5, 5, 5, 0.68) 40%,
      rgba(5, 5, 5, 0.92) 100%
    );
    z-index: 0;
  }

  .section-como-funciona .container {
    position: relative;
    z-index: 1;
  }

  .section-como-funciona .section-header .kicker {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #bbf7d0;
  }

  .section-como-funciona .section-header h2 {
    color: #fff;
  }

  .section-como-funciona .section-header .lead {
    color: rgba(255, 255, 255, 0.88);
  }

  .section-como-funciona .step-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    backdrop-filter: blur(6px);
  }

  .section-como-funciona .step-card h3 {
    color: #fff;
  }

  .section-como-funciona .step-card p {
    color: rgba(255, 255, 255, 0.78);
  }

  .section-como-funciona .btn-ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .section-como-funciona .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
  }

  .steps-row { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .steps-row { grid-template-columns: 1fr; }
}
