/* ==========================================
   CLOUDMATE FINAL CTA
   ========================================== */

.cm-final-cta {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 45px 0 40px;

  background:
    radial-gradient(
      ellipse at 2% 46%,
      rgba(227, 222, 255, 0.32),
      transparent 35%
    ),
    radial-gradient(
      ellipse at 100% 2%,
      rgba(227, 222, 255, 0.28),
      transparent 28%
    ),
    #fcfcff;

  font-family: "Poppins", "Inter", sans-serif;
  box-sizing: border-box;
}

.cm-final-cta *,
.cm-final-cta *::before,
.cm-final-cta *::after {
  box-sizing: border-box;
}

/* ==========================================
   MAIN CONTAINER
   ========================================== */

.cm-final-cta-container {
  width: min(1460px, calc(100% - 90px));
  margin: 0 auto;

  display: grid;
  grid-template-columns: minmax(0, 46%) minmax(0, 54%);
  align-items: center;
  gap: 0;

  min-height: 530px;
}

/* ==========================================
   LEFT ILLUSTRATION
   ========================================== */

.cm-final-cta-visual {
  position: relative;
  width: 100%;
  min-width: 0;

  display: flex;
  align-items: center;
  justify-content: center;
}

.cm-final-cta-visual img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;

  object-fit: contain;
  transform: translateX(-4%);
}

/* ==========================================
   RIGHT CONTENT
   ========================================== */

.cm-final-cta-content {
  position: relative;
  z-index: 2;
  min-width: 0;

  padding: 0 0 0 42px;
}

/* SMALL LABEL */

.cm-final-cta-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;

  padding: 10px 18px;
  margin-bottom: 28px;

  border-radius: 100px;
  background: #dceaff;
  color: #0868d8;

  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1px;
  line-height: 1.4;
}

.cm-final-cta-label i {
  font-size: 19px;
}

/* HEADING */

.cm-final-cta-content h2 {
  margin: 0 0 32px;
  max-width: 850px;

  color: #111c43;
  font-size: clamp(34px, 3.4vw, 62px);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -2px;
}

.cm-final-cta-content h2 span {
  color: #0965ef;
  white-space: nowrap;
}

/* DESCRIPTION */

.cm-final-cta-content p {
  margin: 0 0 38px;
  max-width: 770px;

  color: #465277;
  font-size: clamp(14px, 1.1vw, 19px);
  font-weight: 400;
  line-height: 1.75;
}

/* ==========================================
   CTA BUTTONS
   ========================================== */

.cm-final-cta-buttons {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;

  margin-bottom: 55px;
}

.cm-final-cta-primary,
.cm-final-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  min-height: 58px;
  padding: 0 26px;

  border-radius: 10px;
  text-decoration: none;

  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

/* PRIMARY */

.cm-final-cta-primary {
  background: #0865f4;
  color: #ffffff;
  border: 1px solid #0865f4;
}

.cm-final-cta-primary:hover {
  background: #0755d0;
  border-color: #0755d0;
  color: #ffffff;
  transform: translateY(-2px);
}

/* SECONDARY */

.cm-final-cta-secondary {
  background: transparent;
  color: #111c43;
  border: 1.5px solid #15234d;
}

.cm-final-cta-secondary:hover {
  background: #eff5ff;
  border-color: #0865f4;
  color: #0865f4;
  transform: translateY(-2px);
}

.cm-final-cta-primary i,
.cm-final-cta-secondary i {
  font-size: 15px;
}

/* ==========================================
   BENEFITS ROW
   ========================================== */

.cm-final-cta-benefits {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

.cm-cta-benefit {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  padding: 0 24px;
  min-height: 34px;

  color: #111c43;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.cm-cta-benefit:first-child {
  padding-left: 0;
}

.cm-cta-benefit + .cm-cta-benefit {
  border-left: 1px solid #cbd3e5;
}

.cm-cta-benefit i {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: #34cf76;
  color: #ffffff;

  font-size: 13px;
}

/* ==========================================
   MEDIUM DESKTOP
   ========================================== */

@media (max-width: 1450px) {
  .cm-final-cta-container {
    width: min(1320px, calc(100% - 64px));
    grid-template-columns: 45% 55%;
  }

  .cm-final-cta-content {
    padding-left: 28px;
  }

  .cm-final-cta-content h2 {
    font-size: clamp(34px, 3.4vw, 49px);
  }

  .cm-final-cta-content p {
    font-size: 15px;
  }

  .cm-final-cta-primary,
  .cm-final-cta-secondary {
    min-height: 52px;
    padding: 0 19px;
    font-size: 13px;
  }

  .cm-final-cta-buttons {
    gap: 12px;
    margin-bottom: 40px;
  }

  .cm-cta-benefit {
    gap: 8px;
    padding: 0 13px;
    font-size: 12px;
  }

  .cm-cta-benefit i {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
    font-size: 11px;
  }
}

/* ==========================================
   TABLET
   ========================================== */

@media (max-width: 1050px) {
  .cm-final-cta {
    padding: 70px 0;
  }

  .cm-final-cta-container {
    width: calc(100% - 48px);
    grid-template-columns: 43% 57%;
    min-height: 0;
  }

  .cm-final-cta-content {
    padding-left: 20px;
  }

  .cm-final-cta-content h2 {
    font-size: clamp(30px, 3.7vw, 40px);
    letter-spacing: -1.2px;
    margin-bottom: 20px;
  }

  .cm-final-cta-content p {
    font-size: 14px;
    margin-bottom: 25px;
  }

  .cm-final-cta-label {
    margin-bottom: 20px;
    font-size: 11px;
  }

  .cm-final-cta-buttons {
    margin-bottom: 28px;
  }

  .cm-final-cta-benefits {
    gap: 12px 0;
  }

  .cm-cta-benefit {
    font-size: 11px;
  }
}

/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 700px) {
  .cm-final-cta {
    padding: 55px 0 65px;
  }

  .cm-final-cta-container {
    width: calc(100% - 36px);

    grid-template-columns: 1fr;
    gap: 30px;
  }

  .cm-final-cta-visual {
    order: 1;
    max-width: 500px;
    margin: 0 auto;
  }

  .cm-final-cta-visual img {
    width: 100%;
    max-width: 100%;
    transform: none;
  }

  .cm-final-cta-content {
    order: 2;
    padding: 0;
    text-align: left;
  }

  .cm-final-cta-label {
    font-size: 11px;
    padding: 8px 14px;
    margin-bottom: 20px;
  }

  .cm-final-cta-content h2 {
    font-size: clamp(30px, 8vw, 40px);
    line-height: 1.2;
    letter-spacing: -1.1px;
    margin-bottom: 18px;
  }

  .cm-final-cta-content h2 span {
    white-space: normal;
  }

  .cm-final-cta-content p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 26px;
  }

  .cm-final-cta-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 30px;
  }

  .cm-final-cta-primary,
  .cm-final-cta-secondary {
    width: 100%;
    min-height: 50px;
    font-size: 13px;
  }

  .cm-final-cta-benefits {
    gap: 14px 18px;
  }

  .cm-cta-benefit,
  .cm-cta-benefit:first-child {
    padding: 0;
    border: none;
    font-size: 12px;
  }

  .cm-cta-benefit + .cm-cta-benefit {
    border-left: none;
  }
}

/* ==========================================
   SMALL MOBILE
   ========================================== */

@media (max-width: 390px) {
  .cm-final-cta-content h2 {
    font-size: 29px;
  }

  .cm-cta-benefit {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cm-final-cta a {
    transition: none;
  }
}
