/* ═══ COLOR FLOW MAP (from design-spec.theme_context_map) ═══
 *
 * GLOBAL NAV RULE:
 *   dark-top pages → nav starts transparent, white links; scrolled → solid #0B0F2A, white links
 *   light-top pages → nav starts solid #0B0F2A (force-solid), white links
 *   Logo: logo-light.svg on ALL pages (nav always dark bg in both states)
 *   body.blyr-page--dark-top → background: #0B0F2A (so transparent nav shows correct dark bg)
 *   body.blyr-page--light-top → background: #F8FAFC (content), nav force-solid dark
 *
 * index.html (dark-top):
 *   nav        → transparent-on-dark (scrolled: solid #0B0F2A)
 *   hero       → DARK   (#0B0F2A)  | text: white
 *   the-problem→ DARK_ALT (#141937) | text: white
 *   how-it-works→ DARK  (#0B0F2A)  | text: white
 *   coverage-preview → DARK_ALT     | text: white
 *   product-pillars  → DARK         | text: white
 *   developer-experience → DARK_ALT | text: white
 *   compliance-trust → DARK         | text: white
 *   testimonials → DARK_ALT         | text: white
 *   cta-band   → BRAND (#5B21B6 area)| text: white
 *   footer     → DARK  (#0B0F2A)   | text: white-muted
 *
 * pricing.html (light-top):
 *   nav        → solid dark (force-solid)
 *   hero       → LIGHT (#F8FAFC)   | text: dark
 *   tiers      → LIGHT             | text: dark
 *   faq        → LIGHT_ALT (#EEF2F7) | text: dark
 *   enterprise → DARK              | text: white
 *   footer     → DARK              | text: white-muted
 *
 * blog/<slug>.html (light-top):
 *   nav        → solid dark (force-solid)
 *   article-header → LIGHT         | text: dark
 *   article-body   → WHITE         | text: dark
 *   related-posts  → LIGHT_ALT     | text: dark
 *   footer     → DARK              | text: white-muted
 *
 * legal/*.html (light-top):
 *   nav        → solid dark
 *   legal-content → WHITE          | text: dark
 *   footer     → DARK              | text: white-muted
 *
 * Adjacent same-polarity sections: dark→dark_alt alternation provides natural separator
 * ═══════════════════════════════════════════════════════════════════════════════════════ */

/* === FONTS === */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* === CSS CUSTOM PROPERTIES === */
:root {
  --blyr-brand-primary: #0B0F2A;
  --blyr-brand-mid: #141937;
  --blyr-accent: #7C3AED;
  --blyr-accent-teal: #00D4B4;
  --blyr-accent-aa-dark: #A78BFA;
  --blyr-accent-teal-aa-dark: #2DD4BF;
  --blyr-accent-aa-light: #5B21B6;
  --blyr-accent-teal-aa-light: #0D9488;
  --blyr-fg-dark-primary: #F1F5F9;
  --blyr-fg-dark-secondary: #94A3B8;
  --blyr-fg-light-primary: #0B0F2A;
  --blyr-fg-light-secondary: #475569;
  --blyr-bg-dark: #0B0F2A;
  --blyr-bg-dark-alt: #141937;
  --blyr-bg-dark-card: #1E2448;
  --blyr-bg-light: #F8FAFC;
  --blyr-bg-light-alt: #EEF2F7;
  --blyr-bg-white: #FFFFFF;
  --blyr-border-dark: #2D3561;
  --blyr-border-light: #E2E8F0;
  --blyr-success: #10B981;
  --blyr-error: #EF4444;
  --blyr-code-bg: #0F1526;
  --blyr-container-max: 1200px;
  --blyr-container-pad: clamp(1rem, 4vw, 3rem);
  --blyr-section-gap: clamp(64px, 8vw, 96px);
  --blyr-radius-sm: 6px;
  --blyr-radius-md: 12px;
  --blyr-radius-lg: 16px;
  --blyr-shadow-card: 0 4px 24px rgba(0,0,0,0.35);
  --blyr-transition: 200ms ease;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  background: var(--blyr-bg-dark);
  color: var(--blyr-fg-dark-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Light-top pages need light bg for body so transparent nav over hero shows correct color */
body.blyr-page--dark-top {
  background: var(--blyr-bg-dark);
}

body.blyr-page--light-top {
  background: var(--blyr-bg-light);
  color: var(--blyr-fg-light-primary);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font: inherit;
}

/* === TYPOGRAPHY === */
h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
}

h4 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
}

p {
  line-height: 1.7;
}

code, pre, .blyr-mono {
  font-family: 'IBM Plex Mono', 'Consolas', 'Courier New', monospace;
  font-size: 0.9rem;
}

