/* ==========================================================================
   NewsBuild Landing Page Styles
   Prefix: nbl-*
   Self-contained stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Cascade Layers Definition
   -------------------------------------------------------------------------- */
@layer reset, base, typography, layout, components, utilities;

/* --------------------------------------------------------------------------
   2. Design Tokens & CSS Custom Properties
   -------------------------------------------------------------------------- */
@layer base {
  :root {
    /* Brand & Accent Colors */
    --nbl-color-blue: #2563eb;
    --nbl-color-blue-hover: #1d4ed8;
    --nbl-color-purple: #7c3aed;
    --nbl-color-content-blue: #e7f1f4;
    --nbl-color-display-headings: #c8efff;
    --nbl-color-logo: #102f6a;

    /* Text Colors */
    --nbl-color-text-primary: #141413;
    --nbl-color-text-content: #3d4041;
    --nbl-color-text-muted: #64748b;
    --nbl-color-text-white: #ffffff;
    --nbl-color-text-light: #e7f1f4;

    /* Backgrounds & Surfaces */
    --nbl-color-bg: #fff;
    --nbl-color-surface: #ffffff;
    --nbl-color-surface-dark: #102f6a;
    --nbl-color-surface-card: #f8fafc;
    --nbl-color-border: #e2e8f0;
    --nbl-color-border-dark: #1e293b;

    /* Fonts */
    --nbl-font-primary: "Geologica", sans-serif;
    --nbl-font-secondary: "Manrope", sans-serif;
    --nbl-font-bg: "GeologicaBg", "Geologica", sans-serif;
    --nbl-serif-font: "Merriweather", serif;

    /* Spacing Scale */
    --nbl-space-xs: 0.25rem;
    --nbl-space-sm: 0.5rem;
    --nbl-space-md: 1rem;
    --nbl-space-lg: 1.5rem;
    --nbl-space-xl: 2.5rem;
    --nbl-space-2xl: 4rem;
    --nbl-space-3xl: 6rem;

    /* Radii & Shadows */
    --nbl-radius-sm: 6px;
    --nbl-radius-md: 12px;
    --nbl-radius-lg: 20px;
    --nbl-radius-pill: 9999px;
    --nbl-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --nbl-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --nbl-shadow-glow: 0 0 20px rgba(37, 99, 235, 0.25);

    /* Transitions */
    --nbl-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }
}

/* --------------------------------------------------------------------------
   3. CSS Reset & Base Styles
   -------------------------------------------------------------------------- */
@layer reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
  }

  body {
    background-color: var(--nbl-color-bg);
    color: var(--nbl-color-text-primary);
    font-family: var(--nbl-font-primary);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
  }

  img,
  svg,
  video {
    display: block;
    max-width: 100%;
    height: auto;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  button,
  input,
  textarea,
  select {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
  }

  button {
    cursor: pointer;
  }

  ul,
  ol {
    list-style: none;
  }
}

/* --------------------------------------------------------------------------
   4. Typography Classes (Transferred from Figma Styles)
   -------------------------------------------------------------------------- */
@layer typography {
  .nbl-text-display-xl {
    font-family: var(--nbl-font-primary);
    font-weight: 800;
    font-size: clamp(2.25rem, 5vw, 4rem);
    line-height: 1.09;
    letter-spacing: -0.02em;
  }

  .nbl-text-display-lg {
    font-family: var(--nbl-font-primary);
    font-weight: 800;
    font-size: clamp(1.75rem, 4vw, 3rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
  }

  .nbl-text-body-m {
    font-family: var(--nbl-font-primary);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.35;
  }

  .nbl-text-body-lg {
    font-family: var(--nbl-font-primary);
    font-weight: 400;
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    line-height: 1.3;
  }

  .nbl-text-label-l {
    font-family: var(--nbl-font-bg);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.12;
  }

  .nbl-text-label-m {
    font-family: var(--nbl-font-secondary);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.41;
  }

  .nbl-text-label-s {
    font-family: var(--nbl-font-bg);
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 1.12;
  }

  .nbl-gradient-text {
    background: linear-gradient(
      135deg,
      var(--nbl-color-blue) 0%,
      var(--nbl-color-purple) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
}

/* --------------------------------------------------------------------------
   5. Site Layout & Main Grid Container
   -------------------------------------------------------------------------- */
@layer layout {
  .nbl-site-grid {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
  }

  .nbl-site-content {
    flex: 1 0 auto;
    width: 100%;
  }

  .nbl-container {
    width: min(100% - 2rem, 1280px);
    margin-inline: auto;
    padding-inline: var(--nbl-space-md);
  }
}

/* --------------------------------------------------------------------------
   6. SVG Icon Sprite Manipulation
   -------------------------------------------------------------------------- */
@layer components {
  .nbl-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    /* SVG symbols carry their own fill/stroke — let them inherit color */
    fill: currentColor;
    stroke: none;
    vertical-align: middle;
    flex-shrink: 0;
    pointer-events: none;

    &.nbl-icon-lg {
      width: 2.5rem;
      height: 2.5rem;
    }

    &.nbl-icon-xl {
      width: 3.5rem;
      height: 3.5rem;
    }

    &.arrow-right {
      transform: rotate(-90deg);
    }
  }

  /* chevron-down is stroke-only; override fill so it renders correctly */
  use[href="#chevron-down"],
  use[href="#toptop"] {
    /* symbols handle their own paint — no override needed */
  }

  /* nb-symbol (the NB logo mark) used inside buttons */
  .nbl-demo-button .nbl-icon,
  .nbl-learn-button .nbl-icon {
    width: 24px;
    height: 24px;
  }

  .nbl-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

/* --------------------------------------------------------------------------
   7. Header & Navigation
   -------------------------------------------------------------------------- */
@layer components {
  .nbl-header-dummy {
    height: 100px;
  }
  /* Header lives inside the hero — transparent, positioned absolutely */
  .nbl-site-header {
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding-block: 25px;
    margin-bottom: -220px;
  }

  .nbl-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--nbl-space-lg);
    /* Matches Figma 240px side padding at full width, scales down */
    padding: 0;
    height: 65px; /* top padding of hero = header height */
    width: min(100% - 2rem, 1440px);
  }

  .nbl-navbar-logo {
    align-self: baseline;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: 190px;

    img {
      height: 36px;
      width: auto;
    }
  }

  .nbl-navbar {
    display: flex;
    align-items: center;
    gap: 32px;
  }

  /* Plain nav links — Manrope Regular 16px white */
  .nbl-navbar > .nbl-button:not(.nbl-demo-button) {
    font-family: var(--nbl-font-secondary);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.49;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 45px;
    background: transparent;
    border: 1px solid transparent;
    border-color: transparent;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition:
      var(--nbl-transition),
      border-color 0.3s;

    &:hover {
      border-color: #9cadd0;
      transform: none;
      opacity: 1;
    }
  }
}

/* --------------------------------------------------------------------------
   8. Buttons & Actions
   -------------------------------------------------------------------------- */
@layer components {
  /* Base button — used for nav links too, so keep minimal */
  .nbl-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--nbl-radius-pill);
    font-family: var(--nbl-font-bg);
    font-weight: 600;
    font-size: 16px; /* 16px */
    line-height: 1.12; /* GeologicaBg SemiBold line-height */
    color: var(--nbl-color-text-white);
    background: transparent;
    transition: var(--nbl-transition);
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;

    &:hover {
      color: var(--nbl-color-content-blue);
      background: var(--nbl-color-surface-dark);
      border: 1px solid #4a92aa;
      opacity: 1;
    }

    &.nbl-read-more {
      color: var(--nbl-color-logo);
      border: 1px solid #9cadd0;
      font: 600 16px/1 var(--nbl-font-primary);

      height: 64px;
      .icon {
        color: inherit;
      }
      h3 {
        font: inherit;
      }

      &:hover {
        color: var(--nbl-color-content-blue);
      }
    }
  }

  /* Filled blue CTA — Figma: bg #2563EB, h=64px, px=24px, radius=45px, shadow */
  .nbl-demo-button {
    background: var(--nbl-color-blue);
    border: 1px solid transparent;
    color: var(--nbl-color-content-blue); /* #E7F1F4 */
    height: 64px;
    padding-inline: 24px;
    border-radius: 45px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    gap: 8px;

    & .nbl-icon {
      width: 24px;
      height: 24px;
      flex-shrink: 0;
    }
  }

  /* Outlined ghost CTA — Figma: border #9CADD0, h=64px, px=24px, radius=45px */
  .nbl-learn-button {
    border: 1px solid #9cadd0;
    color: var(--nbl-color-content-blue); /* #E7F1F4 */
    height: 64px;
    padding-inline: 24px;
    border-radius: 45px;
    gap: 6px;

    & .nbl-icon {
      width: 24px;
      height: 24px;
      flex-shrink: 0;
    }

    &:hover {
      background: var(--nbl-color-surface-dark);
      border: 1px solid #4a92aa;
      box-shadow: 0 0 12.1px 0 #8a38f5;
      opacity: 1;
    }
  }

  .nbl-buttons-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 24px;
  }
}

