.module-grid {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 80px 110px;
  background: #11131c;
}

.module-grid-video,
.module-grid-video-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.module-grid-video {
  z-index: -2;
  object-fit: cover;
  object-position: center;
}

.module-grid-video-shade {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 12, 20, 0.4), rgba(10, 12, 20, 0.62)),
    radial-gradient(circle at 50% 35%, rgba(108, 85, 245, 0.08), rgba(8, 10, 17, 0.44));
  backdrop-filter: saturate(0.9);
}

.module-grid article {
  position: relative;
  min-height: 232px;
  overflow: hidden;
  color: #fff;
  background: rgba(13, 16, 27, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 70px rgba(2, 4, 12, 0.22);
  backdrop-filter: blur(14px) saturate(1.18);
  -webkit-backdrop-filter: blur(14px) saturate(1.18);
  transition: transform 240ms ease, background 240ms ease, border-color 240ms ease;
}

.module-grid article::after {
  content: "";
  position: absolute;
  inset: auto 28px 0;
  height: 2px;
  background: linear-gradient(90deg, #8c79ff, #4fe2ee);
  opacity: 0;
  transition: opacity 240ms ease;
}

.module-grid article:hover {
  transform: translateY(-5px);
  background: rgba(16, 19, 33, 0.82);
  border-color: rgba(255, 255, 255, 0.38);
}

.module-grid article:hover::after { opacity: 1; }
.module-grid article span { color: #aa9cff; }
.module-grid article p { color: rgba(244, 246, 255, 0.78); }

@media (max-width: 900px) {
  .module-grid { padding-block: 56px 72px; }
  .module-grid article { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .module-grid-video { display: none; }
  .module-grid { background: linear-gradient(135deg, #171b2c, #29204e); }
  .module-grid article { transition: none; }
}
