
.roi {
    position: relative;
    overflow: hidden;
    z-index: 2 !important;
    padding: 4rem 1.5rem;
    background: #0a1a0a;
    font-family: "Satoshi", system-ui, sans-serif;
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
  }
  
  @media (min-width: 640px) {
    .roi {
      padding-top: 6rem;
      padding-bottom: 6rem;
    }
  }
  
  @media (min-width: 1024px) {
    .roi {
      padding: 8rem 4rem;
    }
  }
  
  .roi__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  
  .roi__bg--dots {
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 32px 32px;
  }
  
  .roi__bg--glow {
    background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(74, 119, 50, 0.1), transparent);
  }
  
  .roi__wrap {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin-inline: auto;
  }
  
  /* --------------------------------------------------------------------------
     Scroll reveal animations (Framer Motion parity)
     -------------------------------------------------------------------------- */
  
  @keyframes roi-head-in {
    from {
      opacity: 0;
      transform: translate3d(0, 16px, 0);
    }
    to {
      opacity: 1;
      transform: translate3d(0, 0, 0);
    }
  }
  
  @keyframes roi-metric-in {
    from {
      opacity: 0;
      transform: translate3d(0, 24px, 0);
    }
    to {
      opacity: 1;
      transform: translate3d(0, 0, 0);
    }
  }
  
  @keyframes roi-case-in {
    from {
      opacity: 0;
      transform: translate3d(0, 20px, 0);
    }
    to {
      opacity: 1;
      transform: translate3d(0, 0, 0);
    }
  }
  
  .roi__head.roi__reveal {
    opacity: 0;
  }
  
  .roi__head.roi__reveal.is-visible {
    animation: roi-head-in 0.6s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
  }
  
  .roi__metric.roi__reveal {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
  }
  
  .roi__metric.roi__reveal.is-visible {
    animation: roi-metric-in 0.5s cubic-bezier(0.33, 1, 0.68, 1) forwards;
  }
  
  .roi__metrics .roi__metric:nth-child(2).roi__reveal.is-visible {
    animation-delay: 0.1s;
  }
  
  .roi__metrics .roi__metric:nth-child(3).roi__reveal.is-visible {
    animation-delay: 0.2s;
  }
  
  .roi__metrics .roi__metric:nth-child(4).roi__reveal.is-visible {
    animation-delay: 0.3s;
  }
  
  .roi__case.roi__reveal {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }
  
  .roi__case.roi__reveal.is-visible {
    animation: roi-case-in 0.6s cubic-bezier(0.33, 1, 0.68, 1) forwards;
  }
  
  /* --------------------------------------------------------------------------
     Header
     -------------------------------------------------------------------------- */
  
  .roi__head {
    margin-bottom: 3.5rem;
    text-align: left;
  }
  
  @media (min-width: 768px) {
    .roi__head {
      margin-bottom: 5rem;
      text-align: center;
    }
    .roi__head p {
      max-width: 100%;
    }
    
  }
  
  .roi__badge {
    display: inline-block;
    margin-bottom: 1.25rem;
    padding: 0.375rem 0.75rem;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #3da647;
    background: rgba(61, 166, 71, 0.1);
    border-radius: 4px;
  }
  
  .roi__head h2 {
    margin: 0 0 1.25rem;
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #ffffff;
  }
  
  .roi__head p {
    margin: 0 auto;
    max-width: 32rem;
    font-size: 15px;
    line-height: 1.625;
    color: rgba(255, 255, 255, 0.75);
  }
  
  /* --------------------------------------------------------------------------
     Metric cards
     -------------------------------------------------------------------------- */
  
  .roi__metrics {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 4rem;
    align-items: stretch;
  }
  
  @media (min-width: 640px) {
    .roi__metrics {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      grid-auto-rows: auto;
    }
  }
  
  .roi__metric {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
  }
  
  @media (min-width: 640px) {
    .roi__metric {
      padding: 2.5rem;
    }
  }
  
  .roi__metric-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }
  
  .roi__metric-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 8px;
    background-color: rgba(61, 166, 71, 0.1);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
  }
  
  .roi__metric--savings .roi__metric-icon {
    background-image: url("../../imgs/icon-trending-up.svg");
  }
  
  .roi__metric--time .roi__metric-icon {
    background-image: url("../../imgs/icon-clock.svg");
  }
  
  .roi__metric--multiple .roi__metric-icon {
    background-image: url("../../imgs/icon-dollar.svg");
  }
  
  .roi__metric--ltv .roi__metric-icon {
    background-image: url("../../imgs/icon-bar-chart.svg");
  }
  
  .roi__metric-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
  }
  
  .roi__metric p:first-of-type {
    margin: 0 0 1rem;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
  }
  
  .roi__metric p:last-of-type {
    margin: auto 0 0;
    font-size: 14px;
    line-height: 1.625;
    color: rgba(255, 255, 255, 0.7);
  }
  
  /* --------------------------------------------------------------------------
     Case study block
     -------------------------------------------------------------------------- */
  
  .roi__case {
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
  }
  
  @media (min-width: 640px) {
    .roi__case {
      padding: 2.5rem;
    }
  }
  
  @media (min-width: 1024px) {
    .roi__case {
      padding: 3.5rem;
    }
  }
  
  .roi__case-layout {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: flex-start;
  }
  
  @media (min-width: 1024px) {
    .roi__case-layout {
      flex-direction: row;
      gap: 4rem;
    }
  }
  
  .roi__case-body {
    flex: 1;
    min-width: 0;
  }
  
  .roi__case-body h3 {
    margin: 0 0 1rem;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    line-height: 1.375;
    color: #ffffff;
  }
  
  .roi__case-body p {
    margin: 0 0 1.5rem;
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
  }
  
  .roi__case-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
    font-weight: 600;
    color: #3da647;
    text-decoration: none;
    transition: opacity 0.2s ease;
  }
  
  .roi__case-link::after {
    content: "";
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    background: url("../../imgs/icon-chevron-right.svg") center / contain no-repeat;
  }
  
  .roi__case-link:hover {
    text-decoration: underline;
  }
  
  /* --------------------------------------------------------------------------
     Case study stats
     -------------------------------------------------------------------------- */
  
  .roi__case-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    width: 100%;
    flex-shrink: 0;
  }
  
  @media (min-width: 1024px) {
    .roi__case-stats {
      width: 320px;
    }
  }
  
  .roi__stat {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    text-align: center;
  }
  
  .roi__stat p:first-child {
    margin: 0 0 0.25rem;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    line-height: 1;
    color: #3da647;
  }
  
  .roi__stat p:last-child {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
  }
  
  /* --------------------------------------------------------------------------
     Accessibility
     -------------------------------------------------------------------------- */
  
  @media (prefers-reduced-motion: reduce) {
    .roi__head.roi__reveal,
    .roi__metric.roi__reveal,
    .roi__case.roi__reveal {
      opacity: 1;
      transform: none;
      animation: none !important;
    }
  }
  