/* --------------------------------------------------------------------------
   9. Hero Section
   Figma: pt=125px (header height), pb=140px, px=240px at 1920px
   Background layers (bottom to top):
     1. <video> object-fit cover, opacity 0.4
     2. ::before  gradient-to-b #6B6C6E → #262D3C
     3. ::after   #22468D soft-light blend
   -------------------------------------------------------------------------- */
@layer components {
  .nbl-hero-section {
    position: relative;
    /* Header (125px) sits inside the hero top padding */
    padding-top: 125px;
    padding-bottom: 140px;
    padding-inline: clamp(1rem, 12.5vw, 15rem); /* 240px at 1920px */
    min-height: max(720px, 50vh);
    color: #ffffff;
    overflow: hidden;
    isolation: isolate;

    /* ── Video background ── */
    .nbl-hero-video {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: -3;
      pointer-events: none;
      opacity: 0.4;
    }

    /* ── Blue soft-light layer: #22468D ── */
    &::after {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(
          0deg,
          rgba(34, 70, 141, 0.5) 0%,
          rgba(34, 70, 141, 0.5) 100%
        ),
        linear-gradient(180deg, #6b6c6e 0%, #262d3c 99.52%);
      mix-blend-mode: soft-light;
      z-index: -1;
    }

    /* ── Hero body: centered column ── */
    .nbl-hero-content {
      padding-top: 195px;
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      /* Figma: gap-[46px] between heading block and buttons block */
      gap: 24px;
      text-align: center;

      /* h2: Geologica ExtraBold 64px lh 1.09 white */
      h2 {
        font-family: var(--nbl-font-primary);
        font-weight: 800;
        font-size: 4rem; /* 64px at ~1420px+ */
        line-height: 1;
        color: #ffffff;
      }

      /* Inner column: subtitle + buttons, max-width 756px, gap 46px */
      .nbl-hero-body {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 46px;
        width: min(100%, 756px);
      }

      /* p: Geologica Regular 24px lh 1.2 white */
      p {
        font-family: var(--nbl-font-primary);
        font-weight: 400;
        font-size: clamp(1.125rem, 2vw, 1.5rem); /* 24px */
        line-height: 1.2;
        color: #ffffff;
        text-align: center;
      }
    }
  }
}

/* --------------------------------------------------------------------------
   10. Common reused components
   -------------------------------------------------------------------------- */
@layer components {
  .nbl-base-section {
    max-width: min(100% - 2rem, 1440px);
    margin-inline: auto;
  }

  .nbl-video-content {
    width: min(100% - 2rem, 1440px);
    margin-inline: auto;
    padding-inline: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--nbl-space-xl);
  }

  .nbl-section-title {
    text-align: left;
    font-size: clamp(1.875rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 0;
  }
}
/* --------------------------------------------------------------------------
   10. Credits & Mentorship Section
   -------------------------------------------------------------------------- */
@layer components {
  .nbl-credits-section {
    padding-block: var(--nbl-space-2xl);
    border-bottom: 1px solid #dbdbdb;

    p {
      text-align: center;
      font-size: 16px;
      margin-bottom: var(--nbl-space-lg);
      font-weight: 500;
    }

    .nbl-credits-logos {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: clamp(2rem, 6vw, 5rem);
      flex-wrap: wrap;
      filter: brightness(0);
      transition: var(--nbl-transition);

      img {
        height: 20px;
        width: auto;
        opacity: 0.75;

        &.nbl-v8-logo {
          height: 29px;
        }

        &:hover {
          opacity: 1;
        }
      }
    }
  }
}

/* --------------------------------------------------------------------------
   11. Workflow Section (Before / After Comparison)
   -------------------------------------------------------------------------- */
@layer components {
  .nbl-workflow-section {
    padding-block: clamp(3rem, 8vw, 6rem);
    background-color: var(--nbl-color-surface);

    .nbl-section-title {
      margin-bottom: 3rem;
    }

    .nbl-workflow-schemes {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
      gap: var(--nbl-space-xl);
      width: 100%;
      margin-inline: auto;
      padding-inline: var(--nbl-space-md);
    }

    .nbl-before,
    .nbl-after {
      padding: 0;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 0;
      transition: var(--nbl-transition);

      h3 {
        font-size: 24px;
        font-weight: 500;
        color: var(--nbl-color-text-content);
        margin-bottom: 8px;
      }

      .nbl-eta {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 0;
        font-weight: 700;
        font-size: 20px;
        font-family: var(--nbl-font-secondary);
        .nbl-icon {
          width: 20px;
          aspect-ratio: 1;
        }
      }

      img {
        height: auto;
        border-radius: var(--nbl-radius-md);

        width: calc(100% - 40px);
        margin-top: -4.2rem;
      }
    }

    .nbl-before {
      border-right: 1px dashed #9d9d9d;
      .nbl-eta {
        color: #f65d5d;
      }
    }

    .nbl-after .nbl-eta {
      color: var(--nbl-color-blue);
    }

    .nbl-invite {
      text-align: center;
      margin-top: var(--nbl-space-2xl);

      p {
        font-size: 2rem;
        font-weight: 100;
        margin-bottom: var(--nbl-space-md);
      }

      .nbl-demo-button {
        width: 300px;
      }
    }
  }
}

/* --------------------------------------------------------------------------
   12. Video Demo Section
   -------------------------------------------------------------------------- */
@layer components {
  .nbl-video-section {
    background-color: #faf9f5;
    padding-block: clamp(3rem, 8vw, 6rem);
    text-align: center;

    .nbl-video-wrapper {
      position: relative;
      width: 100%;
      height: auto;
      aspect-ratio: 16 / 9;
      border-radius: var(--nbl-radius-lg);
      overflow: hidden;

      iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
      }
    }
  }
}

