/* ===== Agent section (inline on page) ===== */

.agent-section {
    background: #0a0a1a;
    color: #e0e0e0;
    padding: 48px 0;
}


.agent-inline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

/* Visualizer */
.agent-visualizer-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

#visualizer {
    width: 200px;
    height: 200px;
    border-radius: 50%;
}

.agent-status {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    text-align: center;
    min-height: 1.4em;
}

/* Mic button */
.agent-controls {
    display: flex;
    justify-content: center;
}

.mic-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.mic-btn:hover {
    background: rgba(233, 69, 96, 0.2);
    border-color: var(--color-highlight);
}

.mic-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Transcript */
.agent-transcript-area {
    width: 100%;
    max-height: 180px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.transcript {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.transcript-placeholder {
    text-align: center;
    color: rgba(255,255,255,0.2);
    font-size: 0.85rem;
    padding: 12px 0;
}

.transcript-entry {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    animation: fadeIn 0.2s ease;
}

.transcript-entry.user {
    flex-direction: row-reverse;
    text-align: right;
}

.transcript-role {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.3);
    min-width: 20px;
    padding-top: 2px;
}

.transcript-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.8);
    max-width: 85%;
}

.transcript-entry.user .transcript-text {
    color: rgba(255,255,255,0.5);
}

/* Demo suggestions */
.demo-suggestions {
    width: 100%;
}

.demo-suggestions h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.35);
    margin-bottom: 8px;
}

.demo-suggestion-cards {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.demo-suggestion-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    color: white;
    text-decoration: none;
    transition: all 0.2s;
    flex: 1;
    min-width: 180px;
}

.demo-suggestion-card:hover {
    background: rgba(233, 69, 96, 0.15);
    border-color: var(--color-highlight);
    text-decoration: none;
}

.demo-suggestion-name { font-weight: 600; font-size: 0.85rem; }
.demo-suggestion-cta { font-size: 0.75rem; color: var(--color-highlight); white-space: nowrap; }

/* Text input fallback */
.agent-text-input {
    width: 100%;
    display: flex;
    gap: 8px;
}

.agent-text-input input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    color: white;
    font-size: 0.9rem;
    font-family: var(--font-sans);
}

.agent-text-input input::placeholder { color: rgba(255,255,255,0.25); }
.agent-text-input input:focus { outline: none; border-color: rgba(255,255,255,0.25); }
.agent-text-input input:disabled { opacity: 0.3; }

.text-send-btn {
    padding: 10px 20px;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.text-send-btn:hover { background: var(--color-primary); }
.text-send-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ===== Section divider ===== */

.section-divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 0;
}

/* ===== Demo section titles ===== */

.demo-section {
    padding: 48px 0;
}

.demo-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.demo-section-desc {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 28px;
    line-height: 1.5;
}

/* ===== Agent section color overrides (must come after generic rules) ===== */

.agent-section .demo-section-title {
    color: white;
    text-align: center;
}

.agent-section .demo-section-desc {
    color: rgba(255,255,255,0.6);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 32px;
}

/* ===== Animations ===== */

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== Responsive ===== */

@media (max-width: 480px) {
    #visualizer { width: 160px; height: 160px; }
    .mic-btn { width: 56px; height: 56px; }
    .agent-transcript-area { max-height: 140px; }
    .demo-section { padding: 32px 0; }
}

/* ================================================================
   Hero agent chip — clickable identity block in hub + use-case heros
   Click opens the floating bubble (same data-engage-action="open-agent"
   hook used by the engage section's CTA).
   ================================================================ */

.ai-ops-hero-agent-chip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px 10px 12px;
    margin: 0 0 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.ai-ops-hero-agent-chip:hover,
.ai-ops-hero-agent-chip:focus-visible {
    border-color: rgba(81, 161, 255, 0.55);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
    outline: none;
}

.ai-ops-hero-agent-chip-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.ai-ops-hero-agent-chip-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.ai-ops-hero-agent-chip-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: #fff;
}

.ai-ops-hero-agent-chip-tagline {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.62);
    letter-spacing: 0.01em;
}

.ai-ops-hero-agent-chip-arrow {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    margin-left: 4px;
    transition: transform 0.15s ease;
}

.ai-ops-hero-agent-chip:hover .ai-ops-hero-agent-chip-arrow {
    transform: translateX(2px);
    color: #fff;
}
