/* CCAI AI agents: team card beside the founder and an agent strip on each module card. Uses tokens from styles.css. */
.ag-orb { --s: 44px; position: relative; width: var(--s); height: var(--s); flex: none; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 32% 28%, #2b4466, var(--navy) 72%); color: var(--lime); isolation: isolate; }
.ag-orb::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; z-index: -1;
  background: conic-gradient(from 0deg, var(--lime), #8fd3ff, var(--coral), var(--lime)); animation: ag-spin 7s linear infinite; }
.ag-orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: -1; background: radial-gradient(circle at 32% 28%, #2b4466, var(--navy) 72%); }
.ag-orb svg { width: 46%; height: 46%; position: relative; z-index: 1; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes ag-spin { to { transform: rotate(360deg); } }

.ag-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 0.6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(22, 163, 74, .10); color: #15803d; border: 1px solid rgba(22, 163, 74, .25); white-space: nowrap; }
.ag-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; position: relative; }
.ag-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor; animation: ag-ping 1.8s cubic-bezier(0,0,.2,1) infinite; }
@keyframes ag-ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }

/* Strip at the bottom of each module card */
.ag-strip { margin-top: var(--sp-4); padding: var(--sp-3); border-radius: var(--radius-sm); display: flex; flex-direction: column; gap: var(--sp-2);
  background: linear-gradient(135deg, var(--navy), #1d3352); color: #fff; box-shadow: 0 14px 30px -18px rgba(20, 36, 58, .7); }
.ag-strip__row { display: flex; align-items: center; gap: var(--sp-3); }
.ag-strip__who { flex: 1; min-width: 0; line-height: 1.25; }
.ag-strip__who b { display: block; font-family: var(--font-heading); font-size: 1rem; color: #fff; }
.ag-strip__who span { font-size: 0.8125rem; color: rgba(255,255,255,.72); }
.ag-strip .ag-pill { background: rgba(216, 243, 106, .14); color: var(--lime); border-color: rgba(216, 243, 106, .35); }
.ag-now { display: flex; gap: 8px; align-items: baseline; padding: 8px 10px; border-radius: 10px; background: rgba(0,0,0,.28);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.75rem; line-height: 1.5; color: rgba(255,255,255,.85); min-height: 3.4em; }
.ag-now b { color: var(--lime); font-weight: 600; flex: none; }
.ag-now [data-ag-tasks]::after { content: ""; display: inline-block; width: 6px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--lime); animation: ag-blink 1s steps(1) infinite; }
@keyframes ag-blink { 50% { opacity: 0; } }

/* AI team card beside the founder */
.ag-team { padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-4); position: relative; overflow: hidden; }
.ag-team::before { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(216,243,106,.45), transparent 70%); pointer-events: none; }
.ag-team > * { position: relative; }
.ag-team__head { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.ag-team__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3); }
.ag-mini { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: var(--sp-3) var(--sp-2); border-radius: var(--radius-sm);
  background: var(--surface-strong); border: 1px solid var(--surface-border); text-decoration: none; color: inherit;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.ag-mini:hover { transform: translateY(-4px); border-color: var(--surface-border-hover); box-shadow: var(--shadow-glass); }
.ag-mini b { font-family: var(--font-heading); font-size: 0.9375rem; color: var(--text-heading); }
.ag-mini span { font-size: 0.75rem; line-height: 1.3; color: var(--slate); }
.ag-team__foot { font-size: 0.9375rem; color: var(--text-muted); }

@media (max-width: 520px) { .ag-team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ag-team { padding: var(--sp-5); } }
@media (prefers-reduced-motion: reduce) { .ag-orb::before, .ag-dot::after, .ag-now [data-ag-tasks]::after { animation: none; } }
