.footer {
  padding-block: 4.5rem 3rem;
  background: linear-gradient(180deg, #f9faff, #f3f4ff);
  border-block-start: 1px solid rgba(229, 231, 235, 0.8);
  overflow: hidden;
}

.footer__inner {
  position: relative;
}

.footer__network-bg {
  position: absolute;
  inset-inline: -1rem;
  inset-block-start: -1.6rem;
  block-size: clamp(150px, 26vw, 230px);
  pointer-events: none;
  opacity: 0.7;
}

.footer__network-bg svg {
  inline-size: 100%;
  block-size: 100%;
}

.footer__network-bg path {
  fill: none;
  stroke: rgba(124, 58, 237, 0.28);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer__network-bg circle {
  fill: rgba(124, 58, 237, 0.55);
}

.footer__content {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(229, 231, 235, 0.95);
  border-radius: var(--radius-large);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  padding: 1.2rem;
  display: grid;
  gap: 1rem;
}

.footer__brand {
  display: grid;
  gap: 0.34rem;
}

.footer__name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
}

.footer__tagline {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.footer__links,
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.footer__links a,
.footer__legal a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  position: relative;
  transition: color var(--transition-soft);
}

.footer__links a::after,
.footer__legal a::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  inset-block-end: -2px;
  block-size: 1px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-soft);
}

.footer__links a:hover,
.footer__links a:focus-visible,
.footer__legal a:hover,
.footer__legal a:focus-visible {
  color: var(--color-primary-dark);
}

.footer__links a:hover::after,
.footer__links a:focus-visible::after,
.footer__legal a:hover::after,
.footer__legal a:focus-visible::after {
  transform: scaleX(1);
}

.footer__legal {
  align-items: center;
  color: var(--color-text-muted);
  font-size: 0.86rem;
}

@media (min-width: 48rem) {
  .footer__content {
    padding: 1.5rem;
  }
}

@media (min-width: 64rem) {
  .footer {
    padding-block: 5.5rem 3.2rem;
  }

  .footer__content {
    grid-template-columns: 1.1fr 1fr auto;
    align-items: center;
    gap: 1.2rem;
  }

  .footer__legal {
    justify-content: end;
    text-align: left;
  }
}
