.how-section {
    width: 100%;
    background: #f9fafb;
    padding: 48px 16px 52px;
    position: relative;
    overflow: hidden;
}

.how-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 22%, rgba(249,115,22,0.10), transparent 40%),
        radial-gradient(circle at 86% 18%, rgba(79,70,229,0.10), transparent 42%),
        radial-gradient(circle at 65% 85%, rgba(16,185,129,0.08), transparent 44%),
        radial-gradient(rgba(15,23,42,0.06) 1px, transparent 1px);
    background-size: auto, auto, auto, 22px 22px;
    background-position: center, center, center, 0 0;
    pointer-events: none;
}

.how-inner {
    max-width: 1120px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.how-header {
    text-align: center;
    margin-bottom: 28px;
}

.how-eyebrow {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #4b6bfb;
    font-weight: 600;
    margin-bottom: 6px;
}

.how-title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
}

.how-subtitle {
    margin: 8px 0 0;
    font-size: 14px;
    color: #6b7280;
}

.how-body {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 28px;
    align-items: center;
}

.how-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.how-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 20px 20px 22px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.65s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}

.how-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 54px rgba(15, 23, 42, 0.10);
    border-color: rgba(249,115,22,0.28);
}

.how-num {
    font-size: 22px;
    font-weight: 700;
    color: #4b6bfb;
}

.how-num-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    margin-bottom: 3px;
}

.how-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.how-card-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #4b5563;
}

.how-figure {
    display: flex;
    justify-content: center;
}

.how-figure img {
    max-width: 230px;
    width: 100%;
    height: auto;
    object-fit: contain;
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity;
}

.how-figure img.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@keyframes how-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1); }
}

.how-figure img.is-floating {
    animation: how-float 6s ease-in-out infinite;
}

/* 3-step section */

.steps-section {
    width: 100%;
    background: #ffffff;
    padding: 40px 16px 52px;
    position: relative;
    overflow: hidden;
}

.steps-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(249,115,22,0.08), transparent 45%),
        radial-gradient(circle at 92% 30%, rgba(79,70,229,0.08), transparent 46%),
        radial-gradient(rgba(15,23,42,0.05) 1px, transparent 1px);
    background-size: auto, auto, 24px 24px;
    background-position: center, center, 0 0;
    pointer-events: none;
}

.steps-inner {
    max-width: 1120px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.steps-header {
    text-align: center;
    margin-bottom: 26px;
}

.steps-eyebrow {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #9ca3af;
    font-weight: 600;
    margin-bottom: 6px;
}

.steps-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
}

.steps-word {
    color: #0f172a;
    transition: color 0.25s ease;
}

.steps-word.is-active {
    color: #f97373;
}

.steps-subtitle {
    margin: 8px 0 0;
    font-size: 14px;
    color: #6b7280;
}

.steps-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.step-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 18px 18px 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.65s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 52px rgba(15, 23, 42, 0.08);
    border-color: rgba(249,115,22,0.22);
}

.how-card.is-visible,
.step-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .how-card,
    .step-card,
    .how-figure img {
        transition: none !important;
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

.step-eyebrow {
    font-size: 11px;
    color: #4b6bfb;
    margin-bottom: 2px;
}

.step-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    color: #111827;
}

.step-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #4b5563;
}

@media (max-width: 900px) {
    .how-body {
        grid-template-columns: minmax(0, 1fr);
    }

    .how-row,
    .steps-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .how-section,
    .steps-section {
        padding-inline: 12px;
    }

    .how-row,
    .steps-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .how-title,
    .steps-title {
        font-size: 22px;
    }
}
