.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: 5rem;
  padding: 3.5rem 0 1.75rem;
  background: #0a0a10;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.55), transparent);
}

.site-footer::after {
  content: '';
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: 640px;
  height: 280px;
  background: radial-gradient(closest-side, rgba(124, 58, 237, 0.1), transparent);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 340px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-logo img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.25);
  padding: 6px;
}

.footer-logo-text h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}

.footer-logo-text p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: 0.55rem;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.social-icon svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.social-icon:hover {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #fff;
  transform: translateY(-2px);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-column h5 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: var(--text-primary);
}

.footer-column h5::before {
  content: '';
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: #7c3aed;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 0.6rem;
}

.footer-column a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.15s ease, padding-left 0.15s ease;
  display: inline-block;
}

.footer-column a:hover {
  color: #a78bfa;
  padding-left: 0.25rem;
}

.footer-bottom {
  position: relative;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}

.footer-bottom-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  opacity: 0.75;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 0;
}

body.light-mode .site-footer {
  background: #f4f5fa;
  border-top-color: rgba(15, 23, 42, 0.08);
}

body.light-mode .site-footer::after {
  background: radial-gradient(closest-side, rgba(99, 102, 241, 0.08), transparent);
}

body.light-mode .footer-logo img {
  background: #ffffff;
  border-color: rgba(79, 70, 229, 0.18);
}

body.light-mode .footer-logo-text h4 {
  color: #1c2140;
}

body.light-mode .social-icon {
  border-color: rgba(15, 23, 42, 0.12);
  color: #5b6478;
}

body.light-mode .social-icon:hover {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #fff;
}

body.light-mode .footer-column h5 {
  color: #1c2140;
}

body.light-mode .footer-column a {
  color: #5b6478;
}

body.light-mode .footer-column a:hover {
  color: #7c3aed;
}

body.light-mode .footer-bottom {
  border-top-color: rgba(15, 23, 42, 0.08);
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .site-footer {
    margin-top: 3.5rem;
    padding: 2.5rem 0 1.5rem;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .footer-links {
    grid-template-columns: 1fr;
  }
}
