/* Northline design system: institutional, restrained, data first. */
:root {
  --bg: #07090d;
  --bg-2: #0b0f15;
  --panel: #0f141c;
  --panel-2: #131a24;
  --line: #1c2430;
  --line-2: #263142;
  --text: #eef1f6;
  --text-2: #c4cad6;
  --muted: #7d8799;
  --faint: #4a5466;
  --accent: #4d8dff;
  --accent-2: #7fb0ff;
  --accent-ink: #0b1a33;
  --up: #2fd39b;
  --down: #f2556a;
  --warn: #f2b84b;
  --radius: 14px;
  --radius-sm: 8px;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Geist', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: 'Geist', system-ui, sans-serif;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 30px 80px -40px rgba(0, 0, 0, 0.8);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* Faint engineering grid behind the page */
.grid-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 75%);
}
.glow {
  position: absolute; pointer-events: none; z-index: 0;
  width: 900px; height: 600px; left: 50%; top: -260px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(77,141,255,0.20), transparent);
  filter: blur(10px);
}
main, header, footer, section { position: relative; z-index: 1; }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; font-size: 19px; }
.brand-mark { width: 30px; height: 30px; display: block; flex: 0 0 auto; }
.nav-links { display: flex; gap: 30px; color: var(--muted); font-size: 14px; }
.nav-links a:hover { color: var(--text); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 20px; border-radius: 10px; font-weight: 600; font-size: 14px; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.btn-primary { background: var(--text); color: #05070a; }
.btn-primary:hover { background: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: #3a4760; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #5e9aff; }

/* Type */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); }
.eyebrow::before { content: ''; width: 18px; height: 1px; background: var(--accent-2); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.04em; margin: 0; }
h1 { font-size: clamp(44px, 7vw, 92px); line-height: 0.98; font-weight: 600; }
h2 { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.04; font-weight: 600; }
h3 { font-size: 20px; letter-spacing: -0.02em; font-weight: 600; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); max-width: 620px; line-height: 1.55; }
.muted { color: var(--muted); }
.accent { color: var(--accent-2); }

/* Panels */
.panel { background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); font: 600 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font: 600 11px/1 var(--mono); letter-spacing: 0.04em; border: 1px solid var(--line-2); color: var(--text-2); background: rgba(255,255,255,0.02); }
.chip.up { color: var(--up); border-color: rgba(47,211,155,0.35); background: rgba(47,211,155,0.06); }
.chip.down { color: var(--down); border-color: rgba(242,85,106,0.35); background: rgba(242,85,106,0.06); }
.chip.warn { color: var(--warn); border-color: rgba(242,184,75,0.35); background: rgba(242,184,75,0.06); }
.chip.live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--up); box-shadow: 0 0 10px var(--up); }
.up { color: var(--up); } .down { color: var(--down); } .warn { color: var(--warn); }

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
section { padding: 120px 0; }
.section-head { display: grid; gap: 18px; margin-bottom: 56px; max-width: 760px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  section { padding: 80px 0; }
  .wrap { padding: 0 18px; }
}
