:root {
    --bg: #f7f7ff;
    --primary: #1450de;
    --navy: #102c6d;
    --muted: #475569;
    --faint: #94a3b8;
}

.svc-hero {
    background-color: #f7f7ff;
    background-image: linear-gradient(rgba(20, 80, 222, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(20, 80, 222, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    position: relative;
    overflow: hidden;
    padding: 80px 0 64px;
}

.svc-hero-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1290px;
    margin: 0 auto;
    width: 100%;
}

.svc-hero-content {
    padding-right: 32px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(20, 80, 222, 0.07);
    border: 1px solid rgba(20, 80, 222, 0.22);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 12.5px;
    color: var(--primary);
    font-weight: 500;
    letter-spacing: 0.03em;
    margin-bottom: 1.4rem;
    text-transform: uppercase;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 7px rgba(20, 80, 222, 0.6);
    animation: pulse-dot 1.8s ease-in-out infinite;
}

.svc-hero-sub {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.72;
    max-width: 460px;
    margin-top: 1.2rem;
    margin-bottom: 0;
}

.svc-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 340px;
}

.svc-canvas-wrap {
    width: 100%;
}

h1 {
    margin: auto;
}

.t-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--navy) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.t-accent {
    background: linear-gradient(135deg, var(--navy) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.45;
        transform: scale(0.72);
    }
}

@media (max-width: 767px) {
    .svc-hero {
        padding: 52px 0 44px;
    }

    .svc-hero-content {
        padding-right: 0;
        margin-bottom: 24px;
    }

    .devflow-card {
        max-width: 100%;
    }
}

/* ── Redesigned service cards ── */
.service-two-business-item {
    background: #fff;
    border: 1.5px solid rgba(20, 80, 222, 0.1);
    border-radius: 18px;
    padding: 36px 32px 32px;
    display: flex !important;
    flex-direction: column;
    gap: 0;
    height: auto !important;
    position: relative;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
    box-shadow: 0 4px 20px rgba(16, 44, 109, 0.05);
    overflow: visible !important;
}

.service-two-business-item:hover {
    border-color: rgba(20, 80, 222, 0.3);
    box-shadow: 0 12px 40px rgba(16, 44, 109, 0.12);
    transform: translateY(-4px) !important;
}

.svc-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(20, 80, 222, 0.1) 0%, rgba(16, 44, 109, 0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    padding: 12px;
}

.svc-card-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
    transition: color 0.25s;
}

.svc-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
    line-height: 1.3;
}

.svc-card-desc {
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.68;
    flex: 1;
    margin-bottom: 24px;
}

.svc-card-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-top: auto;
}

.svc-card-arrow svg {
    width: 15px;
    height: 15px;
    transition: .2s all linear;
}

.service-two-business-item:hover .svc-card-arrow svg {
    transform: rotate(-45deg)
}

.svc-card-number {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 11px;
    font-weight: 700;
    color: var(--faint);
    letter-spacing: 0.05em;
}

/* ── APP DEV PIPELINE CARD ──────────────────── */

.devflow-card-wrap {
    width: 100%;
    perspective: 900px;
    display: flex;
    align-items: center;
    justify-content: end;
}

.devflow-card {
    width: 100%;
    max-width: 360px;
    background: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(20, 80, 222, 0.14);
    border-radius: 20px;
    box-shadow: 0 8px 48px rgba(20, 80, 222, 0.14), 0 2px 12px rgba(20, 80, 222, 0.07);
    overflow: hidden;
    animation: float-card 5s ease-in-out infinite;
    transform-style: preserve-3d;
}

@keyframes float-card {

    0%,
    100% {
        transform: rotateX(6deg) rotateY(-6deg) translateY(0px);
    }

    50% {
        transform: rotateX(4deg) rotateY(-4deg) translateY(-10px);
    }
}

/* Chrome bar */
.dfc-chrome {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(20, 80, 222, 0.04);
    border-bottom: 1px solid rgba(20, 80, 222, 0.09);
}

.dfc-wdots {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.dfc-wdots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: block;
}

.dfc-tab {
    flex: 1;
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

.dfc-running-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(20, 80, 222, 0.07);
    border: 1px solid rgba(20, 80, 222, 0.18);
    border-radius: 20px;
    padding: 3px 9px;
    flex-shrink: 0;
}

.dfc-blinker {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    animation: blink-dot 1s ease-in-out infinite;
}

@keyframes blink-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.15;
    }
}

