/* ========================================
   FLÓ — Tokyo Night Neon
   ======================================== */

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

:root {
    --bg: #07070d;
    --cyan: #64dcff;
    --cyan-dim: #2e4a60;
    --cyan-glow: rgba(100, 220, 255, 0.5);
    --text: #c0d8e8;
    --text-dim: #2a3d50;
    --panel-bg: rgba(7, 7, 13, 0.88);
    --border: #0e1a28;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'VT323', monospace;
    font-size: 1.15rem;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    cursor: crosshair;
}

/* ---- Canvas ---- */

#storm-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    image-rendering: pixelated;
}

/* ---- CRT overlay ---- */

.crt {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.1) 2px,
            rgba(0, 0, 0, 0.1) 4px
        );
}

.crt::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 45%,
        rgba(0, 0, 0, 0.5) 100%
    );
}

/* ---- Navigation ---- */

nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: rgba(7, 7, 13, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-bottom: 1px solid var(--border);
}

.nav-brand {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.9rem;
    color: var(--cyan);
    text-decoration: none;
    text-shadow: 0 0 10px var(--cyan-glow);
}

.nav-brand:hover {
    color: #fff;
    text-shadow:
        0 0 10px rgba(100, 220, 255, 0.8),
        0 0 30px rgba(100, 220, 255, 0.4);
}

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.nav-links a {
    font-family: 'VT323', monospace;
    font-size: 1rem;
    color: var(--text-dim);
    text-decoration: none;
    padding: 0.25rem 0.6rem;
    border: 1px solid transparent;
    transition: all 0.25s ease;
}

.nav-links a:hover {
    color: var(--cyan);
    border-color: var(--border);
    text-shadow: 0 0 6px rgba(100, 220, 255, 0.2);
}

.nav-links a.active {
    color: var(--cyan);
    border-color: var(--cyan-dim);
    text-shadow: 0 0 8px rgba(100, 220, 255, 0.3);
}

/* ---- Hero (home page) ---- */

.hero {
    position: fixed;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.wordmark {
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(3.5rem, 12vw, 10rem);
    color: #e0f0ff;
    text-shadow:
        0 0 10px rgba(100, 220, 255, 0.8),
        0 0 30px rgba(100, 220, 255, 0.5),
        0 0 60px rgba(60, 180, 255, 0.3),
        0 0 120px rgba(60, 140, 255, 0.15);
    animation: neon-breathe 4s ease-in-out infinite, boot 2s ease-out forwards;
    opacity: 0;
}

.hero-sub {
    font-family: 'VT323', monospace;
    font-size: clamp(0.9rem, 2vw, 1.3rem);
    color: var(--cyan-dim);
    letter-spacing: 0.6em;
    text-transform: uppercase;
    margin-top: 1.2rem;
    text-shadow: 0 0 6px rgba(100, 220, 255, 0.1);
    animation: boot 2s ease-out 0.5s forwards;
    opacity: 0;
}

/* ---- Inner pages ---- */

.page-inner {
    cursor: default;
}

.content-panel {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    padding: 5rem 2rem 3rem;
    padding-top: calc(60px + 2rem);
}

.panel {
    width: 100%;
    max-width: 680px;
    background: var(--panel-bg);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 2.5rem 3rem;
    box-shadow:
        0 0 40px rgba(0, 0, 0, 0.5),
        0 0 2px rgba(100, 220, 255, 0.05);
    animation: panel-in 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(10px);
    align-self: flex-start;
}

.panel-title {
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(0.8rem, 2.5vw, 1.1rem);
    color: var(--cyan);
    text-shadow: 0 0 10px rgba(100, 220, 255, 0.3);
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.panel-body p {
    margin-bottom: 1.2rem;
    color: var(--text);
    line-height: 1.7;
}

.section-label {
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    color: var(--cyan);
    margin-bottom: 0.6rem;
    margin-top: 0.5rem;
    text-shadow: 0 0 6px rgba(100, 220, 255, 0.15);
}

.divider {
    border: none;
    height: 1px;
    background: var(--border);
    margin: 1.5rem 0;
}

.service-block {
    margin-bottom: 0.5rem;
}

/* ---- Links ---- */

a {
    color: var(--cyan);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--cyan-glow);
}

/* ---- Footer ---- */

footer {
    position: fixed;
    bottom: 0; left: 0;
    width: 100%;
    z-index: 20;
    padding: 0.7rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;    font-family: 'VT323', monospace;
    font-size: 0.9rem;
    color: var(--text-dim);
    border-top: 1px solid var(--border);
    background: rgba(7, 7, 13, 0.85);
}

.page-inner {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-inner .content-panel {
    flex: 1;
}

.page-inner footer {
    position: relative;
    z-index: 10;
}

.footer-icon {
    color: var(--text-dim);
    text-decoration: none;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
}

.footer-icon:hover {
    color: var(--cyan);
    text-shadow: none;
    filter: drop-shadow(0 0 6px rgba(100, 220, 255, 0.3));
}

/* ---- Animations ---- */

@keyframes neon-breathe {
    0%, 100% {
        text-shadow:
            0 0 10px rgba(100,220,255,0.8),
            0 0 30px rgba(100,220,255,0.5),
            0 0 60px rgba(60,180,255,0.3),
            0 0 120px rgba(60,140,255,0.15);
    }
    50% {
        text-shadow:
            0 0 15px rgba(100,220,255,0.9),
            0 0 40px rgba(100,220,255,0.55),
            0 0 80px rgba(60,180,255,0.35),
            0 0 140px rgba(60,140,255,0.2);
    }
}

@keyframes boot {
    0% { opacity: 0; transform: translateY(6px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes cur {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes panel-in {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ---- Responsive ---- */

@media (max-width: 640px) {
    nav {
        flex-direction: column;
        gap: 0.6rem;
        padding: 0.8rem 1rem;
    }

    .page-inner .content-panel {
        padding-bottom: 1rem;
    }

    .nav-links {
        gap: 0.2rem;
    }

    .nav-links a {
        font-size: 0.85rem;
        padding: 0.2rem 0.4rem;
    }

    .content-panel {
        padding: 8rem 1rem 4rem;
    }

    .panel {
        padding: 1.8rem 1.5rem;
    }

    footer {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }

    footer span:nth-child(2) {
        display: none;
    }
}
