/* ================================================
   DELLIE'S ANALYTICS — SHARED DESIGN SYSTEM
   ================================================ */

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

:root {
  /* Backgrounds */
  --bg:   #07050f;
  --bg-2: #0e0b1c;
  --bg-3: #151128;

  /* Lilac palette */
  --lilac-50:  #f5f0ff;
  --lilac-100: #e8d8ff;
  --lilac-200: #d0b4f8;
  --lilac-300: #bc96f0;   /* primary accent */
  --lilac-400: #9e72e0;
  --lilac-600: #7044c0;
  --lilac-900: #280e5c;

  /* Text */
  --ink:   #ede8f8;
  --muted: #8878a8;
  --dim:   #5a506e;

  /* UI */
  --white:         #ffffff;
  --border:        rgba(188, 150, 240, 0.1);
  --border-strong: rgba(188, 150, 240, 0.22);
  --glow:          rgba(188, 150, 240, 0.06);

  /* Status */
  --green: #6ee7b7;
  --red:   #f87171;
  --amber: #fcd34d;

  /* Type */
  --mono:  'DM Mono', monospace;
  --serif: 'DM Serif Display', serif;
  --sans:  'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 5, 15, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 0.5px solid var(--border);
  padding: 0 2.5rem;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.nav-logo span { color: var(--ink); font-style: italic; }
.nav-links {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
  list-style: none;
}
.nav-links a {
  font-size: 0.8125rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--lilac-300); }
.nav-links a.active { font-weight: 500; }

/* ── TICKER ─────────────────────────────────── */
.ticker-wrap {
  background: var(--bg-2);
  border-bottom: 0.5px solid var(--border);
  overflow: hidden;
  height: 32px;
  display: flex;
  align-items: center;
}
.ticker-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: ticker 32s linear infinite;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--ink);
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
.ticker-item .t-label { color: var(--dim); }
.ticker-item .t-pos   { color: var(--green); }
.ticker-item .t-neg   { color: var(--red); }
.ticker-item .t-flat  { color: var(--muted); }
.ticker-divider { color: var(--border-strong); }
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── BUTTONS ────────────────────────────────── */
.btn-primary {
  background: var(--lilac-300);
  color: var(--bg);
  border: none;
  padding: 0.625rem 1.375rem;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
  display: inline-block;
}
.btn-primary:hover { background: var(--lilac-200); }
.btn-ghost {
  background: transparent;
  color: var(--lilac-300);
  border: 0.5px solid var(--border-strong);
  padding: 0.625rem 1.375rem;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  display: inline-block;
}
.btn-ghost:hover { background: var(--glow); color: var(--lilac-200); }

/* ── SECTION COMMON ─────────────────────────── */
.section-eyebrow {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--lilac-300);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.section-sub {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

/* ── LIVE DOT ───────────────────────────────── */
.live-dot {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 0.625rem;
  color: var(--green);
  letter-spacing: 0.05em;
}
.live-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ── FOOTER ─────────────────────────────────── */
footer {
  border-top: 0.5px solid var(--border);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--bg);
}
.footer-logo {
  font-family: var(--serif);
  font-size: 0.9375rem;
  color: var(--ink);
  text-decoration: none;
}
.footer-note {
  font-family: var(--mono);
  font-size: 0.625rem;
  color: var(--dim);
  letter-spacing: 0.04em;
}
.footer-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
}
.footer-links a {
  font-size: 0.8125rem;
  color: var(--muted);
  text-decoration: none;
}
.footer-links a:hover { color: var(--lilac-300); }

/* ── ANIMATIONS ─────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.55s ease forwards;
}
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

@media (max-width: 768px) {
  nav    { padding: 0 1.25rem; }
  footer { padding: 1.5rem 1.25rem; }
}
