/* UX Companion — shared styles for content pages */
:root {
  --bg: #0A0B0D;
  --bg-elevated: #131418;
  --bg-subtle: #181A1F;
  --bg-hover: #20232A;
  --border: #23252B;
  --border-strong: #33363D;
  --hairline: #1C1E23;

  --text: #ECEDEF;
  --text-muted: #9C9DA3;
  --text-subtle: #65676D;
  --text-faint: #45464C;

  --accent: #8B7BFF;
  --accent-hover: #A091FF;
  --accent-soft: rgba(139, 123, 255, 0.12);
  --accent-text: #A899FF;
  --accent-glow: rgba(139, 123, 255, 0.20);

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --radius-2xl: 20px;

  --ease: cubic-bezier(.32,.72,.18,1);
  --max: 880px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-feature-settings: 'cv11','ss01','ss03','tnum','calt';
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--accent); color: white; }
.mono { font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; font-feature-settings: 'tnum','zero'; letter-spacing: -.01em; }

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

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(10, 11, 13, 0.7);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 56px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.brand-lock { display: flex; align-items: center; gap: 9px; text-decoration: none; color: inherit; }
.brand-mark { width: 24px; height: 24px; background: var(--text); border-radius: 6px; display: grid; place-items: center; }
.brand-mark::before {
  content: ""; width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}
.brand-name { font-size: 15px; font-weight: 550; letter-spacing: -.02em; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 13.5px; font-weight: 450; transition: color 100ms var(--ease); }
.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: all 100ms var(--ease);
  height: 32px;
  letter-spacing: -.005em;
}
.btn:hover { background: var(--bg-hover); border-color: var(--border-strong); }
.btn svg { width: 13px; height: 13px; }
.btn-primary { background: var(--accent); color: white; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--bg-hover); }
.btn-lg { height: 40px; padding: 10px 18px; font-size: 14.5px; }

/* Page header */
.page-head {
  text-align: center;
  padding: 80px 0 48px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 48px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-weight: 450;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.page-head h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.05;
  margin: 0 0 16px;
}
.page-head .lead {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 auto;
}
.page-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 18px;
}

/* Prose */
.prose { padding-bottom: 96px; }
.prose h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin: 48px 0 16px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.015em;
  margin: 28px 0 10px;
}
.prose p { color: var(--text-muted); margin: 0 0 16px; }
.prose p strong { color: var(--text); font-weight: 500; }
.prose ul, .prose ol { color: var(--text-muted); padding-left: 22px; margin: 0 0 16px; }
.prose ul li, .prose ol li { padding: 4px 0; }
.prose ul li::marker { color: var(--accent); }
.prose a { color: var(--accent-text); text-decoration: none; border-bottom: 1px solid var(--accent-soft); }
.prose a:hover { border-color: var(--accent); }
.prose code { font-family: 'JetBrains Mono', monospace; font-size: 13px; background: var(--bg-subtle); padding: 2px 6px; border-radius: 3px; border: 1px solid var(--border); color: var(--text); }
.prose blockquote {
  border-left: 2px solid var(--accent);
  padding: 4px 16px;
  margin: 24px 0;
  background: var(--accent-soft);
  border-radius: 0 6px 6px 0;
  color: var(--text);
}
.prose hr { border: none; border-top: 1px solid var(--hairline); margin: 32px 0; }
.prose .smallcaps { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-text); font-weight: 600; margin-bottom: 8px; }

/* Footer */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 48px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand-text {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 14px;
  max-width: 36ch;
  line-height: 1.55;
}
.footer-col-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-subtle);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  padding: 4px 0;
  transition: color 100ms var(--ease);
}
.footer-col a:hover { color: var(--text); }
.footer-foot {
  border-top: 1px solid var(--hairline);
  padding: 24px 24px 0;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-subtle);
  flex-wrap: wrap;
  gap: 12px;
}

/* Subtle ambient glow */
body::before {
  content: "";
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(139, 123, 255, 0.10) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.container, .container-wide, .nav { position: relative; z-index: 1; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }
