/**
 * Homepage – Why Choose / Features section (premium redesign)
 */

.home-features {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, #f8faff 0%, #f4f8ff 45%, #eef4fc 100%);
}

.home-features__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.home-features__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}

.home-features__glow--blue {
  width: min(500px, 68vw);
  height: min(500px, 68vw);
  top: -16%;
  right: -10%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 68%);
}

.home-features__glow--gold {
  width: min(360px, 50vw);
  height: min(360px, 50vw);
  bottom: -14%;
  left: -8%;
  background: radial-gradient(circle, rgba(255, 179, 2, 0.16) 0%, transparent 72%);
}

.home-features__container {
  position: relative;
  z-index: 1;
}

/* Heading */
.home-features__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(28px, 4vw, 40px);
}

.home-features__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--iptv-blue, #0b2b6f);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(11, 43, 111, 0.1);
  box-shadow: 0 4px 14px rgba(11, 43, 111, 0.06);
}

.home-features__head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 3.2vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--iptv-text, #1a1a2e);
}

.home-features__subtitle {
  margin: 0 auto;
  max-width: 680px;
  font-size: clamp(1rem, 1.7vw, 1.0625rem);
  line-height: 1.72;
  color: var(--iptv-muted, #5c6370);
}

.home-features__trust-chips {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.home-features__trust-chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--iptv-blue, #0b2b6f);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(11, 43, 111, 0.08);
}

.home-features__trust-chips li .fa-check {
  font-size: 10px;
  color: var(--iptv-primary, #ffb302);
}

/* Grid */
.home-features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
  align-items: stretch;
}

/* Cards */
.home-feature-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.8vw, 32px) clamp(22px, 2.5vw, 28px);
  border-radius: 22px;
  border: 1px solid rgba(11, 43, 111, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 4px 24px rgba(11, 43, 111, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.45) 0%, rgba(255, 179, 2, 0.35) 55%, transparent 100%);
  opacity: 0.7;
}

.home-feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.22);
  box-shadow:
    0 16px 40px rgba(11, 43, 111, 0.1),
    0 0 0 1px rgba(255, 179, 2, 0.12);
}

