/* ═══════════════════════════════════════════════════════════
   AI AGENTS — Product cards & showcase
   ═══════════════════════════════════════════════════════════ */

.ai-agents-section {
  position: relative;
  overflow: hidden;
}

.ai-agents-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(139, 92, 246, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 40% at 100% 80%, rgba(61, 184, 191, 0.08), transparent 55%);
  pointer-events: none;
}

.ai-agents-section .container {
  position: relative;
  z-index: 1;
}

.ai-agents-hero-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1.5rem;
  background: linear-gradient(145deg, rgba(21, 36, 56, 0.95) 0%, rgba(15, 28, 46, 0.98) 100%);
  border: 1px solid rgba(61, 184, 191, 0.28);
  border-radius: var(--radius-lg);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 24px 60px rgba(0, 0, 0, 0.35),
    0 0 80px rgba(61, 184, 191, 0.08);
  overflow: hidden;
}

.ai-agents-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ai-cyan, #00e5ff), var(--ai-violet, #8b5cf6), var(--ai-gold, #dfc07a));
}

.ai-agents-hero-card {
  position: relative;
}

.ai-agents-hero-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ai-agents-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  padding: 0.35rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #34d399;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 999px;
}

.ai-agents-hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.8);
  animation: agent-pulse 2s ease-in-out infinite;
}

@keyframes agent-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

.ai-agents-hero-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
}

.ai-agents-hero-channel {
  font-size: 0.9rem;
  color: var(--teal);
  margin: 0;
}

.ai-agents-hero-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
  max-width: 52ch;
}

.ai-agents-hero-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.25rem;
  padding: 0.85rem 1.25rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  background: rgba(61, 184, 191, 0.1);
  border: 1px solid rgba(61, 184, 191, 0.35);
  border-radius: var(--radius-md);
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.ai-agents-hero-phone:hover {
  background: rgba(61, 184, 191, 0.18);
  border-color: rgba(61, 184, 191, 0.55);
  transform: translateY(-2px);
}

.ai-agents-hero-phone svg {
  flex-shrink: 0;
  color: var(--teal);
}

.ai-agents-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  padding: 1.5rem;
  background:
    radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.15), transparent 65%),
    rgba(8, 14, 26, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
}

.ai-agents-hero-visual svg {
  width: clamp(80px, 12vw, 120px);
  height: auto;
  color: var(--teal);
  filter: drop-shadow(0 0 24px rgba(61, 184, 191, 0.35));
}

.ai-agents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.agent-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.5rem 1.35rem 1.4rem;
  background: linear-gradient(160deg, var(--bg-elevated) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s,
              box-shadow 0.35s;
  overflow: hidden;
}

.agent-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--agent-accent, var(--teal));
  opacity: 0.85;
}

.agent-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--agent-accent) 40%, var(--border));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.agent-card--phone { --agent-accent: #3db8bf; }
.agent-card--whatsapp { --agent-accent: #25d366; }
.agent-card--meta { --agent-accent: #a78bfa; }
.agent-card--sms { --agent-accent: #f59e42; }
.agent-card--outbound { --agent-accent: #f472b6; }
.agent-card--gmail { --agent-accent: #60a5fa; }
.agent-card--chat { --agent-accent: #34d399; }

@media (min-width: 1024px) {
  .ai-agents-grid {
    gap: 1.15rem;
  }

  .agent-card {
    padding: 1.35rem 1.25rem;
  }

  .agent-card:hover {
    transform: translateY(-4px);
  }

  .ai-agents-hero-card {
    border-color: rgba(139, 92, 246, 0.25);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.03) inset,
      0 20px 50px rgba(0, 0, 0, 0.3),
      0 0 60px rgba(139, 92, 246, 0.08);
  }
}

.agent-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.agent-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.35rem;
  line-height: 1;
  background: color-mix(in srgb, var(--agent-accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--agent-accent) 28%, transparent);
  border-radius: 12px;
}

.agent-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.agent-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #34d399;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.22);
  border-radius: 999px;
}

.agent-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  animation: agent-pulse 2s ease-in-out infinite;
}

.agent-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.25;
}

.agent-channel {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--agent-accent, var(--teal));
  margin: 0;
  letter-spacing: 0.02em;
}

.agent-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
  flex-grow: 1;
}

