.footer {
  margin-top: clamp(3.5rem, 6vw, 5rem);
  background:
    radial-gradient(120% 140% at 8% -20%, rgba(157, 78, 221, 0.22), transparent 56%),
    linear-gradient(180deg, rgba(9, 0, 24, 0.9), rgba(8, 0, 18, 0.95));
  border-top: 1px solid rgba(157, 78, 221, 0.24);
  padding: clamp(2.25rem, 4vw, 3.25rem) 0 1.5rem;
  color: var(--text, #fff);
  position: relative;
  z-index: 1;
}

.footer .container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 2.5vw, 1.5rem);
}

.footer-content {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(150px, 1fr));
  gap: clamp(1.25rem, 2.8vw, 2.4rem);
  margin-bottom: 1.75rem;
}

.footer h4 {
  margin: 0 0 0.9rem;
  color: var(--secondary, #9d4edd);
  font-size: 1.15rem;
}

.footer p {
  margin: 0;
  color: var(--text-secondary, rgba(255, 255, 255, 0.76));
  line-height: 1.7;
  max-width: 32ch;
}

.footer a {
  color: var(--text-secondary, rgba(255, 255, 255, 0.76));
  text-decoration: none;
  display: block;
  margin: 0.45rem 0;
  line-height: 1.45;
  transition: color 0.22s ease, transform 0.22s ease;
}

.footer a i {
  width: 1.1rem;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--secondary, #9d4edd);
  transform: translateX(2px);
  outline: none;
}

.footer-bottom {
  border-top: 1px solid rgba(157, 78, 221, 0.2);
  padding-top: 1rem;
  text-align: center;
  color: var(--text-muted, rgba(255, 255, 255, 0.55));
  font-size: 0.94rem;
}

@media (max-width: 980px) {
  .footer-content {
    grid-template-columns: repeat(2, minmax(170px, 1fr));
  }
}

@media (max-width: 640px) {
  .footer {
    padding-top: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer h4 {
    margin-bottom: 0.55rem;
  }
}

[data-theme='light'] .footer {
  background:
    radial-gradient(120% 140% at 8% -20%, rgba(157, 78, 221, 0.1), transparent 56%),
    linear-gradient(180deg, #ffffff, #f6f7fb);
  border-top: 1px solid rgba(20, 21, 34, 0.08);
}

[data-theme='light'] .footer a,
[data-theme='light'] .footer p,
[data-theme='light'] .footer-bottom {
  color: rgba(18, 22, 35, 0.68);
}
