/*
 * ni-styles.css — Novian Intelligence shared stylesheet
 * Extracted from per-page inline <style> blocks.
 * DO NOT add page-specific rules here. Keep page-unique CSS inline.
 */

/* ── Self-hosted fonts ── */
@font-face {
  font-family: 'Inter';
  src: url('./fonts/inter-variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('./fonts/jetbrainsmono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('./fonts/jetbrainsmono-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ── Design tokens ── */
:root {
  --bg: #080810;
  --text: #e2e0f4;
  --text-muted: #7a7892;
  --text-dim: #6b6885;
  --border: rgba(255,255,255,0.055);
  --glass: rgba(255,255,255,0.025);
  --v: #9b7fd4;
  --i: #6366f1;
  --c: #40d9c8;
  --o: #c8956c;
  --r: #e07090;
}

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

/* ── Body ── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Atmosphere orbs ── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  z-index: 0;
}

/* ── Layout container ── */
.site {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 36px;
  position: relative;
  z-index: 1;
}

/* ── Header ── */
header {
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

/* ── Logo ── */
.logo {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: conic-gradient(from 135deg, #9b7fd4, #6366f1, #40d9c8, #c8956c, #9b7fd4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

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

.logo-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  white-space: nowrap;
}

.logo-badge {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--v);
  border: 1px solid rgba(155,127,212,0.3);
  padding: 2px 8px;
  border-radius: 5px;
  white-space: nowrap;
}

/* ── Navigation ── */
nav a {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.18s;
  white-space: nowrap;
}

nav a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
nav a.active { color: var(--v); }

/* ── Color identity strip ── */
.strip {
  height: 2px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0;
  overflow: hidden;
  opacity: 0.65;
}

.s1 { background: var(--v); }
.s2 { background: var(--i); }
.s3 { background: var(--c); }
.s4 { background: var(--o); }
.s5 { background: var(--r); }

/* ── Footer ── */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-logo-mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: conic-gradient(from 135deg, #9b7fd4, #6366f1, #40d9c8, #c8956c, #9b7fd4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 800;
  color: #fff;
}

.footer-name { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); }

.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 0.72rem; color: var(--text-dim); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: var(--text-muted); }

.footer-copy { font-size: 0.65rem; color: var(--text-dim); font-family: 'JetBrains Mono', monospace; }

/* ── Mobile nav toggle ── */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .site { padding: 0 20px; }
  footer { flex-direction: column; align-items: flex-start; gap: 16px; }
  .nav-toggle { display: flex; align-items: center; }
  nav {
    display: none;
    width: 100%;
    flex-wrap: wrap;
    gap: 4px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    margin-top: 12px;
  }
  nav.open { display: flex; }
  nav a {
    font-size: 0.78rem;
    flex-basis: calc(50% - 2px);
    text-align: center;
  }
  .header-inner { flex-wrap: wrap; }
}
