.demo-hero {
  position: relative;
  height: 1102px;
  margin-top: -103px;
  padding-top: 103px;
}

.demo-hero::before {
  content: '';
  position: absolute;
  left: var(--glow-bleed);
  right: var(--glow-bleed);
  top: 0;
  height: 1404px;
  z-index: -1;
  background: url('../../img/glows/demo-hero.svg') no-repeat center top / 1920px 1404px;
}

.demo-title {
  position: absolute;
  left: 0;
  right: 0;
  top: 226px;
  text-align: center;
  font-size: 48px;
  font-weight: 600;
  line-height: 65px;
  color: var(--color-foreground);
}

.demo-blue {
  color: var(--color-primary);
  font-weight: 900;
}

.demo-body {
  position: absolute;
  left: 488px;
  top: 382px;
  width: 939px;
  text-align: center;
  font-size: 16px;
  line-height: 25px;
  color: var(--color-foreground);
}

.demo-form {
  position: absolute;
  left: 512px;
  top: 524px;
}

.demo-note {
  align-self: center;
  width: 392px;
  padding-left: 19px;
  font-size: 14px;
  line-height: 16px;
  color: var(--color-primary-dark);
}

.demo-submit {
  grid-column: 1 / -1;
  justify-self: start;
  margin-left: 613px;
  width: 172px;
  min-width: 0;
}

.demo-hero + .trust {
  margin-bottom: 31px;
}

.demo-note a {
  font-weight: 900;
  transition: color 0.2s var(--ease-soft);
}

@media (max-width: 1439px) {
  .demo-hero {
    height: auto;
    padding: 155px var(--page-gutter) 96px;
  }

  .demo-hero::before {
    height: auto;
    bottom: -200px;
    background:
      radial-gradient(ellipse 60% 55% at 84% 14%, #cfe7f7 0%, rgba(207, 231, 247, 0) 70%),
      radial-gradient(ellipse 42% 34% at 76% 66%, #dcedf9 0%, rgba(220, 237, 249, 0) 70%),
      radial-gradient(ellipse 44% 40% at 4% 50%, #dcedf9 0%, rgba(220, 237, 249, 0) 70%),
      #f6fafd;
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 200px), transparent 100%);
    mask-image: linear-gradient(to bottom, #000 calc(100% - 200px), transparent 100%);
  }

  .demo-title {
    position: static;
    width: 100%;
    max-width: var(--page-max);
    margin: 0 auto;
    font-size: 46px;
    line-height: 1.28;
  }

  .demo-body {
    position: static;
    width: 100%;
    max-width: 940px;
    margin: 24px auto 0;
  }

  .demo-form {
    position: static;
    max-width: 896px;
    margin: 48px auto 0;
  }

  .demo-note {
    width: 100%;
  }

  .demo-submit {
    justify-self: end;
    margin-left: 0;
  }
}

@media (max-width: 1023px) {
  .demo-hero {
    margin-top: 0;
    padding: 72px var(--page-gutter);
  }

  .demo-title {
    font-size: 36px;
  }

  .demo-form {
    max-width: 100%;
    margin-top: 40px;
  }
}

@media (max-width: 640px) {
  .demo-hero {
    padding: 56px var(--page-gutter);
  }

  .demo-title {
    font-size: 28px;
    line-height: 1.25;
  }

  .demo-body {
    text-align: left;
  }

  .demo-note {
    align-self: auto;
    padding-left: 0;
    font-size: 15px;
    line-height: 20px;
  }

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