.hero-static {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #EAEBEA 11.58%, #90e8d5 99.94%);
  padding-bottom: 0;
  min-height: 750px;
  width: 100%;
  margin: 0 auto 30px;
  position: relative;
  overflow: hidden;
}

.hero-static-text h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 40px;
  font-weight: 600;
  color: #1C1C1E;
  z-index: 1;
}

.hero-static-text h1,
.hero-static-text p,
.hero-button,
.hero-flow {
  opacity: 0;
  animation: fadeSlideIn 1s ease-out forwards;
}

.hero-static-text h1 {
  animation-delay: 0.2s;
}

.hero-static-text p {
  animation-delay: 0.3s;
}

.hero-button {
  animation-delay: 0.4s;
}

.hero-flow {
  animation-delay: 0.5s;
}

.hero-button:active {
    transform: scale(1);
}


.hero-static-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  width: 100%;
}

.hero-static-text {
  text-align: center;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 60px;
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(28px, 4.2vw, 48px);
  font-weight: 800;
  color: #1C1C1E;
  line-height: 1.15;
}

.hero-button {
  padding: 12px 17px;
  background: #1c1c1e;
  color: #f5f5f7;
  border-radius: 30px;
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease;
  margin: 10px auto 0;
}

.hero-button:hover {
  background: #6ec7ae;
  color: #1C1C1E;
  box-shadow: 0px 0px 10px rgba(110, 199, 174, 0.3);
  border-radius: 21px;
  transform: scale(1.03);
}

.hero-button:active {
  transform: scale(1);
}

.hero-flow {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* === Hero flow: HTML cards with overlaid images (arrows/backgrounds) === */
.hero-flow {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Row of cards */
.hero-flow .flow-row { /* optional wrapper if you add one */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* Individual card as HTML element */
.flow-card {
  position: relative;
  width: 220px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  border-radius: 50px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.60) 0%, rgba(255, 255, 255, 0.22) 60.1%);
  box-shadow: 0 2px 10.1px 0 rgba(110, 199, 174, 0.30), 0 0 3px 2px #FFF inset;
  backdrop-filter: blur(2px);
  transition: all 0.3s ease;
  will-change: transform;
  overflow: hidden;
}

.flow-card:hover{
  cursor: normal;
  box-shadow: 0 2px 10.1px 0 rgba(110, 199, 174, 0.30), -1px -1px 4px 0px #FFF inset;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.60) 0%, rgba(255, 255, 255, 0.30) 60.1%);
}

/* Image that sits on top of the card (acts like a foreground visual) */
.flow-card-img {
  display: block;           /* remove baseline gap */
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 40px;
  pointer-events: none;
  box-shadow: 0 0 18.4px -2px #E8F4F2 inset;
  user-select: none;           /* Standard */
  -webkit-user-select: none;   /* Safari */
  -moz-user-select: none;      /* Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  cursor: default;
}

/* Hide entering and leaving images by default */
.flow-card-img.entering,
.flow-card-img.leaving {
  display: none;
}

.flow-card-img-wrapper {
  position: relative;
  display: grid;            /* center child content */
  place-items: center;
  width: 195px;             /* match media size */
  height: 195px;
  margin: 0 auto;           /* center inside the card */
  border-radius: 40px; 
  overflow: hidden;     /* unify radius for wrapper */
}

/* Stack images on top of each other inside the wrapper */
.flow-card-img-wrapper .flow-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.flow-card-img-overlay {
  position: absolute;
  inset: 0;                  /* perfectly cover the image */
  border-radius: inherit;    /* match wrapper radius */
  pointer-events: none;
  border-radius: 40px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.11) 39.9%, rgba(255, 255, 255, 0.30) 100%);
  box-shadow: 1px 1px 20px 1px rgba(84, 155, 135, 0.67) inset;
  z-index: 3;
}


@media (max-width: 1430px) {
  .hero-static{
    padding: 60px;
    margin-bottom: 15px;
  }
  .hero-static-inner{
    flex-direction: column;
    align-items: center;
    padding-bottom: 0px;
  }
  .hero-static-text{
    width: auto;
    align-items: center;
  }
  section.hero-static .hero-static-text h1 {
    font-size: 36px;
    text-align: center;
  }
  section.hero-static .hero-static-text p {
    font-size: 20px;
    text-align: center;
  }
  section.hero-static .hero-button {
    font-size: 18px;
  }
}

@media (max-width: 1100px){
  .flow-row{
    max-width: 470px;
  }
}

@media (max-width: 600px){
  .flow-card:nth-child(2),
  .flow-card:nth-child(3),
  .flow-card:nth-child(4) {
  display: none; /* adjust px for desired drop */
  }
  .hero-static{
    min-height: 500px;
  }
  .flow-card{
    width: 230px;
  }
  .flow-card-img {
    transition: opacity 0.6s ease-in-out, filter 0.6s ease-in-out;
    filter: blur(0px);
    width: 210px;
  }
  .flow-card-img-wrapper{
    width: 210px;
    height: 210px;
  }

  /* Show entering and leaving images */
  .flow-card-img.entering,
  .flow-card-img.leaving {
    display: block;
  }

  /* Crossfade/blur states for stacked images */
  .flow-card-img.entering { opacity: 0; filter: blur(6px); z-index: 2; }
  .flow-card-img.entering.active { opacity: 1; filter: blur(0); }

  .flow-card-img.leaving { opacity: 1; filter: blur(0); z-index: 1; }
  .flow-card-img.leaving.active { opacity: 0; filter: blur(6px); }
}

@media (max-width: 940px) {
  section.hero-static .hero-static-text h1 {
    font-size: 30px;
  }
  section.hero-static .hero-static-text p {
    font-size: 18px;
  }
}

@media (max-width: 380px) {
  .hero-static{
    padding-left: 30px;
    padding-right: 30px;
  }
}

@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
  }
}

@keyframes floatSoftUp {
  0%, 100% { transform: translateY(3px); }
  50%      { transform: translateY(-3px); }
}

@keyframes floatSoftDown {
  0%, 100% { transform: translateY(-3px); }
  50%      { transform: translateY(3px); }
}

.flow-card:nth-child(1),
.flow-card:nth-child(3) {
  animation: floatSoftUp 6s ease-in-out infinite;
}

.flow-card:nth-child(2),
.flow-card:nth-child(4) {
  animation: floatSoftDown 6s ease-in-out infinite;
}