* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --bg-dark: #000000;
    --overlay: rgba(0, 0, 0, 0.6);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    overflow-x: hidden;
    background: var(--bg-dark);
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    z-index: 0;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1s ease-out;
}

#bg-video.fade-out {
    opacity: 0;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: max(env(safe-area-inset-top), 2rem) 3rem 2rem;
    z-index: 100;
    background: transparent;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 36px;
    height: 36px;
    filter: brightness(0) invert(1);
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-primary);
}

.hero {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
    padding: 6rem 3rem 3rem;
}

.hero-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.animated-text {
    font-size: clamp(2rem, 6.5vw, 5.5rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.animated-text .line {
    display: block;
    overflow: hidden;
}

.animated-text .word {
    display: inline-block;
    margin-right: 0.3em;
}

.animated-text .char {
    display: inline-block;
    opacity: 0;
    transition: none;
    visibility: visible;
    position: relative;
}

.animated-text.fade-out .char {
    opacity: 0 !important;
}

.page-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 2rem 3rem calc(env(safe-area-inset-bottom) + 2rem);
    z-index: 100;
    font-size: clamp(0.85rem, 1.5vw, 1.1rem);
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 2.5s forwards;
    pointer-events: none;
}

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

.footer-left {
    display: flex;
    gap: 1.5rem;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-icon {
    width: 40px;
    height: 40px;
    color: var(--text-primary);
}

.tagline {
    text-transform: uppercase;
}

.est {
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 1024px) {
    .page-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .footer-left {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1.5rem 1.5rem;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
    }

    .logo-text {
        font-size: 0.9rem;
        letter-spacing: 0.1em;
    }

    .hero {
        padding: 4rem 1.5rem 2rem;
        align-items: flex-start;
        padding-top: 25vh;
    }

    .hero-content {
        margin-top: 0;
    }

    .animated-text {
        font-size: clamp(2rem, 12vw, 3.5rem);
        line-height: 1.1;
    }

    .page-footer {
        padding: 1.5rem 1.5rem calc(env(safe-area-inset-bottom) + 1.5rem);
        font-size: 0.75rem;
        gap: 1rem;
        flex-direction: row;
        align-items: flex-end;
    }

    .footer-left {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .footer-right {
        align-items: center;
    }

    .footer-icon {
        width: 30px;
        height: 30px;
    }
}
