/* AI Agents landing page */

.ai-agents-page .aa-hero-visual {
    background: #fff;
    border: 1px solid var(--bs-border-color, #e2e8f0);
    line-height: 0;
}

.ai-agents-page .aa-hero-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.ai-agents-page .aa-hero-video {
    position: relative;
    background: #fff;
}

.ai-agents-page .aa-hero-video-link {
    display: block;
    position: relative;
    line-height: 0;
    color: inherit;
}

.ai-agents-page .aa-hero-video-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
}

.ai-agents-page .aa-hero-video-link:focus-visible {
    outline: 3px solid rgba(43, 92, 253, 0.55);
    outline-offset: 3px;
}

.ai-agents-page .aa-hero-video-btn-wrap {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.ai-agents-page .aa-hero-video-btn {
    position: relative;
    top: auto;
    left: auto;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background: #2b5cfd;
    color: #fff;
    transform: none;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.28);
}

.ai-agents-page .aa-hero-video-btn .nk-fcp-icon,
.ai-agents-page .aa-hero-video-btn .nk-fcp-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #fff;
}

.ai-agents-page .aa-hero-video-link:hover .aa-hero-video-btn {
    transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
    .ai-agents-page .aa-hero-video-btn.animate {
        animation: none;
    }
}

.aa-yt-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(7, 18, 43, 0.88);
}

.aa-yt-close {
    position: absolute;
    top: 0.75rem;
    right: 0.9rem;
    z-index: 2;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

.aa-yt-close:hover,
.aa-yt-close:focus-visible {
    background: rgba(255, 255, 255, 0.22);
}

.aa-yt-frame {
    width: min(100%, 960px);
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 0.75rem;
    background: #000;
    box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.35);
}

.aa-yt-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.ai-agents-page .aa-hero-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
    row-gap: 0;
    max-width: 42rem;
    margin: 1.875rem auto 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

@media (min-width: 768px) {
    .ai-agents-page .aa-hero-chips {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-width: 46rem;
        column-gap: 1.5rem;
        row-gap: 0;
    }
}

.ai-agents-page .aa-hero-chip {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    min-height: 1.75rem;
    margin: 0;
    color: var(--bs-gray-800, #64728f);
    font-weight: 500;
}

.ai-agents-page .aa-hero-chip .nk-fcp-icon,
.ai-agents-page .aa-hero-chip .nk-fcp-icon.critical-size-sm {
    width: 1rem;
    height: 1rem;
    max-width: 1rem;
    max-height: 1rem;
    color: var(--bs-primary, #2b5cfd);
}
.ai-agents-page .aa-hero-chip .nk-fcp-icon svg {
    width: 1rem;
    height: 1rem;
    max-width: 1rem;
    max-height: 1rem;
}
.ai-agents-page .aa-hero-chip > span:not(.nk-fcp-icon) {
    white-space: nowrap;
    font-size: 14px;
    line-height: 1.3;
}

@media (max-width: 575.98px) {
    .ai-agents-page .aa-hero-chip > span:not(.nk-fcp-icon) {
        font-size: 13px;
    }
}

.ai-agents-page .aa-how-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .ai-agents-page .aa-how-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }
}

@media (min-width: 1200px) {
    .ai-agents-page .aa-how-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .ai-agents-page .aa-how-card:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 2.35rem;
        right: -0.8rem;
        width: 1.6rem;
        height: 2px;
        background: #c7d2fe;
    }
}

.ai-agents-page .aa-how-card {
    position: relative;
    height: 100%;
    padding: 1.5rem 1.35rem 1.35rem;
    background: #fff;
    border: 1px solid var(--bs-border-color, #e5e7eb);
    border-radius: 1rem;
    text-align: left;
    box-shadow: 0 0.5rem 1.5rem rgba(15, 23, 42, 0.05);
}

.ai-agents-page .aa-how-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: var(--bs-primary, #2b5cfd);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
}

.ai-agents-page .aa-how-card h3 {
    margin-bottom: 0.5rem;
}

.ai-agents-page .aa-how-tag {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.25rem 0.625rem;
    border-radius: 2rem;
    background: var(--bs-primary-bg-subtle, #eef2ff);
    color: var(--bs-primary, #2b5cfd);
    font-size: 0.75rem;
    font-weight: 700;
}

.ai-agents-page .aa-action-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.75rem 1.5rem 1.5rem;
    background: #fff;
    border: 1px solid transparent;
    border-radius: 1.25rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ai-agents-page .aa-action-card:hover {
    transform: translateY(-4px);
    border-color: rgba(43, 92, 253, 0.18);
    box-shadow: 0 1rem 2.25rem rgba(15, 23, 42, 0.1);
}

.ai-agents-page .aa-action-card__head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #eef2f7;
}

.ai-agents-page .aa-action-card__head .h6 {
    letter-spacing: -0.02em;
    color: #0a1425;
}

.ai-agents-page .aa-action-card__lead {
    font-size: 0.875rem;
    line-height: 1.55;
    font-weight: 400;
    color: #64728f;
}

.ai-agents-page .aa-action-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ai-agents-page .aa-action-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #1c2b43;
    line-height: 1.35;
}

.ai-agents-page .aa-action-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.375rem;
    height: 1.375rem;
    flex-shrink: 0;
    border-radius: 50%;
    background: #e9f9ef;
    color: #22c55e;
}

