/* =========================================================
   Features Page — Ambix POS
   ========================================================= */

/* ── Hero ──────────────────────────────────────────────── */
.features-hero {
  padding: 140px 0 60px;
  text-align: center;
}

.features-hero h1 {
  font-size: clamp(2rem, 1.2rem + 3vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}

.features-hero-sub {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* ── Feature Groups ────────────────────────────────────── */
.feat-group {
  padding: 48px 0 64px;
  border-top: 1px solid rgba(224, 148, 24, 0.06);
}

.feat-group-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.feat-group-icon {
  width: 44px;
  height: 44px;
  background: rgba(224, 148, 24, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--saffron);
  flex-shrink: 0;
}

.feat-group-header h2 {
  font-size: 24px;
  font-weight: 700;
}

/* ── Feature Grid ──────────────────────────────────────── */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feat-card {
  background: var(--surface);
  border: 1px solid var(--saffron-border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: border-color var(--duration-fast),
              box-shadow var(--duration-fast);
}

.feat-card:hover {
  border-color: rgba(224, 148, 24, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2),
              0 0 20px rgba(224, 148, 24, 0.05);
}

.feat-card-icon {
  font-size: 24px;
  margin-bottom: 12px;
}

.feat-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.feat-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ── Learn More Link Card ──────────────────────────────── */
.feat-card-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
  border-color: rgba(224, 148, 24, 0.2);
}

.feat-card-link:hover {
  border-color: var(--saffron);
}

.feat-learn-more {
  font-size: 12px;
  font-weight: 600;
  color: var(--saffron);
  margin-left: 6px;
  opacity: 0.7;
  transition: opacity var(--duration-fast);
}

.feat-card-link:hover .feat-learn-more {
  opacity: 1;
}

/* ── Coming Soon ───────────────────────────────────────── */
.coming-soon-badge {
  padding: 5px 14px;
  background: linear-gradient(135deg, rgba(224, 148, 24, 0.2), rgba(224, 148, 24, 0.08));
  border: 1px solid rgba(224, 148, 24, 0.3);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--saffron);
}

.coming-soon-overlay {
  position: relative;
}

.coming-soon-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(12, 10, 8, 0.3) 0%,
    rgba(12, 10, 8, 0.6) 100%);
  border-radius: var(--radius);
  pointer-events: none;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.feat-group-coming-soon .feat-card {
  opacity: 0.5;
}

.feat-group-coming-soon .feat-card h3,
.feat-group-coming-soon .feat-card p {
  color: var(--text-muted);
}

/* ── Bottom CTA ────────────────────────────────────────── */
.features-bottom-cta {
  padding: 80px 0;
  border-top: 1px solid rgba(224, 148, 24, 0.06);
}

.features-bottom-cta h2 {
  font-size: clamp(1.6rem, 1rem + 2vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 12px;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
  .feat-grid {
    grid-template-columns: 1fr;
  }

  .features-hero {
    padding: 120px 0 40px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .feat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
