@import 'components/top-banner.css';

.main-menu {
    z-index: 1000;
    width: 100%;
    transition: background-color 0.1s ease-in-out;
}

.main-menu--position-sticky {
    background-color: transparent;
    position: sticky;
    margin-bottom: -78px;
    top: 97px;
}

.transparent-nav {
    background-color: transparent;
    box-shadow: none;
}

.menu-scrolled {
    background-color: #FFFFFF;
    box-shadow: 1px 1px 50px rgb(0 0 0 / 25%);
}

.main-menu-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.main-menu .logo {
    margin-right: 24px;
    padding: 16px 0;
}

.main-menu .logo img {
    max-width: 144px;
    height: auto;
}

.main-menu .logo .logo-blue {
    display: none;
}

.main-menu.menu-scrolled .logo .logo-white,
.main-menu.transparent-nav .logo .logo-white {
    display: none;
}

.main-menu.menu-scrolled .logo .logo-blue,
.main-menu.transparent-nav .logo .logo-blue {
    display: flex;
}

.nav-toggle {
    display: flex;
    padding: 24px 0;
    background: transparent;
    border: none;
    transition: transform 0.2s linear;
}

.nav-toggle svg {
    width: 30px;
    height: 30px;
}

.nav-toggle svg rect {
    fill: #FFFFFF;
    transform-box: fill-box;
    transform-origin: center;
    transform: translate(0);
    transition: fill .2s linear, opacity .2s ease, transform .2s linear;
}

.menu-scrolled .nav-toggle svg rect,
.transparent-nav .nav-toggle svg rect {
    fill: #0064C0;
}

.menu-scrolled .nav-open svg rect,
.transparent-nav .nav-open svg rect,
.nav-open svg rect {
    fill: #FF7F00;
}

.nav-open svg rect:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-open svg rect:nth-child(2) {
    opacity: 0;
    transform: translate(-50%, 0);
}

.nav-open svg rect:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.main-menu--navbar-links {
    display: none;
}

.main-menu--nav-list {
    padding: 0;
    margin: 0;
    display: none;
    justify-content: center;
    align-items: center;
}

.main-menu .main-menu--nav-item {
    padding: 24px 0;
    margin: 0 auto;
    transition: 0.2s;
}

.mega-menu {
    visibility: hidden;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0px 4px 50px rgba(0, 0, 0, 0.25);
    position: absolute;
    z-index: 10;
    top: 4em;
    right: 0;
    left: 0;
    padding: 48px;
    margin: 0px auto;
    width: 100%;
    display: none;
    cursor: default;
}

.resources-mega-menu {
    max-width: 960px;
}

.products-mega-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 64px;
    padding: 40px 40px 56px;
    max-width: 1110px;
}

.use-cases-mega-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 64px;
    padding: 40px 40px 56px;
    max-width: 1170px;
}

.resources-mega-menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    grid-gap: 40px;
}

.products-mega-menu .mega-menu--section {
    display: grid;
    grid-template-rows: auto repeat(2, 1fr);
    gap: 40px;
}

.use-cases-mega-menu .mega-menu--section {
    display: grid;
    grid-template-rows: auto repeat(4, 1fr);
    gap: 32px;
}

.mega-menu--section-title {
    font-weight: 500;
    font-size: 13px;
    line-height: 1.9;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #011C35;
    padding-bottom: 16px;
    border-bottom: 1px solid #A1B9D4;
}

.use-cases-mega-menu .mega-menu--section-title {
    margin-bottom: 8px;
}

