/* ==================================================================
   AGENTS.CSS — AI Agents Services Architecture v2.0
   Carnot Automation — Premium SaaS Design
   Complements: aria.css, services-premium.css, styles.css
   ================================================================== */

/* ─── Section Badge (reusable) ─────────────────────────────────── */
.svc-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 16px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 40px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #a5b4fc;
    margin-bottom: 1rem;
}

.svc-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6366f1;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.7);
    animation: svc-dot-pulse 2s ease-in-out infinite;
}

@keyframes svc-dot-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.5); opacity: 0.6; }
}

.svc-grad {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #14b8a6 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: svc-grad-flow 6s ease infinite;
}

@keyframes svc-grad-flow {
    0%, 100% { background-position: 0% 50%; }
    50%       { background-position: 100% 50%; }
}

/* ─── Agents Overview Section ──────────────────────────────────── */
.agents-overview-section {
    padding: clamp(4rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem);
    position: relative;
    overflow: hidden;
}

.agents-overview-section::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.06) 0%, transparent 65%);
    pointer-events: none;
}

/* Updated automations header */
.automations-header.svc-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 48px;
    opacity: 1 !important;
    animation: none !important;
}

.svc-header-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #eaf0ff;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.svc-header-sub {
    font-size: 1rem;
    color: rgba(229, 231, 235, 0.55);
    max-width: 560px;
    line-height: 1.7;
    margin: 0 auto;
}

/* ─── Updated Automations Grid (4-col for 5 cards) ─────────────── */
.automations-grid.agents-grid-v2 {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

/* ARIA card spans full top row */
.automations-grid.agents-grid-v2 .automations-card.aria-card--featured {
    grid-column: 1 / -1;
    display: grid !important;
    flex-direction: unset !important;
    grid-template-columns: 1fr 1.05fr;
    align-items: center;
    gap: 44px;
    padding: 36px 40px;
    min-height: auto !important;
}

/* Secondary card sizing */
.automations-grid.agents-grid-v2 .automations-card:not(.aria-card--featured) {
    min-height: 260px;
    grid-column: auto;
}

/* ─── ARIA Featured Card Internals ─────────────────────────────── */
.aria-card-left {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.aria-card-right {
    position: relative;
    z-index: 1;
}

/* Key stats row inside ARIA card */
.aria-key-stats {
    display: flex;
    gap: 22px;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(99, 102, 241, 0.14);
    flex-wrap: wrap;
}

.aria-key-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.aria-key-stat-value {
    font-size: 1.35rem;
    font-weight: 900;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.aria-key-stat-label {
    font-size: 10px;
    color: rgba(229, 231, 235, 0.4);
    font-weight: 500;
}

/* Mini chat window inside the ARIA card */
.aria-card-chat-preview {
    background: rgba(6, 5, 18, 0.92);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.15), 0 12px 40px rgba(0, 0, 0, 0.5);
    animation: card-preview-float 7s ease-in-out infinite;
}

@keyframes card-preview-float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-8px); }
}

.aria-card-chat-header {
    padding: 10px 14px;
    background: rgba(99, 102, 241, 0.08);
    border-bottom: 1px solid rgba(99, 102, 241, 0.12);
    display: flex;
    align-items: center;
    gap: 8px;
}

.aria-card-mac-dots {
    display: flex;
    gap: 5px;
}
.aria-card-mac-dots span { width: 9px; height: 9px; border-radius: 50%; }
.aria-card-mac-dots span:nth-child(1) { background: #ff5f56; }
.aria-card-mac-dots span:nth-child(2) { background: #ffbd2e; }
.aria-card-mac-dots span:nth-child(3) { background: #27c93f; }

.aria-card-chat-label {
    flex: 1;
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    color: rgba(229, 231, 235, 0.4);
}

.aria-card-online-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: rgba(74, 222, 128, 0.85);
    font-weight: 600;
}

.aria-card-online-dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    animation: svc-dot-pulse 2s ease-in-out infinite;
}

.aria-card-preview-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 160px;
    max-height: 220px;
    overflow-y: auto;
    scroll-behavior: smooth;
}
.aria-card-preview-body::-webkit-scrollbar { width: 3px; }
.aria-card-preview-body::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.25); border-radius: 2px; }

/* Reuse aria.css message classes for the card preview */
.aria-card-preview-body .aria-msg { max-width: 90%; }

/* ─── Nav dropdown featured item ─────────────────────────────── */
.nav-dropdown-featured {
    border-radius: 10px !important;
    background: rgba(99, 102, 241, 0.06) !important;
    border: 1px solid rgba(99, 102, 241, 0.18) !important;
    margin-bottom: 4px;
}

.nav-dropdown-featured strong {
    color: #c4b5fd !important;
}

/* ─── Individual Agent Detail Sections ─────────────────────────── */
.agent-detail-section {
    padding: clamp(4rem, 7vw, 6rem) 0;
    position: relative;
    overflow: hidden;
}

.agent-detail-section.alt-bg {
    background: rgba(14, 12, 24, 0.45);
}

/* Reversed layout */
.agent-detail-section.reversed .aria-section-grid {
    direction: rtl;
}
.agent-detail-section.reversed .aria-section-grid > * {
    direction: ltr;
}

/* Section top accent */
.agent-detail-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.12), transparent);
}

/* ─── Agent 2-tier Pricing Grid ─────────────────────────────────── */
.agent-pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 24px;
}

.agent-price-card {
    background: rgba(14, 12, 26, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(12px);
}

.agent-price-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.1);
}

.agent-price-tier {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(165, 180, 252, 0.65);
    margin-bottom: 8px;
}

.agent-price-setup-label {
    font-size: 10px;
    color: rgba(229, 231, 235, 0.35);
    font-weight: 500;
}

.agent-price-setup {
    font-size: 1.45rem;
    font-weight: 900;
    color: #eaf0ff;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 2px;
}

.agent-price-monthly {
    font-size: 0.82rem;
    color: rgba(229, 231, 235, 0.45);
    margin-bottom: 16px;
}

.agent-price-cta {
    display: block;
    width: 100%;
    padding: 10px;
    text-align: center;
    border-radius: 9px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.25);
    background: transparent;
    color: #a5b4fc;
    margin-top: auto;
    font-family: inherit;
}

.agent-price-cta:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.5);
    color: #fff;
}

/* ─── Pricing Comparison Section ────────────────────────────────── */
.pricing-comparison-section {
    padding: clamp(4rem, 7vw, 6rem) 0;
    position: relative;
}

.pricing-comparison-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
}

/* ─── 5th card animation delay ──────────────────────────────────── */
.automations-card:nth-child(5) { animation-delay: 0.45s; }
.automations-card:nth-child(6) { animation-delay: 0.55s; }

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .automations-grid.agents-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .automations-grid.agents-grid-v2 .automations-card.aria-card--featured {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 28px 24px;
    }
}

@media (max-width: 768px) {
    .automations-grid.agents-grid-v2 {
        grid-template-columns: 1fr;
    }

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

    .agent-detail-section.reversed .aria-section-grid {
        direction: ltr;
    }
}

/* ─── Final CTA outline button variant ──────────────────────────── */
.aria-deploy-btn--outline {
    background: transparent;
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #a5b4fc;
    box-shadow: none;
}

.aria-deploy-btn--outline:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.7);
    color: #fff;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.2);
}

/* ─── Final CTA buttons row ──────────────────────────────────────── */
.aria-final-cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

@media (max-width: 480px) {
    .aria-key-stats {
        gap: 14px;
    }

    .aria-final-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}
