/**
 * Trust2 — Process section (futuristic)
 */

body.frontend-futuristic .fe-process-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--fe-bg) 0%, var(--fe-bg-alt) 50%, var(--fe-bg) 100%) !important;
}

body.frontend-futuristic .fe-process-section__decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    color: rgba(255, 255, 255, 0.05);
}

body.frontend-futuristic .fe-process-bg__grid {
    width: 100%;
    height: 100%;
    animation: feProcessGridDrift 50s linear infinite;
}

body.frontend-futuristic .fe-process-bg__flow {
    animation: feProcessFlowPulse 4s ease-in-out infinite;
}

body.frontend-futuristic .fe-process-bg__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.4;
}

body.frontend-futuristic .fe-process-bg__orb--1 {
    width: 420px;
    height: 420px;
    top: -8%;
    left: -5%;
    background: color-mix(in srgb, var(--color-primary) 30%, transparent);
    animation: feProcessOrb 20s ease-in-out infinite;
}

body.frontend-futuristic .fe-process-bg__orb--2 {
    width: 360px;
    height: 360px;
    bottom: -10%;
    right: -6%;
    background: rgba(139, 92, 246, 0.14);
    animation: feProcessOrb 24s ease-in-out infinite reverse;
}

body.frontend-futuristic .fe-process-section .container {
    z-index: 1;
}

body.frontend-futuristic .fe-process-section__head {
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.75rem;
    text-align: center;
}

body.frontend-futuristic .fe-process-section__head h2 {
    font-size: clamp(1.65rem, 2.5vw, 2.15rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

body.frontend-futuristic .fe-process-section__head p {
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--fe-muted);
}

/* —— Step track —— */
body.frontend-futuristic .fe-process-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

body.frontend-futuristic .fe-process-step {
    position: relative;
    min-width: 0;
}

body.frontend-futuristic .fe-process-step__inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0 0 1.35rem;
    border-radius: 19px;
    background: linear-gradient(155deg, rgba(17, 24, 39, 0.97) 0%, rgba(8, 14, 24, 0.99) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body.frontend-futuristic .fe-process-step {
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--color-primary) 35%, transparent),
        rgba(255, 255, 255, 0.05) 45%,
        color-mix(in srgb, #8b5cf6 25%, transparent)
    );
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.frontend-futuristic .fe-process-step:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

body.frontend-futuristic .fe-process-step:hover .fe-process-step__inner {
    border-color: color-mix(in srgb, var(--color-primary) 35%, transparent);
}

body.frontend-futuristic .fe-process-step__glow {
    position: absolute;
    inset: 0;
    border-radius: 19px;
    background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--color-primary) 18%, transparent), transparent 65%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 1;
}

body.frontend-futuristic .fe-process-step:hover .fe-process-step__glow {
    opacity: 1;
}

body.frontend-futuristic .fe-process-step__ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    max-width: 220px;
    transform: translate(-50%, -50%);
    color: var(--color-primary);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

body.frontend-futuristic .fe-process-step__corner {
    position: absolute;
    width: 18px;
    height: 18px;
    color: var(--color-primary);
    opacity: 0.55;
    pointer-events: none;
    z-index: 3;
}

body.frontend-futuristic .fe-process-step__corner--tl {
    top: 10px;
    left: 10px;
}

body.frontend-futuristic .fe-process-step__corner--br {
    bottom: 10px;
    right: 10px;
}

body.frontend-futuristic .fe-process-step__header {
    position: relative;
    margin-bottom: 0.25rem;
}

body.frontend-futuristic .fe-process-step__num {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.35rem;
    height: 2.35rem;
    padding: 0 0.45rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary), #8b5cf6);
    box-shadow: 0 4px 16px color-mix(in srgb, var(--color-primary) 35%, transparent);
}

body.frontend-futuristic .fe-process-step__visual {
    position: relative;
    width: 100%;
    height: 132px;
    margin-bottom: 0.5rem;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.frontend-futuristic .fe-process-step__visual-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--color-primary) 22%, transparent), transparent 45%),
        radial-gradient(circle at 85% 70%, rgba(139, 92, 246, 0.12), transparent 40%);
    pointer-events: none;
}

body.frontend-futuristic .fe-process-step__illus {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0.5rem 0.75rem 0.25rem;
    transition: transform 0.45s ease, opacity 0.35s ease;
}

body.frontend-futuristic .fe-process-step:hover .fe-process-step__illus {
    transform: scale(1.04) translateY(-2px);
}

body.frontend-futuristic .fe-process-step__illus-line,
body.frontend-futuristic .fe-process-step__illus-chart {
    stroke-dasharray: 120;
    stroke-dashoffset: 120;
    animation: feProcessDrawLine 2.2s ease forwards;
}

body.frontend-futuristic .fe-process-step__illus-dot {
    animation: feProcessPulseDot 2.4s ease-in-out infinite;
}