/* --------------------------------------------------------------------------
   13. Features Section
   -------------------------------------------------------------------------- */
@layer components {
  .nbl-features-section {
    padding-block: clamp(3rem, 8vw, 6rem);
    border-bottom: 1px solid #b8c8cd;

    .nbl-features-list {
      display: grid;
      align-items: flex-start;
      grid-template-columns: 300px 1fr;
      grid-template-rows: repeat(5, auto) 1fr;
      gap: 12px 85px;
      width: min(100% - 2rem, 1440px);
      padding-inline: 0;
      margin-inline: auto;

      .nbl-section-title {
        grid-column: 1;

        .nbl-icon {
          width: 41px;
          height: 39px;
          vertical-align: baseline;
        }
      }

      p {
        font-size: 1.15rem;
        margin-bottom: 1rem;
        color: #676869;

        grid-column: 1;
      }

      .nbl-feature-item {
        display: flex;
        gap: 4px;
        font: normal 16px/1.25 var(--nbl-font-primary);

        grid-column: 1;
        padding: 10px;
        height: 50px;
        justify-content: center;
        align-items: center;
        border: 1px solid #c9c9c9;
        border-radius: 45px;
        color: var(--nbl-color-text-content);
        transition: all 0.3s ease-in-out;
        cursor: pointer;
        &:hover,
        &.nbl-selected {
          background: var(--nbl-color-display-headings);
          border: 1px solid var(--nbl-color-display-headings);
          color: var(--nbl-color-blue);
        }

        .nbl-icon {
          width: 26px;
          aspect-ratio: 1 / 1;

          opacity: 0;
          margin-left: -26px;
          transition: all 0.3s ease-in-out;
          .nbl-feature-item.nbl-selected &,
          .nbl-feature-item:hover & {
            opacity: 1;
          }
        }
        h3 {
          font: inherit;
        }

        &.nbl-selected {
        }
      }

      .nbl-buttons-wrap {
        grid-column: 1;
        display: flex;
        .nbl-button {
          width: 100%;
          margin: 20px 0 auto;
        }
      }

      dl {
        grid-column: 2;
        border-radius: 9px;
        background: #faf9f5;
        padding: 20px 30px;

        grid-row: 1 / span 6;
        display: none;
        position: relative;
        justify-content: flex-end;
        height: 100%;
        min-height: 475px;
        &.nbl-dt-selected {
          display: flex;
        }

        .nbl-features-info {
          position: absolute;
          inset: 50px auto auto 50px;
          max-width: 290px;
          display: flex;
          flex-direction: column;
          gap: 7px;
          .nbl-icon {
            width: 30px;
            height: 30px;
            color: #676869;
          }
          p {
            font-size: 16px;
          }
        }
        .nbl-image-dt {
          margin: 0 0 auto;
        }
      }
    }

    .nbl-features-checklist {
      margin-top: var(--nbl-space-2xl);

      ul {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 5rem;
        flex-wrap: wrap;

        li {
          display: flex;
          align-items: center;
          gap: var(--nbl-space-xs);
          font-weight: 400;
          font-size: 1.25rem;
          color: var(--nbl-color-text-primary);
        }
      }
    }
  }
}

/* --------------------------------------------------------------------------
   14. Testimonials & Impact Section
   -------------------------------------------------------------------------- */
@layer components {
  .nbl-testimonials-section {
    padding-block: 5.8rem 7.5rem;

    display: grid;
    grid-template-columns: 450px 1fr;
    .nbl-section-title {
      font: 800 2.9rem/1.1 var(--nbl-font-primary);
    }
    .nbl-numbers {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(min(100%, 295px), 1fr));
      gap: 0;
      width: min(100% - 2rem, 1200px);
      margin-inline: auto;
      margin-bottom: var(--nbl-space-3xl);

      .nbl-number-item {
        padding-inline: 46px;
        text-align: center;

        border-right: 1px solid #b8c8cd;
        &:last-child {
          border-right: none;
        }

        h3 {
          font-family: var(--nbl-serif-font);
          font-size: 4rem;
          font-weight: 800;
          line-height: 1.3;
          margin-bottom: 0;
        }

        p {
          font-size: 1.25rem;
          font-weight: 200;
          color: var(--nbl-color-text-content);
          margin-bottom: 10px;
          background: var(--nbl-color-content-blue);
          border-radius: 3px;
        }

        .nbl-number-item-note {
          font-size: 0.9rem;
          color: #7a8082;
          line-height: 1.25;
          font-style: italic;
        }
      }
    }

    .nbl-testimonials-list {
      grid-column: 1/-1;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 32px;
      width: 100%;
      margin-inline: auto;
      /* padding-inline: var(--nbl-space-md); */

      .nbl-testimonial-item {
        background: #faf9f5;
        border-radius: 10px;
        padding: 2.75rem;
        display: grid;
        grid-template-columns: 50px 1fr;
        gap: 12px;

        .nbl-icon {
          width: 36px;
          height: 26px;
          margin: 5px auto auto auto;
          color: var(--nbl-color-blue);
        }

        quote {
          font-family: var(--nbl-serif-font);
          font-size: 16px;
          line-height: 1.45;
          color: var(--nbl-color-text-content);
        }

        .nbl-testimonial-author {
          padding-top: 8px;
          grid-column: 1 / -1;
          display: grid;
          grid-template-columns: subgrid;
          align-items: center;
          align-content: flex-start;
          justify-content: flex-start;
          gap: 0 var(--nbl-space-md);
          font-family: var(--nbl-font-secondary);

          /* img {
            grid-row: 1 / span 2;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            object-fit: cover;
          } */

          .nbl-testimonial-author-name {
            grid-column: 1 / span 2;
            grid-row: 1;
            font-size: 18px;
            font-weight: 500;
            color: var(--nbl-color-text-primary);
          }

          .nbl-testimonial-author-title {
            grid-column: 1 / span 2;
            grid-row: 2;
            font-size: 14px;
            color: var(--nbl-color-text-content);
          }
        }
      }
    }
  }
}

