/* footer and all that */
.site-footer {
  /* background: linear-gradient(160deg, #04254e 0%, #062e5f 55%, #0d4c92 100%); */
  background: var(--input-icon-color);
  color: rgba(255, 255, 255, 0.88);
  margin-top: 40px;
  padding: 0;
  font-family: sans-serif;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(24, 119, 242, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(0, 0, 0, 0.2) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.site-footer > * {
  position: relative;
  z-index: 1;
}

.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 40px 28px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-logo-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: brightness(1.1);
}

.footer-logo-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.footer-tagline {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.65;
  max-width: 23ch;
}

.footer-social {
  /* display: flex; */
  display: none;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-social-link:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-title {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 4px;
}

.footer-col-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color 0.18s ease, gap 0.18s ease;
  width: fit-content;
}

.footer-col-link i {
  font-size: 0.75rem;
  opacity: 0.6;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.footer-col-link:hover {
  color: #ffffff;
  gap: 10px;
}

.footer-col-link:hover i {
  opacity: 1;
  transform: translateX(2px);
}

.footer-col-link.footer-link-pill {
  background: rgba(24, 119, 242, 0.22);
  border: 1px solid var(--text-color);
  border-radius: 999px;
  padding: 5px 14px 5px 10px;
  font-weight: 700;
  color: #93c5fd;
}

.footer-col-link.footer-link-pill:hover {
  background: rgba(24, 119, 242, 0.35);
  border-color: rgba(24, 119, 242, 0.6);
  color: #bfdbfe;
  gap: 10px;
}

.footer-divider {
  max-width: 1200px;
  margin: 0 auto;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.42);
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.footer-legal-link {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.48);
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-legal-link:hover {
  color: rgba(255, 255, 255, 0.84);
}

.footer-legal-sep {
  color: rgba(255, 255, 255, 0.22);
  font-size: 0.75rem;
  user-select: none;
}

@media (max-width: 1080px) {
  .footer-main {
    grid-template-columns: 1.4fr repeat(3, 1fr);
  }

  .footer-col:nth-child(5) {
    grid-column: 2;
  }
}

@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    padding: 40px 20px 28px;
    gap: 32px 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .footer-main {
    grid-template-columns: 1fr;
    padding: 32px 18px 24px;
    gap: 28px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 18px 22px;
    gap: 10px;
  }
}