.home-feature-card--featured {
  border-color: rgba(255, 179, 2, 0.42);
  box-shadow:
    0 8px 32px rgba(255, 179, 2, 0.12),
    0 4px 24px rgba(11, 43, 111, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.home-feature-card--featured::before {
  background: linear-gradient(90deg, var(--iptv-primary, #ffb302) 0%, rgba(255, 179, 2, 0.45) 60%, transparent 100%);
  opacity: 1;
}

.home-feature-card--featured:hover {
  border-color: rgba(255, 179, 2, 0.55);
  box-shadow:
    0 20px 48px rgba(255, 179, 2, 0.16),
    0 0 0 1px rgba(255, 179, 2, 0.2);
}

.home-feature-card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--iptv-navy, #071a42);
  background: linear-gradient(135deg, #ffd055 0%, var(--iptv-primary, #ffb302) 100%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 2px 10px rgba(255, 179, 2, 0.28);
}

.home-feature-card__icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  margin-bottom: 20px;
  font-size: 26px;
  color: var(--iptv-blue, #0b2b6f);
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.16) 0%, rgba(255, 179, 2, 0.18) 100%);
  border: 1px solid rgba(59, 130, 246, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.home-feature-card:hover .home-feature-card__icon {
  transform: scale(1.04);
  background: linear-gradient(145deg, rgba(255, 179, 2, 0.22) 0%, rgba(59, 130, 246, 0.14) 100%);
  box-shadow: 0 6px 18px rgba(255, 179, 2, 0.18);
}

.home-feature-card--featured .home-feature-card__icon {
  color: var(--iptv-navy, #071a42);
  background: linear-gradient(145deg, rgba(255, 179, 2, 0.28) 0%, rgba(255, 208, 85, 0.16) 100%);
  border-color: rgba(255, 179, 2, 0.35);
}

.home-feature-card h3 {
  font-size: clamp(1.05rem, 1.6vw, 1.125rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--iptv-navy, #071a42);
  margin: 0 0 12px;
  padding-right: 72px;
}

.home-feature-card--featured h3 {
  padding-right: 96px;
}

.home-feature-card p {
  font-size: 14.5px;
  line-height: 1.68;
  color: var(--iptv-muted, #5c6370);
  margin: 0 0 16px;
  flex: 1;
}

.home-feature-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: auto 0 0;
}

.home-feature-card__chips li {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--iptv-blue, #0b2b6f);
  background: rgba(11, 43, 111, 0.05);
  border: 1px solid rgba(11, 43, 111, 0.08);
}

.home-feature-card__chips li + li::before {
  content: none;
}

/* Bottom trust row */
.home-features__indicators {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  margin: clamp(28px, 4vw, 36px) 0 0;
  padding: 0;
  list-style: none;
}

.home-features__indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--iptv-blue, #0b2b6f);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(11, 43, 111, 0.08);
  box-shadow: 0 4px 14px rgba(11, 43, 111, 0.04);
}

.home-features__indicator .fa-check {
  font-size: 10px;
  color: var(--iptv-primary, #ffb302);
}

.home-features__indicator-stars {
  color: var(--iptv-primary, #ffb302);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1;
}

/* Responsive */
@media (max-width: 991.98px) {
  .home-features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767.98px) {
  .home-features__grid {
    grid-template-columns: 1fr;
  }

  .home-feature-card h3,
  .home-feature-card--featured h3 {
    padding-right: 0;
  }

  .home-feature-card__badge {
    position: static;
    align-self: flex-start;
    margin-bottom: 12px;
    order: -1;
  }

  .home-feature-card--featured {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 575.98px) {
  .home-features__indicators {
    gap: 6px 8px;
  }

  .home-features__indicator {
    font-size: 11px;
    padding: 6px 11px;
  }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  .home-features {
    background: linear-gradient(180deg, #0c1528 0%, #0a1222 50%, #08101e 100%);
  }

  .home-features__glow--blue {
    opacity: 0.35;
  }

  .home-features__glow--gold {
    opacity: 0.3;
  }

  .home-features__badge {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(147, 197, 253, 0.95);
  }

  .home-features__head h2 {
    color: #f1f5f9;
  }

  .home-features__subtitle {
    color: rgba(255, 255, 255, 0.68);
  }

  .home-features__trust-chips li {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(186, 215, 255, 0.92);
  }

  .home-feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  .home-feature-card:hover {
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 179, 2, 0.15);
  }

  .home-feature-card--featured {
    border-color: rgba(255, 179, 2, 0.38);
    box-shadow: 0 12px 36px rgba(255, 179, 2, 0.1), 0 8px 28px rgba(0, 0, 0, 0.24);
  }

  .home-feature-card--featured:hover {
    border-color: rgba(255, 179, 2, 0.5);
    box-shadow: 0 20px 48px rgba(255, 179, 2, 0.14), 0 0 0 1px rgba(255, 179, 2, 0.22);
  }

  .home-feature-card__icon {
    color: rgba(186, 215, 255, 0.98);
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.22) 0%, rgba(255, 179, 2, 0.14) 100%);
    border-color: rgba(255, 255, 255, 0.12);
  }

  .home-feature-card h3 {
    color: #f8fafc;
  }

  .home-feature-card p {
    color: rgba(255, 255, 255, 0.65);
  }

  .home-feature-card__chips li {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(186, 215, 255, 0.92);
  }

  .home-features__indicator {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(186, 215, 255, 0.92);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-feature-card,
  .home-feature-card__icon {
    transition: none;
  }

  .home-feature-card:hover,
  .home-feature-card:hover .home-feature-card__icon {
    transform: none;
  }
}
