:root {
    --bg: #04070f;
    --surface: #090d16;
    --border: rgba(148, 163, 184, 0.18);
    --cyan: #00f5ff;
    --gold: #facc15;
    --emerald: #34d399;
    --text: #f1f5f9;
    --muted: #94a3b8;
}

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

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden
}

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

.wrap {
    max-width: 1152px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.25rem
}

header {
    border-bottom: 1px solid var(--border);
    background: rgba(9, 13, 22, .92);
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 40
}

.nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 66px;
    gap: 1rem
}

.brand {
    font-weight: 900;
    letter-spacing: .03em;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: .45rem
}

.links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    font-size: .875rem;
    font-weight: 600;
    color: var(--muted)
}

.links a:hover,
.links a.active {
    color: var(--cyan)
}

.nav-cta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: .75rem
}

.menu-btn {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: .55rem;
    padding: .45rem .65rem;
    font-size: 1.1rem;
    cursor: pointer
}

.mobile-drawer {
    display: none;
    border-top: 1px solid var(--border);
    background: var(--surface);
    padding: 1rem 1.25rem;
    flex-direction: column;
    gap: .85rem;
    font-size: .9rem;
    font-weight: 700
}

.mobile-drawer.open {
    display: flex
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .65rem 1.25rem;
    border-radius: .7rem;
    font-weight: 800;
    font-size: .75rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: var(--cyan);
    color: #000108;
    border: none;
    cursor: pointer;
    transition: transform .15s, opacity .15s
}

.btn:hover {
    opacity: .92;
    transform: translateY(-1px)
}

.btn-outline {
    background: rgba(9, 13, 22, .75);
    border: 1px solid var(--border);
    color: var(--text)
}

.btn-outline:hover {
    border-color: var(--cyan);
    color: var(--cyan)
}

main {
    flex-grow: 1
}

.hero-wrap {
    position: relative;
    border-bottom: 1px solid var(--border);
    overflow: hidden
}

#graph-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: .32;
    z-index: 1
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 2.5rem;
    align-items: start;
    padding: 2.25rem 0 3.25rem
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .32rem .9rem;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--cyan);
    background: rgba(0, 245, 255, .08);
    border: 1px solid rgba(0, 245, 255, .28);
    margin-bottom: .85rem
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 8px var(--emerald)
}

h1 {
    font-size: clamp(1.95rem, 3.6vw, 3rem);
    font-weight: 900;
    line-height: 1.13;
    margin-bottom: .9rem
}

h2 {
    font-size: 1.65rem;
    font-weight: 900;
    margin-bottom: .65rem
}

h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: .4rem
}

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

.card {
    background: rgba(9, 13, 22, .92);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.65rem;
    transition: border-color .2s, transform .2s
}

.card:hover {
    border-color: rgba(0, 245, 255, .38);
    transform: translateY(-2px)
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.25rem
}

.code-card {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .73rem;
    line-height: 1.5;
    background: rgba(5, 8, 17, .94);
    border: 1px solid rgba(0, 245, 255, .28);
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
    width: 100%
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    width: 100%
}

.metric-box {
    background: rgba(255, 255, 255, .025);
    border: 1px solid var(--border);
    border-radius: .65rem;
    padding: .65rem .4rem;
    text-align: center
}

.metric-val {
    display: block;
    font-size: 1.15rem;
    font-weight: 900;
    line-height: 1.2
}

.metric-lbl {
    display: block;
    font-size: .66rem;
    color: var(--muted);
    margin-top: .2rem;
    font-family: system-ui, sans-serif
}

input,
textarea,
select {
    width: 100%;
    padding: .7rem .9rem;
    border-radius: .65rem;
    background: #04070f;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: .875rem;
    margin-top: .35rem
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--cyan)
}

footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
    margin-top: 4rem
}

.foot {
    max-width: 1152px;
    margin: 0 auto;
    padding: 2rem 1.25rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 1rem;
    font-size: .75rem;
    color: var(--muted);
    font-weight: 500
}

.foot-links {
    display: flex;
    justify-content: center;
    gap: 1.25rem
}

.foot-links a:hover {
    color: var(--cyan)
}

@media(max-width:860px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem 0 2.5rem
    }

    .nav {
        grid-template-columns: 1fr auto
    }

    .links,
    .desktop-cta {
        display: none
    }

    .menu-btn {
        display: inline-flex
    }

    .foot {
        grid-template-columns: 1fr;
        text-align: center
    }
}