/* ==========================================================================
   Features Section — Glass-morphism cards in responsive grid
   ========================================================================== */

.features {
  position: relative;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-base) 100%);
}

/* Ambient glow behind features area */
.features::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(46, 104, 233, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  position: relative;
}

/* ── Feature Card ── */
.feature-card {
  position: relative;
  padding: var(--space-xl) var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  transition: all var(--duration-base) var(--ease-out);
  overflow: hidden;
}

/* Gradient border glow on hover */
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(46, 104, 233, 0),
    rgba(46, 104, 233, 0.3),
    rgba(56, 189, 248, 0.15),
    rgba(46, 104, 233, 0)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out);
  pointer-events: none;
}

/* Background glow on hover */
.feature-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(46, 104, 233, 0.06) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-out);
  pointer-events: none;
}

.feature-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--glow-md), var(--shadow-card);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover::after {
  opacity: 1;
}

/* ── Feature Icon ── */
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(46, 104, 233, 0.15), rgba(46, 104, 233, 0.05));
  border: 1px solid rgba(46, 104, 233, 0.2);
  margin-bottom: var(--space-lg);
  color: var(--blue-400);
  position: relative;
  z-index: 1;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.feature-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}
