.demo-section {
  padding: clamp(38px, 5vw, 72px) 24px 0;
  background: linear-gradient(to bottom, #f5f8fd 0 31%, #0c1423 31% 100%);
  scroll-margin-top: 15px;
}

.demo-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  align-items: stretch;
  gap: clamp(22px, 4.6vw, 64px);
  padding: clamp(24px, 5vw, 66px);
  border: 1px solid #aac8fa30;
  border-radius: clamp(24px, 3vw, 32px);
  background:
    radial-gradient(ellipse at 12% 4%, #2e6fd543, transparent 64%),
    radial-gradient(ellipse at 93% 92%, #315d9b2b, transparent 62%),
    linear-gradient(145deg, #131f33, #0c1423);
  color: var(--text);
  box-shadow: 0 25px 60px -30px #050d1d9c;
}

.demo-start {
  display: flex;
  flex-direction: column;
  justify-self: stretch;
  width: 100%;
  height: 100%;
  gap: 12px;
}

.demo-start label {
  display: grid;
  gap: 6px;
  color: #b6c4db;
  font-size: 14px;
  font-weight: 700;
}

.demo-start input {
  height: 46px;
  padding: 0 14px;
  border: 1px solid #304765;
  border-radius: 9px;
  background: #121d30;
  color: #f5f8ff;
  font: inherit;
  font-weight: 400;
}

.demo-start input::placeholder {
  color: #8fa0bb;
  opacity: 1;
  font-weight: 400;
}

.demo-start input:focus {
  outline: none;
  border-color: #5898ff;
  box-shadow: 0 0 0 1px #5898ff;
}

.demo-start .primary-button,
.demo-start .primary-button:hover {
  width: 100%;
  margin-top: auto;
  color: #fff;
}

.demo-intro h2 {
  max-width: 11em;
  margin: 0;
  font-size: clamp(36px, 5.05vw, 68px);
  line-height: 1.04;
  letter-spacing: -.053em;
  text-wrap: balance;
}

.demo-intro h2 span {
  color: #94beff;
}

.demo-intro p {
  max-width: 34ch;
  margin: 18px 0 0;
  color: var(--secondary);
  font-size: clamp(16px, 1.55vw, 20px);
  text-wrap: pretty;
}

.site-footer {
  padding: clamp(37px, 5.5vw, 75px) 24px 22px;
  background: #0c1423;
  color: #b7c7de;
}

.site-footer-content {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 2.15fr);
  gap: clamp(22px, 5vw, 83px);
}

.site-footer-brand a {
  display: inline-flex;
}

.site-footer-brand img {
  display: block;
  width: min(100%, 176px);
  height: auto;
}

.site-footer-brand p {
  max-width: 22ch;
  margin: 12px 0 0;
  font-size: 14px;
}

.site-footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 18px 24px;
}

.site-footer-nav h2 {
  margin: 0 0 10px;
  color: #f1f6ff;
  font-size: 15px;
}

.site-footer-nav ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer-nav :is(a, .nav-placeholder) {
  display: inline-block;
  padding: 5px 0;
  color: inherit;
  font-size: 14px;
  white-space: normal;
  text-wrap: pretty;
}

.site-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(24px, 4vw, 49px);
  padding-top: 17px;
  border-top: 1px solid #aac8fa30;
  font-size: 14px;
}

.site-footer-bottom a {
  color: #a3d1ff;
}

.site-footer a:hover {
  color: #fff;
}

@media (max-width: 880px) {
  .demo-panel,
  .site-footer-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .demo-intro h2 {
    max-width: 14em;
  }

  .demo-start {
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 520px) {
  .demo-section,
  .site-footer {
    padding-inline: 17px;
  }

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

  .site-footer-nav :is(a, .nav-placeholder) {
    padding: 6px 0;
  }
}
