/* LawbSignal — shared styles */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&family=VT323&display=swap');

:root {
  --bg: #000000;
  --bg-2: #050505;
  --panel: #0a0a0a;
  --panel-2: #0f0f0f;
  --line: #161616;
  --line-2: #232323;
  --line-3: #303030;
  --text: #ededed;
  --text-2: #a8a8a8;
  --muted: #6b6b6b;
  --dim: #3a3a3a;
  --accent: #4eff5f;
  --accent-dim: #2d9f37;
  --cyan: #4ee0ff;
  --alert: #ff4e5f;
  --warn: #ffb84e;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --pixel: 'VT323', 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
body {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  background:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px) 0 0 / 48px 48px,
    #000;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { font-family: inherit; font-size: inherit; }

/* ---------- top nav ---------- */
.topnav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 22px; height: 22px;
  background-image: url('assets/logo.png');
  background-size: contain; background-repeat: no-repeat; background-position: center;
  filter: drop-shadow(0 0 6px rgba(78,255,95,0.35));
}
.brand-name { font-weight: 600; letter-spacing: 0.5px; }
.brand-tag { color: var(--muted); font-size: 11px; margin-left: 4px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--text-2); font-size: 13px; }
.nav-links a.active { color: var(--text); }
.nav-links a:hover { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.status-dot {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 11px;
}
.status-dot::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--line-3);
  background: transparent; color: var(--text);
  cursor: pointer; font-size: 12px;
  transition: all 0.15s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 600; }
.btn.primary:hover { background: #6affa0; border-color: #6affa0; color: #000; }
.btn.ghost { border-color: transparent; color: var(--text-2); }

/* ---------- layout ---------- */
.container { max-width: 1440px; margin: 0 auto; padding: 0 32px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

.eyebrow {
  color: var(--muted); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase;
  margin-bottom: 16px;
}
.h1 { font-size: 56px; font-weight: 500; line-height: 1.05; letter-spacing: -0.5px; margin: 0 0 24px; }
.h2 { font-size: 36px; font-weight: 500; line-height: 1.1; letter-spacing: -0.3px; margin: 0 0 16px; }
.h3 { font-size: 20px; font-weight: 600; margin: 0 0 8px; }
.lead { color: var(--text-2); font-size: 14px; max-width: 620px; }
.mut { color: var(--muted); }
.acc { color: var(--accent); }
.cyn { color: var(--cyan); }
.alt { color: var(--alert); }
.wrn { color: var(--warn); }

.kbd { font-size: 10px; padding: 2px 6px; border: 1px solid var(--line-3); color: var(--muted); }

/* ---------- panels / terminal chrome ---------- */
.panel {
  border: 1px solid var(--line-2);
  background: var(--panel);
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-2);
  background: var(--panel-2);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.panel-head .dots { display: flex; gap: 5px; }
.panel-head .dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line-3);
}
.panel-head .dots span.live { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.panel-body { padding: 16px; }

.tag {
  display: inline-block; padding: 3px 8px;
  border: 1px solid var(--line-3); color: var(--text-2);
  font-size: 10px; letter-spacing: 0.6px; text-transform: uppercase;
}
.tag.green { color: var(--accent); border-color: rgba(78,255,95,0.4); background: rgba(78,255,95,0.06); }
.tag.red { color: var(--alert); border-color: rgba(255,78,95,0.4); background: rgba(255,78,95,0.06); }
.tag.warn { color: var(--warn); border-color: rgba(255,184,78,0.4); background: rgba(255,184,78,0.06); }
.tag.cyan { color: var(--cyan); border-color: rgba(78,224,255,0.4); background: rgba(78,224,255,0.06); }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 32px 32px;
  margin-top: 80px;
  color: var(--muted);
  font-size: 12px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 48px; max-width: 1440px; margin: 0 auto; }
.footer-grid h5 { color: var(--text); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 14px; font-weight: 500; }
.footer-grid a { display: block; color: var(--muted); padding: 4px 0; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1440px; margin: 48px auto 0;
  padding-top: 24px; border-top: 1px solid var(--line);
}

/* ---------- ticker ---------- */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  background: var(--bg-2);
}
.ticker-track {
  display: inline-block;
  padding: 12px 0;
  animation: tickerScroll 60s linear infinite;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--text-2);
}
.ticker-track span { margin: 0 28px; }
.ticker-track .acc { color: var(--accent); }
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- utility ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.col { display: flex; flex-direction: column; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.divider { height: 1px; background: var(--line); margin: 32px 0; }
.tnum { font-variant-numeric: tabular-nums; }

/* selection */
::selection { background: var(--accent); color: #000; }

/* scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: var(--line-3); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); }

/* sparkline / bar utilities */
.bar-track { background: var(--line); height: 4px; position: relative; overflow: hidden; }
.bar-fill { background: var(--accent); height: 100%; box-shadow: 0 0 8px var(--accent); }

/* ASCII pixel headline (for hero on landing) */
.pixel-h {
  font-family: var(--pixel);
  font-size: 96px;
  line-height: 1;
  letter-spacing: 2px;
  font-weight: 400;
}

/* shared "cursor" blink */
.cursor::after {
  content: '_'; color: var(--accent); margin-left: 2px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* table */
.table { width: 100%; border-collapse: collapse; font-size: 12px; }
.table th, .table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.table th { color: var(--muted); font-weight: 400; text-transform: uppercase; letter-spacing: 0.8px; font-size: 10px; }
.table tr:hover td { background: rgba(255,255,255,0.02); }
.table tr { cursor: pointer; }

/* badge with glow */
.glow-green { color: var(--accent); text-shadow: 0 0 6px rgba(78,255,95,0.5); }