.mega-menu--section--product-context {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.use-cases-mega-menu .mega-menu--section--product-context {
    margin-bottom: 0;
}

.mega-menu--section--product-context:hover,
.mega-menu--section--product-context:hover .mega-menu--section--product-description {
    text-decoration: none;
}

.mega-menu--section--product-context:hover .mega-menu--section--product-title span {
    color: #0064C0;
    text-decoration: underline;
}

.mega-menu--section--product-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mega-menu--section--product-logo {
    width: auto;
    height: 14px;
}

.mega-menu--section--product-title span {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    color: #011C35;
}

.mega-menu--section--product-description {
    font-weight: 500;
    font-size: 14px;
    line-height: 1.9;
    color: #3B556E;
    margin: 0;
}

.mega-menu--section--product-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.mega-menu--section--product-link {
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    color: #0064C0;
}

.mega-menu--section--product-link-separator {
    background: #A1B9D4;
    height: 15px;
    width: 1px;
    margin: 0 8px;
}

.mega-use-case-link {
    display: flex;
    flex-direction: column;
}

.mega-use-case-link:hover {
    text-decoration: none;
}

.mega-use-case-link:hover .title {
    color: #0064C0;
    text-decoration: underline;
}

.mega-menu .product-logo {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}

.mega-menu .use-case-mega-title {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-gap: 8px;
    margin-bottom: 16px;
}

.mega-menu .use-case-mega-title img {
    width: 21px;
    max-width: 100%;
    height: auto;
}

.mega-menu .product-logo img {
    width: 100%;
    max-width: 100%;
}

.mega-menu .product-auth-api-wrapper .product-logo img {
    max-width: 28px;
}

.use-case-mega-description,
.product-mega-description {
    font-weight: 500;
    font-size: 14px;
    line-height: 1.9;
    color: #3B556E;
    margin: 0;
    max-width: 370px;
}

.use-cases-mega-menu .title,
.products-mega-menu .title {
    display: flex;
    flex-wrap: wrap;
    grid-column-gap: 8px;
    align-items: center;
    font-size: 16px;
    line-height: normal;
    font-weight: 800;
    color: #011C35;
}

.products-mega-menu .title {
    margin: 0;
}

.product-tag,
.product-tag:hover,
.product-tag:focus,
.product-tag:visited {
    background: linear-gradient(261.05deg, #0064C0 0%, #2750E1 58.1%, #0064C0 99.58%);
    border-radius: 2px;
    padding: 2px 4px;
    font-weight: 600;
    font-size: 12px;
    line-height: 1.5;
    color: #FFFFFF;
    /*margin-left: 8px;*/
    text-decoration: none;
    text-transform: uppercase;
}

.product-tag.focus-product-tag {
    background: linear-gradient(261.05deg, rgba(0, 100, 192, 0.5) 0%, rgba(39, 80, 225, 0.5) 58.1%, rgba(0, 100, 192, 0.5) 99.58%);
}

.resources-wrapper {
    display: grid;
    grid-gap: 16px;
}

.mega-resources-link {
    width: max-content;
}

a.mega-resources-link:hover {
    text-decoration: none;
}

a.mega-resources-link:hover .mega-resources-link--title {
    color: #0064C0;
    text-decoration: underline;
}

a.mega-resources-link:hover .mega-resources-link--description {
    text-decoration: none;
}

a.mega-resources-link:hover .mega-product-links {
    text-decoration: none;
}

.mega-resources-link--title {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
    color: #011C35;
    margin-bottom: 8px;
}

.mega-resources-link--description {
    font-weight: 500;
    font-size: 14px;
    line-height: 1.9;
    color: #3B556E;
    margin: 0;
}

.mega-use-case-links {
    display: flex;
    margin-left: 40px;
}

.mega-product-links {
    display: flex;
}

.mega-use-case-links a,
.mega-product-links a {
    display: inline-flex;
    align-items: center;
}

.mega-use-case-links a span,
.mega-product-links a span {
    font-weight: 500;
    font-size: 14px;
    line-height: 28px;
    color: #0064C0;
}

.mega-use-case-links a span.product-links-separator,
.mega-product-links a span.product-links-separator {
    margin: 0 8px;
    font-size: 16px;
    color: #C4C4C4;
}

.featured-articles-wrapper {
    display: grid;
    grid-gap: 40px;
    align-items: center;
}

.featured-article {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: center;
}

.featured-article:hover {
    text-decoration: none;
}

.featured-article:hover .featured-article--info-description {
    color: #0064C0;
    text-decoration: underline;
}

.featured-article--info-title {
    font-weight: 600;
    font-size: 12px;
    line-height: 15px;
    letter-spacing: 1px;
    color: #A1B9D4;
    margin-bottom: 4px;
}

.featured-article--info-description {
    font-weight: 600;
    font-size: 15px;
    line-height: 21px;
    color: #000000;
    margin-bottom: 0;
}

.main-menu--nav-item.menu-button-item {
    padding: 0;
}

#download-button-header.menu-button-item {
    opacity: 0;
}

.main-menu .main-menu--nav-item:hover {
    cursor: pointer;
}

.main-menu .mega-menu-open {
    /* display: block; */
    visibility: visible;
}

.main-menu .main-menu--nav-link {
    font-weight: 500;
    font-size: 13px;
    line-height: 1.5;
    color: #F7FAFC;
    margin: 0;
    transition: 0.2s;
    text-decoration: none;
}

.main-menu .main-menu--nav-link:focus {
    text-decoration: none;
}

.main-menu .item-mega-arrow {
    position: relative;
}

.main-menu .main-menu--nav-item:hover .item-mega-arrow::before {
    position: absolute;
    z-index: 11;
    content: '';
    bottom: -24px;
    left: calc(50% - 24px/2);
    width: 24px;
    height: 18px;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 16px solid #fff;
    border-radius: 2px;
}

.main-menu .main-menu--nav-link svg {
    margin-left: 8px;
}

.main-menu .main-menu--nav-link svg path {
    fill: #F7FAFC;
    transition: 0.2s;
}

.main-menu .main-menu--nav-item:hover .main-menu--nav-link {
    color: #FF7F00;
    text-decoration: none;
}

.main-menu .main-menu--nav-item:hover .main-menu--nav-link svg path {
    fill: #FF7F00;
}

.main-menu .menu-button-item .main-menu--nav-link {
    margin-right: 0;
    margin-left: 8px;
    display: inline-flex;
    font-weight: 700;
}

.menu-button {
    border: 2px solid #F7FAFC;
    box-sizing: border-box;
    border-radius: 32px;
    padding: 5px 15px;
    transition: 0.2s;
    font-weight: 700;
    font-size: 14px;
    line-height: 27px;
    color: #FFFFFF;
    text-decoration: none;
}

.focus .menu-button {
    margin-left: 8px;
}

.main-menu .main-menu--nav-link.menu-filled-button,
.main-menu.menu-scrolled .main-menu--nav-link.menu-filled-button,
.main-menu.transparent-nav .main-menu--nav-link.menu-filled-button {
    background-color: #FF7F00;
    border-color: #FF7F00;
    color: #FFFFFF;
}

.main-menu .menu-button-item:hover .menu-button {
    background-color: #FF7F00;
    border-color: #FF7F00;
    color: #FFFFFF;
    text-decoration: none;
}

.main-menu.transparent-nav .menu-button-item:hover .main-menu--nav-link.menu-filled-button {
    background-color: #FF7F00;
    border-color: #FF7F00;
}

.transparent-nav .mobile-menu-wrapper .menu-button {
    border-color: #F7FAFC;
    color: #F7FAFC;
}

.transparent-nav .mobile-menu-wrapper .menu-button:hover {
    border-color: #FF7F00;
    color: #F7FAFC;
}

.main-menu.transparent-nav .mobile-menu-wrapper .main-menu--nav-link.menu-filled-button {
    background-color: #F7FAFC;
    border-color: #F7FAFC;
}

.main-menu.transparent-nav .mobile-menu-wrapper .menu-button-item:hover .main-menu--nav-link.menu-filled-button {
    background-color: #FF7F00;
    border-color: #FF7F00;
    color: #011C35;
}

.transparent-nav .mobile-menu-wrapper .menu-button.menu-filled-button {
    color: #011C35;
}

.main-menu.menu-scrolled .main-menu--nav-link {
    color: #011C35;
}

.main-menu.menu-scrolled .main-menu--nav-link svg path {
    fill: #011C35;
}

.main-menu.menu-scrolled .menu-button {
    border-color: #FF7F00;
    color: #FF7F00;
}

/* mobile menu */

.mobile-menu-anchor {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    height: calc(90vh - 100%);
    overflow: hidden;
    pointer-events: none;
}

.mobile-menu-wrapper {
    position: absolute;
    top: 0;
    right: -100%;
    background-color: #FFFFFF;
    margin: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    transition: right .15s ease;
    pointer-events: all;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.mobile-menu-wrapper::-webkit-scrollbar {
    display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
.mobile-menu-wrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.mobile-menu-open {
    right: 0;
}

.mobile-menu--dropdown-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    box-sizing: border-box;
    border: 2px solid #E6EBEF;
    border-right: 0;
    border-left: 0;
    /* margin-top: -2px; */
    text-decoration: none;
}

.mobile-menu--dropdown-title span {
    font-weight: 600;
    font-size: 14px;
    line-height: 21px;
    color: #011C35;
    transition: color .3s ease-in-out;
}

.mobile-menu--dropdown-title svg {
    width: 16px;
    height: auto;
    transform: rotate(0deg);
    transition: transform .3s ease-in-out;
}

.mobile-menu--dropdown-title svg path {
    fill: #011C35;
    transition: fill .3s ease-in-out;
}

.mobile-menu--dropdown-title-open span {
    color: #FF7F00;
}

.mobile-menu--dropdown-title-open svg {
    transform: rotate(-180deg);
}

.mobile-menu--dropdown-title-open svg path {
    fill: #FF7F00;
}

.mobile-menu--use-cases .mobile-menu--dropdown-title,
.mobile-menu--resources .mobile-menu--dropdown-title {
    margin-top: -2px;
}

.mobile-menu--login {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 24px;
    box-sizing: border-box;
    border: 2px solid #E6EBEF;
    border-right: 0;
    border-left: 0;
    margin-top: -2px;
}

.mobile-menu--login-link,
.mobile-menu--login-link:focus,
.mobile-menu--login-link:visited {
    font-weight: 600;
    font-size: 14px;
    line-height: 21px;
    color: #011C35;
    text-decoration: none;
}

.mobile-menu--login-link:hover {
    color: #FF7F00;
    text-decoration: none;
}

.mobile-menu--dropdown {
    background: #EDF0F8;
    padding: 0 24px;
    margin: 0;
    overflow: hidden;

    width: 100%;
    max-height: 0;
    visibility: hidden;
    transition: max-height .3s ease-in-out, visibility .3s ease-in-out;
}

.mobile-menu--dropdown-open {
    visibility: visible;
    max-height: 800px;
}

.mobile-menu--dropdown-item {
    display: grid;
    grid-template-columns: unset;
    align-items: baseline;
    margin-top: 24px;
}

.mobile-menu--dropdown-item:last-of-type {
    margin-bottom: 24px;
}

.mobile-menu--dropdown-item-icon svg {
    vertical-align: middle;
}

.mobile-menu--dropdown-item-text {
    display: grid;
}

.mobile-menu--dropdown-section-title {
    display: flex;
    font-weight: 500;
    font-size: 13px;
    line-height: 190%;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #011C35;
    border-bottom: 1px solid #A1B9D4;
    margin-top: 48px;
    padding-bottom: 16px;
}
.mobile-menu--dropdown-section-title:first-of-type {
    margin-top: 24px;
}

.mobile-menu--dropdown-item-title {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    justify-items: flex-start;
    gap: 8px;
}

.mobile-menu--use-cases .mobile-menu--dropdown-item-title {
    grid-template-columns: 1fr auto;
}

.mobile-menu--dropdown-item-logo {
    width: auto;
    height: 14px;
    max-width: 100%;
}

.mobile-menu--dropdown-item-title span {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    color: #011C35;
}

.mobile-menu--dropdown-item-title:hover span {
    color: #0064C0;
    text-decoration: underline;
}

.mobile-menu--dropdown-item-title:hover path {
    fill: #0064C0;
}

.mobile-menu--link {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.5;
    display: flex;
    flex-wrap: wrap;
    grid-column-gap: 8px;
    align-items: center;
    color: #011C35;
}

.mobile-menu--link:hover .product-tag {
    text-decoration: none;
}

.mobile-menu--sublinks {
    display: flex;
    align-items: center;
    margin-top: 16px;
}

.mobile-menu--sublink {
    font-weight: 500;
    font-size: 13px;
    line-height: 1.5;
}

.mobile-menu--sublink-separator {
    background: #A1B9D4;
    height: 15px;
    width: 1px;
    margin: 0 8px;
}

.mobile-menu--sublink:first-of-type {
    max-width: 140px;
}

.mobile-menu--buttons {
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    align-items: center;
    grid-gap: 8px;
}

.mobile-menu--contact-button,
.mobile-menu--contact-button:focus,
.mobile-menu--contact-button:visited {
    background-color: #FFFFFF;
    font-weight: 700;
    font-size: 14px;
    line-height: 21px;
    color: #FF7F00;
    border: 2px solid #FF7F00;
    box-sizing: border-box;
    border-radius: 32px;
    padding: 8px 8px;
    display: flex;
    justify-content: center;
    text-decoration: none;
}

.mobile-menu--demo-button,
.mobile-menu--demo-button:focus,
.mobile-menu--demo-button:visited {
    background-color: #FF7F00;
    font-weight: 700;
    font-size: 14px;
    line-height: 21px;
    color: #FFFFFF;
    border: 2px solid #FF7F00;
    box-sizing: border-box;
    border-radius: 32px;
    padding: 8px 16px;
    display: flex;
    justify-content: center;
    text-decoration: none;
}

.mobile-menu--demo-button:hover,
.mobile-menu--contact-button:hover {
    background-color: #FF7F00;
    color: #FFFFFF;
    text-decoration: none;
}

@media (min-width: 375px) {
    .mobile-menu--sublink:first-of-type {
        max-width: 100%;
    }
}

@media (min-width: 1200px) {

    .main-menu--position-sticky {
        top: 43px;
    }
    .nav-toggle {
        display: none;
    }

    .main-menu--nav-list {
        display: flex;
    }

    .main-menu--navbar-links {
        display: flex;
        flex: 1;
        justify-content: space-between;
    }

    .mobile-menu-anchor {
        display: none;
    }

    .main-menu .main-menu--nav-link {
        display: flex;
        align-items: center;
        margin: 0 16px;
    }

    .main-menu.transparent-nav .main-menu--nav-link {
        color: #011C35;
    }
    .main-menu.transparent-nav .main-menu--nav-link svg path {
        fill: #011C35;
    }

    .main-menu--position-sticky {
        margin-bottom: -69px;
    }

    .main-menu.transparent-nav .menu-button {
        border-color: #FF7F00;
        color: #FF7F00;
    }
}

@media (min-width: 500px) and (max-width: 1199px) {
    .main-menu--position-sticky {
        top: 70px;
    }
}

@media (min-width: 1400px) {
    .main-menu .main-menu--nav-link {
        font-size: 14px;
        margin: 0 24px;
    }
}

@media (max-width: 1199px) {
    .main-menu-mobile-open {
        background-color: #FFFFFF;
    }

    .main-menu-mobile-open .nav-toggle svg rect {
        fill: #0064C0;
    }

    .main-menu.main-menu-mobile-open .logo .logo-white {
        display: none;
    }

    .main-menu.main-menu-mobile-open .logo .logo-blue {
        display: flex;
    }

    .main-menu-mobile-open .nav-open svg rect {
        fill: #FF7F00;
    }

    .main-menu .container {
        max-width: 100%;
    }
}
