.hero {
  position: relative;
  overflow: hidden;
  padding-top: 180px;
  padding-bottom: 90px;
  background:
    radial-gradient(1200px 620px at 50% -10%, var(--opt-green-tint) 0%, rgba(214, 241, 225, 0) 68%),
    var(--opt-white);
}

.hero__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 135, 68, 0.14) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(800px 420px at 50% 18%, #000, transparent 72%);
  mask-image: radial-gradient(800px 420px at 50% 18%, #000, transparent 72%);
  pointer-events: none;
}

.hero .container {
  position: relative;
}

.hero__wrap {
  max-width: 1152px;
  width: 100%;
  min-width: 0;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  text-align: center;
}

.hero__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
}

.hero__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--opt-line-green);
  border-radius: 999px;
  background-color: var(--opt-white);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
  color: var(--opt-ink);
}

.hero__badge-tag {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  background-color: var(--opt-green);
  font-size: 12px;
  font-weight: 700;
  color: var(--opt-white);
}

.hero__badge-arrow {
  color: var(--opt-green);
}

.hero__title {
  max-width: 989px;
  margin: 0;
  font-size: 70px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: normal;
  color: var(--opt-ink);
}

.hero__title-accent {
  color: var(--opt-green);
}

.hero__text {
  max-width: 740px;
  font-size: 18px;
  line-height: 1.5;
  color: #646464;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hero__preview {
  width: 100%;
  max-width: 1110px;
}

@media (max-width: 1199.98px) {
  .hero {
    padding-top: 140px;
  }

  .hero__title {
    font-size: 60px;
  }
}

@media (max-width: 991.98px) {
  .hero__title {
    font-size: 52px;
  }
}

@media (max-width: 767.98px) {
  .hero {
    padding-top: 124px;
    padding-bottom: 60px;
  }

  .hero__title {
    font-size: 44px;
  }

  .hero__content {
    gap: 50px;
  }
}

@media (max-width: 575.98px) {
  .hero {
    padding-top: 120px;
  }

  .hero__head {
    gap: 20px;
  }

  .hero__intro {
    gap: 24px;
  }

  .hero__title {
    font-size: 38px;
  }

  .hero__text {
    font-size: 16px;
    line-height: 1.6;
    text-wrap: pretty;
  }

  /* One tidy line, like the LeadXForms badge: the tag stays, the long tail and the
     arrow step aside (the tail stays readable for screen readers). */
  .hero__badge {
    gap: 8px;
    padding: 5px 14px 5px 5px;
    font-size: 13px;
    white-space: nowrap;
  }

  .hero__badge-tag {
    padding: 4px 9px;
    font-size: 11.5px;
  }

  .hero__badge-arrow {
    display: none;
  }

  .hero__badge-extra {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  /* Stacked and centred, each button as wide as its own label (like the LeadX Security hero). */
  .hero__actions {
    flex-direction: column;
    align-items: center;
    max-width: 100%;
  }

  .hero__content {
    gap: 40px;
  }
}

@media (max-width: 374.98px) {
  .hero__title {
    font-size: 34px;
  }
}

@media (max-width: 339.98px) {
  .hero__title {
    font-size: 30px;
  }
}
/* The hero arrives on load, the way the LeadX Security hero does: the badge, the title, the text, the
   buttons and then the dashboard, 80ms apart, each rising 24px (18px below 992px) while it fades in.
   - It is a CSS animation, not the scroll reveal of motion.css: the hero is on screen at once, so there
     is nothing to wait for, and a sequence that waited for site.js would start when the script arrived
     rather than when the page painted. The `both` fill holds the first frame through each delay.
   - It moves with the `translate` property, not `transform`, so it composes with the dashboard's own
     float animation and any hover transform instead of cancelling them. It is put on the dashboard's
     wrapper (.hero__preview), never on the floating pieces inside it.
   - Short on purpose (0.6s, the last item starts at 0.32s): the hero text is what the page is measured on.
   - Only where motion is welcome: with prefers-reduced-motion the rule is not there at all, so nothing
     can be left hidden. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes hero-in {
    from {
      opacity: 0;
      translate: 0 24px;
    }
  }

  .hero__badge,
  .hero__title,
  .hero__text,
  .hero__actions,
  .hero__preview {
    animation: hero-in 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }

  .hero__title {
    animation-delay: 0.08s;
  }

  .hero__text {
    animation-delay: 0.16s;
  }

  .hero__actions {
    animation-delay: 0.24s;
  }

  .hero__preview {
    animation-delay: 0.32s;
  }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 991.98px) {
  @keyframes hero-in-small {
    from {
      opacity: 0;
      translate: 0 18px;
    }
  }

  .hero__badge,
  .hero__title,
  .hero__text,
  .hero__actions,
  .hero__preview {
    animation-name: hero-in-small;
  }
}
