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

:root {
  --bg-base:       #0A0A0C;
  --bg-panel:      #111116;
  --bg-elevated:   #18181F;
  --bg-input:      #1E1E28;
  --border:        #2A2A36;
  --border-subtle: #1C1C24;
  --text-primary:  #E8E8F0;
  --text-secondary:#8888A0;
  --text-muted:    #555568;
  --accent:        #C8FF00;
  --accent-dim:    #8FAF00;
  --accent-glow:   rgba(200,255,0,0.12);
  --live:          #FF3B30;
  --positive:      #34C759;
  --warning:       #FF9F0A;
  --info:          #0A84FF;
  --compound-soft:   #E8002D;
  --compound-medium: #FFF200;
  --compound-hard:   #FFFFFF;
  --font-display: 'DM Mono', monospace;
  --font-body:    'Syne', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── GRID BACKGROUND ───────────────────────────────────── */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.grid-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, transparent 40%, var(--bg-base) 100%);
}

/* ── NAV ───────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(10,10,12,0.85);
  backdrop-filter: blur(12px);
  z-index: 100;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.wordmark img {
  height: 22px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-cta {
  background: var(--accent);
  color: #0A0A0C !important;
  padding: 8px 18px;
  border-radius: 3px;
  font-weight: 600 !important;
}

.nav-cta:hover { background: #d4ff26; color: #0A0A0C !important; }

/* ── FOOTER ────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.footer-left {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--text-muted);
}

.footer-left span { color: var(--accent); }

.footer-center {
  display: flex;
  gap: 24px;
}

.footer-center a {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-center a:hover { color: var(--accent); }

.footer-disclaimer {
  font-size: 11px;
  color: var(--text-disabled);
  max-width: 500px;
  text-align: right;
  line-height: 1.6;
}

/* ── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── RESPONSIVE (shared) ──────────────────────────────── */
@media (max-width: 1024px) {
  nav { padding: 0 24px; }
  .nav-links li:not(:last-child) { display: none; }
  footer { flex-direction: column; gap: 16px; text-align: center; }
  .footer-disclaimer { text-align: center; }
}

@media (max-width: 640px) {
  footer { padding: 32px 24px; }
}