/* === CONTAINER === */
.blyr-container {
  max-width: var(--blyr-container-max);
  margin: 0 auto;
  padding: 0 var(--blyr-container-pad);
}

/* === SECTION BG CLASSES === */
.blyr-section--dark {
  background: var(--blyr-bg-dark);
}
.blyr-section--dark-alt {
  background: var(--blyr-bg-dark-alt);
}
.blyr-section--dark-card {
  background: var(--blyr-bg-dark-card);
}
.blyr-section--light {
  background: var(--blyr-bg-light);
}
.blyr-section--light-alt {
  background: var(--blyr-bg-light-alt);
}
.blyr-section--white {
  background: var(--blyr-bg-white);
}
.blyr-section--brand {
  background: linear-gradient(135deg, #3B0FA0 0%, #5B21B6 50%, #4C1D95 100%);
}
.blyr-section--code {
  background: var(--blyr-code-bg);
}

/* === BUTTONS === */
.blyr-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.625rem 1.25rem;
  border-radius: var(--blyr-radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.4;
  cursor: pointer;
  transition: all var(--blyr-transition);
  white-space: nowrap;
  border: 2px solid transparent;
  text-decoration: none;
}

/* Primary: indigo bg + white text — works on any bg */
.blyr-btn--primary {
  background: var(--blyr-accent-aa-light);
  color: #FFFFFF;
  border-color: var(--blyr-accent-aa-light);
}
.blyr-btn--primary:hover {
  background: #4C1D95;
  border-color: #4C1D95;
}

/* Outline light: for light/white bg */
.blyr-btn--outline-light {
  background: transparent;
  color: var(--blyr-accent-aa-light);
  border-color: var(--blyr-accent-aa-light);
}
.blyr-btn--outline-light:hover {
  background: rgba(91, 33, 182, 0.08);
}

/* Outline dark: for dark bg */
.blyr-btn--outline-dark {
  background: transparent;
  color: var(--blyr-fg-dark-primary);
  border-color: var(--blyr-border-dark);
}
.blyr-btn--outline-dark:hover {
  border-color: var(--blyr-accent-aa-dark);
  color: var(--blyr-accent-aa-dark);
}

/* Ghost on dark */
.blyr-btn--ghost-dark {
  background: transparent;
  color: var(--blyr-fg-dark-secondary);
  border-color: transparent;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.blyr-btn--ghost-dark:hover {
  color: var(--blyr-fg-dark-primary);
}

/* Ghost on light */
.blyr-btn--ghost-light {
  background: transparent;
  color: var(--blyr-fg-light-secondary);
  border-color: transparent;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.blyr-btn--ghost-light:hover {
  color: var(--blyr-fg-light-primary);
}

/* Code CTA: for code/dark sections */
.blyr-btn--code-cta {
  background: rgba(167, 139, 250, 0.15);
  color: var(--blyr-accent-aa-dark);
  border-color: rgba(167, 139, 250, 0.35);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.875rem;
}
.blyr-btn--code-cta:hover {
  background: rgba(167, 139, 250, 0.25);
  border-color: var(--blyr-accent-aa-dark);
}

/* Small button modifier */
.blyr-btn--sm {
  padding: 0.375rem 0.875rem;
  font-size: 0.875rem;
}

/* === BADGE / EYEBROW === */
.blyr-eyebrow {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

/* Eyebrow on dark contexts */
.blyr-section--dark .blyr-eyebrow,
.blyr-section--dark-alt .blyr-eyebrow,
.blyr-section--dark-card .blyr-eyebrow,
.blyr-section--brand .blyr-eyebrow,
.blyr-section--code .blyr-eyebrow {
  color: var(--blyr-accent-teal-aa-dark);
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.2);
}

/* Eyebrow on light contexts */
.blyr-section--light .blyr-eyebrow,
.blyr-section--light-alt .blyr-eyebrow,
.blyr-section--white .blyr-eyebrow {
  color: var(--blyr-accent-teal-aa-light);
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.2);
}

/* === UTILITY === */
.blyr-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.blyr-text-center { text-align: center; }
.blyr-text-muted-dark { color: var(--blyr-fg-dark-secondary); }
.blyr-text-muted-light { color: var(--blyr-fg-light-secondary); }

/* === DIVIDER === */
.blyr-divider {
  border: none;
  border-top: 1px solid var(--blyr-border-dark);
  margin: 0;
}
.blyr-section--light .blyr-divider,
.blyr-section--light-alt .blyr-divider,
.blyr-section--white .blyr-divider {
  border-top-color: var(--blyr-border-light);
}

/* === SECTION SPACING === */
.blyr-section {
  padding: var(--blyr-section-gap) 0;
}

.blyr-section--hero {
  padding: 0;
}
