/* ==========================================================================
   Buttons — primary CTA with animated gradient + conic glow, ripple.
   ========================================================================== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.9rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.98rem;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.btn--primary {
  color: #05050a;
  background: linear-gradient(120deg, #ffffff, #e6e0ff, #ffffff);
  background-size: 220% 220%;
  animation: btn-sheen 6s ease infinite;
  box-shadow: 0 12px 40px -10px rgba(124, 92, 255, 0.55);
}

.btn--primary:hover {
  box-shadow: 0 18px 55px -12px rgba(124, 92, 255, 0.75);
}

.btn:active {
  transform: scale(0.96);
}

@keyframes btn-sheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.btn__glow {
  position: absolute;
  inset: -40%;
  z-index: -1;
  background: conic-gradient(from 0deg, var(--violet), var(--pink), var(--cyan), var(--violet));
  opacity: 0;
  filter: blur(20px);
  transition: opacity 0.4s var(--ease-out);
  animation: spin 6s linear infinite;
}

.btn:hover .btn__glow {
  opacity: 0.55;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transform: scale(0);
  pointer-events: none;
  animation: ripple 0.7s var(--ease-out) forwards;
}

@keyframes ripple {
  to {
    transform: scale(1);
    opacity: 0;
  }
}
