:root {
    --ink: #e9fbff;
    --muted: #9db2bd;
    --page-ink: #172026;
    --page-muted: #66727c;
    --line: rgba(164, 230, 255, 0.16);
    --accent: #20e0c0;
    --accent-strong: #13a990;
    --blue: #4f8cff;
    --rose: #ff4d89;
    --sun: #f3c969;
    --dark: #071015;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 50% 8%, rgba(32, 224, 192, 0.22), transparent 28rem),
        radial-gradient(circle at 80% 38%, rgba(79, 140, 255, 0.16), transparent 30rem),
        linear-gradient(180deg, #081116 0%, #0c1820 46%, #09141b 100%);
    color: var(--ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

body::before {
    background-image:
        linear-gradient(rgba(126, 230, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(126, 230, 255, 0.08) 1px, transparent 1px);
    background-size: 38px 38px;
    content: "";
    inset: 0;
    mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.75) 78%, transparent 100%);
    pointer-events: none;
    position: fixed;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.site-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 auto;
    max-width: 1260px;
    padding: 1rem 1.25rem;
    position: relative;
    z-index: 2;
}

.brand {
    align-items: center;
    display: inline-flex;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-mark {
    align-items: center;
    background: linear-gradient(135deg, var(--accent), var(--blue));
    border-radius: 8px;
    box-shadow: 0 0 28px rgba(32, 224, 192, 0.28);
    color: #041014;
    display: inline-flex;
    font-weight: 900;
    height: 42px;
    justify-content: center;
    letter-spacing: 0;
    width: 42px;
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    color: rgba(233, 251, 255, 0.64);
    font-size: 0.78rem;
}

.top-nav {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: 0.2rem;
    padding: 0.24rem;
}

.top-nav a {
    border-radius: 7px;
    color: rgba(233, 251, 255, 0.82);
    font-size: 0.92rem;
    font-weight: 700;
    padding: 0.56rem 0.78rem;
    text-decoration: none;
}

.top-nav a:hover {
    background: rgba(32, 224, 192, 0.14);
    color: #fff;
}

main {
    margin: 0 auto;
    max-width: 1260px;
    padding: 0 1.25rem 3rem;
    position: relative;
    z-index: 1;
}

.hero {
    align-items: center;
    display: grid;
    gap: 1.4rem;
    grid-template-columns: minmax(270px, 0.72fr) minmax(0, 1.42fr);
    min-height: 620px;
    padding: 1.2rem 0 2.2rem;
}

.data-center {
    perspective: 1200px;
}

.hero-content {
    display: grid;
    gap: 1rem;
}

.control-panel {
    background: rgba(7, 16, 21, 0.74);
    border: 1px solid rgba(164, 230, 255, 0.18);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 1.25rem;
}

.eyebrow {
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    letter-spacing: 0;
    line-height: 1.02;
    margin-bottom: 0;
}

.hero-copy {
    color: rgba(233, 251, 255, 0.72);
    font-size: 1rem;
    margin-bottom: 0;
    max-width: 610px;
}

.search-panel {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(164, 230, 255, 0.16);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
    max-width: 630px;
    padding: 0.8rem;
}

.type-select-panel {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(164, 230, 255, 0.16);
    border-radius: 8px;
    display: grid;
    gap: 0.45rem;
    max-width: 360px;
    padding: 0.8rem;
}

.type-select-panel label {
    color: rgba(233, 251, 255, 0.68);
    font-size: 0.78rem;
    font-weight: 800;
}

.type-select-panel select {
    appearance: none;
    background:
        linear-gradient(45deg, transparent 50%, var(--accent) 50%) right 1rem center / 7px 7px no-repeat,
        linear-gradient(135deg, rgba(32, 224, 192, 0.12), rgba(79, 140, 255, 0.08)),
        rgba(2, 8, 12, 0.72);
    border: 1px solid rgba(164, 230, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    padding: 0.78rem 2.25rem 0.78rem 0.9rem;
}

.type-select-panel select:focus {
    border-color: var(--accent);
    outline: 3px solid rgba(32, 224, 192, 0.16);
}

.type-select-panel option {
    background: #09141b;
    color: #fff;
}

.search-panel label {
    color: rgba(233, 251, 255, 0.68);
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 0.45rem;
}

.search-row {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: 1fr auto;
}

.search-row input {
    background: rgba(2, 8, 12, 0.66);
    border: 1px solid rgba(164, 230, 255, 0.18);
    border-radius: 8px;
    color: #fff;
    font: inherit;
    min-width: 0;
    padding: 0.78rem 0.9rem;
}

.search-row input:focus {
    border-color: var(--accent);
    outline: 3px solid rgba(32, 224, 192, 0.16);
}

.search-row button,
.primary-link,
.project-footer a {
    background: linear-gradient(135deg, var(--accent), var(--blue));
    border: 0;
    border-radius: 8px;
    color: #041014;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    padding: 0.8rem 1rem;
    text-decoration: none;
}

.search-row button:hover,
.primary-link:hover,
.project-footer a:hover {
    background: linear-gradient(135deg, #63f2d8, #82a9ff);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.secondary-link {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(164, 230, 255, 0.16);
    border-radius: 8px;
    color: rgba(233, 251, 255, 0.86);
    font-weight: 800;
    padding: 0.78rem 1rem;
    text-decoration: none;
}

.secondary-link:hover {
    border-color: rgba(32, 224, 192, 0.42);
    color: #fff;
}

.data-stage {
    align-items: center;
    background:
        linear-gradient(180deg, rgba(9, 27, 38, 0.88), rgba(3, 9, 14, 0.94)),
        radial-gradient(circle at center, rgba(32, 224, 192, 0.16), transparent 55%);
    border: 1px solid rgba(164, 230, 255, 0.16);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 0.55fr minmax(320px, 1.35fr) 0.55fr;
    min-height: 560px;
    overflow: hidden;
    padding: 1.1rem;
    position: relative;
}

.data-stage::before {
    background:
        linear-gradient(90deg, transparent, rgba(32, 224, 192, 0.16), transparent),
        repeating-linear-gradient(90deg, rgba(164, 230, 255, 0.08) 0 1px, transparent 1px 48px);
    bottom: -12%;
    content: "";
    height: 48%;
    left: 0;
    position: absolute;
    right: 0;
    transform: perspective(420px) rotateX(64deg);
    transform-origin: bottom;
}

.server-wall {
    display: grid;
    gap: 0.45rem;
    grid-template-columns: repeat(4, 1fr);
    inset: 1rem 1rem auto;
    opacity: 0.42;
    position: absolute;
}

.server-wall span {
    background:
        linear-gradient(90deg, rgba(32, 224, 192, 0.2), transparent 28%),
        rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(164, 230, 255, 0.12);
    border-radius: 6px;
    height: 62px;
}

.side-screens,
.main-monitor,
.stage-status {
    position: relative;
    z-index: 1;
}

.side-screens {
    display: grid;
    gap: 0.8rem;
}

.left-screens {
    transform: perspective(700px) rotateY(18deg);
    transform-origin: right;
}

.right-screens {
    transform: perspective(700px) rotateY(-18deg);
    transform-origin: left;
}

.mini-screen {
    aspect-ratio: 16 / 10;
    background: #09141b;
    border: 1px solid color-mix(in srgb, var(--screen-color) 55%, rgba(164, 230, 255, 0.18));
    border-radius: 8px;
    box-shadow: 0 0 26px color-mix(in srgb, var(--screen-color) 28%, transparent);
    color: #fff;
    cursor: pointer;
    overflow: hidden;
    padding: 0;
    position: relative;
}

.mini-screen img {
    filter: saturate(1.08) brightness(0.76);
    height: 100%;
    object-fit: cover;
    opacity: 0.68;
    transition: transform 240ms ease, opacity 240ms ease;
    width: 100%;
}

.mini-screen span {
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
    bottom: 0;
    font-size: 0.72rem;
    font-weight: 900;
    left: 0;
    overflow: hidden;
    padding: 1rem 0.55rem 0.5rem;
    position: absolute;
    right: 0;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-screen:hover img,
.mini-screen.is-active img {
    opacity: 1;
    transform: scale(1.06);
}

.mini-screen.is-active {
    outline: 3px solid color-mix(in srgb, var(--screen-color) 72%, #fff);
}

.main-monitor {
    align-self: center;
    aspect-ratio: 16 / 10;
    background: #02070a;
    border: 1px solid rgba(164, 230, 255, 0.26);
    border-radius: 8px;
    box-shadow:
        0 0 0 10px rgba(255, 255, 255, 0.04),
        0 0 58px rgba(32, 224, 192, 0.24),
        0 28px 70px rgba(0, 0, 0, 0.54);
    margin: 0 1rem;
    overflow: hidden;
    position: relative;
}

.main-monitor::after {
    background:
        linear-gradient(rgba(255, 255, 255, 0.06) 50%, transparent 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.04), rgba(0, 255, 255, 0.04));
    background-size: 100% 4px, 5px 100%;
    content: "";
    inset: 0;
    mix-blend-mode: screen;
    opacity: 0.28;
    pointer-events: none;
    position: absolute;
}

.monitor-project {
    inset: 0;
    opacity: 0;
    position: absolute;
    transform: translateX(12%) scale(0.96);
    transition: opacity 360ms ease, transform 360ms ease;
}

.monitor-project.is-active {
    opacity: 1;
    transform: translateX(0) scale(1);
    z-index: 2;
}

.monitor-project img {
    filter: saturate(1.1) brightness(0.8);
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.monitor-overlay {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.42), transparent);
    display: flex;
    flex-direction: column;
    inset: 0;
    justify-content: flex-end;
    padding: 1.4rem;
    position: absolute;
}

.monitor-overlay span {
    color: var(--project-color);
    font-size: 0.76rem;
    font-weight: 900;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.monitor-overlay h2 {
    color: #fff;
    font-size: clamp(1.35rem, 3vw, 2.4rem);
    line-height: 1.03;
    margin-bottom: 0.5rem;
    max-width: 520px;
}

.monitor-overlay p {
    color: rgba(255, 255, 255, 0.74);
    max-width: 470px;
}

.monitor-overlay a {
    align-self: flex-start;
    background: var(--project-color);
    border-radius: 8px;
    color: #061014;
    font-weight: 900;
    padding: 0.7rem 0.9rem;
    text-decoration: none;
}

.stage-status {
    align-items: center;
    background: rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(164, 230, 255, 0.14);
    border-radius: 8px;
    bottom: 1rem;
    color: rgba(233, 251, 255, 0.72);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.78rem;
    font-weight: 900;
    gap: 0.55rem;
    grid-column: 1 / -1;
    justify-self: center;
    padding: 0.5rem 0.65rem;
    position: absolute;
}

.stage-status span {
    border-right: 1px solid rgba(164, 230, 255, 0.18);
    padding-right: 0.55rem;
}

.stage-status span:last-child {
    border-right: 0;
    padding-right: 0;
}

.filters,
.projects-section {
    color: var(--ink);
    padding: 1.1rem 0;
}

.data-section {
    background:
        linear-gradient(180deg, rgba(9, 27, 38, 0.78), rgba(3, 9, 14, 0.82)),
        radial-gradient(circle at 20% 0%, rgba(32, 224, 192, 0.11), transparent 26rem);
    border: 1px solid rgba(164, 230, 255, 0.15);
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
    margin-bottom: 1rem;
    overflow: hidden;
    padding: 1.2rem;
    position: relative;
}

.data-section::before {
    background:
        linear-gradient(90deg, rgba(32, 224, 192, 0.14), transparent 34%),
        repeating-linear-gradient(90deg, rgba(164, 230, 255, 0.05) 0 1px, transparent 1px 38px);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.section-heading {
    align-items: end;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.section-heading h2 {
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    letter-spacing: 0;
    margin-bottom: 0;
}

.type-list {
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(164, 230, 255, 0.16);
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    padding: 0.65rem;
    position: relative;
    z-index: 1;
}

.type-pill {
    --pill-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid color-mix(in srgb, var(--pill-color) 40%, rgba(164, 230, 255, 0.18));
    border-radius: 8px;
    color: rgba(233, 251, 255, 0.86);
    font-size: 0.92rem;
    font-weight: 800;
    padding: 0.64rem 0.82rem;
    text-decoration: none;
}

.type-pill:hover {
    transform: translateY(-1px);
}

.type-pill.is-active {
    background: var(--pill-color);
    border-color: var(--pill-color);
    color: #041014;
}

.project-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    position: relative;
    z-index: 1;
}

.project-card {
    background: rgba(5, 14, 20, 0.78);
    border: 1px solid rgba(164, 230, 255, 0.14);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-width: 0;
    overflow: hidden;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-card:hover {
    box-shadow: 0 0 38px rgba(32, 224, 192, 0.18), 0 20px 42px rgba(0, 0, 0, 0.32);
    transform: translateY(-3px);
}

.project-image {
    aspect-ratio: 16 / 10;
    background: #d8e2e8;
    display: block;
    overflow: hidden;
    position: relative;
}

.project-image::after {
    background: linear-gradient(180deg, transparent 45%, rgba(17, 24, 39, 0.42));
    content: "";
    inset: 0;
    position: absolute;
}

.project-image img {
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease;
    width: 100%;
}

.project-card:hover .project-image img {
    transform: scale(1.04);
}

.featured-badge {
    background: var(--sun);
    border-radius: 8px;
    color: #231a05;
    font-size: 0.74rem;
    font-weight: 800;
    padding: 0.38rem 0.52rem;
    position: absolute;
    right: 0.75rem;
    top: 0.75rem;
    z-index: 1;
}

.project-body {
    padding: 1rem;
}

.project-type {
    color: var(--type-color);
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 800;
    margin-bottom: 0.48rem;
    text-transform: uppercase;
}

.project-body h3 {
    font-size: 1.12rem;
    letter-spacing: 0;
    line-height: 1.25;
    margin-bottom: 0.45rem;
}

.project-body p {
    color: rgba(233, 251, 255, 0.68);
    margin-bottom: 0;
}

.project-footer {
    align-items: center;
    border-top: 1px solid rgba(164, 230, 255, 0.13);
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
}

.project-footer time {
    color: rgba(233, 251, 255, 0.58);
    font-size: 0.84rem;
    font-weight: 800;
}

.project-footer a {
    padding: 0.58rem 0.82rem;
}

.empty-state {
    background: rgba(0, 0, 0, 0.26);
    border: 1px dashed rgba(32, 224, 192, 0.42);
    border-radius: 8px;
    box-shadow: inset 0 0 28px rgba(32, 224, 192, 0.05);
    max-width: 760px;
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.empty-state h3 {
    margin-bottom: 0.4rem;
}

.empty-state p {
    color: rgba(233, 251, 255, 0.68);
    margin-bottom: 0;
}

.system-message h3::before {
    background: var(--accent);
    border-radius: 999px;
    box-shadow: 0 0 16px rgba(32, 224, 192, 0.55);
    content: "";
    display: inline-block;
    height: 0.62rem;
    margin-right: 0.5rem;
    width: 0.62rem;
}

.preview-grid {
    display: none;
}

code {
    background: rgba(14, 159, 143, 0.12);
    border-radius: 6px;
    color: #08796e;
    padding: 0.1rem 0.25rem;
}

.site-footer {
    color: rgba(233, 251, 255, 0.5);
    margin: 0 auto;
    max-width: 1260px;
    padding: 0 1.25rem 2rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 1040px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .data-stage {
        min-height: 520px;
    }
}

@media (max-width: 760px) {
    .data-stage {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .left-screens,
    .right-screens {
        display: flex;
        overflow-x: auto;
        transform: none;
    }

    .mini-screen {
        flex: 0 0 150px;
    }

    .main-monitor {
        margin: 1rem 0;
        order: -1;
    }

    .stage-status {
        position: static;
    }
}

@media (max-width: 620px) {
    .site-header,
    .top-nav,
    .search-row,
    .project-footer,
    .section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .site-header {
        align-items: flex-start;
    }

    .top-nav {
        width: 100%;
    }

    .top-nav a {
        text-align: center;
    }

    .search-row,
    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-footer a,
    .primary-link,
    .secondary-link {
        text-align: center;
    }
}