.agent-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

a.agent-meta:hover {
  color: var(--agent-accent, var(--teal));
}

.agent-meta--tag {
  width: fit-content;
  padding: 0.3rem 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: default;
}

.ai-agents-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.ai-agents-benefit {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.ai-agents-benefit strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
  color: var(--text-primary);
}

.ai-agents-benefit p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

.ai-agents-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  margin-top: 2.5rem;
}

@media (min-width: 900px) {
  .ai-agents-hero-card {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }
}

@media (max-width: 1024px) {
  .ai-agents-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ai-agents-benefits {
    grid-template-columns: 1fr;
  }
}

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

/* ─── Impact stats ─── */
.agent-impact-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.agent-impact-stat {
  position: relative;
  padding: 1.35rem 1.15rem;
  text-align: center;
  background: linear-gradient(160deg, rgba(21, 36, 56, 0.9) 0%, rgba(15, 28, 46, 0.95) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s;
}

.agent-impact-stat::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--impact-accent, var(--teal));
  opacity: 0.7;
}

.agent-impact-stat:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--impact-accent) 35%, var(--border));
}

.agent-impact-stat--teal { --impact-accent: #3db8bf; }
.agent-impact-stat--green { --impact-accent: #34d399; }
.agent-impact-stat--violet { --impact-accent: #a78bfa; }
.agent-impact-stat--gold { --impact-accent: #dfc07a; }

.agent-impact-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1;
  margin-bottom: 0.4rem;
  color: var(--impact-accent, var(--teal));
}

.agent-impact-label {
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-muted);
}

/* ─── Animated conversation demo ─── */
.agent-demo-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.agent-demo-panel {
  padding: 1.5rem;
  background: linear-gradient(160deg, var(--bg-elevated) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.agent-demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.agent-demo-header h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0;
}

.agent-demo-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #34d399;
}

.agent-demo-chat {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 220px;
}

.agent-bubble {
  max-width: 88%;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  line-height: 1.5;
  border-radius: 14px;
  opacity: 0;
  transform: translateY(12px);
  animation: bubble-in 0.5s ease forwards;
}

.agent-bubble--customer {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-bottom-left-radius: 4px;
}

.agent-bubble--ai {
  align-self: flex-end;
  background: rgba(61, 184, 191, 0.12);
  border: 1px solid rgba(61, 184, 191, 0.28);
  color: var(--text-primary);
  border-bottom-right-radius: 4px;
}

.agent-bubble--typing {
  align-self: flex-end;
  display: inline-flex;
  gap: 4px;
  padding: 0.85rem 1.1rem;
  background: rgba(61, 184, 191, 0.08);
  border: 1px solid rgba(61, 184, 191, 0.2);
  border-radius: 14px;
  border-bottom-right-radius: 4px;
}

.agent-bubble--typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: typing-dot 1.2s ease-in-out infinite;
}

.agent-bubble--typing span:nth-child(2) { animation-delay: 0.15s; }
.agent-bubble--typing span:nth-child(3) { animation-delay: 0.3s; }

.agent-demo-chat.is-resetting .agent-bubble {
  animation: none;
  opacity: 0;
}

.agent-bubble[data-step="1"] { animation-delay: 0.4s; }
.agent-bubble[data-step="2"] { animation-delay: 1.4s; }
.agent-bubble[data-step="3"] { animation-delay: 2.6s; }
.agent-bubble[data-step="4"] { animation-delay: 3.6s; }
.agent-bubble[data-step="5"] { animation-delay: 4.8s; }
.agent-bubble--typing[data-step="typing"] {
  animation: bubble-in 0.5s ease 1s forwards, bubble-out 0.35s ease 1.7s forwards;
}

@keyframes bubble-out {
  to {
    opacity: 0;
    transform: translateY(-6px) scale(0.95);
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin: 0;
    border-width: 0;
    overflow: hidden;
  }
}

@keyframes bubble-in {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes typing-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* ─── Channel hub visual ─── */
.agent-hub-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 2rem;
  background:
    radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.12), transparent 60%),
    linear-gradient(160deg, var(--bg-elevated) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.agent-hub-core {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.25rem 1.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-primary);
  background: linear-gradient(145deg, rgba(61, 184, 191, 0.2), rgba(139, 92, 246, 0.15));
  border: 1px solid rgba(61, 184, 191, 0.35);
  border-radius: 50%;
  width: 110px;
  height: 110px;
  justify-content: center;
  box-shadow: 0 0 40px rgba(61, 184, 191, 0.2);
  animation: hub-pulse 3s ease-in-out infinite;
}

