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

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

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

    background: #f7f7f5;
    color: #171717;

    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

button {
    font: inherit;
}

/* =========================================================
       VARIABLES
    ========================================================= */

:root {

    /*
             * Core palette
             */

    --bg: #f7f7f5;
    --surface: #ffffff;

    --text: #171717;
    --text-secondary: #666;
    --text-muted: #999;

    --border: #dededb;
    --border-light: #e9e9e6;

    --hover: #f0f0ed;

    /*
             * Accent
             */

    --accent: #2b5fd9;

    /*
             * Background system
             */

    --grid-color: rgba(40, 40, 35, 0.035);

    --glow-blue: rgba(43, 95, 217, 0.045);

    --glow-neutral: rgba(255, 255, 255, 0.75);
}

/* =========================================================
           GLOBAL BACKGROUND
        ========================================================= */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background:
        linear-gradient(to right,
            var(--grid-color) 1px,
            transparent 1px),
        linear-gradient(to bottom,
            var(--grid-color) 1px,
            transparent 1px);
    background-size:
        72px 72px,
        72px 72px;
}

body::after {
    content: "";
    position: fixed;
    inset: -20%;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(circle at 15% 10%,
            var(--glow-blue),
            transparent 30%),
        radial-gradient(circle at 85% 45%,
            rgba(120, 120, 110, 0.025),
            transparent 32%),
        radial-gradient(circle at 40% 90%,
            rgba(255, 255, 255, 0.7),
            transparent 35%);
}

main {
    position: relative;
}

main::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.008) 0,
            rgba(0, 0, 0, 0.008) 1px,
            transparent 1px,
            transparent 4px);
    opacity: 0.25;
}

/* =========================================================
       GLOBAL
    ========================================================= */

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.mono {
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
}

/* =========================================================
       NAVBAR
    ========================================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    z-index: 100;

    height: 72px;

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

    background: rgba(247, 247, 245, 0.88);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.nav-inner {
    height: 100%;

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

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

    font-size: 14px;
    font-weight: 700;

    letter-spacing: -0.02em;
}

.brand-dot {
    width: 8px;
    height: 8px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #2b5fd9;
    box-shadow: 0 0 0 4px rgba(43, 95, 217, 0.055);
}

.brand-mark {
    width: 30px;
    height: 30px;

    display: grid;
    place-items: center;

    border: 1px solid #cfcfcb;
    border-radius: 7px;

    background: #fff;

    color: #444;

    font-family:
        "SFMono-Regular",
        Consolas,
        monospace;

    font-size: 11px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;

    color: #777;

    font-size: 14px;
}

.nav-links a {
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #111;
}

.nav-links .labs-link {
    color: #555;
}

.nav-links .labs-link::after {
    content: "↗";

    margin-left: 4px;

    color: #999;
    font-size: 11px;
}


@keyframes pulse-gray {
    0% {
        box-shadow: 0 0 0 0 rgba(85, 85, 85, 0.6);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(85, 85, 85, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(85, 85, 85, 0);
    }
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(15, 185, 97, 0.6);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(15, 185, 97, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(15, 185, 97, 0);
    }
}

/* =========================================================
       FOOTER
    ========================================================= */

footer {
    padding: 30px 0;

    color: #999;

    font-size: 12px;
}

.footer-inner {
    display: flex;

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

.footer-right {
    display: flex;

    gap: 18px;
}

.footer-right a:hover {
    color: #222;
}


/* =========================================================
   RESPONSIVE (GLOBAL)
========================================================= */

@media (max-width: 600px) {
    .container {
        width: min(100% - 28px, 1120px);
    }

    .navbar {
        height: 64px;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a:nth-child(1),
    .nav-links a:nth-child(4) {
        display: none;
    }

    .brand-terminal {
        font-size: 10px;
    }
}