/* --------------------------------------------------------------------------
   14. Latest news & blog posts Section
   -------------------------------------------------------------------------- */
@layer components {
  .nbl-latest-section {
    background-color: #faf9f5;
    padding-block: 7rem;
  }
  .nbl-latest-content {
    width: min(100% - 2rem, 1440px);
    margin-inline: auto;
    display: grid;

    grid-template-columns: 1fr 170px;
    gap: 2.8rem;
  }

  .nbl-news-list {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, 370px);
    gap: 50px;
    justify-content: space-evenly;
    justify-content: center;
    .news-item {
      margin: 15px auto;
      box-sizing: border-box;
      background-color: #fff;
      text-decoration: none;
      padding: 0;
      border-radius: 12px;
      transition: all 0.3s ease;
      .news-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        border-radius: 10px 10px 0 0;
        overflow: hidden;
        transition: transform 0.3s ease;
      }
      .news-title {
        font:
          600 18px / 1.4 "Manrope",
          sans-serif;
        margin: 12px 18px 22px;
        color: var(--logo-color);
      }
      .news-description {
        display: none;
        margin: 0 0 1rem;
        font:
          400 0.9rem / 1.4 "Manrope",
          sans-serif;
        white-space: normal;
      }
    }
    .nbl-news-item {
      margin: 15px auto;
      box-sizing: border-box;
      background-color: #fff;
      text-decoration: none;
      padding: 0;
      border-radius: 12px;
      transition: all 0.3s ease;
      .news-title {
        display: flex;
        gap: 10px;
        box-sizing: border-box;
        width: 100%;
        height: 210px;
        padding: 45px 24px;
        border-radius: 10px 10px 0 0;

        background: var(--nbl-color-logo);
        color: #fff;
        .nbl-icon {
          width: 25px;
          aspect-ratio: 1;
          margin: 0 0 auto;
        }
        span {
          font: 700 24px/1.25 var(--nbl-font-primary);
          display: -webkit-box;
          -webkit-box-orient: vertical;
          -webkit-line-clamp: 4; /* Change to your desired number of lines */
          line-clamp: 4;
          overflow: hidden;
          text-overflow: ellipsis;
        }
      }

      .news-description {
        margin: 12px 18px 20px;
        font:
          600 18px / 1.4 "Manrope",
          sans-serif;
        color: #444e57;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3; /* Change to your desired number of lines */
        line-clamp: 3;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .nbl-more {
        margin: 0 18px 22px;
        font: 600 14px / 1.4 var(--nbl-font-primary);
      }
    }
  }
}

/* --------------------------------------------------------------------------
   15. Contact & Demo Request Form Section
   -------------------------------------------------------------------------- */
