/* Home page — hero + scrolly Three.js demo (index.html only) */

.page-home {
    overflow-x: hidden;
}

.intro-hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.brand-logo {
    height: 240px;
    width: auto;
    margin-bottom: 3.5rem;
    object-fit: contain;
    opacity: 0;
    animation: premiumFadeIn 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.2s;
}

.hero-taglines {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.tagline-item {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.2px;
    background: linear-gradient(180deg, #1d1d1f, #86868b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: premiumFadeIn 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.line-1 {
    animation-delay: 0.8s;
}

.line-2 {
    animation-delay: 1.3s;
}

.line-3 {
    animation-delay: 1.8s;
}

@keyframes premiumFadeIn {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scrolly-container {
    position: relative;
    height: 700vh;
}

.sticky-track {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    overflow: hidden;
}

.left-content {
    width: 42%;
    height: 100%;
    position: relative;
    z-index: 2;
}

.text-panel {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    width: 100%;
}

.text-panel h2 {
    font-size: 3rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #1d1d1f;
}

.text-panel p {
    font-size: 1.25rem;
    color: #86868b;
    line-height: 1.8;
    font-weight: 400;
}

.right-content {
    width: 53%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#webgl-container {
    width: 130%;
    height: 100%;
    position: absolute;
    right: -15%;
}

.outro-footer {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #fff;
    text-align: center;
    position: relative;
    z-index: 10;
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.02);
    border-top: 1px solid #e5e5e7;
    padding: 5rem 20px;
}

.outro-footer h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    letter-spacing: -1px;
    color: #1d1d1f;
}

.download-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 42px;
}

.download-buttons a {
    display: inline-block;
    height: 100%;
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.download-buttons a:hover {
    transform: scale(1.04);
}

.download-buttons img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

@media (max-width: 767px) {
    .intro-hero {
        min-height: 100svh;
        height: auto;
        padding: 5rem 1.25rem 2.5rem;
    }

    .brand-logo {
        height: 120px;
        margin-bottom: 1.75rem;
    }

    .tagline-item {
        font-size: 1.35rem;
    }

    .hero-taglines {
        gap: 0.35rem;
    }

    .scrolly-container {
        height: 620vh;
    }

    .sticky-track {
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 3.5rem 1.25rem 0;
        gap: 0.85rem;
        overflow-x: hidden;
        overflow-y: visible;
    }

    .right-content {
        order: 1;
        width: 100%;
        height: 53vh;
        min-height: 360px;
        max-height: none;
        flex-shrink: 0;
        overflow: visible;
        align-items: stretch;
        margin-bottom: 0;
    }

    .left-content {
        order: 2;
        width: 100%;
        height: auto;
        flex: 0 0 auto;
        min-height: 0;
        margin-top: 0;
        padding-top: 0.15rem;
    }

    #webgl-container {
        width: 100%;
        height: 100%;
        right: 0;
        top: 0;
        position: absolute;
        overflow: visible;
    }

    .text-panel {
        padding: 0 0.25rem;
        top: 0;
        transform: translateY(0);
    }

    .text-panel h2 {
        font-size: 1.35rem;
        margin-bottom: 0.65rem;
        letter-spacing: -0.3px;
    }

    .text-panel p {
        font-size: 0.88rem;
        line-height: 1.65;
    }

    .outro-footer {
        min-height: auto;
        padding: 3rem 1.25rem 3.5rem;
    }

    .outro-footer h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        letter-spacing: -0.4px;
    }

    .download-buttons {
        flex-direction: column;
        height: auto;
        gap: 0.65rem;
        width: 100%;
        max-width: 200px;
    }

    .download-buttons a {
        height: 40px;
        width: 100%;
    }

    .download-buttons img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}
