@import url('https://fonts.googleapis.com/css2?family=Oxanium:wght@300;400;600;700;800&family=JetBrains+Mono:wght@300;400;500&display=swap');

/* ============================================================
   NOMOS VMS — Global Styles
   Dark navy + cyan / VJ-AV aesthetic
   Fonts: Oxanium (display) + JetBrains Mono (body/technical)
============================================================ */

:root {
    --bg:           #040c18;
    --bg2:          #061120;
    --surface:      #091828;
    --surface2:     #0c1f33;
    --surface3:     #102640;
    --cyan:         #00c8e8;
    --cyan-dim:     #005f72;
    --cyan-glow:    rgba(0, 200, 232, 0.12);
    --cyan-glow2:   rgba(0, 200, 232, 0.25);
    --white:        #ddeef5;
    --muted:        #4a7a95;
    --muted2:       #2a4a5f;
    --danger:       #ff4f4f;
    --warn:         #ffb300;
    --border:       rgba(0, 200, 232, 0.18);
    --border-dim:   rgba(0, 200, 232, 0.08);
    --font-display: 'Oxanium', sans-serif;
    --font-mono:    'JetBrains Mono', monospace;
    --nav-h:        60px;
    --max-w:        1200px;
    --radius:       2px;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--white);
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* scan line texture over everything */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(0,0,0,0.04) 3px,
        rgba(0,0,0,0.04) 4px
    );
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--white); }

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

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.15;
    letter-spacing: 0.02em;
}

/* ── NAV ──────────────────────────────────────────────────── */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 1000;
    background: rgba(4, 12, 24, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    height: 100%;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-brand {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    color: var(--white);
    text-decoration: none;
    flex-shrink: 0;
}
.brand-nomos {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    color: var(--white);
}
.brand-vms {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 1.1rem;
    letter-spacing: 0.12em;
    color: var(--cyan);
}
.brand-version {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--muted);
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.2rem;
    margin: 0 auto;
}
.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: var(--muted);
    padding: 0.4rem 0.8rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    transition: all 0.2s;
    text-decoration: none;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--cyan);
    border-color: var(--border);
    background: var(--cyan-glow);
}

.nav-download {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    padding: 0.5rem 1.1rem;
    border: 1px solid var(--cyan);
    color: var(--cyan);
    border-radius: var(--radius);
    transition: all 0.2s;
    flex-shrink: 0;
    text-decoration: none;
    white-space: nowrap;
}
.nav-download:hover {
    background: var(--cyan);
    color: var(--bg);
}

/* ── PAGE WRAPPER ─────────────────────────────────────────── */
.page-wrap {
    padding-top: var(--nav-h);
    min-height: 100vh;
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── SECTION HEADERS ──────────────────────────────────────── */
.section-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--cyan);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.section-label::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--cyan);
    flex-shrink: 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    border: 1px solid transparent;
    font-weight: 500;
}
.btn-primary {
    background: var(--cyan);
    color: var(--bg);
    border-color: var(--cyan);
}
.btn-primary:hover {
    background: transparent;
    color: var(--cyan);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--border);
}
.btn-outline:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    background: var(--cyan-glow);
}
.btn-muted {
    background: transparent;
    color: var(--muted);
    border-color: var(--border-dim);
    cursor: not-allowed;
    opacity: 0.5;
}

/* ── MODULE CARD ──────────────────────────────────────────── */
.module-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: visible;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.module-card:hover {
    border-color: var(--cyan-dim);
    box-shadow: 0 0 30px var(--cyan-glow);
}
/* corner brackets */
.module-card::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px;
    width: 14px; height: 14px;
    border-top: 2px solid var(--cyan);
    border-left: 2px solid var(--cyan);
    z-index: 1;
}
.module-card::after {
    content: '';
    position: absolute;
    bottom: -1px; right: -1px;
    width: 14px; height: 14px;
    border-bottom: 2px solid var(--cyan);
    border-right: 2px solid var(--cyan);
    z-index: 1;
}

/* ── IMAGE PLACEHOLDER ────────────────────────────────────── */
.img-slot {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg2);
    border: 1px dashed var(--cyan-dim);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    position: relative;
    overflow: hidden;
}
.img-slot img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.img-slot .slot-label {
    position: relative;
    z-index: 2;
    text-align: center;
    pointer-events: none;
}
.img-slot .slot-filename {
    color: var(--cyan);
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}
.img-slot .slot-hint {
    color: var(--muted2);
    font-size: 0.65rem;
}
.img-slot.has-image .slot-label { display: none; }

/* ── TAG / BADGE ──────────────────────────────────────────── */
.tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    padding: 0.2rem 0.5rem;
    border: 1px solid var(--border-dim);
    color: var(--muted);
    border-radius: var(--radius);
    text-transform: uppercase;
}
.tag-cyan {
    border-color: var(--cyan-dim);
    color: var(--cyan);
    background: var(--cyan-glow);
}

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--border-dim);
    padding: 2rem;
    margin-top: 6rem;
}
.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-copy {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    color: var(--muted2);
}
.footer-status {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    color: var(--muted2);
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.footer-status span { color: var(--muted); }
.footer-status .dot-green::before {
    content: '●';
    color: #00e57a;
    margin-right: 0.4rem;
    font-size: 0.5rem;
}

/* ── UTILITIES ────────────────────────────────────────────── */
.text-cyan  { color: var(--cyan); }
.text-muted { color: var(--muted); }
.text-mono  { font-family: var(--font-mono); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-inner { justify-content: space-between; }
    .container { padding: 0 1rem; }
}
