/* 🆗 Overseer Kit landing — static, no external CDN */

:root,
html[data-theme="dark"] {
  --bg: #0f1419;
  --surface: #1a2332;
  --text: #e7ecf3;
  --muted: #9aa8bc;
  --accent: #3d9a6a;
  --accent-dim: #2a6b4a;
  --border: #2d3a4d;
  --badge-dogfood: #2563eb;
  --badge-reference: #7c3aed;
  --badge-aspirational: #64748b;
  --layer-l0: #60a5fa;
  --layer-l1: #34d399;
  --layer-l2: #fbbf24;
  --layer-l3: #a78bfa;
  --header-bg: #1a2332;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", monospace;
  --max-width: 52rem;
}

html[data-theme="light"] {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #15202b;
  --muted: #5a6b7d;
  --accent: #1f7a4d;
  --accent-dim: #165c3a;
  --border: #d5dde8;
  --badge-dogfood: #1d4ed8;
  --badge-reference: #6d28d9;
  --badge-aspirational: #475569;
  --layer-l0: #2563eb;
  --layer-l1: #059669;
  --layer-l2: #b45309;
  --layer-l3: #7c3aed;
  --header-bg: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: #5cb88a;
}

header.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--header-bg);
  padding: 0.75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-icon-sun {
  display: none;
}

html[data-theme="light"] .theme-icon-moon {
  display: none;
}

html[data-theme="light"] .theme-icon-sun {
  display: inline;
}

html[data-theme="dark"] .theme-icon-moon {
  display: inline;
}

html[data-theme="dark"] .theme-icon-sun {
  display: none;
}

.site-header nav {
  /* Match hero inner width so the mark sits on the left edge of the composition. */
  max-width: 68rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: flex-start;
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.site-header .brand-name {
  font-weight: 750;
  font-size: 1.85rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  white-space: nowrap;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  padding: 0;
  border-radius: 0.55rem;
  background: #1d4f91;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
  line-height: 1;
}

.site-header .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
  font-size: 1.05rem;
  margin-left: auto;
  align-items: center;
}

.site-header .nav-links a {
  text-decoration: none;
  font-weight: 550;
  color: var(--accent);
}

.site-header .nav-links a:hover {
  color: #5cb88a;
  text-decoration: none;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

section {
  margin-bottom: 3rem;
  scroll-margin-top: 4rem;
}

h1 {
  font-size: 2.25rem;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.5rem;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

h3 {
  font-size: 1.125rem;
  margin: 1.5rem 0 0.5rem;
}

.lead {
  font-size: 1.25rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.sublead {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.cta-honesty {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0.75rem 0 1rem;
  max-width: 40rem;
}

.tertiary-links {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0 0 0.5rem;
}

.bound-honesty {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 1.25rem 0;
}

.footnote {
  color: var(--muted);
  font-size: 0.875rem;
}

.path-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1rem 0;
}

.path-card.path-preferred {
  border-color: var(--accent-dim);
  box-shadow: inset 3px 0 0 var(--accent);
}

.path-card h3 {
  margin-top: 0;
}

.path-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: none;
  letter-spacing: 0;
  margin-left: 0.35rem;
}

.diagram-figure {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  margin: 1.25rem 0;
}

.diagram-figure img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0.75rem 0;
}

.diagram-figure figcaption {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0 0 0.5rem;
}

.diagram-fallback {
  color: var(--muted);
  font-size: 0.875rem;
  padding-left: 1.25rem;
  margin: 0.5rem 0 0;
}

@keyframes hero-fade {
  from { opacity: 0; transform: translateY(0.4rem); }
  to { opacity: 1; transform: none; }
}

/* Hero is always a dark visual plane so the pipeline art glows in both themes. */
#hero.hero {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin: -2rem calc(50% - 50vw) 3rem;
  padding: 2.5rem 1.5rem 3rem;
  overflow: hidden;
  color: #e7ecf3;
  background:
    radial-gradient(900px 420px at 85% 20%, rgba(61, 154, 106, 0.18), transparent 60%),
    radial-gradient(700px 360px at 10% 80%, rgba(56, 120, 200, 0.22), transparent 55%),
    linear-gradient(160deg, #0a1018 0%, #121a26 45%, #0d1520 100%);
  border-bottom: 1px solid rgba(45, 58, 77, 0.9);
  scroll-margin-top: 4rem;
}

.hero-plane {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 16, 24, 0.92) 0%, rgba(10, 16, 24, 0.55) 42%, rgba(10, 16, 24, 0.15) 70%, transparent 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 68rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.hero-copy h1 {
  color: #7ec8ff;
  font-size: clamp(2.25rem, 4.2vw, 3.15rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 0.9rem;
  animation: hero-fade 0.55s ease-out;
}

.hero-copy .lead {
  color: #d5dee9;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.4;
  margin: 0 0 0.85rem;
  animation: hero-fade 0.7s ease-out 0.05s both;
}

.hero-copy .sublead,
.hero-copy .tertiary-links {
  color: #a8b6c9;
}

.hero-copy .cta-row {
  animation: hero-fade 0.75s ease-out 0.1s both;
}

.hero-copy .btn-secondary {
  border-color: rgba(167, 182, 201, 0.45);
  color: #e7ecf3;
}

.hero-copy .btn-secondary:hover {
  border-color: var(--accent);
  color: #5cb88a;
}

.hero-copy .tertiary-links a {
  color: #5cb88a;
}

.hero-visual {
  margin: 0;
  animation: hero-fade 0.9s ease-out 0.12s both;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(30rem, 56vh);
  object-fit: contain;
  /* Soft lift only — art is already transparent RGBA over the dark hero plane. */
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35));
}

