/* ==========================================================================
   Dizitalogic AI sections
   Added for the AI capability slider and the "agents at work" visual.
   Kept separate from main.css on purpose: main.css is compiled from
   assets/scss and belongs to the purchased template. Nothing in this file
   overrides a template rule, every selector is scoped to .ai-cap- or
   .ai-flow-. No external font, no external asset, no library.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. AI capability slider
   -------------------------------------------------------------------------- */

.ai-cap-section {
    background-color: var(--bg, #F3F7FB);
    position: relative;
    overflow: hidden;
}

.ai-cap-slider {
    padding-bottom: 10px;
}

.ai-cap-card {
    background-color: var(--white, #fff);
    border: 1px solid var(--border, #E3E3E3);
    border-radius: 16px;
    padding: 38px 34px 34px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow .4s ease-in-out, border-color .4s ease-in-out, transform .4s ease-in-out;
}

.ai-cap-slider .swiper-slide {
    height: auto;
    display: flex;
}

.ai-cap-card:hover,
.ai-cap-card:focus-within {
    border-color: var(--theme, #384BFF);
    box-shadow: 0 18px 40px rgba(24, 24, 94, .12);
    transform: translateY(-4px);
}

.ai-cap-step {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--theme, #384BFF);
    margin-bottom: 14px;
}

.ai-cap-card h3 {
    font-size: 22px;
    line-height: 1.35;
    margin-bottom: 14px;
    color: var(--title-color, #0F0D1D);
}

.ai-cap-card p {
    color: var(--text, #585858);
    margin-bottom: 22px;
}

.ai-cap-tools {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ai-cap-tools li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    line-height: 1;
    padding: 8px 12px;
    border-radius: 40px;
    background-color: var(--bg, #F3F7FB);
    border: 1px solid var(--border, #E3E3E3);
    color: var(--title-color, #0F0D1D);
    white-space: nowrap;
}

/* placeholder mark that becomes a real brand SVG once logo licensing is confirmed */
.ai-cap-tools li::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--theme, #384BFF);
    flex: 0 0 auto;
}

.ai-cap-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--title-color, #0F0D1D);
    transition: color .3s ease-in-out, gap .3s ease-in-out;
}

.ai-cap-link i {
    color: var(--theme, #384BFF);
}

.ai-cap-link:hover,
.ai-cap-link:focus-visible {
    color: var(--theme, #384BFF);
    gap: 16px;
}

/* arrows and dots reuse the template's visual language */
.ai-cap-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 42px;
}

.ai-cap-nav button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--border, #E3E3E3);
    background-color: var(--white, #fff);
    color: var(--title-color, #0F0D1D);
    transition: all .4s ease-in-out;
}

.ai-cap-nav button:hover,
.ai-cap-nav button:focus-visible {
    background-color: var(--theme, #384BFF);
    border-color: var(--theme, #384BFF);
    color: var(--white, #fff);
}

.ai-cap-dots {
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto !important;
}

.ai-cap-dots .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    margin: 0 !important;
    background-color: transparent;
    border: 2px solid var(--theme, #384BFF);
    opacity: .45;
    transition: all .3s ease-in-out;
}

.ai-cap-dots .swiper-pagination-bullet-active {
    background-color: var(--theme, #384BFF);
    opacity: 1;
    width: 26px;
    border-radius: 6px;
}

/* --------------------------------------------------------------------------
   2. Agents at work visual
   -------------------------------------------------------------------------- */

.ai-flow-section {
    background-color: var(--theme2, #18185E);
    position: relative;
    overflow: hidden;
}

.ai-flow-section .section-title .title,
.ai-flow-section .section-title h2 {
    color: var(--white, #fff);
}

.ai-flow-section .ai-flow-intro {
    color: var(--text-2, #ffffffcc);
    max-width: 640px;
}

.ai-flow-stage {
    margin-top: 46px;
    border: 1px solid var(--border2, #242449);
    border-radius: 18px;
    background-color: rgba(255, 255, 255, .03);
    padding: 26px 26px 20px;
}

/* the SVG carries its own aspect ratio, so the box never shifts on load */
.ai-flow-diagram {
    display: block;
    width: 100%;
    height: auto;
}

.ai-flow-node {
    fill: rgba(255, 255, 255, .05);
    stroke: #3B3B7A;
    stroke-width: 1;
}

.ai-flow-node-core {
    fill: rgba(56, 75, 255, .18);
    stroke: var(--theme, #384BFF);
    stroke-width: 1.5;
}

.ai-flow-label {
    fill: #fff;
    font-size: 15px;
    font-weight: 600;
}

.ai-flow-sub {
    fill: #A7A7D6;
    font-size: 12px;
}

.ai-flow-kicker {
    fill: #8E8ECB;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
}

.ai-flow-wire {
    fill: none;
    stroke: #35357A;
    stroke-width: 1.5;
}

.ai-flow-wire-back {
    fill: none;
    stroke: #2C7A63;
    stroke-width: 1.5;
    stroke-dasharray: 5 5;
}

/* travelling pulses */
.ai-flow-pulse {
    fill: var(--theme, #384BFF);
    offset-rotate: 0deg;
    animation: aiFlowTravel 3.2s linear infinite;
}

.ai-flow-pulse-back {
    fill: #3FBF98;
    animation: aiFlowTravel 3.6s linear infinite;
}

.ai-flow-pulse-2 { animation-delay: .8s; }
.ai-flow-pulse-3 { animation-delay: 1.6s; }
.ai-flow-pulse-4 { animation-delay: 2.4s; }

@keyframes aiFlowTravel {
    0%   { offset-distance: 0%;   opacity: 0; }
    8%   { opacity: 1; }
    88%  { opacity: 1; }
    100% { offset-distance: 100%; opacity: 0; }
}

/* model badges light up in turn */
.ai-flow-badge rect {
    fill: rgba(255, 255, 255, .06);
    stroke: #3B3B7A;
    stroke-width: 1;
    animation: aiFlowBadge 6s ease-in-out infinite;
}

.ai-flow-badge text {
    fill: #C9C9EC;
    font-size: 12px;
    font-weight: 600;
    animation: aiFlowBadgeText 6s ease-in-out infinite;
}

.ai-flow-badge:nth-of-type(1) rect,
.ai-flow-badge:nth-of-type(1) text { animation-delay: 0s; }
.ai-flow-badge:nth-of-type(2) rect,
.ai-flow-badge:nth-of-type(2) text { animation-delay: 1.2s; }
.ai-flow-badge:nth-of-type(3) rect,
.ai-flow-badge:nth-of-type(3) text { animation-delay: 2.4s; }
.ai-flow-badge:nth-of-type(4) rect,
.ai-flow-badge:nth-of-type(4) text { animation-delay: 3.6s; }
.ai-flow-badge:nth-of-type(5) rect,
.ai-flow-badge:nth-of-type(5) text { animation-delay: 4.8s; }

@keyframes aiFlowBadge {
    0%, 8%    { fill: rgba(255,255,255,.06); stroke: #3B3B7A; }
    12%, 22%  { fill: rgba(56,75,255,.30);   stroke: #6E7CFF; }
    30%, 100% { fill: rgba(255,255,255,.06); stroke: #3B3B7A; }
}

@keyframes aiFlowBadgeText {
    0%, 8%    { fill: #C9C9EC; }
    12%, 22%  { fill: #FFFFFF; }
    30%, 100% { fill: #C9C9EC; }
}

/* status chips cycle through routing, thinking, tool call, done */
.ai-flow-status text {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    opacity: 0;
    animation: aiFlowStatus 8s linear infinite;
}

.ai-flow-status text:nth-of-type(1) { fill: #8FA0FF; animation-delay: 0s; }
.ai-flow-status text:nth-of-type(2) { fill: #F3B24C; animation-delay: 2s; }
.ai-flow-status text:nth-of-type(3) { fill: #6ED0FF; animation-delay: 4s; }
.ai-flow-status text:nth-of-type(4) { fill: #3FBF98; animation-delay: 6s; }

@keyframes aiFlowStatus {
    0%, 1%    { opacity: 0; }
    3%, 22%   { opacity: 1; }
    25%, 100% { opacity: 0; }
}

/* metrics strip: illustrative counters that climb */
.ai-flow-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--border2, #242449);
}

.ai-flow-metric {
    text-align: center;
}

.ai-flow-metric-label {
    display: block;
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #9C9CD8;
    margin-top: 6px;
}

/* the reel: a column of values that steps upward, so the number climbs */
.ai-flow-reel {
    height: 42px;
    overflow: hidden;
    position: relative;
}

.ai-flow-reel ul {
    list-style: none;
    margin: 0;
    padding: 0;
    animation: aiFlowReel 7s cubic-bezier(.6, 0, .2, 1) infinite;
}

.ai-flow-reel li {
    height: 42px;
    line-height: 42px;
    font-size: 30px;
    font-weight: 700;
    color: #fff;
}

@keyframes aiFlowReel {
    0%, 18%    { transform: translateY(0); }
    25%, 43%   { transform: translateY(-42px); }
    50%, 68%   { transform: translateY(-84px); }
    75%, 93%   { transform: translateY(-126px); }
    100%       { transform: translateY(-168px); }
}

.ai-flow-note {
    margin: 18px 0 0;
    font-size: 13px;
    color: #8E8ECB;
    text-align: center;
}

@media (max-width: 575px) {
    .ai-flow-metrics {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .ai-flow-stage {
        padding: 18px 14px 14px;
    }
    .ai-cap-card {
        padding: 30px 24px 28px;
    }
}

/* --------------------------------------------------------------------------
   3. Reduced motion: everything settles into a readable static state
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .ai-flow-pulse,
    .ai-flow-pulse-back {
        animation: none;
        offset-distance: 55%;
        opacity: 1;
    }

    .ai-flow-badge rect {
        animation: none;
        fill: rgba(56, 75, 255, .22);
        stroke: #6E7CFF;
    }

    .ai-flow-badge text {
        animation: none;
        fill: #fff;
    }

    /* show only the settled "done" chip rather than cycling through four */
    .ai-flow-status text {
        animation: none;
        opacity: 0;
    }

    .ai-flow-status text:nth-of-type(4) {
        opacity: 1;
    }

    /* rest on the highest value rather than the loop's reset frame */
    .ai-flow-reel ul {
        animation: none;
        transform: translateY(-126px);
    }

    .ai-cap-card,
    .ai-cap-link,
    .ai-cap-nav button {
        transition: none;
    }

    .ai-cap-card:hover,
    .ai-cap-card:focus-within {
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   4. Engagement models (replaces the template's hosting price table)
   -------------------------------------------------------------------------- */

.eng-section {
    background-color: var(--bg, #F3F7FB);
}

.eng-card {
    background-color: var(--white, #fff);
    border: 1px solid var(--border, #E3E3E3);
    border-radius: 16px;
    padding: 38px 32px 34px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow .4s ease-in-out, border-color .4s ease-in-out;
}

.eng-card:hover,
.eng-card:focus-within {
    border-color: var(--theme, #384BFF);
    box-shadow: 0 18px 40px rgba(24, 24, 94, .10);
}

.eng-card h3 {
    font-size: 22px;
    margin-bottom: 8px;
    color: var(--title-color, #0F0D1D);
}

.eng-suits {
    font-size: 14px;
    font-weight: 600;
    color: var(--theme, #384BFF);
    margin-bottom: 18px;
}

.eng-card p {
    color: var(--text, #585858);
    margin-bottom: 20px;
}

.eng-runs {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
}

.eng-runs li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
    color: var(--text, #585858);
}

.eng-runs li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid var(--theme, #384BFF);
}

.eng-foot {
    margin-top: auto;
    padding-top: 6px;
    font-size: 14px;
    color: var(--title-color, #0F0D1D);
    font-weight: 600;
}

.eng-cta {
    text-align: center;
    margin-top: 46px;
}

.eng-cta p {
    color: var(--text, #585858);
    margin-bottom: 18px;
}

@media (prefers-reduced-motion: reduce) {
    .eng-card { transition: none; }
}
