:root {
  --sb-footer-shell: min(1824px, calc(100% - 224px));
}

.sb-footer-demo {
  background:
    linear-gradient(180deg, rgba(21, 114, 232, 0.08) 0%, rgba(255, 255, 255, 0) 48%),
    linear-gradient(135deg, rgba(49, 206, 54, 0.08) 0%, rgba(255, 255, 255, 0) 32%),
    #ffffff;
}

.sb-footer-demo .container,
.sb-site-footer .container {
  width: var(--sb-footer-shell);
  max-width: none;
}

.sb-footer-demo-hero {
  padding: 108px 0 96px;
}

.sb-footer-demo-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-bottom: 20px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(21, 114, 232, 0.08);
  color: #1572e8;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sb-footer-demo-hero h1 {
  max-width: 920px;
  margin: 0 0 18px;
  color: #111827;
  font-size: 62px;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.sb-footer-demo-hero p {
  max-width: 760px;
  margin: 0;
  color: #516074;
  font-size: 18px;
  line-height: 1.7;
}

.sb-site-footer {
  position: relative;
  padding: 112px 0 54px;
  overflow: hidden;
  background:
    radial-gradient(circle at 0% 100%, rgba(21, 114, 232, 0.12) 0%, rgba(21, 114, 232, 0) 32%),
    radial-gradient(circle at 100% 0%, rgba(49, 206, 54, 0.1) 0%, rgba(49, 206, 54, 0) 26%),
    var(--bg-dark);
}

.sb-site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.14) 0%, rgba(0, 0, 0, 0.07) 48%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.14) 0%, rgba(0, 0, 0, 0.07) 48%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.sb-site-footer .container {
  position: relative;
  z-index: 1;
}

.sb-site-footer-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 34px 44px;
  align-items: start;
}

.sb-site-footer-brand-column {
  padding-right: 0;
}

.sb-site-footer-brand {
  display: inline-flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.sb-site-footer-brand-mark {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 72px;
  overflow: hidden;
}

.sb-site-footer-brand-mark svg,
.sb-site-footer-brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.sb-site-footer-title {
  display: block;
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.sb-site-footer-subtitle {
  margin-top: 34px;
}

.sb-site-footer-column ul {
  display: grid;
  gap: 12px;
  margin: 0;
}

.sb-site-footer-column a {
  color: rgba(255, 255, 255, 0.64);
  font-size: 15px;
  line-height: 1.5;
  transition: color 0.18s ease, transform 0.18s ease;
}

.sb-site-footer-column a:hover,
.sb-site-footer-column a:focus {
  color: #ffffff;
  transform: translateX(2px);
}

.sb-site-footer-segment-list {
  grid-template-columns: 1fr;
  gap: 12px;
}

.sb-site-footer-segment-list a {
  font-size: 15px;
  line-height: 1.5;
}

.sb-site-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 72px;
  padding-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sb-site-footer-legal,
.sb-site-footer-locale {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.sb-site-footer-legal span,
.sb-site-footer-legal a,
.sb-site-footer-locale span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 15px;
  line-height: 1.5;
}

.sb-site-footer-legal a {
  transition: color 0.18s ease;
}

.sb-site-footer-legal a:hover,
.sb-site-footer-legal a:focus {
  color: #ffffff;
}

.sb-site-footer-legal > *:not(:last-child)::after,
.sb-site-footer-locale > *:not(:last-child)::after {
  content: "•";
  margin-left: 12px;
  color: rgba(255, 255, 255, 0.28);
}

@media (max-width: 1399.98px) {
  :root {
    --sb-footer-shell: calc(100% - 120px);
  }

  .sb-site-footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sb-site-footer-segment-list {
    grid-template-columns: 1fr;
  }

  .sb-site-footer-brand-column {
    grid-column: auto;
  }
}

@media (max-width: 1099.98px) {
  :root {
    --sb-footer-shell: calc(100% - 56px);
  }

  .sb-footer-demo-hero {
    padding: 82px 0 74px;
  }

  .sb-footer-demo-hero h1 {
    max-width: 860px;
    font-size: 52px;
    line-height: 1.06;
  }

  .sb-site-footer {
    padding: 64px 0 40px;
  }

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

  .sb-site-footer-brand-column {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767.98px) {
  :root {
    --sb-footer-shell: calc(100% - 24px);
  }

  .sb-footer-demo-hero {
    padding: 58px 0 56px;
  }

  .sb-footer-demo-hero h1 {
    font-size: 34px;
    line-height: 1.08;
  }

  .sb-footer-demo-hero p {
    font-size: 15px;
    line-height: 1.65;
  }

  .sb-site-footer {
    padding: 42px 0 32px;
  }

  .sb-site-footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .sb-site-footer-brand-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .sb-site-footer-brand-text strong {
    font-size: 22px;
  }

  .sb-site-footer-title {
    font-size: 17px;
  }

  .sb-site-footer-column a,
  .sb-site-footer-legal span,
  .sb-site-footer-legal a,
  .sb-site-footer-locale span {
    font-size: 15px;
  }

  .sb-site-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-top: 34px;
    padding-top: 22px;
  }
}