.agent-hub-core small {
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--teal);
  letter-spacing: 0.04em;
}

@keyframes hub-pulse {
  0%, 100% { box-shadow: 0 0 40px rgba(61, 184, 191, 0.2); }
  50% { box-shadow: 0 0 60px rgba(61, 184, 191, 0.35), 0 0 80px rgba(139, 92, 246, 0.15); }
}

.agent-hub-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.agent-hub-node {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  animation: hub-float 4s ease-in-out infinite;
}

.agent-hub-node:nth-child(1) { top: 12%; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.agent-hub-node:nth-child(2) { top: 28%; right: 10%; animation-delay: 0.5s; }
.agent-hub-node:nth-child(3) { bottom: 28%; right: 8%; animation-delay: 1s; }
.agent-hub-node:nth-child(4) { bottom: 10%; left: 50%; transform: translateX(-50%); animation-delay: 1.5s; }
.agent-hub-node:nth-child(5) { bottom: 28%; left: 8%; animation-delay: 2s; }
.agent-hub-node:nth-child(6) { top: 28%; left: 10%; animation-delay: 2.5s; }
.agent-hub-node:nth-child(7) { top: 50%; right: 4%; animation-delay: 3s; }

@keyframes hub-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.agent-hub-node:nth-child(1),
.agent-hub-node:nth-child(4) {
  animation-name: hub-float-center;
}

@keyframes hub-float-center {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-6px); }
}

.agent-hub-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  margin: -100px 0 0 -100px;
  border: 1px dashed rgba(61, 184, 191, 0.2);
  border-radius: 50%;
  animation: hub-spin 30s linear infinite;
}

.agent-hub-ring--outer {
  width: 260px;
  height: 260px;
  margin: -130px 0 0 -130px;
  border-color: rgba(139, 92, 246, 0.15);
  animation-direction: reverse;
  animation-duration: 45s;
}

@keyframes hub-spin {
  to { transform: rotate(360deg); }
}

/* ─── Use cases ─── */
.agent-use-cases {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0;
}

.agent-use-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.agent-use-tab {
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.25s, background 0.25s, border-color 0.25s, transform 0.25s;
}

.agent-use-tab:hover {
  color: var(--text-primary);
  border-color: rgba(61, 184, 191, 0.35);
}

.agent-use-tab.is-active {
  color: var(--bg-deep);
  background: var(--teal);
  border-color: var(--teal);
  transform: scale(1.02);
}

.agent-use-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: linear-gradient(160deg, var(--bg-elevated) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  animation: use-fade-in 0.45s ease;
}

.agent-use-panel.is-active {
  display: grid;
}

@keyframes use-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.agent-use-panel h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin: 0 0 0.75rem;
}

.agent-use-panel p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 0 1rem;
}

.agent-use-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.agent-use-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.agent-use-list li::before {
  content: '✓';
  flex-shrink: 0;
  color: var(--teal);
  font-weight: 700;
}

.agent-use-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(61, 184, 191, 0.15), transparent 55%),
    rgba(8, 14, 26, 0.5);
  border: 1px solid rgba(61, 184, 191, 0.2);
  border-radius: var(--radius-md);
}

