:root {
    --mf-navy: #2d2d78;
    --mf-indigo: #3f41a9;
    --mf-cyan: #09a5d4;
    --mf-blue: #0e87c8;
    --mf-ink: #151a34;
    --mf-muted: #67718a;
    --mf-soft: #f4f7fc;
    --mf-line: #dfe6f1;
    --mf-white: #ffffff;
}

.mf-svg-icon {
    display: block;
    width: 1em;
    height: 1em;
    fill: none;
    overflow: visible;
}

.mf-header-v2 {
    z-index: 1000;
}

.mf-nav-v2 {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.4vw, 25px);
}

.mf-nav-v2 > a,
.mf-nav-v2 > details > summary {
    display: flex;
    align-items: center;
    min-height: 44px;
    color: inherit;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
    list-style: none;
    white-space: nowrap;
}

.mf-nav-v2 > details > summary::-webkit-details-marker {
    display: none;
}

.mf-nav-v2 > details > summary::after {
    content: "";
    width: 7px;
    height: 7px;
    margin: -4px 0 0 9px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s ease;
}

.mf-nav-v2 > details[open] > summary::after {
    margin-top: 3px;
    transform: rotate(225deg);
}

.mf-nav-solutions {
    position: relative;
}

.mf-mega-menu {
    position: absolute;
    top: calc(100% + 18px);
    left: 50%;
    width: min(920px, calc(100vw - 48px));
    padding: 22px;
    border: 1px solid rgba(214, 224, 240, .95);
    border-radius: 22px;
    background:
        radial-gradient(circle at 85% 15%, rgba(9,165,212,.12), transparent 28%),
        var(--mf-white);
    box-shadow: 0 30px 90px rgba(23, 31, 72, .2);
    color: var(--mf-ink);
    transform: translateX(-42%);
}

.mf-mega-menu::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 38%;
    width: 18px;
    height: 18px;
    border-top: 1px solid var(--mf-line);
    border-left: 1px solid var(--mf-line);
    background: var(--mf-white);
    transform: rotate(45deg);
}

.mf-mega-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 25px;
    padding: 4px 5px 20px;
    border-bottom: 1px solid var(--mf-line);
}

.mf-mega-heading strong {
    display: block;
    margin-bottom: 4px;
    font-size: 20px;
    color: var(--mf-navy);
}

.mf-mega-heading span {
    color: var(--mf-muted);
    font-size: 13px;
}

.mf-mega-heading > a {
    flex: none;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--mf-navy);
    color: var(--mf-white) !important;
    font-size: 12px;
    font-weight: 750;
}

.mf-mega-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    padding-top: 16px;
}

.mf-mega-link {
    display: grid !important;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    min-height: 80px !important;
    padding: 13px !important;
    border-radius: 14px;
    color: var(--mf-ink) !important;
    white-space: normal !important;
    transition:
        background .2s ease,
        transform .2s ease;
}

.mf-mega-link:hover {
    background: var(--mf-soft);
    transform: translateY(-2px);
}

.mf-mega-link > i {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(45, 45, 120, .08);
    color: var(--mf-navy);
    font-size: 22px;
}

.mf-mega-link:nth-child(3n+2) > i {
    background: rgba(9, 165, 212, .1);
    color: var(--mf-blue);
}

.mf-mega-link span {
    display: block;
    min-width: 0;
}

.mf-mega-link b {
    display: block;
    margin-bottom: 4px;
    color: var(--mf-ink);
    font-size: 13px;
    line-height: 1.25;
}

.mf-mega-link small {
    display: block;
    color: var(--mf-muted);
    font-size: 11px;
    font-weight: 450;
    line-height: 1.35;
}

.mf-header-v2 .mf-header-cta {
    min-width: max-content;
}

.mf-task-navigator {
    position: relative;
    padding: clamp(64px, 7vw, 105px) clamp(20px, 5vw, 80px);
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 25%, rgba(9,165,212,.14), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f4f7fc 100%);
}

.mf-task-navigator::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .32;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(45,45,120,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45,45,120,.06) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}

.mf-task-shell {
    position: relative;
    width: min(1280px, 100%);
    margin: 0 auto;
}

.mf-task-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    gap: 40px;
    align-items: end;
    margin-bottom: 38px;
}

