/* Authored \n breaks are desktop-only; below the site's mobile breakpoint
   (navbar switch, 1280px) the text reflows naturally. */
@media (max-width: 1280px) {
  br.multiline-br {
    display: none;
  }
}

.nm-features {
  position: relative;
  isolation: isolate;
  width: 100%;
  padding: 54px 30px 30px;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 20px;
  color: #fcfcfc;
  font-family: "Mona Sans", "Helvetica Neue", Arial, sans-serif;
}

/* Background video/image. The green grade is baked into the asset itself
   (no CSS overlay) so it renders identically everywhere. Absolute is
   unavoidable for a video background; content stacks above it. */
.nm-features__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.nm-features__content {
  width: min(1380px, 100%);
  margin-inline: auto;
}

/* Header: badge on its own row, then title left and description right
   (419px column, from Figma) sharing a row so their tops align. */
.nm-features__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 419px;
  grid-template-rows: auto auto;
  column-gap: 86px;
  align-items: start;
  margin-bottom: 66px;
}

.nm-features__header .nm-features__badge {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.nm-features__title {
  grid-column: 1;
  grid-row: 2;
}

.nm-features__description {
  grid-column: 2;
  grid-row: 2;
}

.nm-features__badge {
  display: inline-block;
  margin-bottom: 22px;
  padding: 3.5px 17.5px;
  border-radius: 81.25px;
  background: #e6ece9;
  color: #18141e;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  line-height: 16.25px;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.nm-features__title {
  margin: 0;
  font-size: 60px;
  font-style: normal;
  font-weight: 500;
  line-height: 70px;
  letter-spacing: 0;
}

.nm-features__description {
  margin: 0;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0;
}

/* ---------- Items panel: glass surface, two columns ---------- */

.nm-features__panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 30px;
  padding: 29px 27px 47px;
  border-radius: 20px;
  background: linear-gradient(155.46deg, rgba(252, 252, 252, 0.2) -50.09%, rgba(230, 236, 233, 0.2) 106.94%);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

/* Webflow projects the cards through a native <slot>; collapse it and the
   per-card wrappers so cards become the grid items. */
.nm-features__panel slot {
  display: contents;
}

.nm-features__panel slot::slotted(*) {
  display: contents;
}

/* ---------- Feature card ---------- */

/* Each card draws the divider above itself; the first row (first two cards
   in the two-column grid) skips it. 32px between content and line. */
.nm-feature {
  min-width: 0;
  padding: 32px 0;
  border-top: 1px solid rgba(24, 20, 30, 0.2);
  color: #fcfcfc;
  font-family: "Mona Sans", "Helvetica Neue", Arial, sans-serif;
}

:host(:nth-child(1)) .nm-feature,
:host(:nth-child(2)) .nm-feature,
.nm-features__panel > .nm-feature:nth-child(-n + 2) {
  padding-top: 0;
  border-top: none;
}

:host(:last-child) .nm-feature,
:host(:nth-last-child(2)) .nm-feature,
.nm-features__panel > .nm-feature:nth-last-child(-n + 2) {
  padding-bottom: 0;
}

.nm-feature__badge {
  display: inline-block;
  margin-bottom: 21px;
  padding: 3.5px 17.5px;
  border-radius: 81.25px;
  background: rgba(252, 252, 252, 0.6);
  color: #18141e;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  line-height: 16.25px;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.nm-feature__heading {
  display: flex;
  gap: 14px;
  align-items: center;
}

.nm-feature__icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.nm-feature__title {
  margin: 0;
  font-size: 27px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}

.nm-feature__description {
  margin: 14px 0 0;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0;
}

/* ---------- Same breakpoint as the navbar: single column ---------- */

@media (max-width: 1280px) {
  .nm-features__header {
    grid-template-columns: 1fr;
  }

  .nm-features__description {
    grid-column: 1;
    grid-row: 3;
    margin-top: 18px;
  }

  .nm-features__panel {
    grid-template-columns: 1fr;
  }

  /* Single column: only the very first card has no divider */
  :host(:nth-child(2)) .nm-feature,
  .nm-features__panel > .nm-feature:nth-child(2) {
    padding-top: 32px;
    border-top: 1px solid rgba(24, 20, 30, 0.2);
  }

  :host(:nth-last-child(2)) .nm-feature,
  .nm-features__panel > .nm-feature:nth-last-child(2) {
    padding-bottom: 32px;
  }

  :host(:last-child) .nm-feature,
  .nm-features__panel > .nm-feature:last-child {
    padding-bottom: 0;
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 767px) {
  .nm-features {
    padding: 24px 15px;
  }

  .nm-features__header {
    margin-bottom: 36px;
  }

  .nm-features__badge {
    margin-bottom: 18px;
  }

  .nm-features__title {
    font-size: 32px;
    line-height: 1.1;
  }

  .nm-features__description {
    font-size: 14px;
    line-height: 18px;
  }

  .nm-features__panel {
    padding: 19px 13px 32px;
  }

  .nm-feature {
    padding: 24px 0;
  }

  .nm-features__panel > .nm-feature:nth-child(2),
  :host(:nth-child(2)) .nm-feature {
    padding-top: 24px;
  }

  .nm-feature__badge {
    margin-bottom: 13px;
  }

  /* Icon stacks above the title */
  .nm-feature__heading {
    flex-direction: column;
    gap: 13px;
    align-items: flex-start;
  }

  .nm-feature__description {
    font-size: 14px;
    line-height: 18px;
  }
}


@keyframes nm-features-reveal {
  from {
    opacity: 0;
    transform: translateY(36px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.nm-features-reveal .nm-features__header {
  opacity: 0;
}

.nm-features-reveal.is-revealed .nm-features__header {
  animation: nm-features-reveal 850ms cubic-bezier(0.4, 0, 0.2, 1) 100ms both;
}

@media (prefers-reduced-motion: reduce) {
  .nm-features-reveal .nm-features__header {
    opacity: 1;
    animation: none;
  }
}

/* Direction variety: headings/copy arrive from the left */
@keyframes nm-features-reveal-from-left {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.nm-features-reveal.is-revealed .nm-features__header {
  animation-name: nm-features-reveal-from-left;
}

