/* index.html — How Does it Work / Process section */

#HowDoesItWork.index-process-section {
    position: relative;
    isolation: isolate;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%);
}

#HowDoesItWork.index-process-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 45% at 0% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 100% 70%, rgba(16, 185, 129, 0.07) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

html.dark #HowDoesItWork.index-process-section {
    background: linear-gradient(180deg, #0f172a 0%, #111827 50%, #0f172a 100%);
}

html.dark #HowDoesItWork.index-process-section::before {
    background:
        radial-gradient(ellipse 55% 45% at 0% 30%, rgba(59, 130, 246, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 100% 70%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
}

#HowDoesItWork .container {
    position: relative;
    z-index: 1;
}

/* Header */
.index-process-head {
    max-width: 640px;
    margin: 0 auto 2.75rem;
    text-align: center;
}

.index-process-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.875rem;
    padding: 0.35rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #059669;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 999px;
}

html.dark .index-process-eyebrow {
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(52, 211, 153, 0.35);
}

.index-process-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #0f172a;
}

html.dark .index-process-title {
    color: #f8fafc;
}

.index-process-lead {
    margin: 0 auto;
    max-width: 520px;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: #64748b;
}

html.dark .index-process-lead {
    color: #94a3b8;
}

/* Steps grid */
#HowDoesItWork .index-process-flow {
    max-width: 1200px;
    margin: 0 auto;
}

#HowDoesItWork .index-process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 0;
    position: relative;
}

@media (min-width: 640px) {
    #HowDoesItWork .index-process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (min-width: 1024px) {
    #HowDoesItWork .index-process-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }

    #HowDoesItWork .index-process-grid::before {
        content: '';
        position: absolute;
        top: 2.75rem;
        left: 12.5%;
        right: 12.5%;
        height: 2px;
        background: linear-gradient(
            90deg,
            #3b82f6 0%,
            #6366f1 33%,
            #8b5cf6 66%,
            #10b981 100%
        );
        opacity: 0.35;
        z-index: 0;
        pointer-events: none;
    }
}

/* Step cards — overrides for this section only */
#HowDoesItWork .process-step {
    cursor: default;
    height: 100%;
    padding: 1.5rem 1.25rem 1.35rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    position: relative;
    z-index: 1;
}

#HowDoesItWork .process-step::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 18px 18px 0 0;
    background: var(--step-accent, linear-gradient(90deg, #3b82f6, #2563eb));
    opacity: 0.85;
}

#HowDoesItWork .process-step[data-step="1"] { --step-accent: linear-gradient(90deg, #3b82f6, #2563eb); }
#HowDoesItWork .process-step[data-step="2"] { --step-accent: linear-gradient(90deg, #6366f1, #4f46e5); }
#HowDoesItWork .process-step[data-step="3"] { --step-accent: linear-gradient(90deg, #8b5cf6, #7c3aed); }
#HowDoesItWork .process-step[data-step="4"] { --step-accent: linear-gradient(90deg, #10b981, #059669); }

#HowDoesItWork .process-step:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

html.dark #HowDoesItWork .process-step {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

html.dark #HowDoesItWork .process-step:hover {
    border-color: rgba(96, 165, 250, 0.4);
}

#HowDoesItWork .process-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 1.1rem;
    position: relative;
    border-radius: 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#HowDoesItWork .process-step[data-step="2"] .process-icon {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.25);
}

#HowDoesItWork .process-step[data-step="3"] .process-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.25);
}

#HowDoesItWork .process-step[data-step="4"] .process-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.25);
}

#HowDoesItWork .process-step:hover .process-icon {
    transform: scale(1.06);
    rotate: 0deg;
}

#HowDoesItWork .process-icon svg {
    display: block;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

#HowDoesItWork .process-number {
    top: -6px;
    right: -6px;
    width: 28px;
    height: 28px;
    font-size: 0.8125rem;
    font-weight: 700;
    background: #fff;
    color: #1e293b;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

#HowDoesItWork .process-step[data-step="1"] .process-number { color: #2563eb; border-color: #bfdbfe; }
#HowDoesItWork .process-step[data-step="2"] .process-number { color: #4f46e5; border-color: #c7d2fe; }
#HowDoesItWork .process-step[data-step="3"] .process-number { color: #7c3aed; border-color: #ddd6fe; }
#HowDoesItWork .process-step[data-step="4"] .process-number { color: #059669; border-color: #a7f3d0; }

html.dark #HowDoesItWork .process-number {
    background: #0f172a;
    border-color: #475569;
    color: #e2e8f0;
}

#HowDoesItWork .process-title {
    margin-bottom: 0.65rem;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
    line-height: 1.35;
}

html.dark #HowDoesItWork .process-title {
    color: #f1f5f9;
}

#HowDoesItWork .process-description {
    font-size: 0.875rem;
    line-height: 1.65;
    color: #64748b;
    text-align: center;
    margin: 0;
}

html.dark #HowDoesItWork .process-description {
    color: #94a3b8;
}

@media (min-width: 768px) {
    #HowDoesItWork .process-step {
        padding: 1.65rem 1.35rem 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    #HowDoesItWork .process-step:hover {
        transform: none;
    }

    #HowDoesItWork .process-step:hover .process-icon {
        transform: none;
    }
}
