/* ========================================
   Mini agent animation — homepage CTA
   Replaces the CTA image with a live looping demo.
   Uses site design tokens from style.css.
   ======================================== */

.agent-mini {
    width: 100%;
    max-width: 560px;
    aspect-ratio: 5 / 4;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
    transition: border-color 0.3s;
}
.agent-mini:hover { border-color: var(--border-hover); }

.agent-mini__banner {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-secondary);
    padding: 8px 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    flex-shrink: 0;
    min-height: 44px;
}
.agent-mini__tag {
    background: var(--accent-primary);
    color: #061023;
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}
.agent-mini__msg {
    color: var(--text-primary);
    font-size: 12px;
    line-height: 1.4;
    flex: 1;
    min-width: 0;
    opacity: 0;
    transition: opacity 300ms;
}
.agent-mini__msg.show { opacity: 1; }
.agent-mini__msg .from { color: var(--text-secondary); }

.agent-mini__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-secondary);
}
.agent-mini__dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #7cf2c7;
    box-shadow: 0 0 6px #7cf2c7;
    animation: agent-mini-pulse-dot 1.6s ease-in-out infinite;
}
@keyframes agent-mini-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.agent-mini__flow { flex: 1; width: 100%; height: 100%; display: block; }

.agent-mini .node-rect {
    fill: var(--bg-tertiary);
    stroke: rgba(59, 130, 246, 0.3);
    stroke-width: 1.2;
    transition: fill 200ms, stroke 200ms, filter 200ms;
}
.agent-mini .node.active .node-rect {
    fill: #1e2a48;
    stroke: var(--accent-primary);
    filter: drop-shadow(0 0 6px var(--accent-glow-strong));
}
.agent-mini .node.thinking .node-rect {
    stroke: #f59e0b;
    filter: drop-shadow(0 0 7px rgba(245, 158, 11, 0.55));
}
.agent-mini .node-label {
    fill: var(--text-heading);
    font-size: 10px;
    text-anchor: middle;
    font-weight: 500;
    font-family: inherit;
}
.agent-mini .node-icon {
    font-size: 12px;
    text-anchor: middle;
    dominant-baseline: central;
    fill: var(--text-primary);
}

.agent-mini .edge {
    fill: none;
    stroke: rgba(59, 130, 246, 0.3);
    stroke-width: 1.2;
    transition: stroke 250ms;
}
.agent-mini .edge.traveled { stroke: var(--accent-primary); }
.agent-mini .pulse {
    fill: #7cf2c7;
    filter: drop-shadow(0 0 5px #7cf2c7);
}

.agent-mini__verdict {
    text-align: center;
    font-size: 11px;
    color: var(--text-secondary);
    min-height: 18px;
    transition: color 300ms;
}
.agent-mini__verdict.ok   { color: #7cf2c7;    font-weight: 600; }
.agent-mini__verdict.warn { color: #f59e0b;    font-weight: 600; }
