/* ============================================================
   Trackdeck — BRAND BOOK (single source of truth)
   One file that defines the whole visual language: colours, the
   "Obsidian Glass" material, type, radii, buttons, pills, logo.
   Linked by BOTH the marketing site AND the app (/app). Change a
   value here and every surface that uses these tokens updates.
   Living reference: /brand
   ============================================================ */

:root {
  /* — surfaces — */
  --bg: #08080B;
  --bg-soft: #0a0a0e;

  /* — ink (foreground) — */
  --ink: rgba(255, 255, 255, 0.92);
  --ink-2: rgba(255, 255, 255, 0.60);
  --ink-3: rgba(255, 255, 255, 0.38);
  --hair: rgba(255, 255, 255, 0.10);

  /* — brand accent (the single indigo) — */
  --indigo: #5E5CE6;
  --indigo-bright: #6B69EC;
  --indigo-deep: #3A39A8;
  --indigo-ink: #a6a4f5;
  --indigo-soft: rgba(94, 92, 230, 0.16);

  /* — status — */
  --green: #30D158;
  --amber: #FFD60A;
  --rose: #FF453A;

  /* — type — */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;

  /* — geometry — */
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 22px;
  --maxw: 1080px;

  /* — the Obsidian Glass material — */
  --glass-fill: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.012)), rgba(12, 12, 16, 0.42);
  --glass-fill-fallback: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)), rgba(14, 14, 18, 0.98);
  --glass-border: 0.5px solid rgba(255, 255, 255, 0.10);
  --glass-blur: blur(64px) saturate(195%);
  --glass-inset: inset 0 0.5px 0 rgba(255, 255, 255, 0.06);

  /* — elevation — */
  --shadow-pop: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  --shadow-btn: inset 0 0.5px 0 rgba(255, 255, 255, 0.3), 0 1px 14px rgba(94, 92, 230, 0.28);
}

/* ---------- Obsidian Glass material (shared name for site + app) ---------- */
.glass, .glass-strong {
  background: var(--glass-fill);
  border: var(--glass-border);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-inset);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .glass-strong { background: var(--glass-fill-fallback); }
}

/* Floating menus / dropdowns sit OVER content (not the dark backdrop), so they need
   to stay opaque — the glassy cards would let the content behind bleed through. */
.glass-menu {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)), rgba(16, 16, 20, 0.94);
  border: var(--glass-border);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-inset);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-menu { background: rgba(17, 17, 21, 0.985); }
}

/* ---------- logo mark (the 3-line "deck") ---------- */
.td-mark {
  display: inline-block;
  background: url("/favicon.svg") center / contain no-repeat;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-size: 14px; font-weight: 550; letter-spacing: -0.01em;
  padding: 10px 18px; border-radius: 12px; cursor: pointer;
  border: 0.5px solid transparent; transition: transform .12s, background .15s, border-color .15s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.975); }
.btn-primary { background: var(--indigo); color: #fff; box-shadow: var(--shadow-btn); }
.btn-primary:hover { background: var(--indigo-bright); }
.btn-ghost { background: rgba(255, 255, 255, 0.05); color: var(--ink); border-color: var(--hair); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); }
.btn-lg { padding: 13px 24px; font-size: 15px; border-radius: 13px; }

/* ---------- status pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 7px; }
.pill.green { background: rgba(48, 209, 88, 0.14); color: #4ade80; }
.pill.amber { background: rgba(255, 214, 10, 0.14); color: #fbbf24; }
.pill.gray { background: rgba(255, 255, 255, 0.08); color: var(--ink-2); }

/* ---------- eyebrow chip ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-3); padding: 6px 12px; border-radius: 999px;
  border: 0.5px solid var(--hair); background: rgba(255, 255, 255, 0.03);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(48, 209, 88, 0.7); }