@layer components {
  .nbl-form-section {
    padding-block: clamp(3rem, 8vw, 6rem);

    .form-content {
      position: relative;
      width: min(100% - 2rem, 720px);
      margin-inline: auto;
      padding-inline: 0;
      background: var(--nbl-color-surface);
      min-height: 340px;
      .alert {
        margin-block: 1rem 2rem;
        padding: 0.75rem 1rem;
        border: 1px solid var(--nbl-color-border);
        border-radius: 6px;

        &.alert-success {
          position: absolute;
          inset: 0;
          display: flex;
          flex-direction: column;
          margin-block: 0;
          justify-content: center;
          align-items: center;
          background-color: var(--nbl-color-bg);
          border-color: transparent;
          color: var(--nbl-color-text-primary);
          text-align: center;
          img {
            width: 148px;
            aspect-ratio: 1;
            filter: drop-shadow(0 0 70px #8a38f5);
            margin-inline: auto;
          }
          h4 {
            font-size: 48px;
            font-weight: 800;
            margin-bottom: 1rem;
          }
          p {
            font-size: 16px;
          }
        }
        &.alert-danger {
          background-color: #fee2e2;
          border-color: #ef4444;
          color: #991b1b;
        }
      }
      & > .success-wrap {
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column;
        margin-block: 0;
        justify-content: center;
        align-items: center;
        background-color: var(--nbl-color-bg);
        border-color: transparent;
        color: var(--nbl-color-text-primary);
        text-align: center;
        img {
          width: 148px;
          aspect-ratio: 1;
          filter: drop-shadow(0 0 70px #8a38f5);
          margin-inline: auto;
          margin-bottom: 24px;
        }
        h4 {
          font-size: 48px;
          font-weight: 800;
          margin-bottom: 1rem;
        }
        p {
          font-size: 16px;
        }
      }
    }

    .form-title {
      font-size: 3rem;
      font-weight: 800;
      text-align: center;
      margin-bottom: var(--nbl-space-xl);
    }

    p {
      color: #676869;
      margin: 1rem auto 2rem;
    }

    .contact-form {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 32px 12px;

      @media (max-width: 640px) {
        grid-template-columns: 1fr;
      }

      .half-wrap {
        display: flex;
        flex-direction: column;
        gap: var(--nbl-space-xs);
      }

      .one-wrap {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: column;
        gap: var(--nbl-space-xs);
      }

      label {
        font-weight: 600;
        font-size: 16px;
        font-family: var(--nbl-font-secondary);
        color: var(--nbl-color-text-content);
        span {
          color: #887dff;
        }
      }

      input[type="text"],
      input[type="email"],
      textarea {
        width: 100%;
        padding: 0.75rem 1rem;
        border: 1px solid var(--nbl-color-border);
        border-radius: var(--nbl-radius-sm);
        background: var(--nbl-color-bg);
        transition: var(--nbl-transition);

        &:focus {
          border-color: var(--nbl-color-blue);
          background: var(--nbl-color-surface);
          box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
        }
      }

      .error-note {
        display: none;
        font-size: 0.8rem;
        color: #ef4444;
      }

      .checkbox-wrap {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;

        .form-check {
          flex: 1 0 28px;
          width: 28px;
          height: 28px;
          padding: 2px;
          border: 1px solid #cdd6d8;
          border-radius: 2px;
          input {
            width: 100%;
            height: 100%;
            opacity: 0;
            &:checked {
              opacity: 1;
              background-color: var(--nbl-color-blue);
              appearance: none;
            }
          }
        }

        .form-check-label {
          font-size: 0.85rem;
          color: var(--nbl-color-text-content);
          line-height: 1.4;

          a {
            color: var(--nbl-color-blue);
            text-decoration: none;
          }
        }
      }

      .submit-button {
        grid-column: 1 / -1;
        background: var(--nbl-color-blue);
        color: var(--nbl-color-text-white);
        font-weight: 700;
        font-size: 16px;
        padding: 14px 32px;
        height: 64px;
        border-radius: var(--nbl-radius-pill);
        transition: var(--nbl-transition);
        margin-top: var(--nbl-space-md);
        span {
          margin-left: 5px;
        }
        &:hover {
          background: var(--nbl-color-blue-hover);
          box-shadow: var(--nbl-shadow-glow);
        }
      }
    }
  }
}

/* --------------------------------------------------------------------------
   16. Footer & Navigation
   -------------------------------------------------------------------------- */
@layer components {
  .nbl-site-footer {
    background-color: var(--nbl-color-surface-dark);
    color: var(--nbl-color-text-white);
    padding-block: var(--nbl-space-2xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);

    .nbl-footer-nav {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
      gap: clamp(1rem, 3vw, 2.5rem);
      width: min(100% - 2rem, 1280px);
      margin-inline: auto;
      padding-inline: var(--nbl-space-md);

      .nbl-footer-link {
        font-size: 16px;
        color: rgba(255, 255, 255, 0.7);
        transition: var(--nbl-transition);
        line-height: 1.49;
        color: #ffffff;
        padding: 10px 16px;
        border-radius: 45px;
        background: transparent;
        border: 1px solid transparent;

        &:hover {
          border-color: #9cadd0;
        }
      }
    }
  }
}

/* --------------------------------------------------------------------------
   17. Utility Classes
   -------------------------------------------------------------------------- */
@layer utilities {
  .nbl-to-top {
    position: fixed;
    bottom: 5.5rem;
    right: 10px;
    z-index: 90;
    width: 58px;
    height: 58px;
    background: linear-gradient(270deg, #2563eb 50%, #7c3aed 99.89%);
    background-size: 200%;
    background-position: right;
    color: var(--nbl-color-text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--nbl-shadow-md);
    transition: all 0.5s;

    &:hover {
      transform: translateY(-3px);
      box-shadow: var(--nbl-shadow-glow);
      background-position: left;
    }
    .nbl-icon {
      width: 18px;
      height: 18px;
    }
  }

  .nbl-hidden {
    display: none;
  }

  .nbl-hidden-dt,
  .nbl-image-ml,
  .nbl-image-ms,
  .nbl-image-mb {
    display: none;
  }
}

/* 1440 to 1919px */
@media only screen and (max-width: 1919px) {
  @layer reset {
    html {
      font-size: 15px;
    }
  }
  /*--------------------------------------------------------------------------
    7. Header & Navigation
    --------------------------------------------------------------------------*/
  @layer components {
    .nbl-header-dummy {
      height: 40px;
    }

    .nbl-header-content {
      height: 50px; /* top padding of hero = header height */
      width: calc(100% - 128px);

      .nbl-button.nbl-demo-button {
        line-height: 24px;
        height: 40px;
        padding-inline: 16px;
      }

      .nbl-navbar > .nbl-button:not(.nbl-demo-button) {
        height: 40px;
      }
    }
  }

  /* --------------------------------------------------------------------------
   9. Hero Section
   -------------------------------------------------------------------------- */
  @layer components {
    .nbl-hero-section {
      padding-bottom: 120px;
      padding-inline: 0;
      min-height: 0;

      /* ── Hero body: centered column ── */
      .nbl-hero-content {
        padding-top: 160px;

        h2 {
          font-size: 3.2rem; /* 64px at ~1420px+ */
          line-height: 1.1;
        }

        p {
          font-size: 1.3rem;
          line-height: 1.2;
        }

        .nbl-button {
          line-height: 24px;
          height: 40px;
          padding-inline: 16px;
        }
      }
    }
  }

  /* --------------------------------------------------------------------------
   10. Common reused components
   -------------------------------------------------------------------------- */
  @layer components {
    .nbl-base-section {
      max-width: min(100% - 2rem, 1312px);
    }

    .nbl-video-content {
      width: min(100% - 2rem, 1312px);
      gap: 2rem;
    }

    .nbl-section-title {
      font-size: 2.13rem;
      line-height: 1.1;
    }
  }

  /* --------------------------------------------------------------------------
   11. Workflow Section (Before / After Comparison)
   -------------------------------------------------------------------------- */
  @layer components {
    .nbl-workflow-section {
      padding-block: 4.8rem;
      max-width: 1060px;

      .nbl-section-title {
        margin-bottom: 2rem;
      }

      .nbl-workflow-schemes {
        /* display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
        width: 100%;
        margin-inline: auto; */
        gap: 25px;
        padding-inline: 0;
      }

      .nbl-before,
      .nbl-after {
        img {
          width: 100%;
        }
      }

      .nbl-before {
        border-right: 1px dashed #9d9d9d;
        img {
          margin: 0 0 0 -1.5rem;
        }
        .nbl-eta {
          color: #f65d5d;
        }
      }

      .nbl-after {
        img {
          margin: -1.8rem 0 0 -17px;
        }
        .nbl-eta {
          color: var(--nbl-color-blue);
        }
      }

      .nbl-invite {
        text-align: center;
        margin-top: var(--nbl-space-2xl);

        p {
          font-size: 2rem;
          font-weight: 100;
          margin-bottom: var(--nbl-space-md);
        }

        .nbl-demo-button {
          width: 300px;
        }
      }
    }
  }

  /* --------------------------------------------------------------------------
   12. Video Demo Section
   -------------------------------------------------------------------------- */
  @layer components {
    .nbl-video-section {
      padding-block: 4.8rem;
    }
  }

  /* --------------------------------------------------------------------------
   13. Features Section
   -------------------------------------------------------------------------- */
  @layer components {
    .nbl-features-section {
      padding-block: 4.3rem;

      .nbl-features-list {
        gap: 12px 45px;
        width: min(100% - 2rem, 1312px);

        .nbl-section-title {
          .nbl-icon {
            width: 25px;
            height: 25px;
            margin-right: 5px;
          }
        }

        p {
          font-size: 18px;
        }

        dl {
          padding: 20px 24px;
          flex-direction: column;
          justify-content: stretch;
          .nbl-features-info {
            position: static;
            padding-top: 26px;
            max-width: none;
            gap: 16px;
          }
          .nbl-image-ml {
            margin: 0 auto auto 0;
            max-height: 425px;
          }
        }
      }

      .nbl-features-checklist {
        ul {
          justify-content: center;
        }
      }
    }
  }

  /* --------------------------------------------------------------------------
   14. Testimonials & Impact Section
   -------------------------------------------------------------------------- */
  @layer components {
    .nbl-testimonials-section {
      padding-block: 4.3rem;
      grid-template-columns: 1fr;
      .nbl-section-title {
        margin-bottom: 3rem;
        text-align: center;
        font: 800 2.13rem/1.1 var(--nbl-font-primary);
      }
    }
  }

  /* --------------------------------------------------------------------------
   14. Latest news & blog posts Section
   -------------------------------------------------------------------------- */
  @layer components {
    .nbl-latest-section {
      padding-block: 4.3rem;
    }
    .nbl-latest-content {
      width: min(100% - 2rem, 1312px);
      grid-template-columns: 1fr 170px;
    }

    .nbl-news-list {
      grid-template-columns: repeat(3, 1fr);
      gap: 18px;
      .nbl-news-item {
        margin: 0 auto;
        .news-title {
          height: 190px;
          span {
            font: 700 20px/1.25 var(--nbl-font-primary);
          }
        }

        .news-description {
          margin: 16px 24px 20px;
          font: 600 16px / 1.3 var(--nbl-font-secondary);
        }
      }
    }
  }

  /* --------------------------------------------------------------------------
   15. Contact & Demo Request Form Section
   -------------------------------------------------------------------------- */
  @layer components {
    .nbl-form-section {
      .form-title {
        font-size: 48px;
      }
    }
  }

  @layer utilities {
    .nbl-image-dt,
    .nbl-image-ms,
    .nbl-image-mb {
      display: none;
    }

    .nbl-image-ml {
      display: block;
    }
  }
}

/* 1280 to 1439px */
@media only screen and (max-width: 1439px) {
  /* --------------------------------------------------------------------------
   9. Hero Section
   -------------------------------------------------------------------------- */
  @layer components {
    .nbl-hero-section {
      padding-bottom: 60px;
    }
  }

  /* --------------------------------------------------------------------------
   10. Common reused components
   -------------------------------------------------------------------------- */
  @layer components {
    .nbl-base-section {
      max-width: min(100% - 2rem, 1152px);
    }

    .nbl-video-content {
      width: min(100% - 2rem, 1152px);
      gap: 2rem;
    }
  }

  /* --------------------------------------------------------------------------
   13. Features Section
   -------------------------------------------------------------------------- */
  @layer components {
    .nbl-features-section {
      .nbl-features-list {
        width: min(100% - 2rem, 1152px);
      }
    }
  }

  /* --------------------------------------------------------------------------
   14. Testimonials & Impact Section
   -------------------------------------------------------------------------- */
  @layer components {
    .nbl-testimonials-section {
      .nbl-numbers {
        .nbl-number-item {
          border-right: none;

          max-width: 270px;
          margin-inline: auto;

          h3 {
            font-size: 2.4rem;
            font-weight: 900;
          }

          p {
            font-size: 0.95rem;
            padding-inline: 0.4rem;
          }
        }
      }
    }
  }
}

/* 1024 to 1279px */
@media only screen and (max-width: 1279px) {
  /*--------------------------------------------------------------------------
    7. Header & Navigation
    --------------------------------------------------------------------------*/

  @layer components {
    .nbl-header-content {
      width: calc(100% - 90px);
      .nbl-button.nbl-demo-button {
        display: none;
      }
    }
  }

  /* --------------------------------------------------------------------------
   8. Buttons & Actions
   -------------------------------------------------------------------------- */
  .nbl-button {
    &.nbl-read-more {
      font: 600 16px / 1 var(--nbl-font-primary);
      height: 44px;
      padding-inline: 1rem;
      margin-left: auto;
    }
  }

  /* --------------------------------------------------------------------------
   9. Hero Section
   -------------------------------------------------------------------------- */
  @layer components {
    .nbl-hero-section {
      padding-bottom: 45px;

      /* ── Hero body: centered column ── */
      .nbl-hero-content {
        padding-top: 100px;

        h2 {
          font-size: 2.13rem; /* 64px at ~1420px+ */
          line-height: 1.25;
        }

        p {
          font-size: 1.2rem;
          line-height: 1.25;
        }
      }
    }
  }

  /* --------------------------------------------------------------------------
   10. Common reused components
   -------------------------------------------------------------------------- */
  @layer components {
    .nbl-base-section {
      max-width: min(100% - 6rem, 932px);
    }

    .nbl-video-content {
      width: min(100% - 6rem, 932px);
      gap: 2rem;
    }

    .nbl-section-title {
      font-size: 1.6rem;
    }
  }

  /* --------------------------------------------------------------------------
   11. Workflow Section (Before / After Comparison)
   -------------------------------------------------------------------------- */
  @layer components {
    .nbl-workflow-section {
      padding-block: 3rem;

      .nbl-workflow-schemes {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 450px), 1fr));
      }
      & .nbl-invite {
        p {
          font-size: 1.6rem;
        }
      }
    }
  }

  /* --------------------------------------------------------------------------
   12. Video Demo Section
   -------------------------------------------------------------------------- */
  @layer components {
    .nbl-video-section {
      padding-block: 3rem 4.8rem;
    }
  }

  /* --------------------------------------------------------------------------
   14. Testimonials & Impact Section
   -------------------------------------------------------------------------- */
  @layer components {
    .nbl-testimonials-section {
      padding-block: 3rem;
      grid-template-columns: 1fr;
      .nbl-testimonials-list {
        gap: 12px;
        .nbl-testimonial-item {
          padding: 14px 12px 12px;
          align-content: flex-start;
          .nbl-icon,
          quote {
            grid-column: 1 / -1;
            margin-left: 0;
          }
        }
      }
    }
  }

  /* --------------------------------------------------------------------------
   14. Latest news & blog posts Section
   -------------------------------------------------------------------------- */
  @layer components {
    .nbl-latest-section {
      padding-block: 3rem;
    }
    .nbl-latest-content {
      width: min(100% - 6rem, 932px);
    }
  }

  @layer utilities {
    .nbl-workflow-section {
      & .nbl-before,
      & .nbl-after {
        img {
          &.nbl-image-ml {
            display: none;
          }
          &.nbl-image-ms {
            display: block;
          }
        }
      }
    }
  }
}

