@keyframes footerIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes footerGlow {
  from { background-position: 0 0; }
  to { background-position: 200% 0; }
}
@keyframes footerShimmer {
  0%, 100% { background-position: 0 0; }
  50% { background-position: 100% 0; }
}

.site-footer {
  position: relative;
  margin-top: 12px;
  padding: 7px 16px;
  background: linear-gradient(180deg, rgba(238, 242, 255, 0.96), rgba(255, 255, 255, 0.98));
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(67, 56, 202, 0.16);
  box-shadow: 0 -8px 24px rgba(49, 46, 129, 0.1), inset 0 1px 0 #fff;
  color: #1c3148;
  font-family: Manrope, Inter, "Segoe UI", sans-serif;
  animation: footerIn 0.55s ease both;
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38BDF8, #4338CA, #818CF8, #38BDF8, transparent);
  background-size: 200% 100%;
  animation: footerGlow 7s linear infinite;
  pointer-events: none;
}
.footer-row {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px 14px;
  min-height: 36px;
}
.footer-brand {
  flex: 0 0 auto;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: #312E81;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .footer-brand {
    background: linear-gradient(135deg, #312E81, #4338CA 42%, #38BDF8 70%, #4338CA);
    background-size: 180% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: footerShimmer 3.2s ease-in-out infinite;
  }
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  min-width: 0;
}
.footer-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 4px 8px;
  border-radius: 999px;
  color: #1c3148;
  text-decoration: none;
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.2;
}
.footer-links a::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 2px;
  height: 2px;
  background: #e85d04;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}
.footer-links a:hover {
  color: #312E81;
  background: rgba(219, 234, 254, 0.85);
  box-shadow: 0 0 0 1px #DBEAFE, 0 6px 12px rgba(67, 56, 202, 0.12);
}
.footer-links a:hover::after { transform: scaleX(1); }
.footer-base {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  color: #64748b;
  font-size: 12px;
  line-height: 1.3;
}
.footer-base a {
  display: inline;
  margin: 0;
  color: #4338CA;
  font-weight: 800;
  text-decoration: none;
}
.footer-base a:hover { color: #312E81; }
@media (max-width: 980px) {
  .footer-row { flex-wrap: wrap; }
  .footer-base { margin-left: 0; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .site-footer,
  .site-footer::before,
  .footer-brand { animation: none; }
}
