/* ============================================
   AI VIDEO AGENT landing page (ai-video-agent/)
   Hero holds the live MaxIA Video Agent demo, the same widget Video Call page as the home page hero:
   it loads into the frame only when the visitor clicks, so visitors who never start a call load nothing.
   ============================================ */

.cm1-vagent
{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
}

.cm1-vagent-eyebrow
{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #8A99B0;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.cm1-vagent-live-dot
{
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #16A34A;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
    animation: cm1-vagent-pulse 1.8s ease-in-out infinite;
}

@keyframes cm1-vagent-pulse
{
    0%, 100% { box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18); }
    50% { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.06); }
}

/* Square on desktop: the presenter is a portrait video, so a square shows head and shoulders where a wide frame
   would crop to a close-up of the face; the Video Call page reads the frame's shape and fills it edge to edge */
.cm1-vagent-frame
{
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #E5EAF2;
    background: radial-gradient(120% 90% at 50% 0%, #1f3a6b 0%, #0E2138 70%);
    box-shadow: 0 24px 60px rgba(14, 33, 56, 0.18), 0 4px 12px rgba(14, 33, 56, 0.08);
}

.cm1-vagent-frame iframe
{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #0E2138;
}

/* Poster shown before the call loads: the presenter with a play button, like a video thumbnail */
.cm1-vagent-start
{
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ffffff;
    text-align: left;
    cursor: pointer;
}

/* Same crop as the live video (anchored near the top), so the face does not jump when the call starts */
.cm1-vagent-poster
{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 15%;
    transition: transform 0.4s ease;
}

.cm1-vagent-start::after
{
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(14, 33, 56, 0.85) 0%, rgba(14, 33, 56, 0.25) 38%, rgba(14, 33, 56, 0) 60%);
    pointer-events: none;
}

.cm1-vagent-play
{
    position: absolute;
    left: 22px; /* beside the caption, so it never covers the face */
    bottom: 20px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #0E2138;
    font-size: 20px;
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.22), 0 12px 30px rgba(14, 33, 56, 0.35);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.cm1-vagent-play i
{
    margin-left: 3px; /* the play triangle reads centred when nudged right */
}

.cm1-vagent-caption
{
    position: absolute;
    left: 94px;
    right: 22px;
    bottom: 22px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cm1-vagent-caption-title
{
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.cm1-vagent-caption-sub
{
    font-size: 14px;
    color: rgba(255, 255, 255, 0.78);
}

.cm1-vagent-start:hover .cm1-vagent-poster
{
    transform: scale(1.03);
}

.cm1-vagent-start:hover .cm1-vagent-play
{
    transform: scale(1.08);
    background: #16A34A;
    color: #ffffff;
}

.cm1-vagent-start:focus-visible
{
    outline: 3px solid #8fd6f6;
    outline-offset: -6px;
    border-radius: 20px;
}

.cm1-vagent-foot
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    width: 100%;
    max-width: 480px;
    font-size: 13px;
    color: #5C6E8A;
}

.cm1-vagent-foot i
{
    margin-right: 4px;
}

.cm1-vagent-foot a
{
    font-weight: 600;
    color: #3b7ddd;
    text-decoration: none;
}

.cm1-vagent-foot a i
{
    margin: 0 0 0 4px;
}

.cm1-vagent-foot a:hover
{
    text-decoration: underline;
}

/* Phones: portrait frame, the same crop as the popup widget */
@media (max-width: 767px)
{
    .cm1-vagent-frame
    {
        aspect-ratio: 4 / 5;
        max-width: 420px;
    }

    .cm1-vagent-foot
    {
        justify-content: center;
        text-align: center;
    }
}

/* Loading: the poster stays over the widget until it has loaded */
.cm1-vagent-start
{
    z-index: 3;
}

.cm1-vagent-start.is-loading
{
    cursor: progress;
}

.cm1-vagent-start.is-loading .cm1-vagent-play i
{
    margin-left: 0;
}

/* The hero is the blue bg-gradient-info band, so the eyebrow and foot read in white */
.bg-gradient-info .cm1-vagent-eyebrow
{
    color: rgba(255, 255, 255, 0.85);
}

.bg-gradient-info .cm1-vagent-foot
{
    color: rgba(255, 255, 255, 0.8);
}

.bg-gradient-info .cm1-vagent-foot a
{
    color: #ffffff;
}

.bg-gradient-info .cm1-vagent-frame
{
    border-color: rgba(255, 255, 255, 0.25);
}

/* Explainer video: YouTube thumbnail until clicked, then the player loads in place */
.cm1-vagent-explainer
{
    position: relative;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: #0E2138;
    box-shadow: 0 24px 60px rgba(14, 33, 56, 0.18), 0 4px 12px rgba(14, 33, 56, 0.08);
}

.cm1-vagent-explainer iframe
{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.cm1-vagent-explainer-play
{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.cm1-vagent-explainer-play img
{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cm1-vagent-explainer-play-icon
{
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin: -38px 0 0 -38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #0E2138;
    font-size: 26px;
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.22), 0 12px 30px rgba(14, 33, 56, 0.35);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.cm1-vagent-explainer-play-icon i
{
    margin-left: 4px;
}

.cm1-vagent-explainer-play:hover .cm1-vagent-explainer-play-icon
{
    transform: scale(1.08);
    background: #3b7ddd;
    color: #ffffff;
}

.cm1-vagent-explainer-play:focus-visible
{
    outline: 3px solid #8fd6f6;
    outline-offset: -6px;
}

/* Comparison table: the Video Agent column stands out */
.cm1-vagent-compare th.cm1-vagent-compare-hl,
.cm1-vagent-compare td.cm1-vagent-compare-hl
{
    background: #eef4ff;
    font-weight: 600;
}
