/* Unified services and platform pages — all accents inherit the active theme. */
.wfx-services-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid var(--wfx-border);
  border-radius: 28px;
  background:
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--wfx-p) 10%, transparent),
      color-mix(in srgb, var(--wfx-card) 96%, transparent) 52%,
      color-mix(in srgb, var(--wfx-p) 5%, transparent)
    );
}

.wfx-services-hero::after {
  position: absolute;
  inset: auto -100px -150px auto;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  background: var(--wfx-p);
  content: "";
  filter: blur(85px);
  opacity: 0.14;
  pointer-events: none;
}

.wfx-services-hero > * {
  position: relative;
  z-index: 1;
}

.wfx-services-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--wfx-p);
  font-size: 12px;
  font-weight: 900;
}

.wfx-services-title {
  max-width: 780px;
  margin: 14px 0 10px;
  color: var(--wfx-txt);
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.25;
}

.wfx-services-title strong {
  color: var(--wfx-p);
}

.wfx-services-description {
  max-width: 700px;
  margin: 0;
  color: var(--wfx-muted);
  font-size: 15px;
  line-height: 2;
}

.wfx-services-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.wfx-services-grid,
.wfx-platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 14px;
}

.wfx-service-card,
.wfx-platform-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--wfx-border);
  border-radius: 20px;
  color: inherit;
  background: var(--wfx-card);
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.wfx-service-card:hover,
.wfx-platform-card:hover {
  border-color: color-mix(in srgb, var(--wfx-p) 45%, transparent);
  background: color-mix(in srgb, var(--wfx-card) 92%, var(--wfx-p));
  transform: translateY(-3px);
}

.wfx-service-icon,
.wfx-platform-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--wfx-p) 28%, transparent);
  border-radius: 16px;
  color: var(--wfx-p);
  background: color-mix(in srgb, var(--wfx-p) 11%, transparent);
  font-size: 22px;
}

.wfx-service-card h2,
.wfx-platform-card h2 {
  margin: 0;
  color: var(--wfx-txt);
  font-size: 18px;
}

.wfx-service-card p,
.wfx-platform-card p {
  flex: 1;
  margin: 0;
  color: var(--wfx-muted);
  font-size: 13px;
  line-height: 1.8;
}

.wfx-service-card .wfx-card-link,
.wfx-platform-card .wfx-card-link {
  color: var(--wfx-p);
  font-size: 12px;
  font-weight: 900;
}

.wfx-platform-card.is-current {
  border-color: color-mix(in srgb, var(--wfx-p) 50%, transparent);
  background: color-mix(in srgb, var(--wfx-p) 8%, var(--wfx-card));
}

.wfx-section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 30px 0 14px;
  color: var(--wfx-txt);
  font-size: 21px;
}

.wfx-section-heading i {
  color: var(--wfx-p);
}

.wfx-empty-state {
  padding: 22px;
  border: 1px dashed var(--wfx-border);
  border-radius: 16px;
  color: var(--wfx-muted);
  background: color-mix(in srgb, var(--wfx-card) 96%, var(--wfx-p));
  text-align: center;
}

.wfx-app-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 14px;
}

.wfx-app-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--wfx-border);
  border-radius: 18px;
  background: var(--wfx-card);
}

.wfx-app-item .wfx-app-icon {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  color: var(--wfx-p);
  background: color-mix(in srgb, var(--wfx-p) 10%, transparent);
  font-size: 24px;
}

.wfx-app-item h2 {
  margin: 0;
  color: var(--wfx-txt);
  font-size: 15px;
}

.wfx-app-item p {
  margin: 4px 0 0;
  color: var(--wfx-muted);
  font-size: 12px;
  line-height: 1.65;
}

@media (max-width: 620px) {
  .wfx-services-hero {
    padding: 26px 20px;
    border-radius: 22px;
  }

  .wfx-services-actions .wfx-btn {
    flex: 1 1 170px;
  }
}
