.ai-workflow-cards {
  display: flex;
  flex-wrap: wrap;           /* Allows cards to wrap to a new line if needed */
  justify-content: center;   /* Centers the cluster of cards */
  gap: 10px;
  width: 60%;
  max-width: 720px;
  margin: 0 auto;
}

/* Card Container */
.ai-wc {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: row;       /* Horizontal layout */
  align-items: center;       /* Center icon and text vertically */
  gap: 5px;                 /* Clean spacing between icon and title */
  transition: border-color 0.2s, box-shadow 0.22s, transform 0.2s;
  animation: wcFadeUp 0.4s ease both;
  position: relative;
  overflow: hidden;
  text-align: left;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}

/* Staggered Animations */
.ai-wc:nth-child(1) { animation-delay: 0.06s; }
.ai-wc:nth-child(2) { animation-delay: 0.13s; }
.ai-wc:nth-child(3) { animation-delay: 0.20s; }

/* Hover States */
.ai-wc:hover {
  border-color: var(--border-hover, #c8c0b8);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.ai-wc::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.55) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
  border-radius: inherit;
}

.ai-wc:hover::after { opacity: 1; }

/* Icon Styling */
.ai-wc-icon {
  width: 20px;
  height: 20px;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s;
  background: transparent;       /* Removed background */
  color: var(--ink-muted);       /* Unified muted color */
}

.ai-wc:hover .ai-wc-icon {
  transform: scale(1.1) rotate(-4deg);
}

/* Title Styling */
.ai-wc-title {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: -0.02em;
  line-height: var(--lh-snug);
  margin: 0;                     /* Removed lingering bottom margins */
}

/* Animations & Responsiveness */
@keyframes wcFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

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