@media (max-width: 52rem) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .hero-visual img {
    max-height: 16rem;
  }
}

/* MuseHub deepen band — sits directly under the hero plane. */
.musehub-band {
  width: 100vw;
  max-width: 100vw;
  margin: -1.5rem calc(50% - 50vw) 3rem;
  padding: 1.75rem 1.5rem;
  background:
    linear-gradient(180deg, rgba(110, 160, 243, 0.08), transparent 70%),
    var(--surface);
  border-bottom: 1px solid var(--border);
}

.musehub-band-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

.musehub-brand {
  display: inline-flex;
  color: #6ea0f3;
}

.musehub-logo {
  display: block;
  height: 4.25rem;
  width: auto;
  max-width: min(22rem, 100%);
}

.musehub-copy h2 {
  border-bottom: none;
  padding-bottom: 0;
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.musehub-copy p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  max-width: 40rem;
}

.musehub-links {
  font-size: 0.9375rem;
}

.musehub-links code {
  font-size: 0.8125rem;
}

@media (min-width: 720px) {
  .musehub-band-inner {
    grid-template-columns: minmax(14rem, 18rem) 1fr;
    gap: 2.25rem;
  }

  .musehub-logo {
    height: 5.5rem;
    max-width: none;
  }
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.btn {
  display: inline-block;
  padding: 0.625rem 1.125rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dim);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.layer-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.layer {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  border-left: 4px solid;
  background: var(--surface);
}

.layer-l3 { border-color: var(--layer-l3); }
.layer-l2 { border-color: var(--layer-l2); }
.layer-l1 { border-color: var(--layer-l1); }
.layer-l0 { border-color: var(--layer-l0); }

.layer strong {
  display: block;
  margin-bottom: 0.25rem;
}

.funnel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin: 1.5rem 0;
  font-weight: 600;
}

.funnel-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
}

.funnel-arrow {
  color: var(--muted);
  font-size: 1.25rem;
}

pre,
code {
  font-family: var(--mono);
  font-size: 0.875rem;
}

pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
}

ul.compact {
  padding-left: 1.25rem;
  margin: 0.5rem 0 1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
}

.card h3 {
  margin-top: 0;
}

.badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  border: 1px solid transparent;
}

/* Solid badges so light mode stays readable (pastel-on-white fails WCAG). */
.badge-dogfood {
  background: #1d4ed8;
  color: #ffffff;
}

.badge-reference {
  background: #6d28d9;
  color: #ffffff;
}

.badge-aspirational {
  background: #334155;
  color: #f8fafc;
}

html[data-theme="light"] .badge-dogfood {
  background: #1e3a8a;
  color: #ffffff;
}

html[data-theme="light"] .badge-reference {
  background: #5b21b6;
  color: #ffffff;
}

html[data-theme="light"] .badge-aspirational {
  background: #1e293b;
  color: #f8fafc;
}

.diagram {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  margin: 1rem 0;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.5;
  white-space: pre;
  overflow-x: auto;
}

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}

footer a {
  margin: 0 0.5rem;
}

.scenario-detail {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.scenario-detail:last-child {
  border-bottom: none;
}

@media (max-width: 40rem) {
  h1 {
    font-size: 1.75rem;
  }

  .funnel {
    flex-direction: column;
    align-items: stretch;
  }

  .funnel-arrow {
    text-align: center;
  }
}
