/* ========================================
   FEATURED SERVICES — Dark Premium
   Inspired by Cloudflare / Vercel / Linear
   ======================================== */
.featured-services {
  padding: 88px 0 96px;
  background: #0a0f1c;
  position: relative;
  overflow: visible;
}

.featured-services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(56, 110, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.featured-services__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  overflow: visible;
  position: relative;
  z-index: 1;
}

.featured-services__header {
  text-align: center;
  margin-bottom: 56px;
}

.featured-services__header-text {
  max-width: 600px;
  margin: 0 auto;
}

.featured-services__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #60a5fa;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
  padding: 5px 14px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 20px;
}

.featured-services__title {
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 14px 0;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.featured-services__highlight {
  color: #f1f5f9;
  -webkit-text-fill-color: #f1f5f9;
  background: none;
}

.featured-services__subtitle {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
  line-height: 1.65;
}

/* ── Grid ── */
.featured-services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  position: relative;
  overflow: visible;
}

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

@media (min-width: 1024px) {
  .featured-services__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .featured-card:nth-child(n+4) {
    display: none;
  }

  /* Slide 1: cards 4-6 */
  .featured-services__grid[data-slide="1"] .featured-card:nth-child(n+4):nth-child(-n+6) {
    display: flex;
  }

  .featured-services__grid[data-slide="1"] .featured-card:nth-child(-n+3) {
    display: none;
  }

  /* Slide 2: cards 7-8 */
  .featured-services__grid[data-slide="2"] .featured-card:nth-child(n+7) {
    display: flex;
  }

  .featured-services__grid[data-slide="2"] .featured-card:nth-child(-n+6) {
    display: none;
  }
}

/* ── Cards ── */
.featured-card {
  background: linear-gradient(180deg, #111827 0%, #0d1117 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 0;
  position: relative;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.featured-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.35s ease;
  border-radius: 3px 0 0 3px;
}

.featured-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 16px 40px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(56, 110, 255, 0.04);
  transform: translateY(-3px);
}

.featured-card:hover::before {
  background: #3b82f6;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}

/* Primary — blue accent */
.featured-card--primary::before {
  background: #3b82f6;
}

.featured-card--primary:hover {
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.1),
    0 16px 40px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(59, 130, 246, 0.06);
}

.featured-card--primary:hover::before {
  background: #60a5fa;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.4);
}

/* Secondary — emerald accent */
.featured-card--secondary::before {
  background: #10b981;
}

.featured-card--secondary:hover {
  box-shadow:
    0 0 0 1px rgba(16, 185, 129, 0.1),
    0 16px 40px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(16, 185, 129, 0.06);
}

.featured-card--secondary:hover::before {
  background: #34d399;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.4);
}

/* ── Card Header ── */
.featured-card__header {
  padding: 24px 24px 0;
  position: relative;
}

/* ── Badge ── */
.featured-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  width: fit-content;
}

.featured-card__badge svg {
  width: 10px;
  height: 10px;
}

.featured-card__badge--new {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.2);
}

/* ── Icon — hidden ── */
.featured-card__icon {
  display: none;
}

/* ── Title ── */
.featured-card__title {
  font-size: 1.08rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.35;
  min-height: 2.92em;
  display: flex;
  align-items: flex-end;
}

/* ── Description ── */
.featured-card__description {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.65;
  margin: 0;
  padding: 14px 24px 8px;
  min-height: 4.95em;
}

/* ── Specs list ── */
.featured-card__features {
  list-style: none;
  padding: 8px 24px 8px;
  margin: 0;
}

.featured-card__features li {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 500;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease;
}

.featured-card__features li:last-child {
  border-bottom: none;
}

.featured-card:hover .featured-card__features li {
  border-color: rgba(255, 255, 255, 0.06);
}

.featured-card__features svg {
  width: 13px;
  height: 13px;
  color: #3b82f6;
  flex-shrink: 0;
  margin-right: 10px;
}

.featured-card--secondary .featured-card__features svg {
  color: #10b981;
}

/* Spec label / value */
.featured-card__features .spec-label {
  color: #475569;
  font-weight: 500;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 52px;
  flex-shrink: 0;
}

.featured-card__features .spec-value {
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.8rem;
  margin-left: auto;
  text-align: right;
}

/* ── CTA area ── */
.featured-card__cta-wrap {
  padding: 12px 24px 24px;
  margin-top: auto;
}

.featured-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
  width: 100%;
  text-align: center;
}

.featured-card__cta:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.featured-card__cta svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
  opacity: 0.7;
}

.featured-card__cta:hover svg {
  transform: translateX(3px);
  opacity: 1;
}

/* Primary CTA */
.featured-card--primary .featured-card__cta {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.2);
  color: #93bbfd;
}

.featured-card--primary .featured-card__cta:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.35);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}

/* Secondary CTA */
.featured-card--secondary .featured-card__cta {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}

.featured-card--secondary .featured-card__cta:hover {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.3);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
}

/* ── Navigation Arrows ── */
.featured-services__navigation {
  display: none;
}

@media (min-width: 1024px) {
  .featured-services__container {
    position: relative;
  }

  .featured-services__navigation {
    display: block;
  }
}

.featured-services__nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.featured-services__nav-btn--prev {
  left: -22px;
}

.featured-services__nav-btn--next {
  right: -22px;
}

.featured-services__nav-btn:hover {
  border-color: rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.06);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.08);
}

.featured-services__nav-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.featured-services__nav-btn:disabled:hover {
  border-color: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: none;
}

/* ── Dots ── */
.featured-services__dots {
  display: none;
}

@media (min-width: 1024px) {
  .featured-services__dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 36px;
  }
}

.featured-services__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.featured-services__dot:hover {
  border-color: #3b82f6;
}

.featured-services__dot--active {
  background: #3b82f6;
  border-color: #3b82f6;
  width: 20px;
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

/* ── Responsive ── */
@media (max-width: 767px) {
  .featured-services {
    padding: 60px 0 68px;
  }

  .featured-services__container {
    padding: 0 16px;
  }

  .featured-services__header {
    margin-bottom: 36px;
  }

  .featured-services__title {
    font-size: 1.45rem;
  }

  .featured-card {
    border-radius: 12px;
  }

  .featured-card__header {
    padding: 20px 20px 0;
  }

  .featured-card__description {
    padding: 12px 20px 6px;
    font-size: 0.78rem;
  }

  .featured-card__features {
    padding: 6px 20px 6px;
  }

  .featured-card__features li {
    padding: 8px 0;
    font-size: 0.76rem;
  }

  .featured-card__cta-wrap {
    padding: 10px 20px 20px;
  }

  .featured-card__cta {
    font-size: 0.78rem;
    padding: 9px 20px;
  }
}
