/*header upper*/
.header-text {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.header-upper {
    background: #061742;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 2;
}

.header-upper-wrapper {
    align-items: center;
    display: flex;
    justify-content: center;
}

.header-upper-wrapper p {
    padding: 1.1rem;
    color: #fff;
    margin: 0;
    font-size: 15px;
}

.header-text img {
    width: 30px;
    height: 30px;
}

/*header*/
header {
    background: #fff;
    box-shadow: 0 0 7px #573bd34d;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 11;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-items ul {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 1540px) {
    .header-items ul {
        gap: 3rem;
    }
}

@media (max-width: 1160px) {
    .header-items ul {
        gap: 4rem;
    }
}

.header-content li {
    padding: 3rem 1rem;
}

@media (max-width: 1024px) {
    .header-content li {
        padding: 2rem 0 0.5rem !important;
    }
}

.header-items ul li a {
    font-size: 16px;
    line-height: 150%;
    color: #334960;
}

.header-image {
    z-index: 2;
}

.header-image img {
    width: 170px;
}

.book-demo-btn p {
    font-size: 15px;
    color: white;
    margin-bottom: 0;
}

.book-demo-btn {
    transition: box-shadow 0.25s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #4326ff;
    border-radius: 10px;
    padding: 12px 28px;
}

.book-demo-btn:hover {
    box-shadow: 0 8px 16px rgba(67, 38, 255, 0.4);
}

.book-demo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    z-index: 3;
    display: block;
    width: 30px;
    height: 3px;
    background: #334960;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {
    .hamburger span {
        width: 25px;
        height: 2px;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -4px);
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 5px);
    }
}

@media (max-width: 767px) {
    .hamburger span {
        width: 25px;
        height: 2px;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -5px);
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 3px);
    }
}

@media (max-width: 1024px) {
    .header-wrapper {
        padding: 1.8rem 0;
    }

    .header-items {
        overflow: scroll;
        position: fixed;
        top: 50px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 50px);
        background: #fff;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        transition: top 0.5s ease;
        padding-left: 3rem;
        z-index: 10;
        flex-direction: column;
    }

    .header-items ul {
        width: 100%;
        align-items: start;
        flex-direction: column;
        gap: 0rem;
    }

    .header-items ul li {
        width: 100%;
        border-bottom: 1px solid rgba(91, 68, 35, 0.1);
    }

    .header-items ul li a {
        font-size: 2.6rem;
        font-weight: 400 !important;
    }

    .mobile-submenu li a {
        font-size: 2.3rem !important;
    }

    .header-items.active {
        align-items: start;
        padding: 4rem 10rem 10rem;
        left: 0;
        z-index: 1;
    }

    .hamburger {
        display: flex;
    }

    .book-demo-btn {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-image img {
        width: 150px;
    }
    .header-items.active {
        padding: 5rem;
    }
}

@media (max-width: 767px) {
    .header-items.active {
        margin-top: 0;
        padding: 4rem 5rem;
    }

    .header-upper {
        display: none;
    }

    header {
        margin-top: 0;
    }

    .header-upper-cta p {
        padding: 1rem 0.2rem;
    }

    .header-text img {
        width: 20px;
        height: 20px;
    }

    .header-upper-wrapper p {
        padding: 0;
    }

    .header-upper-cta {
        padding: 1rem;
        flex-direction: row;
        gap: 1rem;
    }

    .header-text {
        padding: 1rem 0 0.1rem;
    }

    .header-upper-wrapper {
        padding-left: 2rem;
        align-items: start;
    }

    .header-upper-cta img {
        width: 12px;
    }
}

.mobile-submenu {
    display: none !important;
    padding-left: 1rem;
    flex-direction: column;
}

.mobile-submenu li {
    border-bottom: 0 !important;
}

.submenu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
    padding: 0.5rem;
}

.submenu-toggle svg {
    transition: transform 0.3s ease;
}

.has-megamenu.active .submenu-toggle svg {
    transform: rotate(180deg);
}

@media (max-width: 1024px) {
    .has-megamenu .submenu-toggle {
        margin-left: auto;
    }

    .nav-megamenu {
        display: none;
    }

    .has-megamenu.active .mobile-submenu {
        display: flex !important;
    }
}

@media (min-width: 1025px) {

    .mobile-submenu,
    .submenu-toggle {
        display: none !important;
    }
}


.tab-btn::after {
    content: "";
    display: inline-block;
    margin-left: 0.5rem;
    vertical-align: middle;
    width: 12px;
    height: 12px;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23334960' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
    opacity: 1;
    transition: opacity 0.2s ease;
}

.tab-btn[aria-selected="true"]::after {
    opacity: 0;
}

.tab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 0.8rem 1.2rem;
    border-radius: 30px;
    background: transparent;
    border: 1px solid #4326ff;
}

.tab-btn[aria-selected="true"] {
    color: #fff;
    background: #4326ff;
}

.tab-buttons {
    margin-top: 2rem;
    padding-right: 2.5rem;
    border-right: 1px solid #ececec;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.solutions-header {
    border-bottom: 1px solid #ececec;
    padding: 10px;
}

.solutions-header h2 {
    margin-bottom: 10px;
    font-size: 15px;
}

.solutions-header p {
    font-size: 13px !important;
}

.platform-header-image {
    margin-top: 2rem;
}

.platform-header-image img {
    border-radius: 14px;
}

