:root {
    --bg: #0b0b0c;
    --text-primary: #ffffff;
    --text-secondary: #88888b;
    --border-color: #222224;
    --accent: #19d19f;
    --font-stack: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
    position: relative;
    isolation: isolate;
    background-color: var(--bg);
    color: var(--text-primary);
    font-family: var(--font-stack);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body::before,
body::after {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: '';
    pointer-events: none;
}

body::before {
    inset: -18%;
    background:
        radial-gradient(ellipse at 18% 28%, rgba(25, 209, 159, 0.09), transparent 34%),
        radial-gradient(ellipse at 78% 24%, rgba(28, 118, 148, 0.08), transparent 33%),
        radial-gradient(ellipse at 62% 78%, rgba(25, 209, 159, 0.06), transparent 38%),
        radial-gradient(ellipse at 42% 52%, rgba(56, 83, 123, 0.05), transparent 46%);
    filter: blur(40px);
    animation: ambient-drift 60s ease-in-out infinite alternate;
}

body::after {
    inset: -30%;
    background-image:
        linear-gradient(118deg, transparent 28%, rgba(25, 209, 159, 0.2) 49%, transparent 70%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320'%3E%3Cg fill='%2319d19f' font-family='monospace'%3E%3Ctext x='8' y='18' font-size='10' fill-opacity='.42'%3E01 %2B x . 0 %2B%3C/text%3E%3Ctext x='112' y='34' font-size='8' fill-opacity='.25'%3EA3 / 7F %2B 0%3C/text%3E%3Ctext x='24' y='54' font-size='9' fill-opacity='.3'%3Ex %2B 1 . 0 x %26lt%3B %26gt%3B%3C/text%3E%3Ctext x='174' y='70' font-size='11' fill-opacity='.36'%3E%7B 0x 1A %7D - %2B%3C/text%3E%3Ctext x='5' y='91' font-size='11' fill-opacity='.34'%3E%2B . x 01 %2B %3D %3C/text%3E%3Ctext x='126' y='110' font-size='8' fill-opacity='.25'%3E%5B4C%5D 0 %2B / x%3C/text%3E%3Ctext x='44' y='132' font-size='9' fill-opacity='.32'%3E0 x %2B . 1 %26gt%3B 8%3C/text%3E%3Ctext x='211' y='148' font-size='10' fill-opacity='.38'%3Ex1F %2B %7C 00 .%3C/text%3E%3Ctext x='12' y='170' font-size='10' fill-opacity='.38'%3Ex 1 %2B 0 . x %26lt%3B%26lt%3B%3C/text%3E%3Ctext x='146' y='188' font-size='8' fill-opacity='.24'%3E%26lt%3B 9D %2B x %5D 1%3C/text%3E%3Ctext x='35' y='210' font-size='9' fill-opacity='.3'%3E. 0 %2B x 1 . /%3C/text%3E%3Ctext x='196' y='230' font-size='11' fill-opacity='.34'%3E%2B x . 01 %2B %7B%3C/text%3E%3Ctext x='28' y='250' font-size='8' fill-opacity='.28'%3E%5B 2B %5D 0x %3D .%3C/text%3E%3Ctext x='119' y='270' font-size='10' fill-opacity='.36'%3E0 %2B . x 1 %2B %26gt%3B%3C/text%3E%3Ctext x='12' y='291' font-size='9' fill-opacity='.3'%3E%7C 7E %26lt%3B %2B A0 x%3C/text%3E%3Ctext x='169' y='310' font-size='8' fill-opacity='.26'%3Ex %3D 01 %2F 4F %2B%3C/text%3E%3C/g%3E%3C/svg%3E");
    background-size: 240% 240%, 320px 320px;
    background-position: 0% 50%, 0 0;
    opacity: 0.12;
    animation: glyph-drift 80s ease-in-out infinite;
}

@keyframes ambient-drift {
    from {
        transform: translate3d(-0.35%, -0.25%, 0) scale(1);
    }
    to {
        transform: translate3d(0.35%, 0.25%, 0) scale(1.015);
    }
}

@keyframes glyph-drift {
    0% {
        background-position: 0% 50%, 0 0;
        transform: rotate(0deg) translate3d(0, 0, 0);
    }
    18% {
        background-position: 180% 20%, 320px -160px;
        transform: rotate(1.25deg) translate3d(0.15%, -0.15%, 0);
    }
    38% {
        background-position: 40% 100%, -160px 320px;
        transform: rotate(-1deg) translate3d(-0.15%, 0.15%, 0);
    }
    62% {
        background-position: 200% 15%, 480px 0;
        transform: rotate(0.8deg) translate3d(0.15%, 0.15%, 0);
    }
    82% {
        background-position: 10% 85%, 160px 480px;
        transform: rotate(-1.4deg) translate3d(-0.15%, -0.15%, 0);
    }
    100% {
        background-position: 0% 50%, 0 0;
        transform: rotate(0deg) translate3d(0, 0, 0);
    }
}

header {
    width: 100%;
    position: relative;
    z-index: 1;
    background-color: rgba(11, 11, 12, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 2px solid var(--accent);
}

.navbar {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 60px;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-logo img {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    animation: logo-rotate 24s linear infinite;
}

@keyframes logo-rotate {
    to {
        transform: rotate(360deg);
    }
}

.nav-logo:hover {
    color: var(--accent);
}

.nav-links-group {
    display: flex;
    gap: 24px;
}

.nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-item:hover,
.nav-item.active {
    color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
    body::before,
    body::after {
        animation: none;
    }

    .nav-logo img {
        animation: none;
    }
}
