/* ==========================================================================
   04 Services — six service cards
   ========================================================================== */

/* Grid ------------------------------------------------------------------- */
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 640px) {
  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .services__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
}

.services__item { display: flex; }

/* Card ------------------------------------------------------------------- */
.services__card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
}

/* Soft static glow inside the card */
.services__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(124, 92, 255, 0.16) 0%, transparent 60%),
    radial-gradient(90% 70% at 100% 100%, rgba(34, 211, 238, 0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

/* Gradient border ring (mask uses alpha only, so the keyword color is not visible) */
.services__card::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: var(--gradient);
  -webkit-mask: linear-gradient(black, black) content-box, linear-gradient(black, black);
  -webkit-mask-composite: xor;
  mask: linear-gradient(black, black) content-box exclude, linear-gradient(black, black);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.services__card:hover::before,
.services__card:hover::after,
.services__card:focus-within::before,
.services__card:focus-within::after { opacity: 1; }

.services__card:hover { box-shadow: var(--shadow), 0 0 40px rgba(124, 92, 255, 0.18); }

/* Badge ------------------------------------------------------------------ */
.services__badge {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
}

.services__badge--new {
  background: rgba(34, 211, 238, 0.14);
  color: var(--secondary);
}

/* Content ---------------------------------------------------------------- */
.services__icon {
  margin-bottom: var(--space-5);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.services__card:hover .services__icon {
  transform: scale(1.06);
  border-color: rgba(34, 211, 238, 0.4);
}

.services__title {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.services__desc {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-5);
}

.services__includes {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}

.services__include {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--text);
}

.services__check {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: var(--radius-full);
  background: rgba(34, 211, 238, 0.12);
  color: var(--success);
}

.services__check svg { width: 12px; height: 12px; stroke-width: 2.4; }

/* Link ------------------------------------------------------------------- */
.services__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  align-self: flex-start;
  margin-top: auto;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--secondary);
  transition: color 0.25s var(--ease);
}

.services__link:hover { color: var(--text); }

.services__arrow {
  display: inline-grid;
  place-items: center;
  transition: transform 0.25s var(--ease);
}

.services__arrow svg { width: 16px; height: 16px; }

.services__link:hover .services__arrow,
.services__link:focus-visible .services__arrow { transform: translateX(4px); }

/* Custom CTA line -------------------------------------------------------- */
.services__custom {
  margin: var(--space-7) 0 0;
  text-align: center;
  font-size: var(--fs-base);
  color: var(--text-muted);
}

.services__custom-link {
  font-weight: 600;
  color: var(--secondary);
  border-bottom: 1px solid rgba(34, 211, 238, 0.35);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.services__custom-link:hover {
  color: var(--text);
  border-color: var(--text);
}
