:root {
    --font-sans: 'Apercu', Helvetica, sans-serif;
    --bg: #ffffff;
    --text: #1a1a1a;
    --accent: #0a192f;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
}

canvas#background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Above background, below content */
}

header {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.logo {
    height: 180px;
    opacity: 0.9;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

main {
    position: relative;
    z-index: 2; /* Above canvas */
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 2rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    line-height: 2;
    color: var(--accent);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.upcoming {
    font-size: 1.25rem;
    font-weight: 200;
    color: var(--text);
    margin-top: 1rem;
    opacity: 0.8;
}

.content-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    position: relative;
}

.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}

footer.fade-footer {
    position: fixed;
    bottom: 0.5rem;         /* closer to bottom but not cut off */
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: var(--text);
    opacity: 0;
    z-index: 3;
    background: none;
    transition: opacity 1.2s ease;
    width: 100%;            /* ensures centering on mobile */
    text-align: center;
    line-height: 1.4;
    padding: 0 1rem;        /* breathing space on edges */
}

footer.fade-footer.visible {
    opacity: 0.6;
}

footer p {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
}

.footer-item {
    white-space: nowrap;
}

.separator {
    display: inline-block;
}

/* 📱 Mobile layout */
@media (max-width: 600px) {
    footer p {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.3rem;
    }
    .footer-item,
    .separator {
        white-space: nowrap;  /* prevent awkward splits */
    }
}

footer.fade-footer a {
    color: inherit;          /* match the surrounding text color */
    text-decoration: none;   /* remove underline */
    transition: opacity 0.2s ease;
}

footer.fade-footer a:hover {
    opacity: 0.8;            /* subtle hover effect */
}
