/* ==========================================================================
   NEXUS — base stylesheet (loaded on every page)
   Palette: deep space navy + cyan/blue neon, restrained magenta for glitch
   ========================================================================== */

:root {
  --bg-deep:      #05080d;
  --bg-panel:     #0a1018;
  --bg-panel-2:   #0d1620;
  --line:         #1c2a38;
  --line-bright:  #274257;

  --cyan:         #2fd9f2;
  --cyan-dim:     #17838f;
  --blue:         #3b82f6;
  --glitch-pink:  #ff2e6d;

  --text:         #dbe8ee;
  --text-dim:     #7d93a1;
  --text-faint:   #4d6270;

  --font-display: 'Chakra Petch', 'Segoe UI', sans-serif;
  --font-body:    'Inter', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  letter-spacing: 0.01em;
}

p { margin: 0; }

/* Faint scanline texture over the whole page */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  background: repeating-linear-gradient(
    to bottom,
    rgba(47, 217, 242, 0.025) 0px,
    rgba(47, 217, 242, 0.025) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}

/* ---------- header / nav ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem clamp(1.25rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-size: 0.95rem;
  box-shadow: 0 0 10px rgba(47, 217, 242, 0.35) inset;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.25rem);
  font-size: 0.9rem;
  color: var(--text-dim);
}

.site-nav a {
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

.site-nav a:hover { color: var(--cyan); }
.site-nav a.nav-active { color: var(--cyan); }

.nav-cta {
  border: 1px solid var(--cyan-dim);
  padding: 0.5rem 1.1rem !important;
  color: var(--cyan) !important;
}

.nav-cta:hover {
  background: rgba(47, 217, 242, 0.08);
  border-color: var(--cyan);
}

/* ---------- buttons ---------- */

.btn {
  padding: 0.85rem 1.75rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--cyan);
  color: #04141a;
  font-weight: 600;
}

.btn-primary:hover {
  box-shadow: 0 0 22px rgba(47, 217, 242, 0.45);
}

.btn-ghost {
  border-color: var(--line-bright);
  color: var(--text);
}

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

/* ---------- footer ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem clamp(1.25rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 0.85rem;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a:hover { color: var(--cyan); }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
