html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
    background: #050505;
    color: #f5f5f7;
}

body.home-scroll-locked {
    overflow: hidden;
}

body.home-intro-active #mainHeader,
body.home-intro-active #heroSub,
body.home-intro-active #heroBtns,
body.home-intro-active #scroll-indicator {
    opacity: 0;
    pointer-events: none;
}

body.home-intro-revealing #mainHeader,
body.home-intro-complete #mainHeader {
    opacity: 1;
    pointer-events: auto;
}

#splash {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: #050505;
    transition: opacity var(--home-intro-reveal-duration, 2000ms) ease;
}

#splash.hidden {
    opacity: 0;
    pointer-events: none;
}

#mainHeader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 90;
    height: 72px;
    transition: opacity var(--home-intro-reveal-duration, 2000ms) ease, background-color .3s ease;
}

.nav-container {
    height: 72px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    height: 36px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-item > a,
.nav-link {
    color: rgba(255,255,255,.86);
    text-decoration: none;
    font-size: 14px;
}

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

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 640px;
    overflow: hidden;
    background: #0a0a0a;
}

.hero-bg-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #0a0a0a url("../images/bg-1.webp") center center / cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0,0,0,.4);
}

#heroSlogan {
    position: absolute;
    top: 45%;
    left: 0;
    right: 0;
    z-index: 99;
    transform: translateY(-45%) scale(1.5);
    text-align: center;
    padding: 0 24px;
    pointer-events: none;
    opacity: 0;
    font-size: clamp(36px, 5.5vw, 68px);
    line-height: 1.25;
    font-weight: 700;
    color: #f5f5f7;
    transition: opacity .45s ease, transform var(--home-intro-reveal-duration, 2000ms) cubic-bezier(.22,1,.36,1);
}

#heroSlogan.show {
    opacity: 1;
}

#heroSlogan.settle {
    transform: translateY(-45%) scale(1);
}

#heroSub,
#heroBtns,
#scroll-indicator {
    position: relative;
    z-index: 3;
    opacity: 0;
    transition: opacity var(--home-intro-reveal-duration, 2000ms) ease;
}

#heroSub.show,
#heroBtns.show,
#scroll-indicator.show {
    opacity: 1;
}

.hl {
    color: #ff6600;
}

@media (max-width: 768px) {
    #mainHeader,
    .nav-container {
        height: 64px;
    }

    .nav-container {
        padding: 0 18px;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero {
        min-height: 600px;
    }

    #heroSlogan {
        font-size: clamp(34px, 11vw, 48px);
        line-height: 1.32;
    }
}
