/* ==========================================================================
   Core Features Grid & Pillars
   ========================================================================== */

.features-section {
  padding: 80px 0;
  position: relative;
}

.features-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.features-header .pill {
  margin-bottom: 14px;
}

.features-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 42px);
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 16px;
}

.features-header p {
  font-size: 18px;
  color: var(--text-muted);
}

/* Feature Cards 3-Column Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-floating);
  border-color: #C7D2FE;
}

.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.feature-icon-wrapper.gold {
  background: #FFFBEB;
  color: #F59E0B;
  border: 1px solid #FDE68A;
}

.feature-icon-wrapper.indigo {
  background: #EEF2FF;
  color: #4F46E5;
  border: 1px solid #C7D2FE;
}

.feature-icon-wrapper.emerald {
  background: #ECFDF5;
  color: #10B981;
  border: 1px solid #A7F3D0;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--text-main);
  line-height: 1.3;
}

.feature-card p {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.65;
  flex-grow: 1;
}

.feature-footer-pill {
  margin-top: 8px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

/* Feature 1: Star Gold */
.pill-feature-gold {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FCD34D;
}

/* Feature 2: Indigo PIN */
.pill-feature-indigo {
  background: #E0E7FF;
  color: #3730A3;
  border: 1px solid #C7D2FE;
}

/* Feature 3: Emerald Reward */
.pill-feature-emerald {
  background: #D1FAE5;
  color: #065F46;
  border: 1px solid #6EE7B7;
}

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}
