.site-footer {
  position: relative;
  overflow: hidden;
  padding: 0;
  color: #f7f5fb;
  background: #05040b;
  font-family: "Inter", sans-serif;
}

.site-footer::before {
  position: absolute;
  top: -220px;
  left: 50%;
  width: 880px;
  height: 430px;
  border-radius: 50%;
  background: rgba(103, 73, 221, .12);
  filter: blur(75px);
  content: '';
  pointer-events: none;
  transform: translateX(-50%);
}

.footer-shell {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 56px));
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.08);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) 2.1fr;
  gap: 105px;
  padding: 78px 12px 62px;
}

.footer-brand {
  max-width: 350px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #f5f3f8;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.025em;
}

.footer-logo img {
  width: 43px;
  height: 43px;
  object-fit: contain;
}

.footer-brand p {
  margin: 25px 0 0;
  color: #8d8996;
  font-size: 13.5px;
  line-height: 1.72;
}

.footer-research-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 25px;
  color: #aaa3ff;
  font-size: 12.5px;
  font-weight: 650;
}

.footer-research-link svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  transition: transform .2s ease;
}

.footer-research-link:hover svg {
  transform: translateX(3px);
}

.footer-navigation {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
}

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

.footer-group strong {
  margin-bottom: 7px;
  color: #eeebf2;
  font-size: 12.5px;
  font-weight: 650;
}

.footer-group a {
  color: #7f7b88;
  font-size: 12.5px;
  transition: color .18s ease, transform .18s ease;
}

.footer-group a:hover {
  color: #d9d5e0;
  transform: translateX(2px);
}

.footer-social-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 92px;
  padding: 16px 12px;
  border-top: 1px solid rgba(255,255,255,.07);
}

.footer-social-row > span {
  color: #77727f;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-social-row > div {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.footer-social-row a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 39px;
  padding: 0 13px;
  border-radius: 11px;
  color: #aaa5b2;
  background: rgba(255,255,255,.035);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
  font-size: 11.5px;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.footer-social-row a:hover {
  color: #fff;
  background: rgba(119, 85, 235, .12);
  transform: translateY(-2px);
}

.footer-social-row svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  min-height: 76px;
  padding: 0 12px;
  border-top: 1px solid rgba(255,255,255,.07);
  color: #65616d;
  font-size: 10.5px;
}

.footer-bottom > div {
  display: flex;
  gap: 22px;
}

.footer-bottom > span:last-child {
  text-align: right;
}

.footer-bottom a:hover {
  color: #c5c0ce;
}

/* Preserved extracted wordmark treatment. */
.rmp-brand-wordmark-section {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 190px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at center, rgba(120, 110, 255, .10) 0%, rgba(5, 4, 11, .95) 62%, #05040b 100%);
}

.rmp-footer-brand-bg {
  position: absolute;
  bottom: 10px;
  left: 50%;
  z-index: 0;
  width: min(1200px, calc(100% - 36px));
  overflow: hidden;
  transform: translateX(-50%);
  background:
    linear-gradient(to top, rgba(5, 4, 11, .92) 0%, rgba(120, 110, 255, .24) 46%, rgba(120, 110, 255, .14) 100%);
  background-clip: text;
  color: transparent;
  font-size: clamp(110px, 9vw, 160px);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: .84;
  pointer-events: none;
  text-align: center;
  user-select: none;
  white-space: nowrap;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rmp-footer-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 180px;
  background: linear-gradient(180deg, rgba(5, 4, 11, 0) 0%, rgba(5, 4, 11, .72) 70%, rgba(5, 4, 11, .95) 100%);
  pointer-events: none;
}

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

  .footer-brand {
    max-width: 520px;
  }

  .rmp-footer-brand-bg {
    font-size: 84px;
  }
}

@media (max-width: 700px) {
  .footer-shell {
    width: calc(100% - 28px);
  }

  .footer-main {
    padding: 62px 4px 48px;
  }

  .footer-navigation {
    grid-template-columns: repeat(2, 1fr);
    gap: 42px 20px;
  }

  .footer-social-row {
    align-items: flex-start;
    padding: 25px 4px;
    flex-direction: column;
  }

  .footer-social-row > div {
    width: 100%;
  }

  .footer-social-row a {
    justify-content: center;
    width: calc(50% - 5px);
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 25px 4px;
  }

  .footer-bottom > span:last-child {
    text-align: left;
  }

  .rmp-brand-wordmark-section {
    min-height: 120px;
  }

  .rmp-footer-brand-bg {
    bottom: 8px;
    font-size: 56px;
    opacity: .45;
  }

  .rmp-footer-fade {
    height: 110px;
  }
}
