/* #hero — variante MOBILE (< 768px): vídeo vertical + CTA + métricas.
   O hero desktop (word-scroll) não é tocado: aqui só se esconde ele no mobile
   e o bloco novo some a partir de 768px. */
.cdev-hero-m { display: none; }

@media (max-width: 767.98px) {
  .cdev-hero .cdev-word-scroll { display: none; }

  .cdev-hero-m {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    /* sangra até a borda da tela, fora do .container */
    width: 100vw;
    left: 50%;
    margin-left: -50vw;
    /* 96px = folga da navbar fixa */
    padding: 96px 24px 32px;
    background: #0D0F12;
    -webkit-font-smoothing: antialiased;
  }
  .cdev-hero-m__bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
  /* Máscara radial no PAI (estática, não gira): esfuma as bordas em 360° e
     funde com o #0D0F12, então nenhum canto reto aparece durante a rotação. */
  .cdev-hero-m__bg {
    -webkit-mask-image: radial-gradient(circle at center, #000 40%, transparent 80%);
    mask-image: radial-gradient(circle at center, #000 40%, transparent 80%);
  }
  /* 250% da hero, centrado. O -50%/-50% vem do GSAP (xPercent/yPercent em
     hero-mobile.ts), não de translate no CSS, para não brigar com o rotate. */
  .cdev-hero-m__wave {
    position: absolute;
    width: 250%;
    height: 250%;
    left: 50%;
    top: 50%;
    transform-origin: 50% 50%;
    opacity: .85; /* a máscara já escurece as bordas; baixa o suficiente p/ o texto manter contraste */
    pointer-events: none;
    will-change: transform;
  }
  .cdev-hero-m__wave svg { display: block; }
  .cdev-hero-m__body { position: relative; z-index: 1; }
  .cdev-hero-m__cta { position: relative; z-index: 1; }
  .cdev-hero-m__tag {
    margin: 0 0 16px;
    font: 500 .75rem/1.2 var(--font-mono, "JetBrains Mono", monospace);
    letter-spacing: .1em;
    color: rgba(255, 90, 150, .85);
  }
  .cdev-hero-m__title {
    margin: 0;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.02em;
    color: #fff;
  }
  .cdev-hero-m__hl {
    background: linear-gradient(90deg, #ff5a96, #ff0055);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--cdev-pink); /* fallback */
  }
  .cdev-hero-m__sub { margin: 16px 0 0; font-size: 1rem; line-height: 1.55; color: rgba(255, 255, 255, .72); }

  .cdev-hero-m__cta { margin-top: 40px; text-align: center; }
  .cdev-hero-m__btn {
    display: block;
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    background: var(--cdev-pink);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: transform .15s ease;
  }
  .cdev-hero-m__btn:active { transform: scale(.98); }
  .cdev-hero-m__btn:focus-visible { outline: 2px solid var(--cdev-pink-bright); outline-offset: 3px; }
  .cdev-hero-m__cta p { margin: 8px 0 0; font-size: .8125rem; color: #fff; opacity: .6; }
}

/* Métricas logo abaixo do hero: carrossel com snap no mobile */
@media (max-width: 767.98px) {
  #credibilidade .cd-metrics {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-inline: calc(var(--space-4) * -1);
    padding: 16px var(--space-4);
    background: rgba(13, 15, 18, .9);
    backdrop-filter: blur(12px);
  }
  #credibilidade .cd-metrics::-webkit-scrollbar { display: none; }
  #credibilidade .cd-metric { flex: 0 0 70%; scroll-snap-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .cdev-hero-m__btn { transition: none; }
}
