/**
 * Home nova v2 — camada de efeitos sobre a linguagem visual do DESIGN.md.
 * Poppins, acento #e91e63 reservado a CTA, superfície --bc-ink.
 * Todo movimento é desligado em prefers-reduced-motion (fim do arquivo).
 */

.bc-h2 {
  --bc-accent: #e91e63;
  --bc-accent-dark: #c2185b;
  --bc-accent-deep: #880e4f;
  --bc-accent-light: #ff4f8b;
  --bc-border: #e0e0e0;
  --bc-border-soft: #e8e8e8;
  --bc-text: #000;
  --bc-muted: #666;
  --bc-bg-soft: #f8f9fa;
  --bc-white: #fff;
  --bc-ink: #0b0a0d;
  --bc-ink-soft: #15111a;
  --bc-radius: 12px;

  /* Curvas reaproveitadas em toda a página */
  --bc-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --bc-ease-inout: cubic-bezier(0.76, 0, 0.24, 1);

  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--bc-text);
  background: var(--bc-white);
}

.bc-h2-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  box-sizing: border-box;
}

/* ============================================================
   LIQUID GLASS
   Adaptado do padrão de borda por mask-composite: um anel de
   gradiente que só existe na borda, sem pintar o miolo.
   ============================================================ */

.bc-glass {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12);
}

.bc-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.14) 22%,
    rgba(255, 255, 255, 0) 45%,
    rgba(255, 255, 255, 0) 58%,
    rgba(255, 255, 255, 0.14) 80%,
    rgba(255, 255, 255, 0.45) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* ============================================================
   HERO
   ============================================================ */

.bc-h2-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--bc-nav-topbar-h, 64px));
  /* dvh acompanha a barra de endereço do mobile; 100vh acima é o fallback. */
  min-height: calc(100dvh - var(--bc-nav-topbar-h, 64px));
  overflow: hidden;
  background-color: var(--bc-ink);
  isolation: isolate;
}

.bc-h2-hero-media {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 62%;
  z-index: 0;
  /* Folga para o parallax não descobrir a borda ao deslocar a mídia */
  transform: scale(1.06);
  will-change: transform;
}

.bc-h2-hero-img,
.bc-h2-hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Sem vídeo, a imagem ganha um zoom lento para o hero não ficar estático */
.bc-h2-hero-img {
  animation: bc-h2-kenburns 26s ease-in-out infinite alternate;
}

@keyframes bc-h2-kenburns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.09);
  }
}

/* Véu: fecha em tinta opaca em 48%, antes de a mídia acabar em 62% */
.bc-h2-hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      115% 100% at 80% 26%,
      rgba(233, 30, 99, 0.18) 0%,
      rgba(233, 30, 99, 0.05) 40%,
      rgba(233, 30, 99, 0) 66%
    ),
    linear-gradient(
      94deg,
      rgba(11, 10, 13, 0) 6%,
      rgba(11, 10, 13, 0.2) 22%,
      rgba(11, 10, 13, 0.78) 38%,
      var(--bc-ink) 48%
    );
}

/* Grão de filme: SVG inline, sem requisição extra */
.bc-h2-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.bc-h2-hero-panel {
  position: relative;
  z-index: 3;
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  padding: clamp(32px, 6vw, 72px) clamp(24px, 5vw, 72px);
  color: #fff;
  background: transparent;
}

/* ---- Eyebrow ---- */

.bc-h2-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.bc-h2-pulse {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bc-accent-light);
}

.bc-h2-pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--bc-accent-light);
  animation: bc-h2-ping 2.4s var(--bc-ease-out) infinite;
}

@keyframes bc-h2-ping {
  0% {
    opacity: 0.7;
    transform: scale(0.6);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

/* ---- Título, revelado palavra a palavra ---- */

.bc-h2-title {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 50px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.3px;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
}

/* A palavra é a janela; o filho é o que sobe dentro dela.
   O padding/margem negativa dá folga para descendentes (g, ç) não serem
   decepados pelo overflow: hidden da janela. */
.bc-h2-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
}

.bc-h2-word-in {
  display: inline-block;
  transform: translateY(105%);
  opacity: 0;
  transition:
    transform 0.9s var(--bc-ease-out),
    opacity 0.9s var(--bc-ease-out);
  transition-delay: var(--d, 0ms);
}

.is-ready .bc-h2-word-in {
  transform: translateY(0);
  opacity: 1;
}

/* ---- Entrada genérica ---- */

[data-bc-rise] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.9s var(--bc-ease-out),
    transform 0.9s var(--bc-ease-out);
  transition-delay: var(--d, 0ms);
}

.is-ready [data-bc-rise] {
  opacity: 1;
  transform: translateY(0);
}

.bc-h2-lead {
  margin: 0;
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.76);
}

.bc-h2-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.bc-h2-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
}

.bc-h2-trust i {
  color: var(--bc-accent-light);
  font-size: 13px;
}

/* ---- Indicador de rolagem ---- */

.bc-h2-scrollcue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 3;
  width: 1px;
  height: 54px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
}

