.footer {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 64px 40px 32px;
  color: #ffffff;
  background: linear-gradient(180deg, #7eb8ff 0%, #5b6efc 55%, #642dfc 100%);
  border-radius: 32px 32px 0 0;
}

.footer-container {
  width: 100%;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  padding-bottom: 32px;
  gap: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.footer-logo a,
.footer-logo img {
  display: block;
}

.footer-logo img {
  width: 144px;
  height: 36px;
  filter: brightness(0) invert(1);
}

.footer-brand-tagline {
  max-width: 320px;
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

.footer-subscribe {
  width: 100%;
  min-width: 280px;
}

.footer-subscribe-form {
  display: flex;
  max-width: 380px;
  gap: 8px;
}

.footer-subscribe-form input {
  min-width: 0;
  flex: 1;
  padding: 10px 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid #ffffff;
  border-radius: 8px;
  outline: none;
  font: inherit;
  font-size: 14px;
}

.footer-subscribe-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-subscribe-form input:focus {
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14);
}

.footer-subscribe-form button {
  padding: 10px 20px;
  color: #5b8def;
  background: #ffffff;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.footer-subscribe-form button:hover {
  color: #4a7de0;
  background: #e5e7eb;
  transform: translateY(-1px);
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  line-height: 1;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
  outline: none;
  transform: translateY(-1px);
}

.footer-social-link svg {
  display: block;
  width: 18px;
  height: 18px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 32px;
}

.footer-col h2 {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  margin: 12px 0 0;
  padding: 0;
  gap: 8px;
  list-style: none;
}

.footer-col a {
  color: #ffffff;
  font-size: 14px;
  text-decoration: none;
  transition: opacity 180ms ease;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  opacity: 0.72;
  outline: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.footer-disclaimer {
  max-width: 576px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

@media (min-width: 640px) {
  .footer-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.4fr 2.4fr;
  }

  .footer-links {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 48px 20px 24px;
    border-radius: 24px 24px 0 0;
  }

  .footer-grid {
    padding-bottom: 28px;
    gap: 32px;
  }

  .footer-brand {
    gap: 20px;
  }

  .footer-subscribe {
    min-width: 0;
  }

  .footer-bottom {
    flex-direction: column;
    padding-top: 24px;
    text-align: center;
  }

  .footer-links {
    gap: 24px;
  }
}

@media (max-width: 420px) {
  .footer-subscribe-form {
    display: grid;
    grid-template-columns: 1fr;
  }

  .footer-subscribe-form button {
    min-height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer a,
  .footer button {
    transition-duration: 0.01ms !important;
  }
}
