/* === Neon Glow System === */
:root {
  --neon: #00D1FF;
  --neon-glow-sm:  0 0 6px rgba(0, 209, 255, 0.28);
  --neon-glow:     0 0 12px rgba(0, 209, 255, 0.42);
  --neon-glow-lg:  0 0 24px rgba(0, 209, 255, 0.55);
  --glass-bg:      rgba(8, 20, 45, 0.65);
  --glass-border:  rgba(0, 209, 255, 0.12);
}

@keyframes neonBreathe {
  0%, 100% { text-shadow: var(--neon-glow-sm); }
  50%      { text-shadow: var(--neon-glow-lg); }
}

.neon-text {
  color: var(--neon);
  text-shadow: var(--neon-glow);
  animation: neonBreathe 3.2s ease-in-out infinite;
}

.neon-border {
  box-shadow:
    inset 0 0 0 1px rgba(0, 209, 255, 0.12),
    var(--neon-glow-sm);
}

@keyframes neonPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 209, 255, 0), 0 0 0 0 rgba(0, 209, 255, 0); }
  50%      { box-shadow: 0 0 0 6px rgba(0, 209, 255, 0.10), 0 0 30px rgba(0, 209, 255, 0.22); }
}

.neon-pulse {
  animation: neonPulse 2.6s ease-in-out infinite;
}

/* === Glassmorphism 2.0 === */
.card-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  transition:
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    transform 0.28s ease;
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .card-glass:hover {
    border-color: rgba(0, 209, 255, 0.32);
    box-shadow: var(--neon-glow);
    transform: translateY(-2px) translateZ(0);
  }
}

/* === Text Reveal (pure CSS, triggered by .visible class) === */
.text-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.text-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* staggered children — add .visible to parent */
.text-reveal-stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.text-reveal-stagger.visible > *:nth-child(1) { transition-delay: 0ms; }
.text-reveal-stagger.visible > *:nth-child(2) { transition-delay: 80ms; }
.text-reveal-stagger.visible > *:nth-child(3) { transition-delay: 160ms; }
.text-reveal-stagger.visible > *:nth-child(4) { transition-delay: 240ms; }
.text-reveal-stagger.visible > *:nth-child(5) { transition-delay: 320ms; }

@keyframes textRevealUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.text-reveal-keyframe {
  opacity: 0;
}

.text-reveal-keyframe.visible {
  animation: textRevealUp 0.55s ease-out forwards;
}

/* === Cyber Grid === */
.cyber-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 209, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 209, 255, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridDrift 22s linear infinite;
  will-change: background-position;
  transform: translateZ(0);
}

@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 0 50px, 50px 0; }
}

.cyber-grid-fast {
  background-size: 34px 34px;
  animation-duration: 14s;
}

/* === Heading glow accent === */
h1 .neon-accent,
h2 .neon-accent {
  color: var(--neon);
  text-shadow: var(--neon-glow);
}

/* === Button glow upgrade (coexists with .cta-main) === */
.cta-main {
  box-shadow: var(--neon-glow);
}

.cta-main:hover {
  box-shadow: var(--neon-glow-lg);
}

/* ── CTA button juicy effects ── */

.cta-main {
  position: relative;
  z-index: 0;
  isolation: isolate;
}

/* glow aura behind button */
.cta-main::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  z-index: -1;
  background: linear-gradient(115deg, rgba(0,209,255,0.35), rgba(125,97,255,0.25), rgba(0,209,255,0.35));
  filter: blur(14px);
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: opacity;
}

.cta-main:hover::before {
  opacity: 1;
}

/* arrow icon slides right */
.cta-main svg {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cta-main:hover svg {
  transform: translateX(5px);
}

/* ── Lead submit button ── */

.lead-submit-btn {
  position: relative;
  z-index: 0;
  overflow: hidden;
}

.lead-submit-btn:not(:disabled) {
  animation: btnPulse 2.8s ease-in-out infinite;
}

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(0,209,255,0.12); }
  50%      { box-shadow: 0 0 26px rgba(0,209,255,0.30); }
}

.lead-submit-btn::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(0,209,255,0.25), rgba(125,97,255,0.18));
  filter: blur(8px);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.lead-submit-btn:hover::before {
  opacity: 1;
}

/* ── Ripple container (shared) ── */
.ripple {
  position: relative;
  cursor: pointer;
}

.ripple__span {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  pointer-events: none;
  animation: rippleAnim 0.6s ease-out forwards;
}

@keyframes rippleAnim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}
