/* Key Feature Section — Modern Glassmorphism & High Aesthetic UI */
#features.kf-section,
.kf-section {
  position: relative;
  overflow: hidden;
  padding: 48px 0 64px;
  background: linear-gradient(180deg, #F9FAFB 0%, #F3F4F6 100%);
}

.kf-section-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.kf-section-bg::before,
.kf-section-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.kf-section-bg::before {
  width: 500px;
  height: 500px;
  top: -120px;
  left: -100px;
  background: radial-gradient(circle, rgba(109, 40, 217, 0.25) 0%, rgba(79, 70, 229, 0.05) 70%);
}

.kf-section-bg::after {
  width: 450px;
  height: 450px;
  bottom: -100px;
  right: -80px;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.2) 0%, rgba(244, 63, 94, 0.05) 70%);
}

.kf-deco {
  position: absolute;
  pointer-events: none;
}

.kf-deco--curve {
  top: 24px;
  left: 24px;
  width: 220px;
  height: 120px;
  border-top: 1px dashed rgba(109, 40, 217, 0.15);
  border-right: 1px dashed rgba(109, 40, 217, 0.15);
  border-radius: 0 80px 0 0;
}

.kf-deco--dots-tr {
  top: 36px;
  right: 60px;
  width: 80px;
  height: 80px;
  background-image: radial-gradient(rgba(109, 40, 217, 0.18) 2px, transparent 2px);
  background-size: 12px 12px;
}

.kf-deco--dots-bl {
  bottom: 40px;
  left: 60px;
  width: 80px;
  height: 80px;
  background-image: radial-gradient(rgba(225, 29, 72, 0.18) 2px, transparent 2px);
  background-size: 12px 12px;
}

.kf-section .container {
  position: relative;
  z-index: 1;
}

/* Heading Header Wrap */
.kf-heading-wrap {
  text-align: center;
  margin-bottom: 24px;
  position: relative;
}

.kf-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6D28D9;
  background: rgba(109, 40, 217, 0.08);
  border: 1px solid rgba(109, 40, 217, 0.16);
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.06);
}

.kf-heading {
  margin: 0 auto 10px;
  font-family: inherit;
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #1E1B4B;
}

.kf-heading-gold {
  background: linear-gradient(135deg, #6D28D9 0%, #EC4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.kf-heading-subtitle {
  margin: 0 auto 8px;
  max-width: 640px;
  color: #4B5563;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
}

.kf-heading-underline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 6px;
}

.kf-heading-underline::before,
.kf-heading-underline::after {
  content: "";
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(109, 40, 217, 0.4));
}

.kf-heading-underline::after {
  background: linear-gradient(90deg, rgba(109, 40, 217, 0.4), transparent);
}

.kf-heading-diamond {
  width: 10px;
  height: 10px;
  margin: 0 12px;
  background: linear-gradient(135deg, #6D28D9, #EC4899);
  transform: rotate(45deg);
  border-radius: 2px;
}

/* Cards Grid — 4 Columns in 1 Row */
.kf-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 24px);
  align-items: stretch;
}

/* Individual Feature Card */
.kf-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 34px 20px 28px;
  background: #FFFFFF;
  border: 1px solid rgba(109, 40, 217, 0.1);
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(30, 27, 75, 0.05);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s ease;
  overflow: hidden;
}

/* Top Accent Stripe */
.kf-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #6D28D9, #EC4899);
  transition: opacity 0.3s ease;
}