.agent-use-metric strong {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.agent-use-metric span {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 16ch;
}

/* ─── Use case cards (homepage grid) ─── */
.agent-use-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.agent-use-card {
  padding: 1.35rem 1.2rem;
  background: linear-gradient(160deg, var(--bg-elevated) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform 0.35s ease, border-color 0.35s, box-shadow 0.35s;
}

.agent-use-card:hover {
  transform: translateY(-5px);
  border-color: rgba(61, 184, 191, 0.3);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.agent-use-card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.65rem;
}

.agent-use-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 0.45rem;
}

.agent-use-card p {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

/* ─── How it works steps ─── */
.agent-how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2.5rem 0;
  counter-reset: agent-step;
}

.agent-how-step {
  position: relative;
  padding: 1.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.agent-how-step::before {
  counter-increment: agent-step;
  content: counter(agent-step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: rgba(61, 184, 191, 0.35);
  margin-bottom: 0.75rem;
  transition: color 0.35s;
}

.agent-how-step:hover::before {
  color: var(--teal);
}

.agent-how-step::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.agent-how-step:hover::after {
  transform: scaleX(1);
}

.agent-how-step h4 {
  font-size: 0.95rem;
  margin: 0 0 0.45rem;
}

.agent-how-step p {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

/* ─── Agent help bullets on cards ─── */
.agent-helps {
  list-style: none;
  padding: 0;
  margin: 0.35rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.agent-helps li {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-left: 0.85rem;
  position: relative;
}

.agent-helps li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--agent-accent, var(--teal));
}

/* ─── Before / after ─── */
.agent-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2.5rem 0;
}

.agent-compare-col {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.agent-compare-col--before {
  background: rgba(239, 68, 68, 0.04);
  border-color: rgba(239, 68, 68, 0.15);
}

.agent-compare-col--after {
  background: rgba(52, 211, 153, 0.04);
  border-color: rgba(52, 211, 153, 0.2);
}

.agent-compare-col h4 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.agent-compare-col--before h4 { color: #f87171; }
.agent-compare-col--after h4 { color: #34d399; }

.agent-compare-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.agent-compare-col li {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-secondary);
  padding-left: 1.25rem;
  position: relative;
}

.agent-compare-col--before li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: #f87171;
  font-size: 0.75rem;
}

.agent-compare-col--after li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #34d399;
  font-weight: 700;
}

/* ─── Sound wave (receptionist visual) ─── */
.ai-agents-hero-visual--wave {
  flex-direction: column;
  gap: 1rem;
}

.agent-soundwave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 60px;
}

.agent-soundwave span {
  width: 4px;
  height: 12px;
  border-radius: 2px;
  background: var(--teal);
  animation: soundwave 1s ease-in-out infinite;
}

.agent-soundwave span:nth-child(1) { animation-delay: 0s; }
.agent-soundwave span:nth-child(2) { animation-delay: 0.1s; }
.agent-soundwave span:nth-child(3) { animation-delay: 0.2s; }
.agent-soundwave span:nth-child(4) { animation-delay: 0.3s; }
.agent-soundwave span:nth-child(5) { animation-delay: 0.4s; }
.agent-soundwave span:nth-child(6) { animation-delay: 0.3s; }
.agent-soundwave span:nth-child(7) { animation-delay: 0.2s; }
.agent-soundwave span:nth-child(8) { animation-delay: 0.1s; }
.agent-soundwave span:nth-child(9) { animation-delay: 0s; }

@keyframes soundwave {
  0%, 100% { height: 12px; opacity: 0.4; }
  50% { height: 44px; opacity: 1; }
}

@media (min-width: 900px) {
  .agent-demo-wrap {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1024px) {
  .agent-impact-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .agent-use-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .agent-how-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .agent-use-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .agent-impact-stats,
  .agent-use-grid,
  .agent-how-steps,
  .agent-compare {
    grid-template-columns: 1fr;
  }
}
