/* Botão neon que explode (porte do shatter-cta.css da LP). Vidro #70BEFA, anel ocioso que pulsa a cada 2,6 s,
   reflexo que varre a cada 3,2 s. Cacos e anel de choque em keyframes num portal fixo no body. Só transform/opacity. */

.neon-wrap { display: inline-block; position: relative; vertical-align: middle; border-radius: 12px }
.neon-wrap::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  border: 1px solid #70BEFA; opacity: 0;
  animation: neon-anel-ocioso 2600ms cubic-bezier(.23, 1, .32, 1) infinite;
}
@keyframes neon-anel-ocioso {
  0% { transform: scale(1); opacity: .55 }
  70%, 100% { transform: scale(1.08, 1.3); opacity: 0 }
}

.neon {
  --c: #70BEFA;
  position: relative; display: flex; align-items: center; justify-content: center; gap: .7em; width: 100%;
  min-height: 3.25rem; padding: 16px 32px; border-radius: 12px; cursor: pointer; overflow: hidden;
  font-family: inherit; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.25;
  white-space: nowrap; text-decoration: none; text-align: center;
  color: var(--c); background: linear-gradient(135deg, rgba(112, 190, 250, .13), rgba(112, 190, 250, .27));
  border: 1px solid rgba(112, 190, 250, .4);
  box-shadow: 0 0 20px rgba(112, 190, 250, .2), inset 0 0 20px rgba(112, 190, 250, .07);
  transition: transform 150ms cubic-bezier(.23, 1, .32, 1), opacity 150ms ease;
  -webkit-tap-highlight-color: transparent;
}
.neon::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(112, 190, 250, .2), transparent 70%);
  opacity: 0; transition: opacity 200ms ease;
}
.neon::after {
  content: ""; position: absolute; top: -40%; bottom: -40%; left: 0; width: 38%; pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(214, 238, 255, .28) 50%, transparent);
  transform: translateX(-160%) skewX(-18deg);
  animation: neon-brilho 3200ms cubic-bezier(.77, 0, .175, 1) 600ms infinite;
}
@keyframes neon-brilho {
  0% { transform: translateX(-160%) skewX(-18deg) }
  38%, 100% { transform: translateX(420%) skewX(-18deg) }
}
.neon > * { position: relative; z-index: 1 }
.neon .ic { width: 1.15em; height: 1.15em; flex: none }
.neon:active { transform: scale(.95) }
.neon.is-off, .neon.is-off:hover { transform: scale(0); opacity: 0; pointer-events: none }
.neon:focus-visible { outline: 2px solid var(--c); outline-offset: 2px }
.neon:disabled { cursor: progress; opacity: .6 }
.neon.is-off::after, .neon:disabled::after,
.neon-wrap:has(.is-off)::before, .neon-wrap:has(:disabled)::before { animation: none; opacity: 0 }
@media (hover: hover) and (pointer: fine) {
  .neon:hover { transform: scale(1.05) }
  .neon:hover::before { opacity: 1 }
  .neon-wrap:has(.neon:hover)::before { animation: none; opacity: 0 }
}

/* tamanhos: grande no billboard, bloco nos cartões, compacto no topo */
.neon-grande .neon { padding: 18px 40px; font-size: 15px }
@media (min-width: 64rem) { .neon-grande .neon { min-height: 3.75rem; padding: 20px 56px; font-size: 16px } }
.neon-bloco { display: block; width: 100% }
.neon-bloco .neon { white-space: normal }
.neon-compacto, .neon-compacto .neon { border-radius: 999px }
.neon-compacto .neon { min-height: 2.75rem; padding: 0 20px; font-size: 11.5px; letter-spacing: .14em }
.neon-compacto::before { animation-duration: 3400ms }
@media (max-width: 47.99rem) { .neon { padding-inline: 18px; letter-spacing: .05em } .neon-compacto .neon { padding-inline: 16px; letter-spacing: .12em } }
@media (max-width: 23.5rem) { .neon { font-size: 13px; letter-spacing: .03em } }

/* portal no body */
.neon-fx { position: fixed; inset: 0; z-index: 99999; pointer-events: none }
.neon-caco {
  position: absolute; left: var(--ox); top: var(--oy); display: block;
  background: #70BEFA; box-shadow: 0 0 10px #70BEFA, 0 0 20px #70BEFA;
  animation: neon-caco 800ms cubic-bezier(.25, .46, .45, .94) forwards;
}
@keyframes neon-caco {
  from { transform: translate(-50%, -50%) rotate(0) scale(1); opacity: 1 }
  to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot)) scale(.5); opacity: 0 }
}
.neon-anel {
  position: absolute; left: var(--ox); top: var(--oy); width: 300px; height: 300px; margin: -150px 0 0 -150px; border-radius: 50%;
  border: 2px solid #70BEFA; box-shadow: 0 0 30px #70BEFA;
  animation: neon-choque 600ms cubic-bezier(.23, 1, .32, 1) forwards;
}
@keyframes neon-choque { from { transform: scale(0); opacity: 1 } to { transform: scale(1); opacity: 0 } }

@media (prefers-reduced-motion: reduce) {
  .neon-caco, .neon-anel, .neon::after, .neon-wrap::before { animation: none; opacity: 0 }
  .neon, .neon:hover, .neon:active { transition: opacity 150ms ease; transform: none }
}