.mf-task-heading span {
    display: block;
    margin-bottom: 15px;
    color: var(--mf-cyan);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.mf-task-heading h2 {
    max-width: 800px;
    margin: 0;
    color: var(--mf-ink);
    font-size: clamp(36px, 4.2vw, 66px);
    font-weight: 680;
    letter-spacing: -.055em;
    line-height: .98;
}

.mf-task-heading h2 em {
    color: var(--mf-navy);
    font-style: normal;
}

.mf-task-heading p {
    max-width: 480px;
    margin: 0 0 6px;
    color: var(--mf-muted);
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.55;
}

.mf-task-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.mf-task-card {
    position: relative;
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 17px;
    min-height: 178px;
    padding: 25px;
    border: 1px solid var(--mf-line);
    border-radius: 21px;
    background: rgba(255,255,255,.9);
    color: var(--mf-ink);
    box-shadow: 0 18px 45px rgba(27, 38, 82, .055);
    transition:
        transform .22s ease,
        border-color .22s ease,
        box-shadow .22s ease;
}

.mf-task-card:hover {
    z-index: 2;
    border-color: rgba(9,165,212,.55);
    box-shadow: 0 24px 65px rgba(27, 38, 82, .12);
    transform: translateY(-5px);
}

.mf-task-card > i {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 17px;
    background: linear-gradient(145deg, var(--mf-navy), var(--mf-indigo));
    color: var(--mf-white);
    font-size: 29px;
    box-shadow: 0 12px 30px rgba(45,45,120,.22);
}

.mf-task-card:nth-child(2n) > i {
    background: linear-gradient(145deg, var(--mf-blue), var(--mf-cyan));
    box-shadow: 0 12px 30px rgba(9,165,212,.22);
}

.mf-task-card > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mf-task-card small {
    margin-bottom: 8px;
    color: var(--mf-cyan);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.mf-task-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
    letter-spacing: -.025em;
    line-height: 1.15;
}

.mf-task-card p {
    margin: 0;
    color: var(--mf-muted);
    font-size: 13px;
    line-height: 1.45;
}

.mf-task-card b {
    margin-top: auto;
    padding-top: 13px;
    color: var(--mf-navy);
    font-size: 12px;
}

.mf-pain-map {
    padding: 12px clamp(20px, 5vw, 80px) clamp(70px, 7vw, 105px);
    background: var(--mf-soft);
}

.mf-pain-shell {
    width: min(1280px, 100%);
    margin: 0 auto;
    padding: clamp(30px, 4vw, 52px);
    border-radius: 26px;
    background:
        radial-gradient(circle at 100% 0%, rgba(9,165,212,.2), transparent 30%),
        linear-gradient(135deg, #24245f, #121a42);
    color: var(--mf-white);
    box-shadow: 0 30px 90px rgba(23,31,72,.18);
}

.mf-pain-heading {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    margin-bottom: 28px;
}

.mf-pain-heading span {
    color: #72d9ef;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.mf-pain-heading h2 {
    max-width: 660px;
    margin: 8px 0 0;
    font-size: clamp(29px, 3vw, 48px);
    line-height: 1.02;
    letter-spacing: -.045em;
}

.mf-pain-heading p {
    align-self: end;
    max-width: 470px;
    margin: 0;
    color: #c5cee3;
    line-height: 1.55;
}

.mf-pain-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.mf-pain-grid a {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 65px;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 13px;
    background: rgba(255,255,255,.055);
    color: var(--mf-white);
    font-size: 12px;
    font-weight: 650;
    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.mf-pain-grid a:hover {
    border-color: rgba(114,217,239,.5);
    background: rgba(255,255,255,.11);
    transform: translateY(-2px);
}

.mf-pain-grid i {
    display: grid;
    place-items: center;
    flex: 0 0 35px;
    width: 35px;
    height: 35px;
    border-radius: 10px;
    background: rgba(114,217,239,.12);
    color: #72d9ef;
    font-size: 18px;
}

.hero-command .command-card > i {
    display: grid;
    place-items: center;
}

.hero-command .command-card > i .mf-svg-icon {
    width: 22px;
    height: 22px;
}

.service-card .service-icon {
    display: grid;
    place-items: center;
}

.service-card .service-icon .mf-svg-icon {
    width: 34px;
    height: 34px;
}

@media (max-width: 1150px) {
    .mf-nav-v2 {
        gap: 12px;
    }

    .mf-nav-v2 > a,
    .mf-nav-v2 > details > summary {
        font-size: 12px;
    }

    .mf-task-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mf-pain-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .mf-nav-v2 {
        align-items: stretch;
    }

    .mf-nav-v2 > a,
    .mf-nav-v2 > details > summary {
        width: 100%;
        min-height: 49px;
    }

    .mf-nav-solutions {
        width: 100%;
    }

    .mf-mega-menu {
        position: static;
        width: 100%;
        margin: 0 0 12px;
        padding: 14px;
        transform: none;
        box-shadow: none;
    }

    .mf-mega-menu::before {
        display: none;
    }

    .mf-mega-heading {
        display: block;
    }

    .mf-mega-heading > a {
        display: inline-flex;
        margin-top: 12px;
    }

    .mf-mega-grid {
        grid-template-columns: 1fr 1fr;
    }

    .mf-task-heading,
    .mf-pain-heading {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .mf-task-navigator {
        padding-top: 55px;
        padding-bottom: 65px;
    }

    .mf-task-grid,
    .mf-pain-grid,
    .mf-mega-grid {
        grid-template-columns: 1fr;
    }

    .mf-task-card {
        min-height: 0;
        padding: 20px;
    }

    .mf-pain-map {
        padding-bottom: 65px;
    }

    .mf-pain-shell {
        padding: 28px 20px;
        border-radius: 20px;
    }

    .mf-mega-heading span {
        display: block;
    }
}
