/* ============================================================
   Vendor Pulse — Shared Design System
   ============================================================ */

:root {
  /* ---- Colors ---- */
  --bg: #0a0a0b;
  --bg-2: #0f0f11;
  --panel: #151518;
  --panel-2: #1b1b1f;
  --hair: #232327;
  --hair-2: #2a2a30;
  --text: #ededf0;
  --dim: #a1a1aa;
  --mute: #6b6b73;
  --faint: #4a4a52;

  /* ---- Accent ---- */
  --accent: #8b5cf6;
  --accent-2: #a78bfa;
  --accent-soft: rgba(139,92,246,.14);

  /* ---- Semantic ---- */
  --lime: #c6ff4e;
  --lime-soft: rgba(198,255,78,.14);
  --high: #ff5e5e;
  --high-soft: rgba(255,94,94,.12);
  --act: #ffb547;
  --act-soft: rgba(255,181,71,.12);
  --watch: #66b4ff;
  --watch-soft: rgba(102,180,255,.12);
  --info: #8a8a92;
  --ok: #45d78a;

  /* ---- Fonts ---- */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  min-height: 100vh;
}

::selection { background: var(--lime); color: #111; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 { font-weight: 600; letter-spacing: -.01em; }

p { line-height: 1.55; }

/* ---- Layout ---- */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 980px; margin: 0 auto; padding: 0 32px; }

.page-wrap { max-width: 1100px; margin: 0 auto; padding: 24px; }

/* ---- Noise overlay (subtle texture) ---- */
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 100;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .5; mix-blend-mode: overlay;
}

/* ---- Focus indicators ---- */
:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .wrap, .wrap-narrow, .page-wrap { padding: 0 16px; }
}