/* 768 to 1023px */
@media only screen and (max-width: 1023px) {
  /* --------------------------------------------------------------------------
   9. Hero Section
   -------------------------------------------------------------------------- */
  @layer components {
    .nbl-hero-section {
      padding-bottom: 90px;

      /* ── Hero body: centered column ── */
      .nbl-hero-content {
        padding-top: 230px;
      }
    }
  }

  /* --------------------------------------------------------------------------
   10. Common reused components
   -------------------------------------------------------------------------- */
  @layer components {
    .nbl-base-section {
      max-width: 100%;
    }

    .nbl-video-content {
      width: min(100% - 6rem, 676px);
    }
  }

  /* --------------------------------------------------------------------------
   11. Workflow Section (Before / After Comparison)
   -------------------------------------------------------------------------- */
  @layer components {
    .nbl-workflow-section {
      max-width: min(100% - 3rem, 720px);
      .nbl-workflow-schemes {
        gap: 20px;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
      }
    }
  }

  /* --------------------------------------------------------------------------
   13. Features Section
   -------------------------------------------------------------------------- */
  .nbl-features-checklist {
    ul {
      gap: 5rem;

      li {
        font-size: 1.07rem;
      }
    }
  }

  /* --------------------------------------------------------------------------
   14. Testimonials & Impact Section
   -------------------------------------------------------------------------- */
  @layer components {
    .nbl-testimonials-section {
      .nbl-numbers {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
        width: 100%;
        margin-bottom: var(--nbl-space-3xl);
        .nbl-number-item {
          padding-inline: 25px;
        }
      }

      .nbl-testimonials-list {
        display: flex;
        flex-wrap: nowrap;
        overflow: auto;
        width: 100%;
        margin-bottom: 2.5rem;
        padding: 0;
        gap: 0;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        .nbl-testimonial-item {
          width: 290px;
          flex: 0 0 290px;
          border-radius: 10px;
          margin-left: 10px;
          padding: 12px;
          &:first-child {
            margin-left: 46px;
          }
        }
      }
    }
  }

  /* --------------------------------------------------------------------------
   14. Latest news & blog posts Section
   -------------------------------------------------------------------------- */
  @layer components {
    .nbl-latest-section {
      padding-block: 46px 64px;
      padding-inline: 0;
      .nbl-section-title {
        padding-inline: 3rem 0;
      }
      .nbl-button.nbl-read-more {
        margin-right: 3rem;
      }
    }
    .nbl-latest-content {
      width: 100%;
      padding-inline: 0;
      display: flex;
      flex-direction: column;
      gap: 32px;
    }

    /* header row: title left, button right */
    .nbl-latest-content {
      display: grid;
      grid-template-columns: 1fr auto;
      grid-template-rows: auto auto;
      gap: 32px 64px;
      align-items: center;
    }

    .nbl-news-list {
      display: flex;
      flex-wrap: nowrap;
      gap: 32px;
      justify-content: flex-start;
      padding-left: 3rem;
      overflow-x: auto;
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;
      /* fade-out gradient on the right */
      -webkit-mask-image: linear-gradient(
        to right,
        black 0%,
        black 75%,
        transparent 100%
      );
      mask-image: linear-gradient(
        to right,
        black 0%,
        black 75%,
        transparent 100%
      );

      &::-webkit-scrollbar {
        display: none;
      }

      .nbl-news-item {
        flex: 0 0 370px;
        width: 370px;
        margin: 0;
      }
    }
  }
}

