/* ════════════════════════════════════════════════════════════════════
   Murphy System — Unified Brand Design System
   ════════════════════════════════════════════════════════════════════

   This is the CANONICAL design system for all Murphy System web pages.
   It matches the landing page (murphy_landing_v3.html) exactly.

   © 2020-2026 Inoni LLC / Corey Post — License: BSL 1.1

   Usage in any HTML page:
     <link rel="stylesheet" href="/static/murphy-brand.css">

   Then use the CSS variables in your inline <style> blocks:
     body { background: var(--bg); color: var(--text); font-family: var(--font); }
     .card { background: var(--surface); border: 1px solid var(--border); }

   ════════════════════════════════════════════════════════════════════ */


/* ── 1. GOOGLE FONTS ──────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');


/* ── 2. DESIGN TOKENS — matches landing page v3 exactly ───────────── */
:root {
  /* ── Backgrounds ── */
  --bg:         #080c0a;      /* primary page background (dark, green-tinted) */
  --bg2:        #0d1210;      /* secondary background (sections, alt rows) */
  --surface:    #111a15;      /* card surface */
  --elevated:   #162019;      /* elevated surface (modals, dropdowns) */

  /* ── Borders ── */
  --border:     rgba(0, 212, 170, 0.13);   /* subtle teal-tinted border */
  --border-mid: rgba(0, 212, 170, 0.20);   /* medium border */
  --border-hi:  rgba(0, 212, 170, 0.28);   /* highlighted border (hover, focus) */

  /* ── Text ── */
  --text:       #deeae4;      /* primary text (warm, green-tinted) */
  --text-dim:   #7a9a8a;      /* secondary text (labels, descriptions) */
  --text-muted: #4a6a5a;      /* muted text (timestamps, hints) */

  /* ── Brand Colors ── */
  --teal:       #00D4AA;      /* primary brand accent */
  --teal-dim:   rgba(0, 212, 170, 0.10);
  --teal-glow:  rgba(0, 212, 170, 0.18);
  --green:      #00ff6a;      /* success / active status */
  --orange:     #ff8c42;      /* warning / attention */
  --red:        #e07a5f;      /* error / danger */

  /* ── Semantic Colors ── */
  --success:    #22C55E;
  --warning:    #FFA63E;
  --danger:     #EF4444;
  --info:       #3B9EFF;

  /* ── Fonts ── */
  --font:       'Inter', system-ui, -apple-system, sans-serif;
  --mono:       'JetBrains Mono', ui-monospace, 'Courier New', monospace;

  /* ── Border Radius ── */
  --radius-sm:  6px;
  --radius:     10px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  20px;

  /* ── Spacing Scale ── */
  --space-1:    4px;
  --space-2:    8px;
  --space-3:    12px;
  --space-4:    16px;
  --space-5:    24px;
  --space-6:    32px;
  --space-7:    48px;
  --space-8:    64px;

  /* ── Shadows ── */
  --shadow-sm:  0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md:  0 4px 14px rgba(0, 0, 0, 0.5);
  --shadow-lg:  0 8px 28px rgba(0, 0, 0, 0.6);
  --shadow-teal: 0 0 20px var(--teal-glow);
}


/* ── 3. BASE RESET & TYPOGRAPHY ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
*:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }


/* ── 4. TOPBAR / NAVIGATION ───────────────────────────────────────── */
.murphy-topbar {
  position: sticky; top: 0; z-index: 200;
  background: rgba(8, 12, 10, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 60px;
}
.topbar-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.topbar-brand svg { width: 30px; height: 30px; }
.brand-name {
  font-size: 1.1rem; font-weight: 800; color: var(--teal);
  letter-spacing: -0.01em;
}
.brand-tag {
  font-size: 0.65rem; color: var(--text-dim); font-weight: 400; margin-left: 2px;
}
.topbar-nav {
  display: flex; align-items: center; gap: 2rem;
}
.topbar-nav a {
  color: var(--text-dim); text-decoration: none; font-size: 0.85rem;
  transition: color 0.2s;
}
.topbar-nav a:hover { color: var(--teal); }
.topbar-cta {
  display: flex; gap: 12px; align-items: center;
}
.hamburger {
  display: none; background: none; border: none; color: var(--text);
  font-size: 1.4rem; cursor: pointer;
}


/* ── 5. STATUS PILL ───────────────────────────────────────────────── */
.sys-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 0.72rem; color: var(--text-dim);
  padding: 4px 10px; border: 1px solid var(--border); border-radius: 20px;
}
.sys-pill::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
  animation: murphy-pulse 2s infinite;
}
.sys-pill.warn::before { background: var(--orange); box-shadow: 0 0 8px var(--orange); }
.sys-pill.warn { color: var(--orange); border-color: rgba(255, 140, 66, 0.3); }
@keyframes murphy-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }


/* ── 6. BUTTONS ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 8px;
  font-size: 0.85rem; font-weight: 600;
  text-decoration: none; transition: all 0.2s;
  border: none; cursor: pointer;
  font-family: var(--font);
}
.btn-primary {
  background: var(--teal); color: var(--bg);
}
.btn-primary:hover {
  background: #00f0bf; box-shadow: var(--shadow-teal);
}
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-hi);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-lg {
  font-size: 1.05rem; padding: 12px 32px; border-radius: var(--radius);
}


/* ── 7. CARDS ─────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s;
}
.card:hover {
  border-color: var(--border-hi);
  transform: translateY(-2px);
}
.card.featured {
  border-color: var(--teal);
  box-shadow: 0 0 30px rgba(0, 212, 170, 0.08);
}


/* ── 8. FORM ELEMENTS ─────────────────────────────────────────────── */
input, textarea, select {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  padding: 10px 14px;
  transition: border-color 0.2s;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--teal);
  outline: none;
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
label {
  display: block; font-size: 0.82rem; font-weight: 500;
  color: var(--text-dim); margin-bottom: 6px;
}


/* ── 9. UTILITY CLASSES ───────────────────────────────────────────── */
.mono { font-family: var(--mono); }
.text-teal { color: var(--teal); }
.text-dim { color: var(--text-dim); }
.text-center { text-align: center; }
.text-sm { font-size: 0.82rem; }
.text-xs { font-size: 0.72rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.hidden { display: none; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.max-w-sm { max-width: 480px; }
.max-w-md { max-width: 640px; }
.max-w-lg { max-width: 900px; }
.mx-auto { margin-left: auto; margin-right: auto; }


/* ── 10. MOBILE RESPONSIVENESS ────────────────────────────────────── */
@media (max-width: 768px) {
  .topbar-nav { display: none; }
  .hamburger { display: block; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .murphy-topbar { padding: 0 1rem; }
  section { padding: 3rem 1rem; }
}
