/* =====================================================
   ROOT
===================================================== */

:root {
    --black: #070809;
    --black-2: #0d1012;
    --black-3: #14191b;
    --cyan: #19d9e6;
    --cyan-dark: #087f89;
    --yellow: #e4d83b;
    --red: #e63946;
    --white: #f1f3f2;
    --gray: #a7b0b3;
    --gray-dark: #5e686b;
    --border: rgba(241, 243, 242, 0.12);
    --font-display: "Space Grotesk", sans-serif;
    --font-body: "Inter", sans-serif;
    --font-mono: "IBM Plex Mono", monospace;
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: var(--black2);
}

*::-webkit-scrollbar-thumb {
    background: var(--cyan);
    border-radius: 0px;
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--cyan);
}


/* =====================================================
   RESET
===================================================== */

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


html {
    scroll-behavior: smooth;
}


body {
    background: var(--black);
    color: var(--white);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

/* =====================================================
   TOP BAR
===================================================== */

.topbar {

    height: 58px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: rgba(7, 8, 9, 0.92);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
}

.brand-main {
    color: var(--cyan);
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
}


.brand-separator {
    color: var(--gray-dark);
}

.top-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-family: var(--font-mono);
    font-size: 10px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 10px rgba(25, 217, 230, 0.8);
}

.top-year {
    margin-left: 15px;
    color: var(--white);
}


/* =====================================================
   PAGE
===================================================== */

.apps-page {
    width: 100%;
    max-width: 1600px;
    margin: auto;
    background-image: linear-gradient(rgba(25, 217, 230, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(25, 217, 230, 0.045) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* =====================================================
   HEADER
===================================================== */

.apps-header {
    padding: 45px 45px 55px;
    border-bottom: 1px solid var(--border);
}

.header-meta {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    margin-bottom: 65px;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.15em;
    color: var(--gray-dark);
}

.header-meta span:nth-child(2) {
    text-align: center;
}

.header-meta span:nth-child(3) {
    text-align: right;
}

.header-main {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 60px;
}


.eyebrow {
    display: block;
    margin-bottom: 20px;
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
}

.header-title h1 {
    font-family: var(--font-display);
    font-size: clamp(100px, 16vw, 230px);
    font-weight: 700;
    line-height: 0.72;
    letter-spacing: -0.09em;
}

.header-description {
    width: 300px;
    padding-bottom: 4px;
}

.header-description p {
    color: var(--gray);
    font-size: 13px;
    line-height: 1.65;
    margin-bottom: 28px;
}

.header-coordinates {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 12px;
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--gray-dark);
    letter-spacing: 0.08em;
}

/* =====================================================
   FILTER SECTION
===================================================== */

.filter-section {
    min-height: 65px;
    padding: 0 45px;
    display: grid;
    grid-template-columns: 120px 1fr 150px;
    align-items: center;
    border-bottom: 1px solid var(--border);
    background: rgba(7, 8, 9, 0.65);
}

.filter-label {
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--gray-dark);
    letter-spacing: 0.12em;
}

.filters {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter {
    padding: 7px 11px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--gray-dark);
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.08em;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.filter span {
    margin-left: 7px;
    color: var(--gray-dark);
}

.filter:hover {
    color: var(--white);
    border-color: var(--border);
}

.filter.active {
    color: var(--cyan);
    border-color: rgba(25, 217, 230, 0.35);
    background: rgba(25, 217, 230, 0.04);
}

.filter.active span {
    color: var(--cyan);
}

.filter-total {
    text-align: right;
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--gray-dark);
}

.filter-total span {
    color: var(--white);
    margin-right: 7px;
}


/* =====================================================
   APPLICATIONS
===================================================== */

.applications-section {
    width: 100%;
}

.list-header {
    min-height: 42px;
    padding: 0 25px 0 45px;
    display: grid;
    grid-template-columns:
        70px minmax(260px, 1fr) 180px 130px 100px 50px;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    color: var(--gray-dark);
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.08em;
}

.applications-list {
    width: 100%;
}

/* =====================================================
   APPLICATION ROW
===================================================== */

.app-row {
    position: relative;
    min-height: 108px;
    padding: 0 25px 0 45px;
    display: grid;
    grid-template-columns:
        70px minmax(260px, 1fr) 180px 130px 100px 50px;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(13,
            16,
            18,
            0.55);
    transition: background 0.3s ease, padding-left 0.3s ease;
}

.app-row::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 0;
    background: var(--cyan);
    transition: height 0.3s ease;
}

.app-row:hover {
    background: var(--black-3);
    padding-left: 52px;
}

.app-row:hover::before {
    height: 100%;
}

/* =====================================================
   ROW NUMBER
===================================================== */

.app-id {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--gray-dark);
    font-family: var(--font-mono);
    font-size: 10px;
}

.app-id::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--cyan);
    opacity: 0.7;
}

/* =====================================================
   APPLICATION NAME
===================================================== */

.app-name {
    display: flex;
    gap: 7px;
}