.kf-card--interactive::before {
  background: linear-gradient(90deg, #6D28D9, #4F46E5);
}

.kf-card--qr::before {
  background: linear-gradient(90deg, #0284C7, #2563EB);
}

.kf-card--cost::before {
  background: linear-gradient(90deg, #059669, #10B981);
}

.kf-card--preview::before {
  background: linear-gradient(90deg, #F59E0B, #EC4899);
}

.kf-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 56px rgba(109, 40, 217, 0.14);
  border-color: rgba(109, 40, 217, 0.25);
}

/* Glowing Icon Badge */
.kf-icon-wrapper {
  position: relative;
  width: 68px;
  height: 68px;
  margin: 0 auto 24px auto;
}

.kf-icon-glow {
  position: absolute;
  inset: -4px;
  border-radius: 20px;
  filter: blur(14px);
  opacity: 0.35;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.kf-card--interactive .kf-icon-glow { background: #6D28D9; }
.kf-card--qr .kf-icon-glow { background: #0284C7; }
.kf-card--cost .kf-icon-glow { background: #059669; }
.kf-card--preview .kf-icon-glow { background: #F59E0B; }

.kf-card:hover .kf-icon-glow {
  opacity: 0.75;
  filter: blur(18px);
}

.kf-icon-box {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: #FFFFFF !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.kf-icon-box i,
.kf-icon-box svg,
.kf-card .kf-icon-box i,
.kf-card .kf-icon-box i.fa-address-card,
.kf-card .kf-icon-box i.fas {
  color: #FFFFFF !important;
  fill: #FFFFFF !important;
  font-size: 1.7rem !important;
  opacity: 1 !important;
}

.kf-card--interactive .kf-icon-box {
  background: linear-gradient(135deg, #6D28D9 0%, #4F46E5 100%);
}

.kf-card--qr .kf-icon-box {
  background: linear-gradient(135deg, #0284C7 0%, #2563EB 100%);
}

.kf-card--cost .kf-icon-box {
  background: linear-gradient(135deg, #059669 0%, #10B981 100%);
}

.kf-card--preview .kf-icon-box {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.kf-card:hover .kf-icon-box {
  transform: scale(1.08) rotate(-4deg);
}

/* Card Content */
.kf-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-grow: 1;
  width: 100%;
}

.kf-card-title {
  margin: 0 0 12px;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  color: #1E1B4B;
  transition: color 0.3s ease;
}

.kf-card:hover .kf-card-title {
  color: #6D28D9;
}

.kf-card-desc {
  margin: 0 0 22px;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #4B5563;
  flex-grow: 1;
}

/* Feature Sub-Tags */
.kf-card-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid #F3F4F6;
  margin-top: auto;
  width: 100%;
}

.kf-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #4B5563;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  padding: 5px 11px;
  border-radius: 50px;
  transition: all 0.25s ease;
}

.kf-tag i {
  font-size: 0.75rem;
  color: #10B981;
}

.kf-card:hover .kf-tag {
  background: #F3E8FF;
  border-color: #DDD6FE;
  color: #6D28D9;
}

.kf-card:hover .kf-tag i {
  color: #6D28D9;
}

/* Section CTA Button */
.kf-cta {
  margin-top: 52px;
  display: flex;
  justify-content: center;
}

.kf-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 40px;
  border-radius: 50px;
  background: linear-gradient(135deg, #6D28D9 0%, #4F46E5 100%);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none !important;
  box-shadow: 0 12px 32px rgba(109, 40, 217, 0.28);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kf-cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(109, 40, 217, 0.38);
  color: #FFFFFF !important;
}

.kf-cta-button i {
  font-size: 0.95rem;
  transition: transform 0.3s ease;
}

.kf-cta-button:hover i {
  transform: translateX(5px);
}

/* Responsive Breakpoints */
@media (max-width: 1199.98px) and (min-width: 992px) {
  .kf-cards {
    gap: 16px;
  }
  .kf-card {
    padding: 30px 16px 24px;
  }
  .kf-card-title {
    font-size: 1.12rem;
  }
  .kf-card-desc {
    font-size: 0.88rem;
  }
}

@media (max-width: 991.98px) {
  #features.kf-section,
  .kf-section {
    padding: 60px 0 76px;
  }

  .kf-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .kf-card:last-child {
    grid-column: auto;
    max-width: none;
  }
}

@media (max-width: 767.98px) {
  #features.kf-section,
  .kf-section {
    padding: 48px 0 64px;
  }

  .kf-heading-wrap {
    margin-bottom: 40px;
  }

  .kf-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .kf-card {
    padding: 32px 24px 28px;
  }

  .kf-deco--curve {
    width: 130px;
    height: 80px;
  }

  .kf-deco--dots-tr {
    right: 16px;
    width: 48px;
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kf-card,
  .kf-icon-box,
  .kf-cta-button {
    transition: none !important;
    transform: none !important;
  }
}