body.frontend-futuristic .fe-process-step__illus-orbit {
    transform-origin: 248px 64px;
    animation: feProcessOrbitSpin 8s linear infinite;
}

body.frontend-futuristic .fe-process-step__illus-arrow {
    animation: feProcessArrowNudge 1.8s ease-in-out infinite;
}

body.frontend-futuristic .fe-process-step__illus-arrow--2 {
    animation-delay: 0.4s;
}

body.frontend-futuristic .fe-process-step__illus-spark {
    animation: feProcessSpark 2s ease-in-out infinite;
}

body.frontend-futuristic .fe-process-step__scanline {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    opacity: 0.35;
    animation: feProcessScanline 3.5s linear infinite;
    pointer-events: none;
}

body.frontend-futuristic .fe-process-step__title-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
}

body.frontend-futuristic .fe-process-step__icon-badge {
    flex-shrink: 0;
    width: 2.35rem;
    height: 2.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(8, 14, 24, 0.75);
    border: 1px solid color-mix(in srgb, var(--color-primary) 35%, transparent);
    color: var(--color-primary);
    font-size: 1rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

body.frontend-futuristic .fe-process-step__icon-badge svg {
    width: 1.1rem;
    height: 1.1rem;
}

body.frontend-futuristic .fe-process-step__icon-badge i {
    font-size: 1.1rem;
    line-height: 1;
}

body.frontend-futuristic .fe-process-step__body {
    padding: 0 1.35rem;
}

body.frontend-futuristic .fe-process-step__title-row h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--fe-text);
}

body.frontend-futuristic .fe-process-step__body p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--fe-muted);
}

/* Featured last step accent (legacy pattern) */
body.frontend-futuristic .fe-process-step:last-child {
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--color-primary) 50%, transparent),
        color-mix(in srgb, #8b5cf6 35%, transparent)
    );
}

/* Hide legacy process markup if present */
body.frontend-futuristic .fe-process-section .process-item {
    display: none;
}

@media (min-width: 992px) {
    body.frontend-futuristic .fe-process-track {
        gap: 1.5rem;
    }
}

@media (max-width: 991px) {
    body.frontend-futuristic .fe-process-track {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 28rem;
        margin-left: auto;
        margin-right: auto;
        padding-left: 1rem;
        border-left: 2px solid color-mix(in srgb, var(--color-primary) 25%, transparent);
    }

    body.frontend-futuristic .fe-process-step {
        position: relative;
    }

    body.frontend-futuristic .fe-process-step::before {
        content: "";
        position: absolute;
        left: -1.35rem;
        top: 4.25rem;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--color-primary);
        box-shadow: 0 0 12px var(--color-primary);
        z-index: 2;
    }
}

@media (max-width: 575px) {
    body.frontend-futuristic .fe-process-section__head {
        margin-bottom: 2rem;
    }

    body.frontend-futuristic .fe-process-step__inner {
        padding-bottom: 1.15rem;
    }

    body.frontend-futuristic .fe-process-step__visual {
        height: 118px;
    }

    body.frontend-futuristic .fe-process-step__body {
        padding: 0 1.1rem;
    }
}

@keyframes feProcessGridDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(44px, 44px); }
}

@keyframes feProcessOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(12px, -10px) scale(1.05); }
}

@keyframes feProcessFlowPulse {
    0%, 100% { opacity: 0.35; stroke-dashoffset: 0; }
    50% { opacity: 0.85; stroke-dashoffset: 16; }
}

@keyframes feProcessDrawLine {
    to { stroke-dashoffset: 0; }
}

@keyframes feProcessPulseDot {
    0%, 100% { opacity: 0.45; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes feProcessOrbitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes feProcessArrowNudge {
    0%, 100% { transform: translateX(0); opacity: 0.65; }
    50% { transform: translateX(4px); opacity: 1; }
}

@keyframes feProcessSpark {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

@keyframes feProcessScanline {
    0% { top: 0; opacity: 0; }
    15% { opacity: 0.5; }
    85% { opacity: 0.5; }
    100% { top: 100%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    body.frontend-futuristic .fe-process-bg__grid,
    body.frontend-futuristic .fe-process-bg__flow,
    body.frontend-futuristic .fe-process-bg__orb,
    body.frontend-futuristic .fe-process-step__illus-line,
    body.frontend-futuristic .fe-process-step__illus-chart,
    body.frontend-futuristic .fe-process-step__illus-dot,
    body.frontend-futuristic .fe-process-step__illus-orbit,
    body.frontend-futuristic .fe-process-step__illus-arrow,
    body.frontend-futuristic .fe-process-step__illus-spark,
    body.frontend-futuristic .fe-process-step__scanline {
        animation: none;
    }

    body.frontend-futuristic .fe-process-step:hover .fe-process-step__illus {
        transform: none;
    }
}
