/* ─────────────────────────────────────────────────────────────────────
   ProdView · shared site chrome
   Used by Landing, Docs, Changelog, Blog. Page-specific styles go in
   their own <style> block inside each page.
   ───────────────────────────────────────────────────────────────────── */

:root {
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  --font: 'Inter', ui-sans-serif, -apple-system, system-ui, sans-serif;

  --productive: #10B981;
  --focus: #8B5CF6;
  --warn: #F59E0B;
  --distracting: #F43F5E;
  --meeting: #06B6D4;
}

html[data-theme="dark"] {
  --bg-0: #0B0D10;
  --bg-1: #14171C;
  --bg-2: #1B1F26;
  --bg-3: #252A33;
  --bg-grid: #11141a;
  --fg-0: #E6E8EB;
  --fg-muted: #9CA3AF;
  --fg-subdued: #6B7280;
  --border: #1f242c;
  --border-strong: #2a3038;
  --accent: #22D3B8;
  --accent-ink: #0B0D10;
  --grid-opacity: 0.6;
  --shadow-strong: 0 50px 100px -20px rgba(0,0,0,0.5);
  --shadow-mid: 0 30px 60px -20px rgba(0,0,0,0.5);
  --shadow-soft: 0 10px 24px -10px rgba(0,0,0,0.5);
}

html[data-theme="light"] {
  --bg-0: #FAFAFA;
  --bg-1: #FFFFFF;
  --bg-2: #F1F2F4;
  --bg-3: #E1E4E8;
  --bg-grid: #ECEEF1;
  --fg-0: #0F1218;
  --fg-muted: #4B5563;
  --fg-subdued: #6B7280;
  --border: #E4E7EB;
  --border-strong: #CDD2D8;
  --accent: #0FA88A;
  --accent-ink: #FFFFFF;
  --grid-opacity: 0.5;
  --shadow-strong: 0 30px 60px -15px rgba(15, 30, 50, 0.18), 0 1px 0 rgba(15, 30, 50, 0.04);
  --shadow-mid: 0 18px 38px -14px rgba(15, 30, 50, 0.18);
  --shadow-soft: 0 6px 16px -6px rgba(15, 30, 50, 0.16);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg-0); color: var(--fg-0); font-family: var(--font); }
body {
  font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11','ss01';
  overflow-x: hidden;
}
::selection { background: color-mix(in oklch, var(--accent) 40%, transparent); color: var(--fg-0); }
a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); font-size: 0.92em; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }

/* Background grid (decorative, masked at top) */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(to right, var(--bg-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--bg-grid) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 80%);
  opacity: var(--grid-opacity);
  z-index: 0;
}

/* Utilities */
.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }
.eyebrow {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  color: var(--fg-subdued); letter-spacing: 0.14em; text-transform: uppercase;
}
.mono { font-family: var(--mono); }

h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; font-weight: 600; color: var(--fg-0); text-wrap: balance; }
h1 { font-size: clamp(40px, 5vw, 60px); line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: 18px; line-height: 1.3; }
p { margin: 0; color: var(--fg-muted); text-wrap: pretty; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px;
  background: var(--accent); color: var(--accent-ink); border: 0;
  border-radius: 6px; font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: transform 80ms ease, filter 120ms ease, box-shadow 120ms ease;
  box-shadow: 0 0 0 1px color-mix(in oklch, var(--accent) 40%, transparent),
              0 8px 24px -8px color-mix(in oklch, var(--accent) 60%, transparent);
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-ghost {
  background: transparent; color: var(--fg-0);
  border: 1px solid var(--border-strong);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--bg-1); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 50px; padding: 0 22px; font-size: 15px; border-radius: 7px; }

.kbd {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 1px 5px; border: 1px solid var(--border); border-radius: 3px;
  font-family: var(--mono); font-size: 10px; color: var(--fg-subdued);
  background: var(--bg-1);
}

/* ─── nav ─── */
header.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in oklch, var(--bg-0) 80%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; gap: 28px;
  height: 60px;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
}
.brand-mark {
  width: 24px; height: 24px;
  border-radius: 5px;
  background: var(--accent);
  color: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 700; font-size: 13px;
}
nav.links { display: flex; gap: 4px; align-items: center; }
nav.links a {
  padding: 6px 12px; border-radius: 5px;
  color: var(--fg-muted); font-size: 13.5px;
  transition: color 100ms ease, background 100ms ease;
}
nav.links a:hover { color: var(--fg-0); background: var(--bg-1); }
nav.links a.on { color: var(--fg-0); background: var(--bg-1); }
.nav-spacer { flex: 1; }
.nav-actions { display: flex; gap: 8px; align-items: center; }

.theme-toggle {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border-strong);
  border-radius: 6px; cursor: pointer; color: var(--fg-muted);
  transition: background 100ms ease, color 100ms ease;
}
.theme-toggle:hover { color: var(--fg-0); background: var(--bg-1); }
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }
html[data-theme="light"] .theme-toggle .sun { display: block; }
html[data-theme="light"] .theme-toggle .moon { display: none; }

/* ─── footer ─── */
footer.site {
  margin-top: 80px;
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; }
.foot h4 { font-family: var(--mono); font-size: 11px; color: var(--fg-subdued); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 500; margin-bottom: 14px; }
.foot ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot a { color: var(--fg-muted); font-size: 13.5px; transition: color 100ms ease; }
.foot a:hover { color: var(--fg-0); }
.foot-brand p { font-size: 13px; margin-top: 14px; max-width: 280px; color: var(--fg-muted); }
.foot-bot {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border);
  font-family: var(--mono); font-size: 11px; color: var(--fg-subdued);
}
.foot-bot .status { display: inline-flex; align-items: center; gap: 6px; }
.foot-bot .status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--productive); box-shadow: 0 0 6px color-mix(in oklch, var(--productive) 70%, transparent); }

/* Responsive nav/footer */
@media (max-width: 1024px) {
  nav.links { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .foot-grid { grid-template-columns: 1fr; }
}
