.hero-wrapper {
  position: relative;
  min-height: calc(100vh - 122px);
}

.hero-main-container {
  width: 80%;
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    /* pure white */ #f7f8fb 70%,
    /* light pale tint (tweak to taste) */ #cccce6 100% /* your Figma color */
  );
  padding: 20px 40px 60px 40px;
  border-radius: 30px;
  padding-bottom: 120px; /* make room for the overlapping cards */
  overflow: visible;
}

@media (max-width: 768px) {
}

@media (min-width: 1600px) {
  .hero-main-container {
    padding: 40px 40px 100px 40px;
  }
}

@media (max-width: 1024px) {
  .hero-main-container {
    position: absolute;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 0px;
    height: 100%;
  }
}
@media (max-width: 680px) {
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-content h1 {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 0;
  }
  .hero-content button {
    margin-bottom: 30px;
  }
  .hero-content p {
    text-align: center;
  }

  .hero-main-container {
    padding: 10px;
    justify-content: start;
  }
}

@media (max-width: 575px) and (min-height: 700px) {
}

@media (max-width: 480px) {
}

.hero-main-container h1 .text-primary {
  color: #38479c;
  /* inherits everything else from the h1, but bump the weight: */
  font-weight: 700;
}

.hero-sub-header {
  color: #555;
  text-align: right;
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  margin-bottom: 20px;
  margin-top: 15px;
  max-width: 50%;
}

@media (max-width: 575px) {
  .hero-sub-header {
    text-align: center;
    font-size: 14px;
    max-width: 90%;
  }
}

/* -------------------------------------- left hero images -----------------------------------------*/

.hero-left-image1 {
  position: absolute;
  max-height: 400px;
  z-index: 5;
  top: 70px;
  left: 40px;
}

.hero-left-image2 {
  position: absolute;
  max-width: 400px;
  left: 100px;
  top: 380px;
}

.hero-left-image3 {
  position: absolute;
  z-index: 4;
  top: 150px;
  left: 250px;
  max-width: 400px;
}

@media (max-width: 1250px) {
  .hero-left-image1 {
    max-height: 300px;
  }
  .hero-left-image2 {
    max-width: 300px;
    top: 330px;
  }
  .hero-left-image3 {
    max-width: 300px;
    left: 200px;
  }
}

@media (max-width: 1024px) {
  .hero-left-image1 {
    left: 70px;
  }
  .hero-left-image2 {
    left: 130x;
  }
  .hero-left-image3 {
    left: 220px;
  }
}

@media (max-width: 900px) {
  .hero-left-image1 {
    max-height: 250px;
    left: 80px;
  }
  .hero-left-image2 {
    max-width: 250px;
    left: 130px;
    top: 300px;
  }
  .hero-left-image3 {
    max-width: 250px;
    left: 200px;
  }
}

@media (max-width: 800px) {
  .hero-left-image1 {
    max-height: 200px;
    top: 100px;
    left: 50px;
  }
  .hero-left-image2 {
    max-width: 200px;
    left: 100px;
    top: 270px;
  }
  .hero-left-image3 {
    max-width: 200px;
    left: 160px;
  }
}

@media (max-width: 700px) {
  .hero-left-image1 {
    display: none;
  }
  .hero-left-image2 {
    display: none;
  }
  .hero-left-image3 {
    display: none;
  }
}

/* --------------------------------------------------------------------- stats-card --------------------------------------------------------------*/

.stats-card {
  /* position: static;  */
  border: 2px solid rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  position: absolute;
  background-color: transparent;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 18px;
  z-index: 100;
  right: 300px;
  top: 450px;
  max-width: 350px;
  border: 8px solid white;
}

.stats-header {
  text-align: right;
}

.stats-number {
  margin: 0;
  font-size: 48px; /* ~48px */
  font-weight: 700;
  color: var(--primary-blue); /* deep blue */
  line-height: 1;
}

.stats-number .plus {
  font-size: 0.6em;
  vertical-align: super;
}

.stats-label {
  color: #000;
  text-align: right;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.stats-description {
  margin-top: 12px;
  color: #282828;
  text-align: right;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

@media (min-width: 1600px) {
  .stats-card {
    right: 250px;
    max-width: 30%;
  }
}

@media (max-width: 1400px) {
  .stats-card {
    right: 220px;
    max-width: 30%;
  }
}

@media (max-width: 1150px) {
  .stats-card {
    right: 200px;
    max-width: 30%;
  }
}

@media (max-width: 1024px) {
  .stats-card {
    position: static;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .stats-card {
    max-width: 60%;
  }
}

@media (max-width: 575px) {
  .stats-card {
    max-width: 70%;
    padding: 12px;
    margin-bottom: 10%;
  }

  .stats-number {
    margin: 0;
    font-size: 36px;
  }
  .stats-label {
    font-size: 16px;
    font-weight: 600;
  }
  .stats-description {
    font-size: 14px;
  }
}

@media (max-width: 575px) and (min-height: 700px) {
  .stats-card {
    margin-top: 100px;
  }
}

/* ----------------------------------- success-card -----------------------------------------*/

.success-card-container {
  margin-top: 20px; /* mobile base */
}

.success-card {
  position: relative;
  background: #f6fcff;
  border-radius: 24px;
  padding: 24px 16px 16px;
  height: 180px;
  width: 180px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.success-number {
  margin: 8px 0 0;
  font-size: 3rem; /* ~48px */
  font-weight: 700;
  color: #38479c;
  line-height: 1;
}

.percent-sign {
  font-size: 0.6em;
  vertical-align: super;
}

.success-image {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 50%;
  pointer-events: none;
  user-select: none;
}

.success-title {
  color: #000;
  text-align: right;
  font-size: 25.706px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

@media (min-width: 1801px) {
  .success-card-container {
    bottom: 250px;
    /* margin-top remains 80px */
  }
}

@media (min-width: 1601px) {
  .success-card-container {
    margin-top: 80px;
    height: 250px;
    width: 250px;
  }
}

@media (min-width: 1301px) {
  .success-card-container {
    margin-top: 40px;
  }
}

@media (max-width: 1024px) {
  .success-card-container {
    position: absolute;
    bottom: 10%;
    right: 10%;
    z-index: 5;
  }
}

@media (max-width: 575px) {
  .success-card-container {
    position: absolute;
    bottom: 3%;
    right: 3%;
    z-index: 5;
  }
  .success-card {
    height: 140px;
    width: 140px;
  }

  .success-title {
    font-size: 16px;
    font-weight: 600;
  }
  .success-number {
    font-size: 36px;
  }
}

/*--------------------------------------------------animations---------------------------------------------------------*/

@keyframes slideIn-content {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slideIn-image1 {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn-image2 {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn-image3 {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;

    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-left-image1 {
  /* slide in then fade in */
  opacity: 0;
  animation: slideIn-image1 1s ease-in-out 0.5s forwards;
}
.hero-left-image2 {
  opacity: 0;
  will-change: opacity;
  animation: slideIn-image2 1s ease-in-out 1s forwards;
}
.hero-left-image3 {
  opacity: 0;
  will-change: opacity;
  animation: slideIn-image3 1s ease-in-out 0.75s forwards;
}

/* .hero-content {
  will-change: transform;
  animation: slideIn-content 0.8s ease-in-out forwards;
} */

.stats-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out 1.8s forwards;
}

.success-card-container {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out 2.6s forwards;
}

.text-right {
  text-align: right;
}
