/* Shared hero layout for the home page and article pages. */
.home.hero {
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: none;
  min-height: 680px;
  margin: 0;
  padding: 160px 32px 96px !important;
  gap: 0 !important;
  overflow: hidden;
  background: #020b05;
}

.home.hero .home_bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  aspect-ratio: auto;
  pointer-events: none;
}

.home.hero .home_bg img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  opacity: 1 !important;
  transition: none;
}

.home.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(2, 11, 5, 0.14) 0%,
    rgba(2, 11, 5, 0.28) 45%,
    rgba(2, 11, 5, 0.76) 100%
  );
  pointer-events: none;
}

.home.hero .home_content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
}

.home.hero h1 {
  width: 100%;
  max-width: 1000px;
  margin: 0 !important;
  color: #fff !important;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.home.hero .home_content > p {
  max-width: 760px;
  margin: 0 !important;
  color: #e4e9e3 !important;
  font-size: 18px;
  line-height: 1.65;
  text-wrap: pretty;
}

.home.hero .benefits {
  gap: 8px;
  margin: 0 !important;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 100px;
  background: rgba(2, 11, 5, 0.48);
}

.home.hero .benefits > div {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}

.home.hero .benefits p {
  margin: 0 !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.home.hero .home_content > .flex_2 {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center;
  gap: 14px !important;
  width: 100%;
  margin: 8px 0 0 !important;
}

.home.hero .home_content > .flex_2 > a {
  display: inline-flex !important;
  flex: 0 1 auto !important;
  align-items: center;
  justify-content: center;
  gap: 10px !important;
  width: auto !important;
  min-width: 220px;
  max-width: 100% !important;
  min-height: 56px;
  margin: 0 !important;
  padding: 14px 28px !important;
  border: 1px solid transparent;
  border-radius: 100px;
  color: #fff !important;
  font-size: 16px;
  font-weight: 600 !important;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

.home.hero .home_content > .flex_2 > a > div {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin: 0 !important;
}

.home.hero .home_content > .flex_2 > a > span {
  display: block;
}

.home.hero .home_content > .flex_2 > a img {
  opacity: 1;
  transition: none;
}

.home.hero .home_content > .flex_2 > .btn_accent1 {
  background: #07951b;
  border-color: #12a32a;
}

.home.hero .home_content > .flex_2 > a:not(.btn_accent1) {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(2, 11, 5, 0.52);
}

.home.hero .home_content > .flex_2 > a:hover {
  scale: 1;
  transform: translateY(-2px);
  background: #087d19;
}

.home.hero > .toc__container:empty {
  display: none;
}

main > .home.hero + section.wrapper {
  margin-top: clamp(32px, 4vw, 60px);
}

@media (max-width: 768px) {
  .home.hero {
    min-height: 600px;
    padding: 136px 24px 64px !important;
  }

  .home.hero .home_bg img {
    object-position: 58% bottom;
  }

  .home.hero::after {
    background: linear-gradient(
      180deg,
      rgba(2, 11, 5, 0.2),
      rgba(2, 11, 5, 0.56) 45%,
      rgba(2, 11, 5, 0.86)
    );
  }

  .home.hero .home_content {
    gap: 20px;
  }

  .home.hero h1 {
    font-size: clamp(30px, 7.8vw, 42px);
    line-height: 1.16;
    letter-spacing: -0.025em;
  }

  .home.hero .home_content > p {
    font-size: 16px;
    line-height: 1.65;
  }

  .home.hero .home_content > .flex_2 {
    gap: 12px !important;
  }

  .home.hero .home_content > .flex_2 > a {
    flex: 0 1 auto !important;
    width: fit-content !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 52px;
    padding: 12px 20px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home.hero .home_content > .flex_2 > a {
    transition: none;
  }

  .home.hero .home_content > .flex_2 > a:hover {
    transform: none;
  }
}
