/* ===== Footer ===== */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: 100px 0 0;
  background: #0f172a;
  color: #fff;
}

/* Blueprint grid, same as the full-screen menu */
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(37, 99, 235, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.08) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

/* Rainbow line across the top edge */
.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #2563eb, #fbbf24, #ef4444);
}

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

/* Top grid */
.ft-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Brand */
.ft-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  margin-bottom: 1.25rem;
}

.ft-logo img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  display: block;
}

.ft-logo span {
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}

.ft-tagline {
  max-width: 320px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

.ft-status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #e2e8f0;
}

.ft-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
  animation: ftPulse 2s ease-in-out infinite;
}

@keyframes ftPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.04); }
}

/* Column labels */
.ft-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 1.1rem;
}

.ft-label--gap {
  margin-top: 2rem;
}

/* Numbered navigation (matches the menu) */
.ft-nav,
.ft-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ft-nav li,
.ft-list li {
  margin-bottom: 0.65rem;
}

.ft-nav a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.75rem;
  color: #cbd5e1;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.ft-nav a span {
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 0.7rem;
  color: #2563eb;
}

.ft-nav a:hover {
  color: #fff;
  transform: translateX(6px);
}

.ft-list li {
  color: #94a3b8;
  font-size: 0.95rem;
}

/* Contact */
.ft-email {
  position: relative;
  display: inline-block;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  word-break: break-all;
  padding-bottom: 4px;
}

.ft-email::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #2563eb, #fbbf24, #ef4444);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.ft-email:hover::after {
  transform: scaleX(1);
}

.ft-social {
  display: flex;
  gap: 0.75rem;
}

.ft-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #1e293b;
  color: #fff;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

.ft-social a:hover {
  background: #2563eb;
  transform: translateY(-3px);
}

/* Giant wordmark (rainbow tint on dark) */
.ft-wordmark {
  margin: 3rem 0 -0.12em;
  font-size: clamp(5rem, 19vw, 17rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  background: linear-gradient(90deg, #2563eb, #fbbf24, #ef4444);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.14;
  user-select: none;
  pointer-events: none;
}

/* Bottom bar */
.ft-bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ft-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
}

.ft-bottom-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.ft-bottom-links a {
  font-size: 0.85rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s ease;
}

.ft-bottom-links a:hover {
  color: #fff;
}

.ft-totop,
.ft-totop:focus {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 16px;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff !important;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.ft-totop:hover {
  background: #2563eb !important;
  border-color: #2563eb !important;
}

.ft-totop svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s ease;
}

.ft-totop:hover svg {
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 900px) {
  .site-footer {
    padding-top: 80px;
  }

  .ft-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

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

@media (max-width: 560px) {
  .ft-top {
    grid-template-columns: 1fr;
  }

  .ft-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ft-dot {
    animation: none;
  }
}