/* Homepage “why this platform” — Crafto bento on AOU navy/gold */

.cms-features--home {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3.4rem, 6.5vw, 5.4rem);
  background:
    radial-gradient(circle at 92% 8%, rgba(197, 165, 114, 0.18), transparent 34%),
    radial-gradient(circle at 6% 92%, rgba(0, 45, 88, 0.08), transparent 40%),
    #f5f7fa;
}

.cms-features--home::before {
  content: "";
  position: absolute;
  inset-inline-end: -8%;
  top: -18%;
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 165, 114, 0.16) 0%, transparent 72%);
  pointer-events: none;
}

.cms-features--home .cms-features__intro {
  max-width: 42rem;
  margin-bottom: clamp(1.9rem, 3.4vw, 2.75rem);
}

.cms-features--home .cms-features__eyebrow {
  display: inline-flex;
  margin: 0 0 0.7rem;
  padding: 0.28rem 0.9rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--primary, #002d58) 8%, #fff);
  color: var(--primary, #002d58);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.cms-features--home .cms-features__title {
  color: var(--primary, #002d58);
  font-size: clamp(1.6rem, 2.8vw, 2.15rem);
}

.cms-features--home .cms-features__title::after {
  width: 3.6rem;
  background: linear-gradient(90deg, var(--atelier-gold, #c5a572), var(--primary, #002d58));
}

.cms-features--home .cms-features__lead {
  color: #4b5568;
  font-size: 1.02rem;
}

.cms-features--home .cms-features__grid[data-count="5"] {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(11.5rem, auto) minmax(11.5rem, auto);
  gap: 1.05rem;
}

.cms-features--home .cms-features__card:first-child {
  grid-row: 1 / span 2;
}

.cms-features--home .cms-features__card {
  position: relative;
  overflow: hidden;
  gap: 1rem;
  padding: clamp(1.25rem, 2vw, 1.55rem);
  border: 1px solid rgba(0, 45, 88, 0.08);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.cms-features--home .cms-features__card::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--atelier-gold, #c5a572), var(--primary, #002d58));
  opacity: 0.55;
}

.cms-features--home .cms-features__card:hover {
  transform: translateY(-7px);
  border-color: color-mix(in oklab, var(--atelier-gold, #c5a572) 45%, #fff);
  box-shadow: 0 22px 46px rgba(0, 45, 88, 0.12);
}

.cms-features--home .cms-features__copy {
  display: grid;
  gap: 0.45rem;
  margin-top: auto;
}

.cms-features--home .cms-features__index {
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--atelier-gold, #c5a572);
}

.cms-features--home .cms-features__icon {
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 16px;
  background: color-mix(in oklab, var(--primary, #002d58) 9%, #fff);
  color: var(--primary, #002d58);
  font-size: 1.18rem;
  box-shadow: inset 0 0 0 1px rgba(0, 45, 88, 0.06);
}

.cms-features--home .cms-features__card-title {
  color: var(--primary, #002d58);
  font-size: 1.08rem;
  font-weight: 800;
}

.cms-features--home .cms-features__card-body {
  color: #526070;
  font-size: 0.92rem;
  line-height: 1.75;
}

.cms-features--home .cms-features__card--featured {
  justify-content: space-between;
  min-height: 100%;
  padding: clamp(1.55rem, 2.4vw, 2.1rem);
  border: 0;
  background:
    radial-gradient(circle at 88% 12%, rgba(197, 165, 114, 0.28), transparent 38%),
    linear-gradient(160deg, #002d58 0%, #013a6e 52%, #021c36 100%);
  color: #fff;
  box-shadow: 0 24px 52px rgba(0, 45, 88, 0.3);
}

.cms-features--home .cms-features__card--featured::before {
  width: 4px;
  background: var(--atelier-gold, #c5a572);
  opacity: 1;
}

.cms-features--home .cms-features__glow {
  position: absolute;
  inset-inline-end: -18%;
  bottom: -22%;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 165, 114, 0.28) 0%, transparent 70%);
  pointer-events: none;
}

.cms-features--home .cms-features__card--featured .cms-features__index {
  color: var(--atelier-gold, #c5a572);
  font-size: 1rem;
}

.cms-features--home .cms-features__card--featured .cms-features__icon {
  width: 4.1rem;
  height: 4.1rem;
  border-radius: 18px;
  background: rgba(197, 165, 114, 0.18);
  color: #f3e4c8;
  font-size: 1.45rem;
  box-shadow: inset 0 0 0 1px rgba(197, 165, 114, 0.28);
}

.cms-features--home .cms-features__card--featured .cms-features__card-title {
  color: #fff;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

.cms-features--home .cms-features__card--featured .cms-features__card-body {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
  max-width: 22rem;
}

.cms-features--home .cms-features__card--featured:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 58px rgba(0, 45, 88, 0.38);
}

@media (max-width: 991.98px) {
  .cms-features--home .cms-features__grid[data-count="5"] {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }

  .cms-features--home .cms-features__card:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 16rem;
  }
}

@media (max-width: 575.98px) {
  .cms-features--home .cms-features__grid[data-count="5"] {
    grid-template-columns: 1fr;
  }

  .cms-features--home .cms-features__card:first-child {
    grid-column: auto;
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cms-features--home .cms-features__card,
  .cms-features--home .cms-features__card--featured {
    transition: none;
  }

  .cms-features--home .cms-features__card:hover,
  .cms-features--home .cms-features__card--featured:hover {
    transform: none;
  }
}
