
/* ==================================================
   1. GLOBAL SETTINGS
   ================================================== */

* {
    box-sizing: border-box;
    text-shadow: 0 0 10px currentColor;
}

:root {
    --background: #050505;
    --foreground: #f2f2f2;
    --muted: #929292;
    --orange: #ff8128;
    --line: #292929;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--foreground);
    font-family: "Orbitron", sans-serif;
    font-weight: 700;
}
::selection {
    background: rgba(255, 255, 255, 0.5);
    color: #080808;
    text-shadow: none;
}
/* ==================================================
   2. CRT EFFECTS
   ================================================== */

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
}

body::before {
    z-index: 9998;
    background: radial-gradient(
        ellipse at center,
        transparent 55%,
        rgba(0, 0, 0, 0.35) 100%
    );
}

body::after {
    z-index: 9999;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 2px,
        rgba(0, 0, 0, 0.20) 3px,
        rgba(0, 0, 0, 0.20) 4px
    );
}

/* ==================================================
   3. PAGE LAYOUT
   ================================================== */

.page-shell {
    display: flex;
    flex-direction: column;
    width: min(100%, 1440px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 22px 40px 0px 40px;
}

/* ==================================================
   4. TOP BAR
   ================================================== */

.topbar {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
    min-height: 40px;

}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 24px;

    letter-spacing: 0.08em;
    text-decoration: none;
}

.brand::before {
    content: "";
    width: 4px;
    height: 26px;
    background: var(--orange);
    box-shadow: 0 0 10px var(--orange);
}

.database-label {
    justify-self: end;
    font-size: 13px;
}

/* ==================================================
   5. NAVIGATION
   ================================================== */

.top-nav {
    display: flex;
    justify-content: flex-start;
    gap: 42px;
    padding-top: 42px;
}

button {
    font-family: inherit;
    font-weight: inherit;
}

.nav-button {
    min-width: 96px;
    min-height: 39px;
    padding: 0 18px;
    border: 0;
    background: #f4f4f4;
    color: #111;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    text-shadow: none;
    box-shadow: 0 0 10px #f4f4f4;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.nav-button:hover,
.nav-button.active {
    background: var(--orange);
    color: #080808;
    box-shadow: 0 0 10px var(--orange);
}

/* ==================================================
   6. IDENTITY / UNIT INFORMATION
   ================================================== */

.identity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 850px;
    margin-top: 52px;
}

.identity-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.orange-tag {
    display: inline-block;
    padding: 5px 9px;
    background: var(--orange);
    color: #080808;
    font-size: 13px;
    line-height: 1.2;
    text-shadow: none;
    box-shadow: 0 0 10px var(--orange);
}

.identity-item h1,
.identity-item h2 {
    margin: 13px 0 0 3px;
    font-size: 23px;
    font-weight: 400;
    line-height: 1.2;
}

.status-item h2 {
    text-transform: uppercase;
}



/* ==================================================
   7. MAIN CONTENT / MANIFEST
   ================================================== */

.content-panel {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 24px 5px;
    max-width: 820px;
    padding: 44px 12px 40px;
}

.manifest-label {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.02em;
}

.profileData{
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.02em;
}

.orange-text {
    color: var(--orange);
}

/* ==================================================
   8. RECORDS AND PROJECT CARDS
   ================================================== */

.record-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.record {
    min-height: 135px;
    padding: 17px;
    border: 1px solid var(--line);
    background: #090909;
}

.record-code {
    color: var(--orange);
    font-size: 10px;
}

.record h3 {
    margin: 13px 0 9px;
    font-size: 13px;
    font-weight: 400;
}

.record p {
    max-width: 300px;
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

/* Project cards */

.record-link {
    position: relative;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.record-link:hover {
    border-color: var(--orange);
    box-shadow: 0 0 10px var(--orange);
    background: #101010;
}

.project-link {
    color: inherit;
    text-decoration: none;
}

.project-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.external-link {
    position: relative;
    z-index: 2;
}

/* ==================================================
   9. LINKS AND VISIBILITY
   ================================================== */

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

a:hover {
    color: var(--foreground);
}

.hidden {
    display: none;
}

/* ==================================================
   10. FOOTER
   ================================================== */

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 14px 25px 15px;
    border-top: 1px solid var(--line);
    color: #666;
    background: var(--background);
    font-size: 9px;
    letter-spacing: 0.08em;
}

#systemInfo {
    line-height: 1.8;
    overflow-wrap: anywhere;
}

/* ==================================================
   11. MOBILE LAYOUT
   ================================================== */

@media (max-width: 700px) {
    .page-shell {
        padding: 18px 20px 24px;
    }

    .top-nav {
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-button {
        min-width: 0;
        flex: 1;
    }

    .identity-grid {
        gap: 16px;
        margin-top: 42px;
    }

    .identity-item h1,
    .identity-item h2 {
        font-size: clamp(17px, 4vw, 23px);
        overflow-wrap: anywhere;
    }

    .content-panel {
        grid-template-columns: 1fr;
        gap: 13px;
        padding: 30px 4px;
    }

    .data-list {
        margin-bottom: 18px;
    }

    .record-grid {
        grid-template-columns: 1fr;
    }

    .footer {
        flex-direction: column;
        margin-top: auto;
    }
}

/* ==================================================
   12. VIEW TRANSITION
   ================================================== */

@keyframes systemBoot {
    0% {
        opacity: 0;
        transform: translateY(8px) scale(0.99);
    }

    35% {
        opacity: 1;
    }

    60%,
    100% {
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 1;
    }
}

.fade-in {
    animation: systemBoot 0.5s forwards;
}



#dataRain {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;

    filter: blur(1.5px);
}

