:root {
    --sap-primary: #e21d24;
    --sap-primary-dark: #e21d24;
    --sap-heading: #071b4b;
    --sap-text: #344364;
    --sap-border: #e2ebf8;
    --sap-soft-blue: #f2f7ff;
     --ms-red: #e21d24;
        --ms-red-dark: #b91218;
        --ms-red-soft: #fff2f3;
        --ms-red-light: #fde3e5;
        --ms-heading: #171d35;
        --ms-text: #5f6679;
        --ms-border: #eceef3;
        --ms-white: #ffffff;
         --primary:#e21d24;
    --primary-dark:#b51218;
}

.s4hana-hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0px;
    background:radial-gradient(circle at 77% 31%, rgb(225 31 31 / 15%), transparent 29%), linear-gradient(120deg, #ffffff 0%, #ffffff 42%, #fff3f3 72%, #ffffff 100%);
}


.hero-visual-wrap img{
    z-index: 1000;
}

.s4hana-hero::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: 80px;
    width: 260px;
    height: 180px;
    opacity: 0.3;
    background-image: radial-gradient(circle, #e21d24 1.5px, transparent 1.8px);
    background-size: 14px 14px;
    transform: rotate(0deg);
    pointer-events: none;
}

.s4hana-content {
    position: relative;
    z-index: 3;
}

.s4hana-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 20px;
    color: var(--sap-primary);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

.s4hana-eyebrow::before {
    content: "";
    width: 23px;
    height: 2px;
    background: var(--sap-primary);
}

.s4hana-title {
    max-width: 590px;
    margin-bottom: 20px;
    color: var(--sap-heading);
    font-size: clamp(42px, 5vw, 52px);
    line-height: 1.08;
    font-weight: 750;
    letter-spacing: -2.2px;
}

.s4hana-title span {
    color: var(--sap-primary);
}

.s4hana-description {
    max-width: 575px;
    margin-bottom: 29px;
    color: #3e4b68;
    font-size: 16px;
    line-height: 1.8;
}

.s4hana-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 39px;
}

#phoneError, #nameError, #emailError {
    display: none;
}

.s4hana-btn {
    min-height: 52px;
    padding: 13px 22px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}

.s4hana-btn-primary {
    border: 1px solid var(--sap-primary);
    color: #ffffff;
    background: linear-gradient(
        135deg,
        var(--sap-primary),
        #e21d24
    );
    box-shadow: 0 12px 26px rgb(226 29 36 / 15%);
}

