/* ==========================================================
   Flow chart - V TECH throws services out, clients collect them
   (index.html; built and animated by assets/js/flow-chart.js)
   ========================================================== */

.flow__section {
    position: relative;
    overflow: hidden;
    padding: 90px 0 100px;
    background:
        radial-gradient(ellipse 40% 45% at 50% 55%, rgba(139, 79, 209, .2), transparent 70%);
}
.flow-head {
    text-align: center;
    margin-bottom: 20px;
}
.flow-kicker {
    font-family: Archivo, sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: #bc2e90;
    margin-bottom: 10px;
}
.flow-title {
    font-family: Archivo, sans-serif;
    font-size: 48px;
    line-height: 1.15;
    font-weight: 700;
    color: #fff;
}
.flow-stage {
    max-width: 1100px;
    margin: 0 auto;
}
.flow-svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

/* ---------- connection lines ---------- */
.flow-track {
    fill: none;
    stroke: rgba(255, 255, 255, .08);
    stroke-width: 10;
    stroke-linecap: round;
}
.flow-current {
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 14 12;
    opacity: .55;
}
.is-running .flow-current {
    animation: flow-current 1.2s linear infinite;
}

/* ---------- hub ---------- */
.flow-hub-body {
    filter: drop-shadow(0 0 24px rgba(192, 86, 230, .6));
}
.flow-hub-ring {
    fill: none;
    stroke: rgba(226, 51, 143, .5);
    stroke-width: 2;
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
}
.is-running .flow-hub-ring {
    animation: flow-ring 3s ease-out infinite;
}
.is-running .flow-hub-ring.r2 {
    animation-delay: 1.5s;
}
.flow-hub-core {
    transform-box: fill-box;
    transform-origin: center;
}
.flow-hub.is-throwing .flow-hub-core {
    animation: flow-throw .35s ease-out;
}

/* ---------- clients ---------- */
.flow-client-pop {
    transform-box: fill-box;
    transform-origin: center;
}
.flow-client-body {
    fill: #141a3a;
    stroke: rgba(255, 255, 255, .28);
    stroke-width: 2;
    transition: stroke .3s ease;
}
.flow-client-flash {
    fill: none;
    stroke: #f6a13a;
    stroke-width: 3;
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
}
.flow-icon,
.flow-token-icon {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    dominant-baseline: middle;
}
.flow-icon {
    fill: #fff;
    font-size: 26px;
    text-anchor: middle;
}
.flow-client-label {
    fill: rgba(255, 255, 255, .85);
    font: 600 16px/1 Archivo, sans-serif;
    text-anchor: middle;
}
.flow-bar-bg {
    fill: rgba(255, 255, 255, .1);
}
.flow-bar-fill {
    fill: url(#flowLine);
    transition: width .5s cubic-bezier(.3, 1.3, .5, 1);
}
.flow-client.is-catching .flow-client-pop {
    animation: flow-catch .5s cubic-bezier(.3, 1.6, .5, 1);
}
.flow-client.is-catching .flow-client-flash {
    animation: flow-flash .6s ease-out;
}
.flow-client.is-full .flow-client-pop {
    animation: flow-catch .7s cubic-bezier(.3, 1.6, .5, 1);
}
.flow-client.is-full .flow-client-flash {
    stroke: #e2338f;
    animation: flow-flash .9s ease-out;
}
.flow-client.is-full .flow-client-body {
    stroke: #f6a13a;
}

/* ---------- service chips in flight ---------- */
.flow-token {
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .45));
}
.flow-token-icon {
    fill: #fff;
    font-size: 13px;
    text-anchor: middle;
}
.flow-token-label {
    fill: #fff;
    font: 600 14px/1 Archivo, sans-serif;
    dominant-baseline: middle;
}

/* narrow (phone) layout uses a smaller viewBox, so bump text a little */
.flow-svg.is-narrow .flow-client-label {
    font-size: 17px;
}

/* ---------- keyframes ---------- */
@keyframes flow-current {
    to { stroke-dashoffset: -26; }
}
@keyframes flow-ring {
    0% { opacity: .8; transform: scale(.75); }
    100% { opacity: 0; transform: scale(1.35); }
}
@keyframes flow-throw {
    0% { transform: scale(1); }
    40% { transform: scale(1.08); }
    100% { transform: scale(1); }
}
@keyframes flow-catch {
    0% { transform: scale(1); }
    40% { transform: scale(1.18); }
    100% { transform: scale(1); }
}
@keyframes flow-flash {
    0% { opacity: .9; transform: scale(.9); }
    100% { opacity: 0; transform: scale(1.5); }
}

/* ---------- responsive ---------- */
@media (max-width: 991px) {
    .flow-title { font-size: 40px; }
}
@media (max-width: 767px) {
    .flow__section { padding: 60px 0 70px; }
    .flow-title { font-size: 30px; }
    .flow-kicker { font-size: 12px; letter-spacing: .2em; }
}
