:root {
    --bg: #0a0c0f;
    --fg: #f4f6f8;
    --muted: #aab2bd;
    --accent: #ffd54a;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    background-color: var(--bg);
    color: var(--fg);
    font-family: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Flame canvas — full viewport, behind the content */
#flame {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
}

/* Fallback gradient if WebGL is unavailable (toggled via .no-webgl on body) */
body.no-webgl #flame {
    background:
        radial-gradient(
            ellipse 60% 50% at 50% 62%,
            rgba(255, 180, 40, 0.35),
            rgba(255, 100, 20, 0.12) 40%,
            transparent 70%
        );
}

.stage {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    padding: 2rem 1.25rem;
    text-align: center;
}

.logo {
    width: min(46vw, 17rem);
    max-width: 80vw;
    height: auto;
    /* soft dark halo lifts the round emblem off the flame without a hard box */
    filter:
        drop-shadow(0 0 0.5rem rgba(0, 0, 0, 0.75))
        drop-shadow(0 0 2.5rem rgba(0, 0, 0, 0.55));
    user-select: none;
    -webkit-user-drag: none;
}

.tagline {
    margin: 0;
    max-width: 36rem;
    font-size: clamp(1rem, 2.6vw, 1.5rem);
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--fg);
    text-shadow: 0 0.125rem 1rem rgba(0, 0, 0, 0.6);
}

.social {
    display: flex;
    gap: 1.75rem;
    align-items: center;
}

.social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    color: var(--fg);
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-decoration: none;
    transition:
        transform 0.18s ease,
        background-color 0.18s ease,
        color 0.18s ease;
}

.social__link:hover,
.social__link:focus-visible {
    transform: translateY(-0.15rem);
    background-color: rgba(255, 255, 255, 0.14);
    color: var(--accent);
    outline: none;
}

.social__link:focus-visible {
    box-shadow: 0 0 0 0.18rem rgba(255, 213, 74, 0.5);
}

@media (max-width: 30rem) {
    .stage {
        gap: 1.75rem;
    }

    .social__link {
        width: 2.75rem;
        height: 2.75rem;
    }
}

/* Respect reduced-motion: the JS also stops the animation;
   this hides any fallback shimmer and darkens the backdrop. */
@media (prefers-reduced-motion: reduce) {
    #flame {
        opacity: 0.5;
    }
}
