/* Intermediate banner (/web-development), sits between #what-makes and #roadmap.
   A wide dark strip with the app-screen collage bleeding in, tilted, from both
   sides and fading toward a dark centre that holds the headline and CTA. */

#mid-banner .mb-banner {
  position: relative;
  overflow: hidden;
  /* Full-bleed strip spanning the whole viewport width. */
  width: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: #07090c;
  box-shadow: 0 23px 52.9px rgba(0, 0, 0, 0.35), 0 4px 4px rgba(0, 0, 0, 0.25);
}

/* ---------- Collage (tilted, bleeding from each edge) ---------- */

/* The collage is scaled up so only a cropped, zoomed slice of the app wall
   shows on each side (large screens), rather than the whole wall shrunk down. */
#mid-banner .mb-banner__collage {
  position: absolute;
  top: 50%;
  width: 760px;
  height: auto;
  z-index: 1;
  pointer-events: none;
  transform: translateY(-50%) rotate(15deg);
}

#mid-banner .mb-banner__collage--left {
  left: -360px;
}

#mid-banner .mb-banner__collage--right {
  right: -360px;
}

/* Dark scrim: keeps the collage visible at the edges and fades it to a dark,
   readable centre. */
#mid-banner .mb-banner__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(7, 9, 12, 0) 0%,
    rgba(7, 9, 12, 0.82) 26%,
    rgba(7, 9, 12, 0.92) 50%,
    rgba(7, 9, 12, 0.82) 74%,
    rgba(7, 9, 12, 0) 100%
  );
}

/* ---------- Centre content ---------- */

#mid-banner .mb-banner__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 707px;
  text-align: center;
}

#mid-banner .mb-banner__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #fff;
}

#mid-banner .mb-banner__title {
  font-weight: 600;
  font-size: 32px;
  line-height: 1.2;
  margin: 0;
}

#mid-banner .mb-banner__subtitle {
  font-weight: 400;
  font-size: 16px;
  opacity: 0.5;
  margin: 0;
}

/* ---------- CTA ---------- */

#mid-banner .mb-banner__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  /* Size to content (with a sensible minimum) so the label always stays on a
     single line instead of wrapping — the pill grows to fit the text and the
     arrow stays pinned on the right. */
  width: auto;
  min-width: 224px;
  height: 54px;
  padding: 0 8px 0 24px;
  border-radius: 296px;
  background: #57a6fb;
  color: #fff;
  font-size: 16px;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 10px 34px rgba(87, 166, 251, 0.45), 0 1px 8px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#mid-banner .mb-banner__cta:hover {
  background: #6db1fc;
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(87, 166, 251, 0.55), 0 1px 8px rgba(0, 0, 0, 0.12);
}

#mid-banner .mb-banner__cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  flex: 0 0 auto;
}

#mid-banner .mb-banner__cta-icon svg {
  width: 18px;
  height: 18px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  #mid-banner .mb-banner {
    min-height: 210px;
    padding: 36px 20px;
  }

  #mid-banner .mb-banner__collage {
    width: 560px;
    opacity: 0.5; /* faded through, like the mobile design */
  }

  #mid-banner .mb-banner__collage--left {
    left: -250px;
  }

  #mid-banner .mb-banner__collage--right {
    right: -250px;
  }

  #mid-banner .mb-banner__title {
    font-size: 26px;
  }

  /* Collages are already at 50%, so only a light centre scrim keeps text clean. */
  #mid-banner .mb-banner__scrim {
    background: linear-gradient(
      90deg,
      rgba(7, 9, 12, 0.35) 0%,
      rgba(7, 9, 12, 0.72) 32%,
      rgba(7, 9, 12, 0.78) 50%,
      rgba(7, 9, 12, 0.72) 68%,
      rgba(7, 9, 12, 0.35) 100%
    );
  }
}

@media (max-width: 560px) {
  #mid-banner .mb-banner {
    min-height: 200px;
    padding: 32px 16px;
  }

  #mid-banner .mb-banner__collage {
    width: 460px;
  }

  #mid-banner .mb-banner__collage--left {
    left: -210px;
  }

  #mid-banner .mb-banner__collage--right {
    right: -210px;
  }

  #mid-banner .mb-banner__scrim {
    background: linear-gradient(
      90deg,
      rgba(7, 9, 12, 0.42) 0%,
      rgba(7, 9, 12, 0.78) 32%,
      rgba(7, 9, 12, 0.82) 50%,
      rgba(7, 9, 12, 0.78) 68%,
      rgba(7, 9, 12, 0.42) 100%
    );
  }

  /* 24px headline wrapping to two lines, matching the mobile layout. */
  #mid-banner .mb-banner__title {
    font-size: 24px;
    max-width: 320px;
  }

  #mid-banner .mb-banner__subtitle {
    font-size: 15px;
  }
}
