/* ========================================
   LogosVox — Shared Styles
   ======================================== */

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #050014;
    font-family: 'Space Grotesk', sans-serif;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

canvas {
    display: block;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
}

/* ========================================
   Header
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2.5rem;
    padding-top: max(1.25rem, env(safe-area-inset-top));
    padding-left: max(2.5rem, env(safe-area-inset-left));
    padding-right: max(2.5rem, env(safe-area-inset-right));
    z-index: 100;
    pointer-events: auto;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    pointer-events: auto;
    transition: opacity 0.3s ease;
}

.header-brand:hover {
    opacity: 0.7;
}

.header-brand img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.header-brand span {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-nav a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    pointer-events: auto;
    transition: color 0.3s ease;
    position: relative;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.6);
    transition: width 0.3s ease;
}

.header-nav a:hover {
    color: rgba(255, 255, 255, 0.95);
}

.header-nav a:hover::after {
    width: 100%;
}

/* ========================================
   Content Overlay
   ======================================== */

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 10;
}

/* ========================================
   Home Page
   ======================================== */

.title {
    color: #fff;
    font-size: 4.5rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 1.5s ease-out 0.3s forwards;
}

.subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    margin-top: 1rem;
    opacity: 0;
    animation: fadeInUp 1.5s ease-out 0.8s forwards;
}

/* ========================================
   About Page
   ======================================== */

.about-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
    padding: 5rem 2rem 2rem;
}

.about-content h1 {
    color: #fff;
    font-size: 2.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1.2s ease-out 0.2s forwards;
}

.about-content .about-text {
    max-width: 640px;
    text-align: center;
    opacity: 0;
    animation: fadeInUp 1.2s ease-out 0.5s forwards;
}

.about-content .about-text p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.85;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
}

.about-content .about-text p:last-child {
    margin-bottom: 0;
}

.about-content .about-tagline {
    margin-top: 2.5rem;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 1.2s ease-out 0.9s forwards;
}

/* ========================================
   Footer
   ======================================== */

.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2.5rem;
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
    padding-left: max(2.5rem, env(safe-area-inset-left));
    padding-right: max(2.5rem, env(safe-area-inset-right));
    z-index: 100;
    pointer-events: none;
}

.footer-left {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-decoration: none;
    pointer-events: auto;
    transition: color 0.3s ease;
}

.footer-left:hover {
    color: rgba(255, 255, 255, 0.65);
}

.footer-right {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.08em;
}

/* ========================================
   Animations
   ======================================== */

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

/* ========================================
   Responsive — Tablet (≤ 900px)
   ======================================== */

@media (max-width: 900px) {
    .title {
        font-size: 3.5rem;
    }

    .about-content {
        padding: 5rem 3rem 4rem;
    }
}

/* ========================================
   Responsive — Mobile (≤ 600px)
   ======================================== */

@media (max-width: 600px) {
    .header {
        padding: 1rem 1.25rem;
        padding-top: max(1rem, env(safe-area-inset-top));
        padding-left: max(1.25rem, env(safe-area-inset-left));
        padding-right: max(1.25rem, env(safe-area-inset-right));
    }

    .header-brand span {
        font-size: 1rem;
    }

    .title {
        font-size: 2.2rem;
        letter-spacing: 0.1em;
    }

    .subtitle {
        font-size: 0.82rem;
        letter-spacing: 0.25em;
    }

    .about-content {
        padding: 5rem 1.5rem 5rem;
        justify-content: flex-start;
        overflow-y: auto;
        pointer-events: auto;
        -webkit-overflow-scrolling: touch;
    }

    .about-content h1 {
        font-size: 1.75rem;
        margin-top: 0.5rem;
    }

    .about-content .about-text p {
        font-size: 0.95rem;
        line-height: 1.75;
    }

    .about-content .about-tagline {
        margin-top: 1.75rem;
        margin-bottom: 1rem;
    }

    .site-footer {
        padding: 0.85rem 1.25rem;
        padding-bottom: max(0.85rem, env(safe-area-inset-bottom));
        padding-left: max(1.25rem, env(safe-area-inset-left));
        padding-right: max(1.25rem, env(safe-area-inset-right));
    }
}

/* ========================================
   Responsive — Small Mobile (≤ 400px)
   ======================================== */

@media (max-width: 400px) {
    .header-brand img {
        width: 22px;
        height: 22px;
    }

    .header-brand span {
        font-size: 0.92rem;
    }

    .title {
        font-size: 1.85rem;
        letter-spacing: 0.08em;
    }

    .subtitle {
        font-size: 0.75rem;
        letter-spacing: 0.2em;
    }

    .about-content h1 {
        font-size: 1.5rem;
    }

    .about-content .about-text p {
        font-size: 0.875rem;
        line-height: 1.7;
    }

    .footer-left,
    .footer-right {
        font-size: 0.65rem;
    }
}
