/* ==========================================================
   PLATFORM MODULES – PREMIUM SAAS SHOWCASE
   Scope: Home Page Only
   Design: Enterprise / SaaS / Product-led
========================================================== */

/* ==========================================================
   SECTION BASE
========================================================== */
.platform-modules {
  position: relative;
  background: linear-gradient(180deg, #f7faff 0%, #ffffff 70%);
  padding: 96px 0;
  overflow: hidden;
}

/* soft ambient glow */
.platform-modules::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -15%;
  width: 480px;
  height: 480px;
  background: radial-gradient(
    circle,
    rgba(30,107,227,0.12),
    transparent 70%
  );
  pointer-events: none;
}

/* ==========================================================
   HEADER
========================================================== */
.platform-modules-header {
  max-width: 760px;
  margin: 0 auto 64px;
}

.platform-modules-header .eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mt-brand-primary);
  margin-bottom: 12px;
}

.platform-modules-header h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--mt-text-dark);
  margin-bottom: 14px;
}

.platform-modules-header p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--mt-text-muted);
}

/* ==========================================================
   MODULE GRID
========================================================== */
.platform-modules .row {
  align-items: stretch;
}

/* ==========================================================
   MODULE CARD
========================================================== */
.module-card {
  height: 100%;
  background: #ffffff;
  border-radius: 18px;
  padding: 34px 28px 30px;
  border: 1px solid #e6ebf2;
  box-shadow: 0 18px 40px rgba(0,0,0,0.06);
  position: relative;
  transition: transform .35s ease, box-shadow .35s ease;
}

.module-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(
    90deg,
    var(--mt-brand-primary),
    rgba(30,107,227,0.35)
  );
  border-radius: 18px 18px 0 0;
}

.module-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(0,0,0,0.12);
}

/* ==========================================================
   ICON
========================================================== */
.module-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(30,107,227,0.12);
  color: var(--mt-brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

/* ==========================================================
   CONTENT
========================================================== */
.module-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--mt-text-dark);
}

.module-card p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--mt-text-muted);
  margin-bottom: 18px;
}

/* feature list */
.module-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.module-card ul li {
  font-size: 0.8rem;
  color: #475569;
  padding-left: 18px;
  position: relative;
  margin-bottom: 8px;
}

.module-card ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--mt-brand-primary);
  font-weight: bold;
}

/* ==========================================================
   CARD LINK
========================================================== */
.module-card a {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--mt-brand-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.module-card a:hover {
  text-decoration: underline;
}

/* ==========================================================
   CTA
========================================================== */
.platform-modules-cta {
  margin-top: 64px;
}

.platform-modules-cta .btn {
  padding: 14px 42px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(30,107,227,0.35);
}

/* ==========================================================
   RESPONSIVE
========================================================== */
@media (max-width: 991px) {
  .platform-modules {
    padding: 80px 0;
  }

  .platform-modules-header {
    margin-bottom: 48px;
  }
}

@media (max-width: 575px) {
  .module-card {
    padding: 28px 22px;
  }

  .platform-modules-header h2 {
    font-size: 1.9rem;
  }
}
/* ==========================================================
   PLATFORM MODULES – CTA BUTTON FIX
========================================================== */

.platform-modules-cta .btn {
  background: var(--mt-brand-primary);
  color: #ffffff !important;
  border: none;
}

.platform-modules-cta .btn:hover {
  background: var(--mt-brand-primary-hover);
  color: #ffffff !important;
}

/* Prevent anchor color override */
.platform-modules-cta .btn a {
  color: #ffffff !important;
}
.about-actions .btn-primary {
  color: #ffffff !important;
  opacity: 1;
}

.about-actions .btn-primary:hover {
  color: #ffffff;
}