.ai-agents-page .aa-action-check .icon {
    font-size: 0.75rem;
    line-height: 1;
}

.ai-agents-page .aa-definition-block {
    border-radius: 1rem;
}

.ai-agents-page .aa-definition-aside {
    background: var(--bs-primary-bg-subtle, #e8f0fe);
}

@media (max-width: 991.98px) {
    .ai-agents-page .aa-definition-block .border-start {
        border-left: none !important;
        border-top: 1px solid var(--bs-border-color) !important;
    }
}

.ai-agents-page [id^="aa-"] {
    scroll-margin-top: 6.5rem;
}

.ai-agents-page .aa-agent-card {
    border: 1px solid var(--bs-border-color);
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.ai-agents-page .aa-agent-card:hover {
    border-color: rgba(var(--bs-primary-rgb), 0.35);
    box-shadow: 0 0.75rem 2rem rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.ai-agents-page .aa-compare-old {
    border-left: 3px solid var(--bs-secondary);
}

.ai-agents-page .aa-compare-new {
    border-left: 3px solid var(--bs-primary);
}

.ai-agents-page .aa-how-example-label {
    margin: 2.5rem 0 1rem;
    color: var(--bs-gray-800, #64728f);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
}

.ai-agents-page .aa-journey-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    justify-content: center;
    justify-items: center;
    align-items: center;
    gap: 0.75rem 1.25rem;
}

.ai-agents-page .aa-journey-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 992px) {
    .ai-agents-page .aa-journey-rail {
        grid-template-columns: repeat(3, minmax(0, max-content));
    }
}

.ai-agents-page .aa-journey-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    background: #fff;
    border: 1px solid var(--bs-border-color);
    border-radius: 2rem;
    font-size: 0.8125rem;
    font-weight: 500;
}

.ai-agents-page .aa-journey-chip strong {
    color: var(--bs-primary);
}

.ai-agents-page .aa-journey-arrow {
    display: none;
    color: var(--bs-gray-500);
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .ai-agents-page .aa-journey-step:not(:last-child):not(:nth-child(2n)) .aa-journey-arrow {
        display: inline-block;
    }
}

@media (min-width: 992px) {
    .ai-agents-page .aa-journey-step:not(:last-child):not(:nth-child(2n)) .aa-journey-arrow {
        display: none;
    }

    .ai-agents-page .aa-journey-step:not(:last-child):not(:nth-child(3n)) .aa-journey-arrow {
        display: inline-block;
    }
}

.ai-agents-page .aa-prompt-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8125rem;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.25rem;
}

.ai-agents-page .aa-prompt-code .aa-token {
    display: inline-block;
    background: rgba(76, 111, 255, 0.25);
    color: #93c5fd;
    border-radius: 0.375rem;
    padding: 0.125rem 0.375rem;
    margin: 0.125rem 0;
}

.ai-agents-page .aa-memory-card {
    background: #fff;
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 0.75rem 2rem rgba(15, 23, 42, 0.06);
}

.ai-agents-page .aa-memory-card-head {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--bs-border-color);
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.ai-agents-page .aa-memory-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    border-bottom: 1px solid var(--bs-border-color);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--bs-gray-800, #1e293b);
}

.ai-agents-page .aa-memory-list li:last-child {
    border-bottom: none;
}

.ai-agents-page .aa-memory-list li .icon {
    font-size: 1.125rem;
    flex-shrink: 0;
}

.ai-agents-page .aa-memory-list li span:nth-child(2) {
    flex: 1;
    min-width: 0;
}

.ai-agents-page .aa-memory-badge {
    flex-shrink: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--bs-primary);
    background: var(--bs-primary-bg-subtle, #e8f0fe);
    border-radius: 2rem;
    padding: 0.25rem 0.625rem;
}