/* suitable for animations */
@media only screen and (min-width: 768.000001px) {
  @keyframes head-opaque {
    from {
      background: rgba(255, 255, 255, 0);
      color: rgb(255, 255, 255, 1);
      box-shadow: 0 0 5px rgba(0, 0, 0, 0);
    }
    to {
      background: rgba(255, 255, 255, 1);
      color: rgb(16, 47, 106, 1);
      box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    }
  }

  @keyframes head-btns-color {
    from {
      color: rgb(255, 255, 255, 1);
    }
    to {
      color: rgb(16, 47, 106, 1);
    }
  }

  @keyframes logo-filter {
    from {
      filter: brightness(0) invert(1);
    }
    to {
      filter: brightness(1) invert(0);
    }
  }

  @supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    .nbl-root-page .nbl-site-header {
      animation-name: head-opaque;
      animation-duration: 1ms; /* Firefox requires this to apply the animation */
      animation-direction: alternate;
      animation-fill-mode: both; /* ← add this */
      animation-timeline: scroll(root);
      animation-range: 125px 750px;
    }
    .nbl-root-page .nbl-navbar > .nbl-button:not(.nbl-demo-button) {
      animation-name: head-btns-color;
      animation-duration: 1ms; /* Firefox requires this to apply the animation */
      animation-direction: alternate;
      animation-fill-mode: both; /* ← add this */
      animation-timeline: scroll(root);
      animation-range: 125px 250px;
    }
    .nbl-root-page .nbl-navbar-logo {
      & img {
        animation-name: logo-filter;
        animation-duration: 1ms; /* Firefox requires this to apply the animation */
        animation-direction: alternate;
        animation-fill-mode: both; /* ← add this */
        animation-timeline: scroll(root);
        animation-range: 125px 250px;
      }
    }
  }
}

