/* Glassmorphism treatment for the homepage module cards. */
.modules {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 12% 18%, rgba(65, 211, 203, .14), transparent 28%),
    radial-gradient(circle at 88% 78%, rgba(8, 118, 133, .10), transparent 30%),
    linear-gradient(135deg, rgba(239, 251, 249, .94), rgba(230, 247, 244, .94));
}

.modules::before,
.modules::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
}

.modules::before {
  width: 260px;
  height: 260px;
  top: 16%;
  left: -90px;
  background: rgba(41, 190, 184, .12);
}

.modules::after {
  width: 330px;
  height: 330px;
  right: -120px;
  bottom: -110px;
  background: rgba(7, 102, 119, .08);
}

.modules .feature-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, .68), rgba(255, 255, 255, .34));
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 20px;
  box-shadow: 0 16px 38px rgba(6, 74, 82, .11), inset 0 1px 0 rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
}

.modules .feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, .38), transparent 42%);
  pointer-events: none;
}

.modules .feature-card > * {
  position: relative;
  z-index: 1;
}

.modules .feature-card > span {
  background: rgba(255, 255, 255, .54);
  border: 1px solid rgba(255, 255, 255, .72);
  box-shadow: 0 8px 20px rgba(8, 91, 101, .10);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.modules .feature-card > span svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.modules .feature-card.accent {
  background: linear-gradient(145deg, rgba(189, 242, 236, .66), rgba(255, 255, 255, .36));
}

.modules .feature-card.large {
  background: linear-gradient(145deg, rgba(4, 54, 66, .92), rgba(8, 121, 134, .72));
  border-color: rgba(255, 255, 255, .25);
  box-shadow: 0 22px 48px rgba(3, 55, 64, .22), inset 0 1px 0 rgba(255, 255, 255, .18);
}

.modules .feature-card:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 255, 255, .98);
  box-shadow: 0 24px 52px rgba(5, 82, 91, .18), inset 0 1px 0 rgba(255, 255, 255, .85);
}

@media (prefers-reduced-motion: reduce) {
  .modules .feature-card {
    transition: none;
  }
}
