:root {
    --accent: #ffffff;
    --bg: #030303;
    --glass: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #f5f5f7;
    --text-dim: #6e6e73;
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

.crt-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1000;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.13) 0px,
            rgba(0, 0, 0, 0.13) 1px,
            transparent 1px,
            transparent 3px
        );
    background-size: 100% 3px;
    animation: crt-scroll 8s linear infinite;
    opacity: 0.7;
}

.crt-layer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 0, 0, 0.018),
        rgba(0, 255, 0, 0.012),
        rgba(0, 0, 255, 0.018)
    );
}

@keyframes crt-scroll {
    from { background-position: 0 0; }
    to   { background-position: 0 50%; }
    from { background-position: 0 50%; }
    to   { background-position: 0 75%; }
    from { background-position: 0 75%; }
    to   { background-position: 0 100%; }
}

.vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
    background: radial-gradient(circle, transparent 40%, rgba(0,0,0,0.7) 100%);
}

#bg-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 52px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
    padding: 0 20px;
}

.nav-inner {
    width: 100%;
    max-width: 1000px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    opacity: 0.8;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a:hover { opacity: 1; }

.ui-decoration {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
    padding: 80px 40px;
}

.corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 1px solid var(--glass-border);
}

.tl { top: 70px; left: 30px; border-right: none; border-bottom: none; }
.tr { top: 70px; right: 30px; border-left: none; border-bottom: none; }
.bl { bottom: 30px; left: 30px; border-right: none; border-top: none; }
.br { bottom: 30px; right: 30px; border-left: none; border-top: none; }

.status-bar {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dot { width: 4px; height: 4px; background: var(--glass-border); border-radius: 50%; }
.dot.active { background: var(--text-dim); box-shadow: 0 0 5px var(--text-dim); }

header {
    margin-top: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
}

.hero-banner {
    width: 100%;
    max-width: 800px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    animation: emerge 0.2s ease-out;
}

@keyframes emerge {
    from { opacity: 0; transform: scale(0.9) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

#hero-spacer {
    margin-top: 37vh;
}

#bigger-hero-spacer {
    margin-top: 86vh;
}

main {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
    width: 100%;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 20px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: block;
}

.card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-8px);
}

.card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 16px;
    background: #111;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
}

footer {
    padding: 60px 20px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-dim);
    background: rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .ui-decoration { display: none; }

    #hero-spacer {
        margin-top: 37vh;
    }

    #bigger-hero-spacer {
        margin-top: 86vh;
    }

    header {
        margin-top: 72px;
        padding: 0 14px;
    }

    main {
        margin: 30px auto;
        padding: 0 14px;
    }

    .grid-container {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .card {
        border-radius: 16px;
    }

    .card-img {
        height: 150px;
    }

    footer {
        flex-direction: column;
        gap: 12px;
        padding: 32px 20px;
        align-items: flex-start;
    }
}
