﻿:root {
    --paper: #F6F7F9;
    --paper-dim: #EEF0F3;
    --ink: #101826;
    --ink-soft: #45506B;
    --ink-faint: #8792A6;
    --navy: #1B3A6B;
    --navy-deep: #122747;
    --navy-tint: rgba(27,58,107,0.10);
    --amber: #C2622B;
    --amber-tint: rgba(194,98,43,0.10);
    --line: #E1E4E9;
    --code-bg: #0D1420;
    --code-text: #C7D1E0;
    --radius: 10px;
    --maxw: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: 'IBM Plex Sans', sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--ink);
    line-height: 1.12;
    letter-spacing: -0.01em;
}

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

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

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 28px;
}

.mono {
    font-family: 'IBM Plex Mono', monospace;
}

.eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    color: var(--navy-deep);
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

    .eyebrow::before {
        content: "//";
        color: var(--ink-faint);
    }

:focus-visible {
    outline: 2px solid var(--navy);
    outline-offset: 3px;
}

/* ---------- NAV ---------- */
header.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(246,247,249,0.86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

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

.brand-mark {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 21px;
    color: var(--ink);
}

.brand-tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--navy-deep);
    background: var(--navy-tint);
    padding: 3px 8px;
    border-radius: 5px;
    letter-spacing: 0.02em;
}

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

.nav-links a {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink-soft);
    position: relative;
    padding: 6px 0;
    transition: color .18s ease;
}

    .nav-links a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0;
        height: 2px;
        background: var(--navy);
        transition: width .2s ease;
    }

    .nav-links a:hover {
        color: var(--ink);
    }

        .nav-links a:hover::after {
            width: 100%;
        }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 600;
    font-size: 14.5px;
    padding: 11px 20px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn-primary {
    background: var(--navy);
    color: #fff;
}

    .btn-primary:hover {
        background: var(--navy-deep);
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(27,58,107,0.28);
    }

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}

    .btn-ghost:hover {
        border-color: var(--ink-faint);
    }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

    .hamburger span {
        width: 22px;
        height: 2px;
        background: var(--ink);
        border-radius: 2px;
    }

.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 8px 28px 22px;
    gap: 4px;
    border-top: 1px solid var(--line);
}

    .mobile-menu a {
        padding: 12px 4px;
        font-weight: 500;
        color: var(--ink-soft);
        border-bottom: 1px solid var(--line);
    }

    .mobile-menu.open {
        display: flex;
    }

/* ---------- SECTION GENERIC ---------- */
section {
    padding: 96px 0;
}

.section-head {
    max-width: 620px;
    margin-bottom: 52px;
}

    .section-head h2 {
        font-size: 32px;
        font-weight: 600;
        margin-bottom: 14px;
    }

    .section-head p {
        color: var(--ink-soft);
        font-size: 16px;
    }

/* ---------- FOOTER ---------- */
footer {
    border-top: 1px solid var(--line);
    padding: 60px 0 34px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: var(--ink-soft);
    font-size: 14px;
    margin-top: 14px;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 12.5px;
    font-family: 'IBM Plex Mono', monospace;
    color: var(--ink-faint);
    margin-bottom: 16px;
    letter-spacing: 0.03em;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--ink-soft);
    margin-bottom: 11px;
}

    .footer-col a:hover {
        color: var(--ink);
    }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 26px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--ink-faint);
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .6s ease, transform .6s ease;
}

    .reveal.in {
        opacity: 1;
        transform: none;
    }

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------- RESPONSIVE NAV/FOOTER ---------- */
@media (max-width:920px) {
    .nav-links, .nav-actions .btn-ghost {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        row-gap: 32px;
    }
}

/* ---------- BLAZOR ERROR UI SAFEGUARD ----------
   Belt-and-braces: guarantees this stays hidden even if app.css's own
   rule is ever accidentally edited or removed. Blazor's own JS toggles
   this to visible on an unhandled exception; it is not decorative. */
#blazor-error-ui {
    display: none !important;
}
