/* DataQuant site design system — shared by the landing, Pulse, Learn, upgrade
   and chat pages. Dark-first: the product is a screen people read after the
   close, next to charts. Tokens first, then a small set of components. */

:root {
  --bg: #07080b;
  --bg-2: #0b0d12;
  --surface: #10131a;
  --surface-2: #161a23;
  --surface-3: #1d2230;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --fg: #eef0f4;
  --fg-2: #a9afbd;
  --fg-3: #6c7385;
  --accent: #8b7bff;          /* violet: the AI layer */
  --accent-2: #2fd8a8;        /* mint: the market layer */
  --accent-ink: #0b0a1a;
  --up: #34d399;
  --down: #f87171;
  --warn: #fbbf24;
  --brand-grad: linear-gradient(135deg, #8b7bff 0%, #5aa8ff 50%, #2fd8a8 100%);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 50px -24px rgba(0, 0, 0, 0.7);
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: rgba(139, 123, 255, 0.35); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.up { color: var(--up); }
.down { color: var(--down); }
.muted { color: var(--fg-2); }
.faint { color: var(--fg-3); }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* ── Type ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-2);
}
.eyebrow::before { content: ''; width: 18px; height: 1px; background: var(--brand-grad); }
.display {
  font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -0.035em;
  font-weight: 600; margin: 0; text-wrap: balance;
}
.h2 {
  font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.03em;
  font-weight: 600; margin: 0; text-wrap: balance;
}
.h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 600; margin: 0; }
.lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--fg-2); margin: 0; text-wrap: pretty; }
.grad-text { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  font: 500 15px/1 var(--font); letter-spacing: -0.005em; cursor: pointer; border: 0;
  transition: transform .15s ease, background .15s ease, box-shadow .2s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-primary { background: var(--fg); color: #08090c; }
.btn-primary:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(139, 123, 255, 0.6); }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.22); }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(2px); }

/* ── Surfaces ── */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad { padding: 24px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 10px; border-radius: 999px;
  font: 500 12px/1 var(--font); color: var(--fg-2);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  white-space: nowrap;
}
.chip-up { color: var(--up); background: rgba(52, 211, 153, 0.08); border-color: rgba(52, 211, 153, 0.22); }
.chip-down { color: var(--down); background: rgba(248, 113, 113, 0.08); border-color: rgba(248, 113, 113, 0.22); }
.chip-warn { color: var(--warn); background: rgba(251, 191, 36, 0.08); border-color: rgba(251, 191, 36, 0.22); }
.chip-ai { color: #c4bbff; background: rgba(139, 123, 255, 0.1); border-color: rgba(139, 123, 255, 0.28); }
.dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; flex-shrink: 0; }
.dot-live { animation: dq-pulse 2s ease-in-out infinite; box-shadow: 0 0 10px currentColor; }
@keyframes dq-pulse { 50% { opacity: .45; } }
.section { padding: 112px 0; position: relative; }
.section-tight { padding: 72px 0; }
@media (max-width: 768px) { .section { padding: 80px 0; } .section-tight { padding: 56px 0; } }
.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); border: 0; margin: 0; }

/* ── Site nav ── */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 8, 11, 0.72); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap { height: 64px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.brand-mark { width: 28px; height: 28px; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; color: var(--fg-2); }
.nav-links a { transition: color .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fg); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 14px; }
.nav-cta .login { color: var(--fg-2); }
.nav-cta .login:hover { color: var(--fg); }
@media (max-width: 860px) { .nav-links { display: none; } }
@media (max-width: 420px) { .nav-cta .login { display: none; } }

/* ── Site footer ── */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 40px; color: var(--fg-2); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-grid h4 { margin: 0 0 14px; font-size: 13px; font-weight: 500; color: var(--fg); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a:hover { color: var(--fg); }
.footer-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.7; color: var(--fg-3); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ── Ambient background ── */
.glow { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.glow::before {
  content: ''; position: absolute; left: 50%; top: -340px; width: 1100px; height: 700px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(139, 123, 255, 0.22), transparent 70%),
              radial-gradient(closest-side at 70% 60%, rgba(47, 216, 168, 0.12), transparent 70%);
  filter: blur(10px);
}
.grid-lines {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
}

/* ── FAQ ── */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 24px;
  font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--mono); color: var(--fg-3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 22px; color: var(--fg-2); max-width: 680px; }
.faq .answer p { margin: 0 0 10px; }

/* ── Long-form reading (Learn) ── */
.prose { font-size: 17px; line-height: 1.75; color: #d6d9e1; }
.prose h2 { font-size: 26px; line-height: 1.25; letter-spacing: -0.02em; color: var(--fg); margin: 56px 0 14px; font-weight: 600; }
.prose h3 { font-size: 19px; color: var(--fg); margin: 36px 0 10px; font-weight: 600; letter-spacing: -0.01em; }
.prose p { margin: 0 0 18px; }
.prose a { color: #c4bbff; text-decoration: underline; text-decoration-color: rgba(196, 187, 255, 0.35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin: 6px 0; }
.prose code { font-family: var(--mono); font-size: 0.88em; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 24px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--fg-2); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.prose blockquote { margin: 24px 0; padding: 4px 0 4px 18px; border-left: 2px solid var(--accent); color: var(--fg-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
