/* ============================================================
   AI section — 36 agent cards showcase & suite filter
   ============================================================ */

.ai {
  background: var(--bg-2);
  border-block: 1px solid var(--border-soft);
}

/* Suite filter tabs */
.ai-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.ai-tab {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  padding: 8px 16px;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: var(--shadow-sm);
}

.ai-tab:hover {
  color: var(--ink);
  border-color: var(--border-strong, #818cf8);
  transform: translateY(-1px);
}

.ai-tab.active {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.28);
}

.ai-tab__count {
  font-size: 0.74rem;
  background: rgba(255, 255, 255, 0.22);
  padding: 2px 7px;
  border-radius: var(--r-full);
  font-weight: 700;
}

.ai-tab:not(.active) .ai-tab__count {
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border-soft);
}

.ai-status-bar {
  text-align: center;
  color: var(--muted);
  font-size: 0.84rem;
  margin-bottom: 26px;
}

.ai-status-bar b {
  color: var(--brand-600);
  font-weight: 700;
}

/* Agent cards grid */
.ai__grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.acard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.acard:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-400, #818cf8);
}

.acard--fade-in {
  animation: acardFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes acardFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.acard__icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  flex: none;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--gradient);
}

.acard__icon svg {
  width: 19px;
  height: 19px;
}

/* Category specific icon tints */
.acard[data-suite="content"] .acard__icon {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}
.acard[data-suite="intelligence"] .acard__icon {
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
}
.acard[data-suite="engagement"] .acard__icon {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.acard[data-suite="campaigns"] .acard__icon {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}

.acard__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.acard__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.acard h4 {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
}

.acard p {
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.45;
  margin: 0 0 10px 0;
}

.acard__tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
}

.acard__tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--r-full);
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border-soft);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.acard__tag--suite {
  color: var(--brand-600);
  background: var(--gradient-soft);
  border-color: rgba(99, 102, 241, 0.16);
  font-weight: 700;
}

.acard__badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: var(--r-full);
  flex: none;
}

.acard__badge--free {
  color: #059669;
  background: rgba(16, 185, 129, 0.09);
  border: 1px solid rgba(16, 185, 129, 0.22);
}

.acard__badge--pro {
  color: #6366f1;
  background: rgba(99, 102, 241, 0.09);
  border: 1px solid rgba(99, 102, 241, 0.22);
}

.acard__badge--enterprise {
  color: #9333ea;
  background: rgba(147, 51, 234, 0.09);
  border: 1px solid rgba(147, 51, 234, 0.22);
}

/* Copilot Hero Callout */
.copilot-callout {
  margin-top: 36px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.07) 0%, rgba(168, 85, 247, 0.07) 100%);
  border: 1px solid rgba(99, 102, 241, 0.32);
  border-radius: var(--r-xl);
  padding: 24px 28px;
  display: flex;
  gap: 20px;
  align-items: center;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.08);
}

.copilot-callout__icon {
  width: 50px;
  height: 50px;
  border-radius: var(--r-lg);
  background: var(--gradient);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.32);
}

.copilot-callout__icon svg {
  width: 26px;
  height: 26px;
}

.copilot-callout__text h3 {
  font-size: 1.1rem;
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.copilot-callout__text p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

.copilot-steps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.copilot-step {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--r-full);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 680px) {
  .ai__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1040px) {
  .ai__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
