/* Hero layout and actions. */
/* Content sets the minimum height on short screens. */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: calc(100svh - 86px);
  padding-block: 72px 142px;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -86px 0 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(ellipse at 62% 27%, rgba(35, 73, 126, .17), transparent 59%), radial-gradient(ellipse at 37% 3%, rgba(28, 53, 89, .08), transparent 52%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: -86px 0 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--grain);
  opacity: .024;
  mask-image: linear-gradient(#000 45%, transparent);
}

.hero-copy {
  container-type: inline-size;
  width: min(100%, 1100px);
  margin-inline: auto;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  max-width: 100%;
  padding: 8px 14px;
  margin: 0 0 28px;
  border: 1px solid rgba(120, 174, 255, .24);
  border-radius: 999px;
  background: rgba(61, 107, 171, .07);
  color: #aec8ec;
  font-size: .75rem;
  line-height: 1.5;
  letter-spacing: .025em;
}

.hero-status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #82b3f9;
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(2rem, 8.7cqw, 6.5rem);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1.06;
  margin: 0 0 30px;
}

.hero h1 > span {
  display: block;
}

.hero-title-accent {
  color: #b7d0f6;
  background: linear-gradient(100deg, #f1f5fc 12%, #c3d6f3 49%, #82acf0 90%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text {
  color: #a5b1c3;
  max-width: 62ch;
  margin: 0 auto;
  font-size: 1.0625rem;
  line-height: 1.8;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-link, .hero-message {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 48px;
  padding: 10px 21px;
  border: 1px solid #ced9ea;
  border-radius: 10px;
  color: #101823;
  background: #e9eef6;
  font-size: .875rem;
  font-weight: 600;
  transition: background .2s ease, border-color .2s ease;
}

.hero-link:hover {
  background: #fff;
  border-color: #fff;
}

.hero-message {
  border-color: #303a48;
  color: #c4cbd5;
  background: rgba(255, 255, 255, .035);
}

.hero-message:hover {
  border-color: #6583ac;
  color: #f3f5f8;
  background: rgba(61, 107, 171, .12);
}

.hero-message:hover span {
  transform: translate(2px, -2px);
}

.hero-link span, .hero-message span, .hero-scroll span {
  transition: transform .2s ease;
}

.hero-link:hover span, .hero-scroll:hover span {
  transform: translateY(2px);
}

.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: calc(50% - 22px);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #303a48;
  border-radius: 50%;
  color: #a5b1c3;
  font-size: .875rem;
  transition: color .2s ease, border-color .2s ease;
}

.hero-scroll:hover {
  color: #dbe9fc;
  border-color: #6583ac;
}

@media (max-width: 768px) {
  .hero {
    padding-block: 64px 124px;
  }

  .hero h1 {
    margin-bottom: 26px;
  }

  .hero-text {
    max-width: 51ch;
  }
}

@media (max-width: 650px) {
  .hero-actions {
    flex-direction: column;
    width: min(100%, 280px);
    margin-inline: auto;
  }

  .hero {
    min-height: calc(100svh - 121px);
    padding-block: 56px 112px;
  }

  .hero::before, .hero::after {
    top: -121px;
  }

  .hero-status {
    font-size: .6875rem;
    padding-inline: 11px;
    margin-bottom: 26px;
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-scroll {
    bottom: 22px;
  }
}

@media (max-width: 400px) {
  .hero h1 {
    font-size: max(2rem, 9.8cqw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-link, .hero-link span, .hero-message, .hero-message span, .hero-scroll, .hero-scroll span {
    transition: none;
  }

  .hero-link:hover span, .hero-message:hover span, .hero-scroll:hover span {
    transform: none;
  }
}

@media (forced-colors: active) {
  .hero-title-accent {
    background: none;
    -webkit-text-fill-color: currentColor;
  }
}
