/* ==========================================================================
   Footer — modern floating-CTA footer: overlapping gradient signup card,
   multi-column link grid, colored social hover, status pill bottom bar.
   ========================================================================== */

.nx-footer {
  background: var(--gray-950);
  color: var(--gray-300);
  position: relative;
  overflow: hidden;
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

/* Subtle top glow line to separate the footer from whatever section precedes it */
.nx-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47, 91, 255, 0.6), rgba(139, 92, 246, 0.6), rgba(6, 214, 232, 0.6), transparent);
}

.nx-footer a {
  color: var(--gray-400);
}
.nx-footer a:hover {
  color: #fff;
}

/* ---- Gradient newsletter CTA card at the top of the footer ---- */
.nx-footer-cta {
  position: relative;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: 0 30px 70px -20px rgba(47, 91, 255, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  overflow: hidden;
}
.nx-footer-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.18), transparent 55%);
  pointer-events: none;
}
.nx-footer-cta-text {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 420px;
}
.nx-footer-cta-text h3 {
  color: #fff;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  margin-bottom: 0.4rem;
}
.nx-footer-cta-text p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
  font-size: 0.92rem;
}
.nx-footer-cta-form {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0.6rem;
  flex: 1 1 380px;
  max-width: 440px;
}
.nx-footer-cta-form input {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}
.nx-footer-cta-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}
.nx-footer-cta-form input:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
}
.nx-footer-cta-form .btn-white {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .nx-footer-cta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .nx-footer-cta-text {
    max-width: none;
  }
  .nx-footer-cta-form {
    max-width: none;
  }
}
@media (max-width: 420px) {
  .nx-footer-cta-form {
    flex-direction: column;
  }
}

.nx-footer h6 {
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nx-footer h6::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-primary);
  flex-shrink: 0;
}

.nx-footer-links {
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.nx-footer-links a {
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}
.nx-footer-links a:hover {
  transform: translateX(4px);
  color: #93b4ff;
}

.nx-footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.nx-footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  color: #cbd5e1;
  transition: all var(--transition-base);
  position: relative;
}
.nx-footer-social a:hover {
  border-color: transparent;
  color: #fff;
  transform: translateY(-4px);
}
.nx-footer-social a[aria-label*="Twitter"]:hover,
.nx-footer-social a[aria-label*="X"]:hover { background: #000; }
.nx-footer-social a[aria-label*="LinkedIn"]:hover { background: #0a66c2; }
.nx-footer-social a[aria-label*="GitHub"]:hover { background: #333; }
.nx-footer-social a[aria-label*="YouTube"]:hover { background: #ff0000; }
.nx-footer-social a[aria-label*="Discord"]:hover { background: #5865f2; }

.nx-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 3rem;
  padding: 1.5rem 0;
  font-size: 0.85rem;
  color: var(--gray-500);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nx-footer-bottom a {
  color: var(--gray-400);
}
.nx-footer-legal {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  flex-wrap: wrap;
}

.nx-footer-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  color: var(--gray-400);
}

.nx-footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.nx-footer-contact-item i {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: #93b4ff;
}

.nx-footer-badge {
  color: var(--gray-400);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nx-footer-badge .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient-primary);
  display: grid;
  place-items: center;
  color: #fff;
}
.nx-footer-badge span {
  color: #fff;
}
