.features-grid {
  align-items: center;
}

.features-grid--reverse {
  direction: rtl;
}

.features-grid--reverse > * {
  direction: ltr;
}

.features-card {
  height: 100%;
}

.features-image-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.features-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.features-text-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: rgba(5, 8, 20, 0.85);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text-muted);
}

.features-header-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.features-cta {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: radial-gradient(circle at top right, rgba(108, 92, 231, 0.15), transparent 55%), #050814;
}

@media (max-width: 960px) {
  .features-text-side {
    margin-top: var(--space-4);
  }
}

@media (max-width: 640px) {
  .features-header-cta {
    width: 100%;
    justify-content: flex-start;
  }
}
