/* Homepage pricing / service cards — compact, animated */

#services-section {
  padding: clamp(28px, 3.5vw, 48px) 0;
}

#services-section .services-content {
  position: relative;
  z-index: 1;
}

#services-section .services-headline {
  max-width: 1040px;
  margin: 0 auto var(--space-12, 12px);
  text-align: center;
}

#services-section .services-gradient {
  color: inherit;
  background: none;
}

#services-section .services-subtitle {
  max-width: 680px;
  margin: 0 auto clamp(16px, 2vw, 24px);
  text-align: center;
}

#services-section .services-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
  align-items: stretch;
}

/* ── Card shell ── */
#services-section .service-card {
  --sc-pad: clamp(14px, 1.5vw, 18px);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: var(--sc-pad);
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-xl);
  transition:
    transform 0.35s var(--ease-standard),
    box-shadow 0.35s var(--ease-standard),
    border-color 0.35s var(--ease-standard);
}

/* Top accent bar */
#services-section .service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  height: 3px;
  background: linear-gradient(90deg, var(--home-cyan), var(--home-amber));
  opacity: 0.85;
  transition: opacity 0.35s var(--ease-standard);
}

/* Hover shine sweep */
#services-section .service-card__shine {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.07) 50%,
    transparent 62%
  );
  transform: translateX(-130%) skewX(-12deg);
  transition: transform 0.75s var(--ease-standard);
  pointer-events: none;
}

#services-section .service-card:hover {
  transform: translateY(-6px) scale(1.01);
}

#services-section .service-card:hover::before {
  opacity: 1;
}

#services-section .service-card:hover .service-card__shine {
  transform: translateX(130%) skewX(-12deg);
}

/* Staggered reveal per card */
#services-section .service-card.home-reveal:nth-child(1) {
  transition-delay: 0ms;
}

#services-section .service-card.home-reveal:nth-child(2) {
  transition-delay: 90ms;
}

#services-section .service-card.home-reveal:nth-child(3) {
  transition-delay: 180ms;
}

/* ── Featured (live) card ── */
#services-section .service-card--featured {
  border-color: rgba(18, 218, 209, 0.38);
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(18, 218, 209, 0.16), transparent 55%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    rgba(10, 18, 28, 0.88);
  animation: serviceCardFeaturedGlow 4s ease-in-out infinite;
}

@keyframes serviceCardFeaturedGlow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(18, 218, 209, 0.16),
      0 16px 48px rgba(18, 218, 209, 0.12);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(18, 218, 209, 0.38),
      0 22px 56px rgba(18, 218, 209, 0.22);
  }
}

#services-section .service-card__live-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  padding: 4px 9px;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  color: #031315;
  background: linear-gradient(135deg, var(--home-cyan), #6ffff8);
  border: 1px solid rgba(18, 218, 209, 0.5);
  box-shadow: 0 6px 20px rgba(18, 218, 209, 0.28);
  animation: serviceLivePulse 2.2s ease-in-out infinite;
}

@keyframes serviceLivePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 6px 20px rgba(18, 218, 209, 0.28);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 8px 26px rgba(18, 218, 209, 0.42);
  }
}

/* ── Locked cards ── */
#services-section .service-card--locked {
  opacity: 0.88;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(10, 16, 24, 0.78);
}

#services-section .service-card--locked::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
  opacity: 0.5;
}

#services-section .service-card--locked:hover {
  opacity: 0.96;
  transform: translateY(-4px) scale(1.005);
}

/* ── Header row: icon + title + meta ── */
#services-section .service-card__header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  padding-right: 52px;
  position: relative;
  z-index: 2;
}

#services-section .service-card--locked .service-card__header {
  padding-right: 0;
}

#services-section .service-card__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--home-cyan);
  background: rgba(18, 218, 209, 0.1);
  border: 1px solid rgba(18, 218, 209, 0.22);
  transition:
    transform 0.35s var(--ease-standard),
    box-shadow 0.35s var(--ease-standard);
}

#services-section .service-card:hover .service-card__icon--active {
  transform: scale(1.06) rotate(-3deg);
}

#services-section .service-card__icon .ngf-icon {
  width: 18px;
  height: 18px;
}

