/* ════════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.site-footer {
  position: relative;
  background: #030305;
  padding: 100px 24px 30px;
  overflow: hidden;
}

.footer-edge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, #6366f1, #10b981, #6366f1, transparent);
  background-size: 200% 100%;
  animation: gradientFlow 4s linear infinite;
}

@keyframes gradientFlow {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.footer-bg-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black 20%, transparent 100%);
  pointer-events: none;
}

.footer-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.15;
}

.footer-glow-1 { width: 500px; height: 500px; background: #6366f1; top: -15%; left: -5%; }
.footer-glow-2 { width: 400px; height: 400px; background: #10b981; bottom: -10%; right: -5%; }

.footer-container { position: relative; max-width: 1200px; margin: 0 auto; z-index: 2; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-col {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-footer.revealed .footer-col { opacity: 1; transform: translateY(0); }

.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }

.logo-icon {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.3); border-radius: 10px; color: #818cf8;
}

.logo-text {
  font-family: 'Space Grotesk', sans-serif; font-size: 20px;
  font-weight: 700; color: #fff; letter-spacing: -0.02em;
}

.footer-desc { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.4); margin-bottom: 24px; }

.footer-socials { display: flex; gap: 10px; }

.social-link {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.4); transition: all 0.3s ease;
}

.social-link:hover {
  background: rgba(99,102,241,0.1); border-color: rgba(99,102,241,0.3);
  color: #818cf8; transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(99,102,241,0.1);
}

.footer-col-title {
  font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255,255,255,0.9); margin-bottom: 24px;
}

.footer-links, .footer-contact { list-style: none; display: flex; flex-direction: column; gap: 14px; }

.footer-links a, .footer-contact a {
  text-decoration: none; color: rgba(255,255,255,0.4); font-size: 14px;
  transition: color 0.3s ease, transform 0.3s ease; display: inline-block;
}

.footer-links a:hover { color: #fff; transform: translateX(4px); }

.footer-contact li {
  display: flex; align-items: flex-start; gap: 10px;
  color: rgba(255,255,255,0.4); font-size: 14px;
}

.footer-contact svg { flex-shrink: 0; margin-top: 2px; color: rgba(255,255,255,0.3); }
.footer-contact a:hover { color: #818cf8; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05); padding-top: 30px;
  display: flex; align-items: center; justify-content: space-between;
  opacity: 0; transform: translateY(20px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}

.site-footer.revealed .footer-bottom { opacity: 1; transform: translateY(0); }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.25); }
.footer-bottom-links { display: flex; align-items: center; gap: 12px; }
.footer-bottom-links a { font-size: 13px; color: rgba(255,255,255,0.25); text-decoration: none; transition: color 0.3s ease; }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.6); }
.bottom-divider { color: rgba(255,255,255,0.1); }

.back-to-top {
  position: fixed; bottom: 30px; right: 30px; width: 44px; height: 44px;
  border-radius: 12px; background: rgba(15,23,42,0.8); border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 99; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.3s ease; box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: #6366f1; border-color: #6366f1; transform: translateY(-3px); }

/* ── Responsive ── */
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 600px) {
  .site-footer { padding: 80px 18px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .back-to-top { bottom: 20px; right: 20px; }
}