.hero-section {
  text-align: center;
  margin-top: calc(-2rem - 85px);
  padding-top: calc(4rem + 85px);
  padding-bottom: 8rem;
  padding-left: 1rem;
  padding-right: 1rem;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  min-height: 500px;
  gap: 40px;
  position: relative;
}

.hero-left {
  background: url("../images/light-grey-dots-background.avif") repeat,
    linear-gradient(110deg, #fff 60%, #2c95a0 250%);
  background-size: 300px, cover;
  background-blend-mode: lighten;
  text-align: left;
  color: #111;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  border-radius: 28px;
}

.hero-left h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-left p {
  font-size: 1.1rem;
  max-width: 420px;
}

.hero-right {
  background: url("../images/light-grey-dots-background.avif") repeat,
    linear-gradient(to bottom right, #2c95a0, #2fd3d5);
  background-size: 300px, cover;
  background-blend-mode: multiply;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 28px;
  position: relative;
  min-height: 40vh;
}

.hero-section-screen-img-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 600px;
  overflow: hidden;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-section-screen-img {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: auto;
  padding: 1rem;
  object-fit: contain;
}

.hero-float {
  position: absolute;
  left: -120px; /* -(200/2 + 20) */
  bottom: -60px;
  z-index: 10;
}

.hero-float button {
  cursor: pointer;
  transition: all 0.2s;
  width: 200px;
  height: 150px;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  border: 1px solid transparent;
  background: #f3f3f3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.hero-float button svg {
  width: 34px;
  margin-top: 10px;
}

.hero-float button span {
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
}

.hero-float button span,
.hero-float button svg {
  animation: floatIdle 2.8s ease-in-out infinite;
}

.hero-float button:hover span {
  color: #1e7c7d;
}

.hero-float button svg {
  animation-delay: 0.25s;
}

.hero-float button svg circle,
.hero-float button svg g path {
  transition: all 0.35s ease;
}

.hero-float button:hover svg circle {
  stroke: #1e7c7d;
}
.hero-float button:hover svg g path {
  fill: #1e7c7d;
}

.hero-float-corner1,
.hero-float-corner2,
.hero-float-corner3,
.hero-float-corner4 {
  width: 30px;
  height: 30px;
  content: "";
  position: absolute;
}

.hero-float-corner1 {
  background: transparent;
  top: -30px;
  right: 50px;
  border-bottom-left-radius: 28px;
  box-shadow: -0.475rem 0.475rem 0 0.4rem #f3f3f3;
}

.hero-float-corner2 {
  background: transparent;
  top: -30px;
  left: 50px;
  border-bottom-right-radius: 28px;
  box-shadow: 0.475rem 0.475rem 0 0.4rem #f3f3f3;
}

.hero-float-corner3 {
  background: transparent;
  top: 60px;
  right: -30px;
  border-bottom-left-radius: 28px;
  box-shadow: -0.475rem 0.475rem 0 0.4rem #f3f3f3;
}

.hero-float-corner4 {
  background: transparent;
  top: 60px;
  left: -30px;
  border-bottom-right-radius: 28px;
  box-shadow: 0.475rem 0.475rem 0 0.4rem #f3f3f3;
}

@media (max-width: 900px) {
  .hero-section {
    padding-top: calc(2rem + 85px);
  }

  .hero-grid {
    width: 90%;
    gap: 20px;
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .hero-left {
    background: url("../images/light-grey-dots-background.avif") repeat,
      linear-gradient(180deg, #fff 60%, #2c95a0 250%);
    background-size: 300px, cover;
    width: 100%;
    padding: 2.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-left h1 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
  }

  .hero-left p {
    font-size: 1rem;
  }

  .download-buttons {
    flex-direction: row !important;
    flex-wrap: wrap;
  }

  .hero-right {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap-reverse;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    overflow: hidden;
  }

  .hero-section-screen-img-wrapper {
    width: auto;
    max-height: 380px;
    justify-content: left;
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-section-screen-img {
    max-width: 300px;
  }

  .hero-float {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    z-index: 1;
    flex-shrink: 0;
    margin: 20px;
  }

  .hero-float button {
    border-radius: 28px;
  }

  .hero-float-corner1,
  .hero-float-corner2,
  .hero-float-corner3,
  .hero-float-corner4 {
    display: none;
  }
}

@media (max-width: 750px) {
  .hero-section-screen-img-wrapper {
    position: absolute;
    bottom: -50px;
    scale: 2;
  }
}

@keyframes floatIdle {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}