.s4hana-btn-primary:hover {
    color: #ffffff;
    background: var(--sap-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgb(243 13 13 / 27%);
}

.s4hana-btn-outline {
    border: 1px solid #e21d24;
    color: var(--sap-primary);
    background: rgba(255, 255, 255, 0.82);
}

.s4hana-btn-outline:hover {
    color: #ffffff;
    background: var(--sap-primary);
    transform: translateY(-2px);
}

.s4hana-btn-outline .play-icon {
    width: 24px;
    height: 24px;
    border: 1px solid currentColor;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.sap-brand-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 34px;
    min-height: 56px;
}

.sap-brand-item {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-right: 28px;
    border-right: 1px solid #d9e3f2;
}

.sap-brand-item:last-child {
    padding-right: 0;
    border-right: 0;
}

.sap-brand-label {
    color: #0b2455;
    font-size: 18px;
    line-height: 1.05;
    font-weight: 800;
}

.sap-brand-label small {
    display: block;
    color: #5d6b84;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.sap-logo-shape {
    position: relative;
    padding: 7px 15px 7px 9px;
    color: #ffffff;
    font-size: 20px;
    font-style: italic;
    font-weight: 800;
    background: linear-gradient(135deg, #1689d8, #055697);
    clip-path: polygon(0 0, 100% 0, 75% 100%, 0 100%);
}

.rise-logo {
    color: #071b4b;
    font-size: 18px;
    line-height: 0.85;
    font-weight: 900;
    text-transform: uppercase;
}

.hero-visual-wrap {
    position: relative;
    z-index: 2;
    min-height: 470px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual-wrap::before {
    content: "";
    position: absolute;
    width: 470px;
    height: 470px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgb(225 31 31 / 4%) 55%, rgba(236, 245, 255, 0) 72%);
}

.hero-factory-image {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 610px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 25px 22px rgba(27, 61, 112, 0.14));
    animation: factoryFloat 5.5s ease-in-out infinite;
}

@keyframes factoryFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.benefits-wrapper {
    position: relative;
    /* z-index: 5; */
        margin: 70px 0px;
    /* transform: translateY(37px); */
}

.benefits-panel {
    padding: 25px 22px;
    border: 1px solid var(--sap-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 15px 38px rgb(142 32 32 / 10%);
    backdrop-filter: blur(8px);
}

.benefit-item {
    position: relative;
    min-height: 60px;
    padding: 4px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.benefit-item::after {
    content: "";
    position: absolute;
    top: 9px;
    right: 0;
    width: 1px;
    height: 43px;
    background: #dae5f4;
}

.benefit-column:last-child .benefit-item::after {
    display: none;
}

.benefit-icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--sap-primary);
    font-size: 28px;
    border-radius: 50%;
    background: #fff1f1;
}

.benefit-text {
    margin: 0;
    color: #122855;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
}

.after-hero-space {
    height: 85px;
    background: #ffffff;
}


.s4-services-section {
        position: relative;
        overflow: hidden;
        padding: 25px 0 85px;
        background:
            radial-gradient(
                circle at 50% 0%,
                rgba(35, 112, 255, 0.07),
                transparent 35%
            ),
            linear-gradient(180deg, #ffffff 0%, var(--s4-section-bg) 100%);
    }

    .section-heading {
        margin-bottom: 35px;
    }

    .section-heading h2 {
        margin: 0;
        color: var(--s4-heading);
        font-size: clamp(28px, 3vw, 38px);
        line-height: 1.25;
        font-weight: 750;
        letter-spacing: -0.8px;
    }

    .heading-line {
        position: relative;
        display: block;
        width: 42px;
        height: 3px;
        margin: 14px auto 0;
        border-radius: 10px;
        background: var(--s4-primary);
    }

    .heading-line::after {
        content: "";
        position: absolute;
        right: -9px;
        top: 0;
           width: 80px;
    height: 3px;
    border-radius: 10px;
    background: #ff8282;
    }

    .s4-service-card {
        position: relative;
        height: 100%;
        min-height: 360px;
        padding: 26px 20px 25px;
        border: 1px solid var(--s4-card-border);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow:0 10px 30px rgb(121 22 22 / 6%), 0 2px 8px rgba(22, 62, 121, 0.025);
        text-align: center;
        transition:
            transform 0.28s ease,
            box-shadow 0.28s ease,
            border-color 0.28s ease;
    }

    .s4-service-card:hover {
        transform: translateY(-7px);
        border-color: rgba(20, 100, 244, 0.24);
        box-shadow:0 20px 45px rgb(170 22 22 / 12%), 0 5px 14px rgba(22, 80, 170, 0.06);
    }

    .service-icon {
        width: 68px;
        height: 68px;
        margin: 0 auto 21px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        color: var(--s4-primary);
        font-size: 34px;
        background:
            radial-gradient(
                circle,
                rgba(20, 100, 244, 0.08) 0%,
                rgba(20, 100, 244, 0.03) 65%,
                transparent 68%
            );
        box-shadow: inset 0 0 0 1px rgba(20, 100, 244, 0.04);
    }

    .s4-service-card h3 {
        min-height: 54px;
        margin-bottom: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--s4-heading);
        font-size: 16px;
        line-height: 1.45;
        font-weight: 750;
    }

    .s4-service-card p {
        margin: 0;
        color: var(--s4-text);
        font-size: 13px;
        line-height: 1.85;
    }

    .service-link {
        position: absolute;
        right: 18px;
        bottom: 17px;
        width: 34px;
        height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        color: #e11f1f;
        font-size: 16px;
        text-decoration: none;
        transition:
            color 0.25s ease,
            background-color 0.25s ease,
            transform 0.25s ease;
    }

    .service-link:hover {
        color: #ffffff;
        background: var(--s4-primary);
        transform: translateX(3px);
    }

     .ms-impact-section {
        position: relative;
        overflow: hidden;
        padding: 25px 0 90px;
        font-family: Arial, Helvetica, sans-serif;
        background:radial-gradient(circle at 15% 10%, rgb(226 29 36 / 0%), transparent 28%), linear-gradient(180deg, #ffffff 0%, #fffafa 100%);
    }

    /* =========================
       Business Impact Panel
    ========================= */

    .impact-panel {
        position: relative;
        overflow: hidden;
        margin-bottom: 70px;
        border: 1px solid rgba(226, 29, 36, 0.12);
        border-radius: 18px;
        background:
            linear-gradient(
                110deg,
                #fff6f6 0%,
                #ffffff 48%,
                #fff9f9 100%
            );
        box-shadow:
            0 20px 50px rgba(79, 20, 24, 0.07),
            0 5px 15px rgba(79, 20, 24, 0.035);
    }

    .impact-panel::after {
        content: "";
        position: absolute;
        right: -50px;
        bottom: -80px;
        width: 220px;
        height: 180px;
        opacity: 0.35;
        background-image: radial-gradient(
            circle,
            rgba(226, 29, 36, 0.45) 1.3px,
            transparent 1.6px
        );
        background-size: 13px 13px;
    }

    .impact-intro {
        position: relative;
        z-index: 2;
        min-height: 230px;
        padding: 34px 28px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        border-right: 1px solid rgba(226, 29, 36, 0.13);
    }

    .impact-label {
        display: block;
        margin-bottom: 9px;
        color: var(--ms-red);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 1.2px;
        text-transform: uppercase;
    }

    .impact-intro h2 {
        margin: 0 0 24px;
        color: var(--ms-heading);
        font-size: clamp(27px, 2.4vw, 36px);
        line-height: 1.2;
        font-weight: 750;
        letter-spacing: -0.8px;
    }

    .impact-btn {
        width: fit-content;
        min-height: 48px;
        padding: 12px 20px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 13px;
        border-radius: 7px;
        color: #ffffff;
        font-size: 14px;
        font-weight: 700;
        text-decoration: none;
        background: linear-gradient(
            135deg,
            var(--ms-red),
            #f03940
        );
        box-shadow: 0 12px 24px rgba(226, 29, 36, 0.2);
        transition:
            transform 0.25s ease,
            background 0.25s ease,
            box-shadow 0.25s ease;
    }

    .impact-btn:hover {
        color: #ffffff;
        transform: translateY(-2px);
        background: var(--ms-red-dark);
        box-shadow: 0 16px 30px rgba(226, 29, 36, 0.28);
    }

    .impact-stats-row {
        position: relative;
        z-index: 2;
        height: 100%;
    }

    .impact-stat {
        position: relative;
        min-height: 230px;
        padding: 28px 18px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .impact-stat::after {
        content: "";
        position: absolute;
        top: 38px;
        right: 0;
        width: 1px;
        height: calc(100% - 76px);
        background: rgba(226, 29, 36, 0.15);
    }

    .impact-stat.border-0::after {
        display: none;
    }

    .impact-stat-icon {
        width: 62px;
        height: 62px;
        margin-bottom: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 16px;
        color: var(--ms-red);
        font-size: 38px;
        background: var(--ms-white);
        box-shadow:
            0 8px 22px rgba(226, 29, 36, 0.09),
            inset 0 0 0 1px rgba(226, 29, 36, 0.08);
    }

    .impact-stat strong {
        display: block;
        margin-bottom: 9px;
        color: var(--ms-heading);
        font-size: 36px;
        line-height: 1;
        font-weight: 800;
        letter-spacing: -1px;
    }

    .impact-stat p {
        margin: 0;
        color: var(--ms-text);
        font-size: 13px;
        line-height: 1.65;
        font-weight: 500;
    }

    /* =========================
       Why Choose Section
    ========================= */

    .why-choose-section {
        position: relative;
    }

    .why-heading {
        margin-bottom: 42px;
    }

    .why-kicker {
        display: block;
        margin-bottom: 9px;
        color: var(--ms-red);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 1.4px;
        text-transform: uppercase;
    }

    .why-heading h2 {
        margin: 0;
        color: var(--ms-heading);
        font-size: clamp(30px, 3vw, 42px);
        line-height: 1.25;
        font-weight: 750;
        letter-spacing: -1px;
    }

    .heading-decoration {
        position: relative;
        display: block;
        width: 43px;
        height: 3px;
        margin: 15px auto 0;
        border-radius: 10px;
        background: var(--ms-red);
    }

    .heading-decoration::after {
        content: "";
        position: absolute;
        right: -10px;
        top: 0;
        width: 5px;
        height: 3px;
        border-radius: 10px;
        background: #f48a8e;
    }

    .why-items-row {
        border: 1px solid var(--ms-border);
        border-radius: 17px;
        background: rgba(255, 255, 255, 0.88);
        box-shadow: 0 15px 42px rgba(43, 21, 22, 0.045);
    }

    .why-item {
        position: relative;
        min-height: 270px;
        padding: 28px 20px 26px;
        text-align: center;
        transition:
            background-color 0.25s ease,
            transform 0.25s ease;
    }

    .why-item::after {
        content: "";
        position: absolute;
        right: 0;
        top: 40px;
        width: 1px;
        height: calc(100% - 80px);
        background: var(--ms-border);
    }

    .why-item.border-0::after {
        display: none;
    }

    .why-item:hover {
        z-index: 2;
        transform: translateY(-5px);
        background: linear-gradient(
            180deg,
            var(--ms-red-soft),
            #ffffff
        );
    }

    .why-icon {
        width: 68px;
        height: 68px;
        margin: 0 auto 20px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        color: var(--ms-red);
        font-size: 38px;
        background: var(--ms-red-soft);
        box-shadow: inset 0 0 0 1px rgba(226, 29, 36, 0.08);
        transition:
            color 0.25s ease,
            background-color 0.25s ease,
            transform 0.25s ease;
    }

    .why-item:hover .why-icon {
        color: #ffffff;
        background: var(--ms-red);
        transform: scale(1.05);
    }

    .why-item h3 {
        min-height: 55px;
        margin-bottom: 13px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--ms-heading);
        font-size: 16px;
        line-height: 1.4;
        font-weight: 750;
    }

    .why-item p {
        max-width: 155px;
        margin: 0 auto;
        color: var(--ms-text);
        font-size: 13px;
        line-height: 1.7;
    }

    /*============================
CTA
============================*/

.cta-transform-section{
    padding:80px 0;
    background:#fff;
}

.cta-transform{

    position:relative;
    overflow:hidden;

    border-radius:20px;

    padding:28px 40px;

    background:linear-gradient(
        135deg,
        #c8141b 0%,
        #e21d24 45%,
        #f54b51 100%
    );

    box-shadow:
    0 20px 50px rgba(226,29,36,.18);

}

/* Dot Pattern */

.cta-transform:after{

    content:"";

    position:absolute;

    right:25px;
    top:18px;

    width:110px;
    height:90px;

    opacity:.25;

    background-image:radial-gradient(#fff 1.5px,transparent 1.8px);
    background-size:10px 10px;

}

.cta-left{

    display:flex;
    align-items:center;
    gap:22px;

}

.cta-icon{

    width:72px;
    height:72px;

    border-radius:50%;

    background:#fff;

    display:flex;
    align-items:center;
    justify-content:center;

    color:var(--primary);

    font-size:34px;

    flex-shrink:0;

    box-shadow:
    0 10px 25px rgba(0,0,0,.12);

}

.cta-content h2{

    color:#fff;

    margin:0 0 8px;

    font-size:36px;

    font-weight:700;

}

.cta-content p{

    margin:0;

    color:rgba(255,255,255,.9);

    font-size:18px;

}

.cta-btn{

    display:inline-flex;

    align-items:center;

    gap:12px;

    background:#fff;

    color:var(--primary);

    padding:16px 34px;

    border-radius:10px;

    text-decoration:none;

    font-weight:700;

    transition:.35s;

    box-shadow:
    0 10px 25px rgba(0,0,0,.15);

}

.cta-btn:hover{

    background:#ffe7e8;

    color:var(--primary);

    transform:translateY(-3px);

}

.cta-btn i{

    transition:.3s;

}

.cta-btn:hover i{

    transform:translateX(6px);

}

/*============================
Responsive
============================*/

@media(max-width:991px){

.cta-transform{

padding:35px 30px;

text-align:center;

}

.cta-left{

flex-direction:column;

}

.cta-content h2{

font-size:30px;

}

.cta-content p{

font-size:16px;

}

}

@media(max-width:576px){

.cta-transform{

padding:30px 20px;

}

.cta-content h2{

font-size:26px;

}

.cta-btn{

width:100%;

justify-content:center;

margin-top:20px;

}

}

    /* =========================
       Responsive
    ========================= */

    @media (max-width: 1199.98px) {
        .why-item::after {
            display: none;
        }

        .why-item {
            border-bottom: 1px solid var(--ms-border);
        }

        .why-items-row > div:nth-last-child(-n + 3) .why-item {
            border-bottom: 0;
        }
    }

    @media (max-width: 991.98px) {
        .impact-intro {
            min-height: auto;
            text-align: center;
            align-items: center;
            border-right: 0;
            border-bottom: 1px solid rgba(226, 29, 36, 0.13);
        }

        .impact-stat {
            min-height: 210px;
        }
    }

    @media (max-width: 767.98px) {
        .ms-impact-section {
            padding: 55px 0 65px;
        }

        .impact-panel {
            margin-bottom: 55px;
        }

        .impact-stat::after {
            display: none;
        }

        .impact-stat {
            min-height: 190px;
            border-bottom: 1px solid rgba(226, 29, 36, 0.1);
        }

        .why-item {
            min-height: 250px;
        }

        .why-items-row > div:nth-last-child(-n + 3) .why-item {
            border-bottom: 1px solid var(--ms-border);
        }

        .why-items-row > div:last-child .why-item {
            border-bottom: 0;
        }
    }

    @media (max-width: 575.98px) {
        .impact-intro {
            padding: 30px 20px;
        }

        .impact-stat {
            min-height: 175px;
            padding: 23px 10px;
        }

        .impact-stat strong {
            font-size: 30px;
        }

        .impact-stat-icon {
            width: 55px;
            height: 55px;
            font-size: 32px;
        }

        .why-item {
            min-height: auto;
            padding: 28px 22px;
        }

        .why-item h3 {
            min-height: auto;
        }
    }



    @media (min-width: 1200px) {
        .s4-services-section .col-xl-2 {
            width: 16.66666667%;
        }
    }

    @media (max-width: 1199.98px) {
        .s4-service-card {
            min-height: 335px;
        }
    }

    @media (max-width: 767.98px) {
        .s4-services-section {
            padding: 55px 0 65px;
        }

        .section-heading {
            margin-bottom: 28px;
        }

        .s4-service-card {
            min-height: 315px;
        }
    }

    @media (max-width: 575.98px) {
        .s4-service-card {
            min-height: auto;
            padding: 25px 22px 65px;
        }

        .s4-service-card h3 {
            min-height: auto;
        }
    }


    

@media (max-width: 1199.98px) {
    .s4hana-title {
        font-size: 50px;
    }

    .hero-visual-wrap {
        min-height: 430px;
    }

    .benefit-item {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 991.98px) {
    .s4hana-hero {
        padding-top: 45px;
    }

    .s4hana-content {
        text-align: center;
    }

    .s4hana-eyebrow {
        justify-content: center;
    }

    .s4hana-title,
    .s4hana-description {
        margin-left: auto;
        margin-right: auto;
    }

    .s4hana-actions,
    .sap-brand-row {
        justify-content: center;
    }

    .hero-visual-wrap {
        min-height: auto;
        margin-top: 20px;
    }

    .hero-factory-image {
        max-width: 580px;
    }

    .benefit-item::after {
        display: none;
    }

    .benefit-item {
        justify-content: flex-start;
        padding: 12px;
        border-radius: 9px;
        background: #f8fbff;
    }
}

@media (max-width: 575.98px) {
    .s4hana-hero {
        padding-top: 36px;
    }

    .s4hana-title {
        font-size: 39px;
        letter-spacing: -1.4px;
    }

    .s4hana-description {
        font-size: 15px;
        line-height: 1.7;
    }

    .s4hana-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .s4hana-btn {
        width: 100%;
    }

    .sap-brand-row {
        gap: 16px;
    }

    .sap-brand-item {
        padding-right: 14px;
    }

    .benefits-wrapper {
        transform: translateY(28px);
    }

    .benefits-panel {
        padding: 14px;
    }

    .after-hero-space {
        height: 65px;
    }
}