.bc-h2-scrollcue-line {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, var(--bc-accent-light));
  animation: bc-h2-cue 2.2s var(--bc-ease-inout) infinite;
}

@keyframes bc-h2-cue {
  0% {
    transform: translateY(-100%);
  }
  60%,
  100% {
    transform: translateY(100%);
  }
}

/* ============================================================
   BOTÕES
   ============================================================ */

.bc-h2-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 13px 26px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.35s var(--bc-ease-out),
    box-shadow 0.35s var(--bc-ease-out),
    background 0.35s var(--bc-ease-out),
    color 0.35s var(--bc-ease-out);
}

.bc-h2-btn:focus-visible {
  outline: 2px solid var(--bc-accent);
  outline-offset: 3px;
}

.bc-h2-btn-primary {
  background: linear-gradient(135deg, var(--bc-accent), var(--bc-accent-dark));
  color: #fff;
  box-shadow: 0 4px 16px rgba(233, 30, 99, 0.28);
}

.bc-h2-btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(233, 30, 99, 0.42);
}

.bc-h2-btn-label {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

/* Brilho que atravessa o botão no hover */
.bc-h2-sheen {
  position: absolute;
  top: 0;
  left: -120%;
  z-index: 1;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.38),
    transparent
  );
  transition: left 0.75s var(--bc-ease-out);
}

.bc-h2-btn:hover .bc-h2-sheen {
  left: 130%;
}

.bc-h2-btn-glass {
  color: #fff;
  border-radius: 999px;
}

.bc-h2-btn-glass:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
  transform: translateY(-2px);
}

.bc-h2-btn-outline {
  background: transparent;
  color: var(--bc-muted);
  box-shadow: inset 0 0 0 2px var(--bc-border);
}

.bc-h2-btn-outline:hover {
  color: var(--bc-accent-dark);
  background: rgba(233, 30, 99, 0.06);
  box-shadow: inset 0 0 0 2px var(--bc-accent);
  transform: translateY(-2px);
}

.bc-h2-btn-light {
  background: #fff;
  color: var(--bc-accent-dark);
  font-weight: 600;
}

.bc-h2-btn-light:hover {
  color: var(--bc-accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.bc-h2-btn-ghost-light {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.bc-h2-btn-ghost-light:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.bc-h2-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

/* ============================================================
   FAIXA DESLIZANTE
   ============================================================ */

.bc-h2-marquee {
  overflow: hidden;
  padding: 16px 0;
  background: var(--bc-ink);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  /* Esmaece as pontas para o loop não "entrar em cena" */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
}

/* Sem gap no trilho de propósito: o espaçamento vive no padding de cada item.
   Com gap, a folga entre as duas metades entraria na largura e o -50% do
   keyframe deixaria de fechar um ciclo exato — o loop daria um salto visível. */
.bc-h2-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: bc-h2-marquee 34s linear infinite;
}

/* A lista é repetida 2x no HTML; -50% completa um ciclo exato, sem salto */
@keyframes bc-h2-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.bc-h2-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}

.bc-h2-marquee-item i {
  font-size: 5px;
  color: var(--bc-accent);
}

/* ============================================================
   REVEAL NO SCROLL
   ============================================================ */

[data-bc-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.85s var(--bc-ease-out),
    transform 0.85s var(--bc-ease-out);
  transition-delay: var(--d, 0ms);
}

[data-bc-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   CARDS
   ============================================================ */

.bc-h2-audiences {
  padding: clamp(48px, 8vw, 88px) 0;
  background: var(--bc-bg-soft);
}

.bc-h2-audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.bc-h2-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: clamp(24px, 3vw, 34px);
  background: var(--bc-white);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 12px 32px rgba(15, 23, 42, 0.1);
  overflow: hidden;
  transition:
    box-shadow 0.5s var(--bc-ease-out),
    transform 0.5s var(--bc-ease-out),
    border-color 0.5s var(--bc-ease-out);
}

/* Halo que segue o cursor — coordenadas vindas do JS */
.bc-h2-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    340px circle at var(--mx, 50%) var(--my, 50%),
    rgba(233, 30, 99, 0.09),
    transparent 62%
  );
  transition: opacity 0.4s var(--bc-ease-out);
}

.bc-h2-card:hover {
  transform: translateY(-4px);
  border-color: rgba(233, 30, 99, 0.28);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.09), 0 24px 56px rgba(233, 30, 99, 0.14);
}

.bc-h2-card:hover::after {
  opacity: 1;
}

.bc-h2-card-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(233, 30, 99, 0.08);
  color: var(--bc-accent-dark);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bc-h2-card h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--bc-text);
}

.bc-h2-card h2 strong {
  color: var(--bc-accent);
  font-weight: 700;
}

.bc-h2-card > p {
  margin: 0;
  color: var(--bc-muted);
}

.bc-h2-list {
  margin: 4px 0 8px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.bc-h2-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--bc-text);
}

.bc-h2-list i {
  margin-top: 3px;
  color: var(--bc-accent);
  font-size: 11px;
}