.header-section .mega-nav {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.mega-link h3 {
    margin-bottom: 0.5rem;
    font-family: 'ibm-plex-sans-medium', sans-serif;
    font-size: 14px !important;
}

.header-section .mega-trigger.platform-link:hover,
.header-section .mega-item[data-open="true"] .mega-trigger.platform-link {
    color: #4326ff;
}

.mega-links-grid {
    display: grid;
}

.mega-link p {
    font-size: 12px !important;
}

/* Mega link with image (image left, content right) */
.header-section .mega-link--with-image {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-section .mega-link--with-image .mega-link-image {
    flex-shrink: 0;
}

.header-section .mega-link--with-image .mega-link-image img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}
.header-section .mega-item {
    position: static;
}

.header-section .mega-trigger {
    background: transparent;
    border: 0;
    cursor: pointer;
}

.header-section .mega-trigger.platform-link {
    padding: 0 0 5px;
    font-size: 15px;
    line-height: 150%;
    font-family: "ibm-plex-sans-regular", sans-serif;
    color: #334960;
}

.header-section .mega-panel {
    position: absolute;
    left: 50vw;
    transform: translateX(-50%);
    top: calc(100%);
    width: min(1100px, calc(100vw - 32px));
    background: #fff;
    border: 1px solid rgba(25, 35, 45, 0.08);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(11, 18, 32, 0.1);
    padding: 16px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

.header-section .mega-item[data-open="true"] .mega-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.mobile-toggle-icon {
    display: none;
}

.header-section .mega-grid {
    display: grid;
    gap: 14px;
}

.header-section .mega-2 {
    grid-template-columns: repeat(2, 1fr);
}

.header-section .mega-2-head {
    grid-template-columns: 0.6fr 0.4fr;
}

.header-section .mega-2-head-big {
    grid-template-columns: 0.7fr 0.3fr;
}

.header-section .mega-3 {
    grid-template-columns: repeat(3, 1fr);
}

.header-section .mega-3-head {
    margin-top: 1rem;
    grid-template-columns: 20% 80%;
}

.header-section .mega-4 {
    grid-template-columns: repeat(4, 1fr);
}

.header-section .mega-col {
    padding: 10px;
    border-radius: 14px;
}

.header-section .mega-title {
    border-bottom: 1px solid #ececec;
    padding-bottom: 10px;
    padding-left: 10px;
    font-family: "ibm-plex-sans-semibold", sans-serif;
    margin: 0 0 10px;
    font-size: 15px;
}

.mega-highlight .mega-title {
    border: none !important;
    padding-bottom: 0;
}

.header-section .mega-link {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 20px 12px 20px 8px;
    border-radius: 8px;
    position: relative;
    font-size: 14px;
    text-decoration: none;
}

/* .header-section .mega-link::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    width: 12px;
    height: 12px;
    transform: translateY(-50%) translateX(-4px);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23334960' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
} */

/* .header-section .mega-link:hover::after,
.header-section .mega-link:focus::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
} */

.header-section .mega-link:hover,
.header-section .mega-link:focus {
    background: #f6f4ff50;
    outline: none;
}

.header-section .mega-link:hover .header-items ul li a,
.header-section .mega-link:focus .header-items ul li a {
    color: #1e8758 !important;
}

.header-section .mega-highlight {
    background: linear-gradient(180deg,
            rgba(206, 255, 201, 0.08) 0.58%,
            rgba(212, 255, 231, 0.58) 136.94%);
    padding: 14px 10px 10px;
    border: 1px solid rgba(24, 163, 74, 0.14);
}

.header-section .mega-callout {
    margin-top: 12px;
    padding: 12px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(25, 35, 45, 0.08);
}

.header-section .mega-callout-title {
    margin: 0 0 10px;
    font-size: 15px;
    color: #0b1220;
    font-family: "ibm-plex-sans-medium", sans-serif;
}

.header-section .mega-callout-text {
    margin: 0 0 16px;
    color: #556070;
    font-size: 13px !important;
    line-height: 1.35;
}

.header-section .mega-callout-cta {
    width: max-content;
    font-family: "ibm-plex-sans-medium", sans-serif;
    color: #1e8758;
    font-size: 14px;
    text-decoration: none;
    position: relative;
    display: block;
    margin-top: 24px;
    padding-bottom: 2px;
}

#solutions-link {
    margin-top: 10px;
}

#mega-capabilities {
    padding-bottom: 24px;
}

.header-section .mega-callout-cta::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #1e8758;
    transition: width 0.3s ease;
}

.header-section .mega-callout-cta:hover::after {
    width: 100%;
}

@media (min-width: 1025px) and (max-width: 1540px) {
    .tab-btn {
        font-size: 13px;
    }
}

/* Mobile: make panels static */
@media (max-width: 1024px) {
    .mega-trigger {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .mobile-toggle-icon {
        display: block;
        width: 14px;
        height: 14px;
        transition: transform 0.25s ease;
        background-repeat: no-repeat;
        background-size: contain;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23334960' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    }

    .mobile-submenu {
        display: none;
    }

    .mega-item[data-open="true"] .mobile-submenu {
        display: block !important;
    }

    .mega-item[data-open="true"] .mobile-toggle-icon {
        transform: rotate(180deg);
    }

    .header-section .mega-nav {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 8px;
    }

    .header-section .mega-panel {
        display: none;
        position: static;
        transform: none;
        width: 100%;
        box-shadow: none;
        border: 0;
        padding: 0;
    }

    .header-section .mega-grid {
        grid-template-columns: 1fr !important;
    }

    .header-section .mega-col {
        padding: 6px;
    }
}

@media (max-width: 1024px) {
    .header-section nav.header-items {
        display: none;
    }

    .header-section nav.header-items.is-open {
        display: block;
    }
}