/* ================= Footer ================= */
.site-footer { position: relative; margin-top: 40px; }
.site-footer > .container { position: relative; z-index: 2; margin-bottom: -110px; }

.footer-main {
  position: relative;
  background: var(--navy);
  color: #9aa8d1;
  padding: 180px 0 0;
  overflow: hidden;
  isolation: isolate;
}
.footer-glow {
  position: absolute; z-index: -1;
  width: 900px; height: 500px;
  left: 50%; top: 0;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0, 67, 209, 0.35), transparent 65%);
  filter: blur(20px);
  animation: footerGlow 8s ease-in-out infinite alternate;
}
@keyframes footerGlow { to { transform: translateX(-40%) scale(1.15); opacity: 0.7; } }

.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr 1.4fr; gap: 48px; padding-bottom: 40px; }

.footer-logo img { width: 190px; height: auto; margin-bottom: 20px; }
.footer-brand p { font-size: 0.95rem; max-width: 340px; }

.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cdd8ff;
  transition: transform 0.4s var(--ease-back), background 0.3s, color 0.3s;
}
.socials a:hover { background: var(--primary); color: #fff; transform: translateY(-5px) rotate(-6deg); }

.footer-col h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 12px;
}
.footer-col h4::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 32px; height: 3px; border-radius: 3px;
  background: var(--grad);
}
.footer-col li { margin-bottom: 12px; font-size: 0.94rem; }
.footer-col a { color: #9aa8d1; position: relative; transition: color 0.3s, padding 0.3s var(--ease); }
.footer-col ul:not(.x) a:hover { color: #fff; }
.footer-col:not(.footer-contact) a::before {
  content: ""; position: absolute; left: -14px; top: 50%;
  width: 8px; height: 2px; background: var(--primary-300);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.footer-col:not(.footer-contact) a:hover { padding-left: 14px; }
.footer-col:not(.footer-contact) a:hover::before { left: 0; transform: scaleX(1); }

.footer-contact li { display: flex; gap: 14px; align-items: flex-start; line-height: 1.6; }
.footer-contact i {
  flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(47, 107, 255, 0.15); color: #8fb0ff; font-size: 0.85rem;
  margin-top: 2px;
}

.footer-wordmark {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(5rem, 19vw, 17rem);
  line-height: 0.8;
  text-align: center;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, rgba(110, 155, 255, 0.16), rgba(110, 155, 255, 0));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  margin-top: 10px;
  margin-bottom: -0.12em;
}

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  font-size: 0.88rem;
  position: relative;
}
.footer-bottom p { margin: 0; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: #9aa8d1; }
.footer-links a:hover { color: #fff; }

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .site-footer > .container { margin-bottom: -150px; }
  .footer-main { padding-top: 200px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { justify-content: center; text-align: center; }
}
