html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    font-family: "Noto Sans SC";
    overflow: hidden;
    background: #ffffff;
}

#app {
    width: 100%;
    height: 100%;
    overflow: auto;
}

#withOutJS {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    opacity: 0;
    animation: fadeIn 1s forwards;
    animation-delay: 1s;
    z-index: 20;
    background: #fff;
}

@font-face {
    font-family: "Noto Sans SC";
    /* src: url("./js/NotoSansSC-VariableFont_wght.ttf") format("ttf"); */
    src: url("./NotoSansSC-Thin.woff2") format("woff2");

}

section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

footer {
    position: relative;
}

.section-background {
    background-image: linear-gradient(to right in oklab, oklch(97.1% 0.014 343.198), oklch(97% 0.014 254.604));
}

.title-mix {
    display: flex;
    flex-direction: column;
    color: #0a0a0a;
    font-size: 46px;
    font-weight: 700;
}

.title-top-des {
    color: #747474;
    padding: 16px;
}

.login-button {
    padding: 6px 16px;
    background: #008fd7;
    border-radius: 8px;
    color: #ffffff;
    zoom: 1.4;
}

.login-button:hover {
    background: #016ea5;
    cursor: pointer;
}

a {
    text-decoration: none;
    color: inherit;
}

.blue-title {
    color: #008cd6;
    font-size: 20px;
    font-weight: 700;
    margin: 16px 0;
}

.black-title {
    color: #0a0a0a;
    font-size: 24px;
    font-weight: 700;
    margin: 16px 0;
}

.descripts {
    color: #737373;
    font-size: 14px;
    line-height: 2;
    text-indent: 2em;
}

.cards-box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
}

.card {
    width: 100%;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease;
    z-index: 9;
}

.card-icon {
    zoom: 2;
}

.footer-grey {
    min-height: 300px;
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 16px;
}

.qr-code-container {
    display: flex;
    justify-content: center;
    margin: 20px;
}

.qr-code {
    width: 200px;
    height: 200px;
    border-radius: 8px;
}

.footer-waves {
    width: 100%;
    height: 100px;
    background: #f7f7f7;
}

.footer-white {
    height: 180px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.waves {
    width: 100%;
    height: 100px
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }

    100% {
        transform: translate3d(85px, 0, 0);
    }
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-size: 16px;
    color: #737373;
}

.footer-links a:hover {
    color: #008fd7;
}

/* Repeating logo background */
.logo-bg {
    position: relative;
}

.logo-bg::before {
    content: "";
    position: fixed;
    /* pin to viewport for parallax-fixed effect */
    top: 0;
    left: 0;
    bottom: 0;
    right: 15px;
    background-image: url('../images/circle.png');
    background-repeat: repeat;
    background-size: 120px 120px;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
    /* above body background */
    will-change: transform;
    /* filter: blur(8px); */
}

.logo-bg::before {
    transform: translate(0, 0);
}

.logo-bg::after {
    transform: translate(472px, 472px);
}

/* Ensure foreground content stays above fixed background */
.logo-bg {
    position: relative;
    isolation: isolate;
    /* create stacking context so ::before/::after sit above body */
}

.logo-bg>* {
    position: relative;
    z-index: 1;
}

.change-language {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.language-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    padding: 6px 12px;
    cursor: pointer;
    color: #0a0a0a;
    font-size: 14px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.language-trigger:hover,
.language-trigger:focus {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.language-trigger:focus-visible {
    outline: 2px solid #008fd7;
    outline-offset: 2px;
}

.language-trigger img {
    display: block;
    width: 24px;
    height: 24px;
}

.language-arrow {
    font-size: 12px;
    color: #737373;
}

.language-menu {
    list-style: none;
    margin: 0;
    padding: 4px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    min-width: 160px;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.change-language:hover .language-menu,
.change-language:focus-within .language-menu,
.change-language.is-open .language-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.language-option {
    padding: 8px 12px;
    border-radius: 8px;
    color: #0a0a0a;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.language-option:hover,
.language-option:focus {
    background: rgba(0, 143, 215, 0.1);
    color: #008fd7;
}

.language-option.is-active {
    background: rgba(0, 143, 215, 0.18);
    color: #008fd7;
    font-weight: 600;
}

@media (min-width: 768px) {

    section * {
        max-width: 1100px;
    }

    .top {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .title-mix {
        font-size: 56px;
        flex-direction: row;
    }

    .title-top-des {
        font-size: 18px;
    }

    .black-title {
        color: #0a0a0a;
        font-size: 36px;
        font-weight: 700;
        margin: 16px 0 32px;
    }

    .cards-box {
        align-items: normal;
        justify-content: normal;
        position: relative;
    }

    .card {
        width: unset;
        padding: 34px;
    }

    /* Two-row responsive grid similar to gpt.html */
    .cards-box.grid-wide {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        width: 100%;
    }

    .cards-box.grid-mixed {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        width: 100%;
    }

    .card-icon {
        zoom: 4;
    }

    .footer-grey {
        height: 360px;
    }

    .footer-links {
        height: 180px;
    }
}


@media (min-width: 848px) {

    .title-mix {
        font-size: 64px;
        flex-direction: row;
    }

}