.footer {
  background: linear-gradient(180deg, var(--bg) 0%, #020202 100%);
  padding: var(--space-2xl) 0 var(--space-lg);
  border-top: 1px solid var(--border);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* Top section — 4 columns */
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__logo {
  display: flex;
  align-items: center;
}

.footer__logo-img {
  height: 40px;
  width: auto;
}

.footer__tagline {
  font-size: var(--text-xs);
  color: var(--text-subtle);
  font-style: italic;
  max-width: 250px;
  line-height: 1.6;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__nav-title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.footer__nav-link {
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color var(--transition-fast);
  display: block;
}

a.footer__nav-link:hover {
  color: var(--accent);
}

.footer__socials {
  display: flex;
  gap: var(--space-sm);
  margin-top: 0.3rem;
}

.footer__social {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.footer__social:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.footer__social svg {
  width: 16px;
  height: 16px;
}

/* Bottom section */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-lg);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer__copy {
  font-size: var(--text-xs);
  color: var(--text-subtle);
}

.footer__legal {
  display: flex;
  gap: var(--space-md);
}

.footer__legal-link {
  font-size: var(--text-xs);
  color: var(--text-subtle);
  transition: color var(--transition-fast);
}

.footer__legal-link:hover {
  color: var(--text-muted);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 2rem));
  z-index: 9000;
  width: calc(100% - 3rem);
  max-width: 520px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  padding: var(--space-lg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.cookie-banner.visible {
  transform: translateX(-50%) translateY(0);
}

.cookie-banner__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.cookie-banner__content {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.cookie-banner__icon {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.cookie-banner__title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.cookie-banner__text {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.5;
}

.cookie-banner__actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
}

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-xs);
}

@media (max-width: 768px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer__legal {
    justify-content: center;
  }

  .cookie-banner {
    bottom: 1rem;
    width: calc(100% - 2rem);
    padding: var(--space-md);
  }

  .cookie-banner__actions {
    justify-content: center;
  }
}
