:root {
    --background: #080b12;
    --surface: rgba(18, 23, 35, 0.72);
    --surface-hover: rgba(24, 31, 46, 0.9);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(136, 156, 255, 0.34);

    --text: #f5f7ff;
    --muted: #8992a8;
    --muted-light: #b7bfd2;

    --accent: #8295ff;
    --accent-light: #aab6ff;

    --green: #58d39b;
    --yellow: #eac66e;

    --radius-large: 28px;
    --radius-medium: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    color: var(--text);
    background:
        radial-gradient(
            circle at top,
            #11172a 0,
            #080b12 42%
        );

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;

    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px
        );

    background-size: 42px 42px;
    mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.7),
        transparent 85%
    );
}

.ambient {
    position: fixed;
    z-index: -1;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    filter: blur(110px);
    opacity: 0.13;

    pointer-events: none;
}

.ambient-one {
    top: -180px;
    left: -120px;

    background: #696eff;
}

.ambient-two {
    top: 220px;
    right: -250px;

    background: #5c9cff;
}

.header {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;

    padding: 28px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;

    color: var(--text);
    text-decoration: none;

    font-size: 18px;
    font-weight: 700;
}

.brand-logo {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border: 1px solid var(--border);
    border-radius: 12px;

    background:
        linear-gradient(
            145deg,
            rgba(130, 149, 255, 0.26),
            rgba(255, 255, 255, 0.04)
        );

    box-shadow:
        inset 0 1px rgba(255, 255, 255, 0.09),
        0 12px 30px rgba(0, 0, 0, 0.22);
}

.server-status {
    display: flex;
    align-items: center;
    gap: 9px;

    padding: 9px 13px;

    border: 1px solid var(--border);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.025);

    color: var(--muted-light);

    font-size: 12px;
}

.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 0 4px rgba(88, 211, 155, 0.09),
        0 0 15px rgba(88, 211, 155, 0.6);
}

main {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.hero {
    padding: 110px 0 115px;
}

.eyebrow,
.section-label {
    color: var(--accent-light);

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.hero h1 {
    max-width: 850px;

    margin: 22px 0 24px;

    font-size: clamp(48px, 8vw, 92px);
    line-height: 0.98;
    letter-spacing: -0.055em;

    font-weight: 720;
}

.hero h1 span {
    display: block;

    color: #9199ad;
}

.hero-text {
    max-width: 650px;

    margin: 0;

    color: var(--muted);

    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.65;
}

.hero-stats {
    display: flex;
    gap: 42px;

    margin-top: 56px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.stat strong {
    font-size: 26px;
    font-weight: 650;
}

.stat span {
    color: var(--muted);

    font-size: 12px;
}

.projects-section {
    padding-bottom: 110px;
}

.section-heading {
    margin-bottom: 28px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;
}

.section-heading h2 {
    margin: 8px 0 0;

    font-size: 34px;
    letter-spacing: -0.035em;
}

.filter-group {
    display: flex;
    gap: 7px;

    padding: 5px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.02);
}

.filter {
    padding: 8px 12px;

    border: 0;
    border-radius: 9px;

    background: transparent;

    color: var(--muted);

    font: inherit;
    font-size: 12px;

    cursor: pointer;

    transition:
        background 0.18s ease,
        color 0.18s ease;
}

.filter:hover,
.filter.active {
    color: var(--text);

    background: rgba(255, 255, 255, 0.07);
}

.projects-grid {
    display: grid;

    grid-template-columns:
        repeat(12, minmax(0, 1fr));

    gap: 18px;
}

.project-card {
    grid-column: span 6;

    min-height: 290px;

    padding: 26px;

    display: flex;
    flex-direction: column;

    border: 1px solid var(--border);
    border-radius: var(--radius-large);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.015)
        );

    backdrop-filter: blur(12px);

    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease;
}

.project-card:hover {
    transform: translateY(-4px);

    border-color: var(--border-hover);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.065),
            rgba(255, 255, 255, 0.02)
        );
}

.project-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 20px;
}

.project-icon {
    width: 50px;
    height: 50px;

    display: grid;
    place-items: center;

    border: 1px solid var(--border);
    border-radius: 15px;

    background: rgba(255, 255, 255, 0.04);

    font-size: 24px;
}

.project-status {
    display: flex;
    align-items: center;
    gap: 7px;

    padding: 7px 10px;

    border: 1px solid var(--border);
    border-radius: 999px;

    color: var(--muted-light);

    font-size: 11px;
}

.project-status-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--yellow);
}

.project-status.online .project-status-dot {
    background: var(--green);
}

.project-card h3 {
    margin: 36px 0 11px;

    font-size: 26px;
    letter-spacing: -0.035em;
}

.project-description {
    max-width: 500px;

    margin: 0;

    color: var(--muted);

    line-height: 1.6;
    font-size: 14px;
}

.project-bottom {
    margin-top: auto;
    padding-top: 30px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 18px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag {
    padding: 6px 9px;

    border: 1px solid var(--border);
    border-radius: 8px;

    color: var(--muted);

    font-size: 10px;
}

.project-link {
    flex-shrink: 0;

    padding: 10px 14px;

    border: 1px solid rgba(130, 149, 255, 0.24);
    border-radius: 11px;

    background: rgba(130, 149, 255, 0.09);

    color: #c5ceff;
    text-decoration: none;

    font-size: 12px;
    font-weight: 600;

    transition:
        background 0.18s ease,
        border-color 0.18s ease;
}

.project-link:hover {
    background: rgba(130, 149, 255, 0.16);
    border-color: rgba(130, 149, 255, 0.4);
}

.project-link.disabled {
    pointer-events: none;

    color: var(--muted);
    background: rgba(255, 255, 255, 0.025);
    border-color: var(--border);
}

.loading,
.empty {
    grid-column: 1 / -1;

    padding: 60px;

    border: 1px solid var(--border);
    border-radius: var(--radius-large);

    color: var(--muted);

    text-align: center;
}

footer {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;

    padding: 26px 0 42px;

    display: flex;
    justify-content: space-between;
    gap: 20px;

    border-top: 1px solid var(--border);

    font-size: 12px;
}

.footer-brand {
    margin-right: 12px;

    color: var(--text);
    font-weight: 650;
}

.footer-muted {
    color: var(--muted);
}

@media (max-width: 780px) {
    .header {
        padding-top: 20px;
    }

    .server-status {
        font-size: 0;
    }

    .server-status span:last-child {
        display: none;
    }

    .hero {
        padding: 80px 0 85px;
    }

    .hero-stats {
        gap: 28px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .project-card {
        grid-column: 1 / -1;
    }

    .project-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    footer {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 46px;
    }

    .hero-stats {
        justify-content: space-between;

        gap: 15px;
    }

    .stat strong {
        font-size: 21px;
    }

    .project-card {
        min-height: 315px;

        padding: 22px;
        border-radius: 22px;
    }

    .filter-group {
        width: 100%;
    }

    .filter {
        flex: 1;
    }
}
