/* ============================================================
   Atomquark — Why Choose section (Light Flow Layout, no cards)
   4 items linked by a dashed gradient timeline running through
   their icons. Light background, brand cool palette.
   ============================================================ */

.wc-flow-section {
    position: relative;
    padding: 56px 0 56px;
    background:
        radial-gradient(circle at 12% 18%, rgba(6, 182, 212, 0.10) 0%, transparent 38%),
        radial-gradient(circle at 88% 82%, rgba(139, 92, 246, 0.10) 0%, transparent 38%),
        linear-gradient(180deg, #ffffff 0%, #f5f7ff 100%);
    overflow: hidden;
    isolation: isolate;
}

/* Subtle dot grid */
.wc-flow-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(15, 23, 42, 0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(180deg, transparent, black 25%, black 75%, transparent);
    -webkit-mask-image: linear-gradient(180deg, transparent, black 25%, black 75%, transparent);
    opacity: 0.55;
    z-index: 0;
    pointer-events: none;
}

.wc-flow-section > .container { position: relative; z-index: 1; }

/* ----- Header ----- */
.wc-flow-header {
    text-align: center;
    margin-bottom: 36px;
}

.wc-flow-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.13), rgba(139, 92, 246, 0.13));
    border: 1px solid rgba(79, 70, 229, 0.3);
    border-radius: 999px;
    color: #4f46e5;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.wc-flow-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #06b6d4;
    box-shadow: 0 0 12px #06b6d4;
    animation: wc-flow-pulse 2s ease-in-out infinite;
}

@keyframes wc-flow-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.4; transform: scale(1.4); }
}

.wc-flow-title {
    font-size: clamp(22px, 2.8vw, 30px);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0 0 8px;
    background: linear-gradient(135deg, #0f172a 0%, #4f46e5 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.wc-flow-subtitle {
    font-size: 13.5px;
    color: #64748b;
    max-width: 660px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ----- Flow grid ----- */
.wc-flow-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 18px;
}

/* The dashed gradient timeline running through icons */
.wc-flow-grid::before {
    content: "";
    position: absolute;
    top: 56px;            /* aligns with icon vertical center */
    left: 10%;
    right: 10%;
    height: 2px;
    background-image: linear-gradient(90deg,
        transparent 0%,
        #06b6d4 12%, #06b6d4 22%,
        transparent 24%, transparent 28%,
        #4f46e5 30%, #4f46e5 40%,
        transparent 42%, transparent 46%,
        #4f46e5 48%, #4f46e5 58%,
        transparent 60%, transparent 64%,
        #8b5cf6 66%, #8b5cf6 76%,
        transparent 78%, transparent 82%,
        #8b5cf6 84%, #8b5cf6 90%,
        transparent 100%);
    z-index: 0;
    border-radius: 2px;
    opacity: 0.45;
}

/* ----- Item ----- */
.wc-flow-item {
    position: relative;
    text-align: center;
    padding: 0 6px 12px;
}

/* Big faded background numeral */
.wc-flow-item__num {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 84px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -4px;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(180deg, #4f46e5 0%, transparent 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    opacity: 0.08;
}

/* Icon wrapper */
.wc-flow-item__icon-wrap {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    z-index: 1;
}

.wc-flow-item__icon {
    width: 60px;
    height: 60px;
    margin: 6px auto 0;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #ffffff;
    background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 35%, #4f46e5 75%, #8b5cf6 100%);
    box-shadow:
        0 14px 30px -10px rgba(79, 70, 229, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
    position: relative;
    z-index: 2;
}

/* Soft halo behind the icon */
.wc-flow-item__icon-wrap::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.18) 0%, transparent 70%);
    z-index: 0;
    transition: all 0.4s ease;
}

/* Tiny glowing dot pinned on the timeline below the icon */
.wc-flow-item__icon-wrap::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22d3ee, #4f46e5);
    box-shadow: 0 0 0 4px #ffffff, 0 0 14px rgba(79, 70, 229, 0.55);
    z-index: 3;
    transition: all 0.4s ease;
}

.wc-flow-item:hover .wc-flow-item__icon {
    transform: translateY(-6px) scale(1.06);
    box-shadow:
        0 20px 40px -10px rgba(79, 70, 229, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.wc-flow-item:hover .wc-flow-item__icon-wrap::before {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, transparent 70%);
}

.wc-flow-item:hover .wc-flow-item__icon-wrap::after {
    transform: translateX(-50%) scale(1.4);
    box-shadow: 0 0 0 4px #ffffff, 0 0 20px rgba(6, 182, 212, 0.8);
}

/* Title */
.wc-flow-item__title {
    font-size: 15.5px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
    line-height: 1.3;
    letter-spacing: -0.2px;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.wc-flow-item:hover .wc-flow-item__title {
    background: linear-gradient(135deg, #06b6d4, #4f46e5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Description */
.wc-flow-item__text {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.55;
    margin: 0 auto;
    max-width: 220px;
    position: relative;
    z-index: 1;
}

/* ----- Responsive ----- */
@media (max-width: 991.98px) {
    .wc-flow-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
        padding-top: 10px;
    }
    /* Multi-column at mobile — disable the desktop connecting line */
    .wc-flow-grid::before { display: none; }
    .wc-flow-section { padding: 44px 0; }

    .wc-flow-item { padding: 0 4px 8px; }
    .wc-flow-item__num { font-size: 56px; top: -4px; }
    .wc-flow-item__icon-wrap { width: 56px; height: 56px; margin: 0 auto 10px; }
    .wc-flow-item__icon {
        width: 46px;
        height: 46px;
        border-radius: 12px;
    }
    .wc-flow-item__icon i { font-size: 18px; }
    .wc-flow-item__title { font-size: 13px; margin-bottom: 6px; }
    .wc-flow-item__text { font-size: 11px; line-height: 1.4; max-width: 100%; }
}

/* ≤576px — phones: 4 in a row, smaller cells */
@media (max-width: 575.98px) {
    .wc-flow-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    .wc-flow-item { padding: 0 2px 4px; }
    .wc-flow-item__num { font-size: 40px; top: -2px; }
    .wc-flow-item__icon-wrap { width: 44px; height: 44px; margin: 0 auto 8px; }
    .wc-flow-item__icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        margin: 4px auto 0;
    }
    .wc-flow-item__icon i { font-size: 14px; }
    .wc-flow-item__title { font-size: 10.5px; margin-bottom: 4px; line-height: 1.2; }
    .wc-flow-item__text { font-size: 9.5px; line-height: 1.35; }
    /* The decorative pulse dot below the icon is too big at this scale */
    .wc-flow-item__icon-wrap::after {
        width: 6px !important;
        height: 6px !important;
        bottom: -5px !important;
    }
}

/* ≤380px — super-narrow phones: hide descriptive paragraph,
   keep icon + title so the 4-up grid stays clean */
@media (max-width: 380px) {
    .wc-flow-item__text { display: none; }
    .wc-flow-item__title { font-size: 10px; }
}
