/* ─────────────────────────────────────────────────────────────────────────────
   VENDORED from the PayloadGlass marketing site:
   web_payloadglass_com/src/styles/global.css
   This is the SINGLE SOURCE OF TRUTH for the shared design system (tokens, buttons,
   cards, layout). Do NOT edit it here — re-vendor it when the main site changes:
     cp ../web_payloadglass_com/src/styles/global.css crates/sis-demo-web/assets/site.css
   Demo-specific styles (drop zone, analyser, results) live in demo.css and layer on top.
   ───────────────────────────────────────────────────────────────────────────── */

:root {
  /* Dark-mode-first. Audience lives in terminals. */
  --bg:        #0a0e14;   /* near-black, faint blue */
  --bg-raised: #111722;   /* cards / sections */
  --bg-inset:  #0d1320;   /* code / evidence blocks */
  --border:    #1d2738;
  --border-bright: #2b3a52;

  --text:      #e6edf3;   /* primary prose */
  --text-dim:  #9aa7b8;   /* secondary */
  --text-faint:#6b7889;   /* captions, labels */

  /* Restrained accent — "glass" cyan. Used sparingly. */
  --accent:    #4fd1c5;
  --accent-bright: #76e4d8;
  --accent-dim: #1f3a38;

  --danger:    #f87171;   /* findings / flagged */
  --warn:      #fbbf24;
  --ok:        #4ade80;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;

  --maxw: 1080px;
  --radius: 10px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle "glass / layers" background gradient */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 70% -10%, rgba(79, 209, 197, 0.10), transparent 60%),
    radial-gradient(700px 400px at 10% 0%, rgba(79, 209, 197, 0.05), transparent 55%);
  pointer-events: none;
}

h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 650;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 0 0 0.4em; }
h3 { font-size: 1.15rem; margin: 0 0 0.4em; }

p { color: var(--text-dim); }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-bright); text-decoration: underline; }

code, kbd, pre {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 84px 0;
  border-top: 1px solid var(--border);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 64ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: #042b27;
}
.btn-primary:hover { background: var(--accent-bright); color: #042b27; }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-bright);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-bright); }

/* Cards */
.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.card:hover { border-color: var(--border-bright); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Mono "evidence" chips */
.chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid var(--border-bright);
  color: var(--text-dim);
  background: var(--bg-inset);
}

.note {
  font-size: 0.92rem;
  color: var(--text-faint);
}

@media (max-width: 820px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
}