/* ============================================================
   PILARES
   ============================================================ */

.bc-h2-pillars {
  padding: clamp(48px, 8vw, 88px) 0;
  background: var(--bc-white);
}

.bc-h2-section-title {
  margin: 0 0 clamp(24px, 4vw, 40px);
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--bc-text);
}

.bc-h2-pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.bc-h2-pillar {
  padding: 26px;
  background: var(--bc-white);
  border: 1px solid var(--bc-border-soft);
  border-radius: var(--bc-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.5s var(--bc-ease-out),
    box-shadow 0.5s var(--bc-ease-out);
}

.bc-h2-pillar:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.13);
}

.bc-h2-pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: rgba(233, 30, 99, 0.08);
  color: var(--bc-accent);
  font-size: 18px;
  transition: transform 0.5s var(--bc-ease-out), background 0.5s var(--bc-ease-out);
}

.bc-h2-pillar:hover .bc-h2-pillar-icon {
  transform: scale(1.08) rotate(-6deg);
  background: rgba(233, 30, 99, 0.14);
}

.bc-h2-pillar h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--bc-text);
}

.bc-h2-pillar p {
  margin: 0;
  font-size: 13px;
  color: var(--bc-muted);
}

/* ============================================================
   CTA FINAL
   ============================================================ */

.bc-h2-cta {
  padding: 0 0 clamp(48px, 8vw, 88px);
  background: var(--bc-white);
}

.bc-h2-cta-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: clamp(44px, 6vh, 62px) clamp(22px, 4vw, 40px);
  border-radius: var(--bc-radius);
  background: linear-gradient(135deg, var(--bc-accent) 0%, var(--bc-accent-light) 100%);
  box-shadow: 0 12px 40px rgba(233, 30, 99, 0.28);
  text-align: center;
  color: #fff;
  overflow: hidden;
}

/* Luz que respira atrás do texto */
.bc-h2-cta-glow {
  position: absolute;
  inset: -40%;
  pointer-events: none;
  background: radial-gradient(
    closest-side,
    rgba(255, 255, 255, 0.28),
    transparent
  );
  animation: bc-h2-drift 9s var(--bc-ease-inout) infinite alternate;
}

@keyframes bc-h2-drift {
  from {
    transform: translate3d(-12%, -8%, 0) scale(0.9);
  }
  to {
    transform: translate3d(12%, 8%, 0) scale(1.1);
  }
}

.bc-h2-cta-panel > * {
  position: relative;
  z-index: 1;
}

.bc-h2-cta-panel h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.bc-h2-cta-panel p {
  margin: 0;
  max-width: 56ch;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.92);
}

.bc-h2-cta-panel .bc-h2-actions {
  justify-content: center;
}

/* ============================================================
   RESPONSIVO
   ============================================================ */

@media (max-width: 1023px) {
  .bc-h2-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .bc-h2-hero-media {
    position: relative;
    width: 100%;
    height: clamp(320px, 52vh, 460px);
    grid-row: 1;
    transform: none;
  }

  .bc-h2-hero-panel {
    grid-column: 1;
    grid-row: 2;
    padding-bottom: clamp(40px, 8vw, 64px);
  }

  /* No empilhado o véu do hero abrangeria as DUAS linhas (foto + painel), e o
     degradê terminaria longe do fim da imagem — deixando uma borda dura ali.
     Aqui o véu do hero fica só com o halo rosa, e quem dissolve a foto é um
     véu próprio dela, que fecha em tinta sólida dentro da própria imagem. */
  .bc-h2-hero-veil {
    background: radial-gradient(
      150% 55% at 68% 88%,
      rgba(233, 30, 99, 0.16) 0%,
      rgba(233, 30, 99, 0) 62%
    );
  }

  .bc-h2-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
      180deg,
      rgba(11, 10, 13, 0) 38%,
      rgba(11, 10, 13, 0.72) 80%,
      var(--bc-ink) 100%
    );
  }

  .bc-h2-scrollcue {
    display: none;
  }

  .bc-h2-audience-grid,
  .bc-h2-pillar-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .bc-h2-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  /* O nowrap do desktop estoura em telas estreitas: "Quero ser avisado do
     lançamento" não cabe em 320–375px e empurraria rolagem horizontal. */
  .bc-h2-btn {
    width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }
}

@media (max-width: 400px) {
  .bc-h2-hero-media {
    height: clamp(260px, 44vh, 340px);
  }

  .bc-h2-trust {
    gap: 8px 16px;
  }

  .bc-h2-marquee-item {
    gap: 24px;
    padding-right: 24px;
  }
}

/* ============================================================
   ACESSIBILIDADE — sem movimento
   Nada de opacidade 0 presa: os estados finais são forçados.
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .bc-h2 *,
  .bc-h2 *::before,
  .bc-h2 *::after {
    animation: none !important;
    transition: none !important;
  }

  .bc-h2-word-in,
  [data-bc-rise],
  [data-bc-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .bc-h2-hero-media {
    transform: none !important;
  }
}