/* mobile styles */
@media only screen and (max-width: 767px) {
  @layer reset {
    html {
      font-size: 14px;
    }
  }
  @layer components {
    .nbl-site-header {
      position: sticky;
      margin-bottom: 0;
      padding: 16px;
      background: #fff;
    }
    .nbl-header-content {
      width: 100%;
      height: auto;
      .nbl-button.nbl-demo-button {
        display: flex;
      }
    }

    .nbl-navbar-logo {
      img {
        height: 26px;
      }
    }
    .nbl-ham-button {
      display: inline-flex;
      align-items: center;
      .nbl-icon {
        width: 21px;
        height: 15px;
      }
    }

    .nbl-navbar.nbl-dropdown-mb {
      border-top: 1px solid #b8c8cd;
      background: #fff;
      padding: 0;
      gap: 16px;
      & > .nbl-button:first-child {
        margin-top: 1rem;
      }
      & > .nbl-button:not(.nbl-demo-button) {
        align-self: stretch;
        padding: 10px;
        color: #1d1f20;
      }
      & > .nbl-demo-button {
        align-self: stretch;
        margin: 0 16px 32px;
      }
    }

    .nbl-button.nbl-read-more,
    .nbl-demo-button {
      height: 44px;
    }

    .nbl-hero-section {
      padding-top: 0;
      padding-bottom: 50px;
      padding-inline: 16px;
      min-height: auto;
      & .nbl-hero-content {
        padding-top: 150px;
        & h2 {
          font-size: 24px;
        }
      }
    }

    .nbl-base-section {
      margin-inline: 0;
      padding-inline: 16px;
      max-width: 100%;
    }

    .nbl-credits-section {
      padding-block: 32px;
    }

    .nbl-workflow-section {
      padding-block: 2.3rem;
      .nbl-section-title {
        font: 800 24px/1.25 var(--nbl-font-primary);
        margin-bottom: 24px;
      }
      .nbl-workflow-schemes {
        padding-inline: 0;
        gap: 4.5rem;
      }
      .nbl-before {
        border-right: none;
      }
      & .nbl-before,
      & .nbl-after {
        img {
          height: auto;
          max-width: calc(100% + 30px);
          width: auto;
          margin-top: 0;
          margin-inline: -16px;
        }
      }
    }

    .nbl-video-content {
      width: calc(100% - 32px);
    }

    .nbl-features-section {
      .nbl-features-list {
        /* display: contents; */
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 0;
        & .nbl-section-title {
          margin-bottom: 5px;
          .nbl-icon {
            width: 19px;
            height: 19px;
            margin-right: 5px;
          }
        }
        p {
          font-size: 1rem;
          margin-bottom: 0.5rem;
        }
        & .nbl-feature-item,
        & .nbl-feature-item:hover,
        & .nbl-feature-item.nbl-selected {
          padding: 0;
          justify-content: flex-start;
          background: transparent;
          border: none;
          color: var(--nbl-color-blue);
          font-weight: 900;
          .nbl-icon {
            opacity: 1;
            margin: 0;
          }
        }
        dl,
        dl.nbl-dt-selected {
          padding: 0;
          grid-column: 1;
          grid-row: auto;
          display: grid;
          grid-template-columns: 1fr;
          background: transparent;
          .nbl-features-info {
            position: static;
            max-width: none;
            .nbl-icon {
              display: none;
            }
          }
          img {
            background: #faf9f5;
            padding: 14px;
            border-radius: 9px;
          }
        }
      }
    }

    .nbl-testimonials-section {
      padding: 32px 0;
      display: grid;
      grid-template-columns: 1fr;
      .nbl-section-title {
        text-align: center;
        font-size: 24px;
      }
      .nbl-numbers {
        display: flex;
        flex-wrap: wrap-reverse;
        justify-content: center;
        gap: 10px;
        width: 100%;
        margin-top: 2rem;
        margin-inline: auto;
        margin-bottom: 3rem;
        .nbl-number-item {
          max-width: min(270px, calc(50% - 10px));
          padding-inline: 0px;
          border: 0;
          &:nth-child(2) {
            order: -10;
          }
          &:nth-child(3) {
            order: -5;
          }
          h3 {
            font-size: 3rem;
          }
          p {
            padding-inline: 0.5rem;
          }
        }
      }
    }

    /* --------------------------------------------------------------------------
   14. Latest news & blog posts Section
   -------------------------------------------------------------------------- */
    .nbl-latest-section {
      padding: 32px 10px;
      .nbl-section-title {
        padding-inline: 0;
      }
      .nbl-button.nbl-read-more {
        margin-right: 0;
      }
    }
    .nbl-latest-content {
      width: 100%;
      padding-inline: 0;
      display: grid;
      grid-template-columns: 1fr;
      gap: 32px;

      grid-template-rows: auto auto;
      align-items: center;
      .nbl-button.nbl-read-more {
        grid-row: 3;
      }
    }

    .nbl-news-list {
      display: grid;
      grid-template-columns: 370px;
      gap: 32px;
      justify-content: center;
      padding-left: 0;
      -webkit-mask-image: none;
      mask-image: none;

      .nbl-news-item {
        width: 370px;
        margin: 0;
      }
    }

    .nbl-form-section {
      .form-title {
        font-size: 24px;
        margin-bottom: 1rem;
      }
      .form-content {
        width: 100%;
        p {
          font-size: 1rem;
          text-align: center;
        }
        .alert {
          align-items: flex-end;
          &.alert-success {
            margin-bottom: 130px;
            img {
              width: 65px;
              aspect-ratio: 1;
              filter: drop-shadow(0 0 40px #8a38f5);
            }
          }
        }
        & > .success-wrap {
          img {
            width: 65px;
            aspect-ratio: 1;
            filter: drop-shadow(0 0 40px #8a38f5);
          }
        }
      }
    }

    .nbl-site-footer {
      .nbl-footer-nav {
        display: grid;
        .nbl-footer-link {
          text-align: center;
          font-size: 16px;
        }
      }
    }
  }

  @layer utilities {
    .nbl-hidden-dt,
    .nbl-image-dl,
    .nbl-image-mb {
      display: block;
    }
    .nbl-hidden-mb,
    .nbl-image-ml,
    .nbl-image-ms,
    .nbl-image-dt {
      display: none;
    }

    .nbl-workflow-section {
      & .nbl-before,
      & .nbl-after {
        img {
          &.nbl-image-ms {
            display: none;
          }
        }
      }
    }

    .nbl-dropdown-wrapper-mb {
      position: relative;
      overflow: visible;
      &.nbl-site-header {
        position: sticky;
      }
    }
    .nbl-dropdown-mb {
      overflow: hidden;
      text-align: center;
      width: 100%;
      height: auto;
      display: flex;
      flex-direction: column;
      transition: max-height 0.5s;
      position: absolute;
      inset: 100% 0 auto 0;

      &.nbl-expanded-mb {
        max-height: 600px;
      }
    }
    .nbl-collapsed-mb {
      max-height: 0;
    }
  }
}