.app-name h2 {
    font-family: var(--font-display);
    font-size: clamp(25px,
            3vw,
            40px);
    font-weight: 600;
    line-height: 0.9;
    letter-spacing: -0.045em;
    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.app-row:hover .app-name h2 {
    color: var(--cyan);
    transform: translateX(4px);
}

.app-description {
    color: var(--gray-dark);
    font-size: 10px;
    line-height: 1.4;
}

/* =====================================================
   TYPE
===================================================== */

.app-type {

    color: var(--gray);
    font-family: var(--font-mono);
    font-size: 8px;
    line-height: 1.6;
    letter-spacing: 0.06em;
}

/* =====================================================
   PLATFORM
===================================================== */

.app-platform {
    color: var(--gray);
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.05em;
}

/* =====================================================
   STATUS
===================================================== */

.app-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-mono);
    font-size: 8px;
}

.app-status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.app-status.live {
    color: var(--cyan);
}

.app-status.live::before {
    background: var(--cyan);
    box-shadow: 0 0 8px rgba(25, 217, 230, 0.7);
}

.app-status.dev {
    color: var(--yellow);
}

.app-status.dev::before {
    background: var(--yellow);
}

.app-status.archived {
    color: var(--gray-dark);
}

.app-status.archived::before {
    background: var(--gray-dark);
}

/* =====================================================
   OPEN ARROW
===================================================== */

.app-open {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    color: var(--gray-dark);
    font-family: var(--font-display);
    font-size: 19px;
    transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.app-row:hover .app-open {
    color: var(--cyan);
    border-color: var(--cyan);
    transform: translate(3px, -3px);
}

/* =====================================================
   EMPTY STATE
===================================================== */

.empty-state {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    font-family: var(--font-mono);
    color: var(--gray-dark);
}

.empty-state strong {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 28px;
}

/* =====================================================
   ARCHIVE SUMMARY
===================================================== */
.archive-summary {
    min-height: 115px;
    padding: 0 45px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--border);
}

.summary-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    border-right: 1px solid var(--border);
    padding-left: 25px;
}

.summary-block:first-child {
    padding-left: 0;
}

.summary-block:last-child {
    border-right: none;
}

.summary-block span {
    color: var(--gray-dark);
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.08em;
}

.summary-block strong {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 27px;
    font-weight: 600;
}

/* =====================================================
   FOOTER
===================================================== */
.footer {
    height: 45px;
    max-width: 1600px;
    margin: auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--gray-dark);
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.08em;
}

.footer a {
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--cyan);
}

#clock {
    color: var(--gray);
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 1000px) {
    .list-header {
        grid-template-columns: 60px minmax(220px, 1fr) 150px 100px 90px 45px;
    }

    .app-row {
        grid-template-columns: 60px minmax(220px, 1fr) 150px 100px 90px 45px;
    }
}

@media (max-width: 800px) {
    .apps-header {
        padding: 40px 25px 50px;
    }

    .header-meta {
        margin-bottom: 45px;
    }

    .header-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    .header-description {
        width: 100%;
        max-width: 400px;
    }

    .filter-section {
        padding: 10px 25px;
        grid-template-columns: 70px 1fr;
        gap: 15px;
    }

    .filter-total {
        display: none;
    }

    .applications-section {
        overflow-x: auto;
    }

    .list-header {
        min-width: 850px;
        padding-left: 25px;
    }

    .app-row {
        min-width: 850px;
        padding-left: 25px;
    }

    .archive-summary {
        padding: 0 25px;
        grid-template-columns: repeat(2, 1fr);
    }

    .summary-block {
        border-bottom: 1px solid var(--border);
    }
}

@media (max-width: 600px) {
    .topbar {
        padding: 0 16px;
    }

    .top-year {
        display: none;
    }

    .header-meta {
        grid-template-columns: 1fr 1fr;
    }

    .header-meta span:nth-child(2) {
        text-align: right;
    }

    .header-meta span:nth-child(3) {
        display: none;
    }

    .header-title h1 {
        font-size: 100px;
        letter-spacing: -0.08em;
    }

    .eyebrow {
        font-size: 8px;
    }

    .filter-section {
        grid-template-columns: 1fr;
        padding: 15px 20px;
    }

    .filters {
        flex-wrap: wrap;
    }

    .list-header {
        min-width: 800px;
    }

    .app-row {
        min-width: 800px;
    }

    .archive-summary {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px;
    }

    .summary-block {
        padding-left: 15px;
    }

    .summary-block:first-child {
        padding-left: 0;
    }

    .footer {
        padding: 0 15px;
    }

    .footer>div:first-child {
        display: none;
    }
}

/* =====================================================
   APP ITEM STYLES
===================================================== */
.app-name {
    display: flex;
    align-items: center;
    gap: 18px;
}

.app-icon {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--black-2);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.app-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.app-name-content {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.app-row:hover .app-icon {
    border-color: var(--cyan);
    transform: translateY(-2px) scale(1.03);
}