/* Stages list */
.dfc-stages {
    padding: 8px 14px 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dfc-stage {
    display: flex;
    gap: 10px;
    animation: fade-up 0.4s ease calc(var(--dl, 0s)) both;
}

.dfc-stage-dim .dfc-s-name {
    opacity: 0.45;
}

.dfc-stage-dim .dfc-s-sub {
    opacity: 0.35;
}

/* Left track: node + connector line */
.dfc-s-track {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 20px;
    padding-top: 5px;
}

.dfc-s-node {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.dfc-node-done {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.35);
}

.dfc-node-active {
    background: rgba(20, 80, 222, 0.08);
    border: 2px solid var(--primary);
    box-shadow: 0 0 12px rgba(20, 80, 222, 0.32);
    animation: node-pulse 2s ease-in-out infinite;
}

@keyframes node-pulse {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(20, 80, 222, 0.28);
    }

    50% {
        box-shadow: 0 0 20px rgba(20, 80, 222, 0.52);
    }
}

.dfc-node-spin {
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--primary);
    animation: spin-anim 0.9s linear infinite;
}

@keyframes spin-anim {
    to {
        transform: rotate(360deg);
    }
}

.dfc-node-pending {
    background: rgba(148, 163, 184, 0.18);
    border: 2px solid rgba(148, 163, 184, 0.38);
}

.dfc-s-line {
    flex: 1;
    width: 2px;
    background: rgba(20, 80, 222, 0.12);
    position: relative;
    overflow: hidden;
    min-height: 14px;
    margin: 3px 0;
    border-radius: 1px;
}

.dfc-line-faint {
    background: rgba(148, 163, 184, 0.15);
}

.dfc-s-flow {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 6px var(--primary);
    animation: flow-down var(--fd, 2.4s) ease-in-out infinite;
    animation-delay: var(--fo, 0s);
}

.dfc-flow-faint {
    background: var(--faint);
    box-shadow: none;
    opacity: 0.4;
}

@keyframes flow-down {
    0% {
        top: -6px;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: calc(100% + 6px);
        opacity: 0;
    }
}

/* Right: body content */
.dfc-s-body {
    flex: 1;
    min-width: 0;
    padding-bottom: 4px;
}

.dfc-s-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dfc-s-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dfc-s-info {
    flex: 1;
    min-width: 0;
}

.dfc-s-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.2;
}

.dfc-s-sub {
    font-size: 10px;
    color: var(--faint);
    margin-top: 1px;
}

/* Status badges */
.dfc-s-badge {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 600;
    border-radius: 20px;
    padding: 2px 8px;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dfc-badge-done {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.22);
}

.dfc-badge-run {
    background: rgba(20, 80, 222, 0.08);
    color: var(--primary);
    border: 1px solid rgba(20, 80, 222, 0.22);
}

.dfc-badge-wait {
    background: rgba(148, 163, 184, 0.1);
    color: var(--faint);
    border: 1px solid rgba(148, 163, 184, 0.22);
}

/* Progress bar */
.dfc-s-bar {
    height: 3px;
    background: rgba(20, 80, 222, 0.07);
    border-radius: 2px;
    margin-top: 5px;
    overflow: hidden;
}

.dfc-s-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #4c7ef3);
    border-radius: 2px;
    transition: width 0.6s ease;
    width: 0%;
}

.dfc-fill-anim {
    width: 52%;
    animation: fill-progress 4s ease-in-out infinite;
}

@keyframes fill-progress {
    0% {
        width: 52%;
    }

    45% {
        width: 74%;
    }

    70% {
        width: 61%;
    }

    100% {
        width: 52%;
    }
}

/* Footer metrics */
.dfc-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 9px 14px;
    background: rgba(20, 80, 222, 0.03);
    border-top: 1px solid rgba(20, 80, 222, 0.08);
}

.dfc-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.dfc-m-val {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
}

.dfc-m-lbl {
    font-size: 9.5px;
    color: var(--faint);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.dfc-sep {
    width: 1px;
    height: 28px;
    background: rgba(20, 80, 222, 0.1);
}

@media (min-width: 1310px) {
    .w-col {
        padding: 0 !important;
    }
}

@media (max-width: 992px) {
    .devflow-card-wrap {
        justify-content: center;
        margin-top: 30px;
    }

    .devflow-card {
        max-width: 500px;
    }
    .svc-hero-sub {
        max-width: 100% !important;
    }
}
