/* footer.css */
.site-footer {
  margin-top: 40px;
  margin-top: auto;
  padding: 50px 0 32px;
  background: var(--footer-bg);
  border-top: 1px solid var(--border-color);
  position: relative;
  z-index: 0;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 0%, rgba(122, 61, 255, 0.12), transparent 55%);
  opacity: 0.8;
  pointer-events: none;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 24px;
  position: relative;
  z-index: 0;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.site-footer .brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 16px;
}

.site-footer .brand-mark img {
  width: 54px;
  height: 54px;
}

.footer-name {
  margin: 0 0 6px;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-tagline {
  margin: 0;
  color: var(--text-muted);
}

.footer-title {
  margin: 0 0 12px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: var(--text-color);
  opacity: 0.75;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent-color);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--surface-1);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.footer-social-link:hover {
  transform: translateY(-1px);
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text-muted);
  position: relative;
  z-index: 0;
}

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

@media (max-width: 640px) {
  .site-footer {
    padding: 32px 0 calc(70px + env(safe-area-inset-bottom));
    margin-bottom: -120px;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    margin-top: 12px;
  }
}