#services-section .service-card__icon--active {
  color: #031315;
  background: linear-gradient(135deg, var(--home-cyan), rgba(255, 173, 92, 0.7));
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 24px rgba(18, 218, 209, 0.22);
}

#services-section .service-card__icon--locked {
  color: rgba(245, 248, 251, 0.55);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

#services-section .service-card__heading {
  flex: 1;
  min-width: 0;
}

#services-section .service-card__title {
  margin: 0;
  color: var(--home-text);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  font-weight: 780;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

#services-section .service-card__phase,
#services-section .service-card__status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

#services-section .service-card__phase {
  color: var(--home-amber);
  background: rgba(255, 173, 92, 0.1);
  border: 1px solid rgba(255, 173, 92, 0.22);
}

#services-section .service-card__status--soon {
  color: rgba(245, 248, 251, 0.7);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

#services-section .service-card__status--soon .ngf-icon {
  width: 11px;
  height: 11px;
  opacity: 0.75;
}

/* Legacy badges (hidden if still in DOM) */
#services-section .service-card__badge,
#services-section .service-card__available,
#services-section .service-card__coming {
  display: none;
}

/* ── Feature list (compact) ── */
#services-section .service-card__list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  position: relative;
  z-index: 2;
}

#services-section .service-card__item {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 8px;
  align-items: start;
  color: rgba(245, 248, 251, 0.74);
  font-size: 0.8rem;
  font-weight: 540;
  line-height: 1.35;
  opacity: 0;
  transform: translateX(-6px);
  animation: serviceItemIn 0.45s var(--ease-standard) forwards;
}

#services-section .service-card.is-visible .service-card__item,
#services-section .service-card.home-reveal.is-visible .service-card__item {
  animation: serviceItemIn 0.45s var(--ease-standard) forwards;
}

#services-section .service-card__item:nth-child(1) { animation-delay: 0.12s; }
#services-section .service-card__item:nth-child(2) { animation-delay: 0.18s; }
#services-section .service-card__item:nth-child(3) { animation-delay: 0.24s; }
#services-section .service-card__item:nth-child(4) { animation-delay: 0.30s; }
#services-section .service-card__item:nth-child(5) { animation-delay: 0.36s; }

@keyframes serviceItemIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

#services-section .service-card__item::before {
  content: "";
  width: 14px;
  height: 14px;
  margin-top: 1px;
  border-radius: var(--radius-full);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2312DAD1' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 11px 11px no-repeat,
    rgba(18, 218, 209, 0.12);
}

#services-section .service-card--locked .service-card__item::before {
  opacity: 0.45;
  filter: grayscale(1);
}

#services-section .service-card__locked-text {
  color: rgba(245, 248, 251, 0.58);
}

/* ── Footer: price + CTA ── */
#services-section .service-card__footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(205, 235, 255, 0.1);
  position: relative;
  z-index: 2;
}

#services-section .service-card__pricing {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 0;
  padding: 0;
  border: none;
}

#services-section .service-card__price {
  color: var(--home-text);
  font-size: clamp(1.35rem, 1.8vw, 1.65rem);
  font-weight: 820;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

#services-section .service-card__period {
  color: rgba(245, 248, 251, 0.52);
  font-size: 0.75rem;
  font-weight: 600;
}

#services-section .service-card__action {
  width: 100%;
  min-height: 40px;
  font-size: 0.82rem;
}

/* Grid mesh overlay on featured */
#services-section .service-card--featured .service-card__mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
  background:
    linear-gradient(90deg, rgba(18, 218, 209, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(18, 218, 209, 0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 75%);
  pointer-events: none;
}

@media (max-width: 1040px) {
  #services-section .services-plans {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  #services-section {
    padding: 36px 0;
  }

  #services-section .service-card__header {
    padding-right: 48px;
  }

  #services-section .service-card--locked .service-card__header {
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  #services-section .service-card,
  #services-section .service-card--featured,
  #services-section .service-card__live-pill,
  #services-section .service-card__item {
    animation: none !important;
    transition: none !important;
  }

  #services-section .service-card__item {
    opacity: 1;
    transform: none;
  }

  #services-section .service-card:hover {
    transform: none;
  }

  #services-section .service-card:hover .service-card__shine {
    transform: translateX(-130%) skewX(-12deg);
  }
}
