:root {
  --footer-ink: #171720;
  --footer-text: #29293a;
  --footer-muted: #6c6f83;
  --footer-purple: #7350e6;
  --footer-purple-deep: #5832d8;
  --footer-pink: #d97cf0;
  --footer-yellow: #ffcf5a;
  --footer-line: rgba(115, 80, 230, 0.14);
  --footer-shadow-md: 0 22px 56px rgba(52, 36, 112, 0.12);
}

.mirl-footer {
  position: relative;
  overflow: hidden;
  padding: 64px 0 28px;
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 207, 90, 0.18), transparent 28%),
    radial-gradient(circle at 88% 0%, rgba(217, 124, 240, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(248, 245, 255, 0.78));
  border-top: 1px solid rgba(255, 255, 255, 0.86);
}

.mirl-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(115, 80, 230, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(115, 80, 230, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.footer-wrap {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 44px), 1120px);
  margin: 0 auto;
}

.footer-card {
  padding: 30px 34px 26px;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: var(--footer-shadow-md);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.footer-main {
  display: grid;
  grid-template-columns: 0.92fr 1.5fr;
  gap: 48px;
  align-items: start;
}

.brand-block {
  max-width: 360px;
}

.footer-logo-wrap,
.footer-logo-wrap .custom-logo-link {
  display: block;
  line-height: 0;
}

.footer-logo-wrap .custom-logo {
  width: 164px;
  max-width: 164px;
  height: auto;
  margin-bottom: 18px;
  filter: drop-shadow(0 12px 22px rgba(88, 50, 216, 0.09));
}

.footer-tagline {
  margin: 0;
  color: rgba(23, 23, 32, 0.92);
  font-size: clamp(21px, 2.1vw, 29px);
  line-height: 1.18;
  letter-spacing: -0.035em;
  font-weight: 850;
}

.footer-sub {
  margin: 14px 0 0;
  color: var(--footer-muted);
  font-size: 14.5px;
  line-height: 1.68;
  font-weight: 500;
}

.social-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.social {
  width: 35px;
  height: 35px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(248, 245, 255, 0.86);
  border: 1px solid rgba(115, 80, 230, 0.12);
  color: var(--footer-purple-deep);
  box-shadow: 0 8px 18px rgba(52, 36, 112, 0.045);
  transition: 0.22s ease;
}

.social svg {
  width: 16px;
  height: 16px;
  display: block;
}

.social:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--footer-purple), var(--footer-purple-deep));
  color: #fff;
  box-shadow: 0 16px 28px rgba(88, 50, 216, 0.18);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start;
}

.link-col h3 {
  margin: 0 0 12px;
  color: rgba(23, 23, 32, 0.78);
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.link-col nav {
  display: grid;
  gap: 8px;
}

.link-col a {
  color: rgba(104, 107, 125, 0.78);
  font-size: 12.5px;
  line-height: 1.42;
  font-weight: 500;
  transition: 0.18s ease;
}

.link-col a:hover {
  color: var(--footer-purple-deep);
  font-weight: 600;
  transform: translateX(2px);
}

.footer-cta {
  margin-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 17px 20px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 207, 90, 0.72), transparent 36%),
    radial-gradient(circle at 92% 20%, rgba(217, 124, 240, 0.62), transparent 38%),
    linear-gradient(135deg, #ffcf5a 0%, #d97cf0 48%, #7350e6 100%);
  color: #fff;
  overflow: hidden;
  position: relative;
}

.footer-cta::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -130px;
  top: -160px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.24), transparent 66%);
}

.footer-cta::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  left: -120px;
  bottom: -140px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(88, 50, 216, 0.3), transparent 70%);
}

.footer-cta > * {
  position: relative;
  z-index: 1;
}

.footer-cta strong {
  display: block;
  font-size: 17px;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.footer-cta span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

.footer-button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--footer-purple-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.12);
  white-space: nowrap;
  transition: 0.22s ease;
}

.footer-button:hover {
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(115, 80, 230, 0.11);
  color: #828596;
  font-size: 12px;
  line-height: 1.55;
}

.footer-bottom a:hover {
  color: var(--footer-purple-deep);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.legal-links a {
  color: rgba(123, 126, 145, 0.78);
  font-weight: 500;
}

.legal-links a:hover {
  color: var(--footer-purple-deep);
}

@media (max-width: 960px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 34px;
  }

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

@media (max-width: 680px) {
  .mirl-footer {
    padding: 46px 0 24px;
  }

  .footer-wrap {
    width: min(calc(100% - 28px), 1120px);
  }

  .footer-card {
    padding: 26px 20px;
    border-radius: 30px;
  }

  .footer-logo-wrap .custom-logo {
    width: 146px;
    max-width: 146px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .link-col a {
    font-size: 13px;
    line-height: 1.45;
  }

  .footer-cta {
    display: grid;
    padding: 18px;
  }

  .footer-button {
    width: 100%;
  }

  .footer-bottom {
    display: grid;
    justify-items: start;
  }
}
