/* ================================================================
   RIGHT FIDELITY AI — Shared Design System
   Extracted from index.html v13 + subpage additions
   ================================================================ */

:root {
  --bg-deep: #060A12;
  --bg-primary: #0B1120;
  --bg-raised: #101828;
  --bg-card: #131D2E;
  --bg-card-hover: #182438;
  --text-primary: #E2E8F4;
  --text-secondary: #8896B3;
  --text-muted: #7A8BA3;
  --accent: #6E9EFF;
  --accent-light: #93B8FF;
  --accent-dim: #4A7AE0;
  --accent-glow: rgba(110, 158, 255, 0.08);
  --accent-glow-strong: rgba(110, 158, 255, 0.15);
  --gold: #D4A55A;
  --gold-light: #E4BD7A;
  --gold-glow: rgba(212, 165, 90, 0.10);
  --green: #5ABD8C;
  --green-glow: rgba(90, 189, 140, 0.08);
  --rose: #D47B8A;
  --rose-glow: rgba(212, 123, 138, 0.08);
  --violet: #9B7ED8;
  --violet-glow: rgba(155, 126, 216, 0.08);
  --teal: #4ECDC4;
  --teal-glow: rgba(78, 205, 196, 0.08);
  --border: rgba(255,255,255,0.05);
  --border-accent: rgba(110, 158, 255, 0.2);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== NOISE TEXTURE ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 0.85rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(6, 10, 18, 0.90);
  backdrop-filter: blur(28px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-mark { width: 30px; height: 30px; position: relative; }
.nav-mark svg { width: 100%; height: 100%; }

.nav-wordmark {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-wordmark .wm-right { color: var(--text-primary); }
.nav-wordmark .wm-fidelity { color: var(--accent); font-weight: 600; }
.nav-wordmark .wm-ai { color: var(--text-muted); font-weight: 300; font-size: 0.85em; margin-left: 0.15em; }

.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a.nav-active { color: var(--text-primary); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--bg-deep) !important;
  padding: 0.4rem 1rem !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  transition: all 0.3s !important;
}

.nav-cta:hover {
  background: var(--gold-light) !important;
  transform: translateY(-1px);
}

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--text-secondary); margin: 4px 0; transition: all 0.3s; border-radius: 2px; }

/* ===== COMMON ===== */
.section-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6.5rem 2rem;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
}

.section-label::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.section-desc {
  font-size: 1.02rem;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.85;
  margin-bottom: 3.5rem;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.7rem;
  background: var(--gold);
  color: var(--bg-deep);
  border: none;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font-body);
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(212, 165, 90, 0.2);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.7rem;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font-body);
}

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

/* Deep-dive link style */
.section-deeplink {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.04em;
  margin-top: 1.5rem;
  transition: all 0.3s;
  opacity: 0.7;
}

.section-deeplink:hover {
  opacity: 1;
  transform: translateX(3px);
}

/* ===== CREDENTIAL ITEMS ===== */
.cred-stack { display: grid; gap: 0.6rem; }

.cred-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s;
}

.cred-item:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.cred-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.cred-icon.a { background: var(--accent-glow-strong); }
.cred-icon.b { background: var(--gold-glow); }
.cred-icon.g { background: var(--green-glow); }

.cred-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.cred-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.08rem;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), rgba(110, 158, 255, 0.15), transparent);
}

.tl-item {
  position: relative;
  padding-bottom: 2.5rem;
  padding-left: 1.5rem;
}

.tl-item:last-child { padding-bottom: 0; }

.tl-item::before {
  content: '';
  position: absolute;
  left: -2.85rem;
  top: 0.4rem;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--bg-deep), 0 0 0 4px rgba(110, 158, 255, 0.25);
}

.tl-org {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.1rem;
}

.tl-role {
  font-size: 0.82rem;
  color: var(--accent);
  font-style: italic;
  font-family: var(--font-display);
  margin-bottom: 0.4rem;
}

.tl-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.tl-wm {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: var(--gold);
  font-style: italic;
  font-family: var(--font-display);
}

.tl-impact {
  margin-top: 0.45rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.tl-impact span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.tl-impact .imp-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

/* ===== CTA ===== */
.cta-section {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 80%, rgba(110, 158, 255, 0.03) 0%, transparent 60%);
}

.cta-inner {
  max-width: 620px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-inner .section-label {
  justify-content: center;
}

.cta-inner .section-title {
  text-align: center;
}

.cta-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 2.5rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.contact-info {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-info a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-info a:hover { color: var(--accent-light); }

/* ===== FOOTER ===== */
footer {
  padding: 2.5rem 2rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-weight: 300;
}

.footer-info {
  font-size: 0.80rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.footer-info a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-info a:hover { color: var(--accent-light); }

.footer-legal {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--accent); }
.footer-links a.footer-active { color: var(--text-secondary); }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   SUBPAGE-SPECIFIC STYLES
   ================================================================ */

/* ===== PAGE HERO (shorter than main hero) ===== */
.page-hero {
  padding: 10rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.page-hero .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero .hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 55%, rgba(110, 158, 255, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 30%, rgba(212, 165, 90, 0.03) 0%, transparent 45%);
}

.grid-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(110, 158, 255, 0.05), transparent);
  animation: drift 26s linear infinite;
}
.grid-line:nth-child(1) { top: 18%; width: 50%; left: 5%; animation-delay: 0s; }
.grid-line:nth-child(2) { top: 40%; width: 60%; left: 20%; animation-delay: -9s; }
.grid-line:nth-child(3) { top: 65%; width: 45%; left: 10%; animation-delay: -17s; }

.grid-line-v {
  position: absolute;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(110, 158, 255, 0.04), transparent);
  animation: drift-v 30s linear infinite;
}
.grid-line-v:nth-child(4) { left: 22%; height: 55%; top: 12%; animation-delay: -3s; }
.grid-line-v:nth-child(5) { left: 68%; height: 45%; top: 22%; animation-delay: -12s; }

@keyframes drift {
  0% { opacity: 0; transform: translateX(-40px); }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { opacity: 0; transform: translateX(40px); }
}

@keyframes drift-v {
  0% { opacity: 0; transform: translateY(-30px); }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { opacity: 0; transform: translateY(30px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-hero-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-hero .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  animation: fadeUp 0.9s ease-out 0.2s both;
}

.page-hero .hero-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.9s ease-out 0.35s both;
  max-width: 780px;
}

.page-hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.page-hero-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.9;
  animation: fadeUp 0.9s ease-out 0.5s both;
  font-weight: 400;
}

/* ===== PROSE CONTENT ===== */
.prose {
  max-width: 760px;
  margin: 0 auto;
}

.prose-wide {
  max-width: 1000px;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin-top: 4rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.prose h2 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.prose h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.prose h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.prose p {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.prose p strong {
  color: var(--text-primary);
  font-weight: 600;
}

.prose p em {
  color: var(--accent);
  font-style: italic;
}

.prose ul, .prose ol {
  color: var(--text-secondary);
  font-size: 1.0rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose li strong {
  color: var(--text-primary);
  font-weight: 600;
}

.prose blockquote {
  background: var(--accent-glow);
  border-left: 2px solid var(--accent);
  padding: 1.5rem 1.75rem;
  border-radius: 0 10px 10px 0;
  margin: 2rem 0;
}

.prose blockquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--text-primary);
  line-height: 1.75;
  margin-bottom: 0.5rem;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose blockquote cite {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.prose a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.prose a:hover {
  color: var(--accent-light);
}

/* Gold-accent blockquote variant */
.prose blockquote.gold-quote {
  background: var(--gold-glow);
  border-left-color: var(--gold);
}

.prose blockquote.gold-quote p {
  color: var(--text-primary);
}

.prose .gold-principle {
  background: var(--gold-glow);
  border-left: 2px solid var(--gold);
  padding: 1.5rem 1.75rem;
  border-radius: 0 10px 10px 0;
  margin: 2rem 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--text-primary);
  line-height: 1.75;
}

/* Callout example (inline case study, not a third-party quote) */
.prose .callout-example {
  background: var(--accent-glow);
  border-left: 2px solid var(--accent);
  padding: 1.25rem 1.5rem;
  border-radius: 0 10px 10px 0;
  margin: 2rem 0;
  font-size: 0.97rem;
  line-height: 1.75;
}

/* ===== DOMAIN CARDS (Genesis page) ===== */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0 3rem;
}

.domain-grid-2x2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.domain-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.domain-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.domain-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.domain-card:hover::before { opacity: 1; }

.domain-card h4,
.domain-card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.domain-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===== STEP SECTIONS (Methodology page) ===== */
.step-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.step-section:last-of-type {
  border-bottom: none;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  opacity: 0.6;
  margin-bottom: 0.75rem;
}

.step-section h2 {
  margin-top: 0;
}

/* ===== MOONSHOT MAP (Vision page) ===== */
.moonshot-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.moonshot-table th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.moonshot-table td {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.6;
}

.moonshot-table td:first-child {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
}

.moonshot-table td:nth-child(2) {
  color: var(--accent);
  font-size: 0.82rem;
  font-family: var(--font-mono);
}

.moonshot-table tr:hover td {
  background: var(--bg-card);
}

/* ===== ENGAGEMENT MODELS (Genesis page) ===== */
.engage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.engage-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  transition: all 0.3s;
}

.engage-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.engage-card h4,
.engage-card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.engage-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.engage-card .engage-range {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ===== COMPARISON CARDS (Methodology page) ===== */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.compare-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  transition: all 0.3s;
}

.compare-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.compare-card .compare-vs {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rose);
  margin-bottom: 0.5rem;
}

.compare-card h4 {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.compare-card p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.compare-card .compare-adm {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--accent);
  font-style: italic;
  font-family: var(--font-display);
}

/* ===== CASE PATTERN CARDS ===== */
.pattern-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.pattern-card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.pattern-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity 0.4s;
}

.pattern-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.pattern-card:hover::before { opacity: 1; }

.pattern-card.pc-gold::before { background: linear-gradient(90deg, var(--gold), transparent); }
.pattern-card.pc-blue::before { background: linear-gradient(90deg, var(--accent), transparent); }
.pattern-card.pc-green::before { background: linear-gradient(90deg, var(--green), transparent); }

.pattern-card .pattern-type {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  margin-bottom: 0.85rem;
  display: inline-block;
}

.pt-gold { background: var(--gold-glow); color: var(--gold); border: 1px solid rgba(212, 165, 90, 0.2); }
.pt-blue { background: var(--accent-glow-strong); color: var(--accent); }
.pt-green { background: var(--green-glow); color: var(--green); border: 1px solid rgba(90, 189, 140, 0.15); }

.pattern-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.pattern-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ===== TOOLS GRID (About page) ===== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.tool-category {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
}

.tool-category h4,
.tool-category h3 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.tool-category ul {
  list-style: none;
  padding: 0;
}

.tool-category li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 0.25rem 0;
  line-height: 1.5;
}

/* ===== L0-L5 MATURITY (Vision page) ===== */
.maturity-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  margin: 2rem 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-card);
}

.maturity-level {
  padding: 1.25rem 1rem;
  border-right: 1px solid var(--border);
  transition: background 0.3s;
  text-align: center;
}

.maturity-level:last-child { border-right: none; }
.maturity-level:hover { background: var(--bg-card-hover); }

.maturity-level .ml-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.maturity-level h5 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.maturity-level p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== DIVIDER ===== */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ===== ALTERNATING SECTION BACKGROUNDS ===== */
.bg-deep { background: var(--bg-deep); }
.bg-primary {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(6, 10, 18, 0.97);
    backdrop-filter: blur(24px);
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border);
  }
  .domain-grid { grid-template-columns: 1fr 1fr; }
  .engage-grid { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .pattern-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr 1fr; }
  .maturity-strip { grid-template-columns: repeat(3, 1fr); }
  .maturity-level:nth-child(3) { border-right: none; }
  .maturity-level:nth-child(4),
  .maturity-level:nth-child(5),
  .maturity-level:nth-child(6) { border-top: 1px solid var(--border); }
}

/* ===== MOONSHOT TABLE RESPONSIVE ===== */
.moonshot-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2rem 0;
}

.moonshot-table-wrap .moonshot-table {
  margin: 0;
  min-width: 600px;
}

/* ===== FOCUS VISIBLE ===== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary:focus-visible {
  outline-color: var(--gold-light);
  box-shadow: 0 0 0 4px rgba(212, 165, 90, 0.25);
}

/* ===== SKIP TO CONTENT ===== */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg-deep);
  padding: 0.5rem 1.5rem;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 10000;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-to-content:focus {
  top: 0;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===== BLOG ===== */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 760px;
}

.blog-card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
  transition: all 0.4s;
  text-decoration: none;
  display: block;
}

.blog-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.blog-card-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}

.blog-card h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.blog-card p {
  font-size: 0.90rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.blog-read-more {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.blog-cadence {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 2rem;
}

.post-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 3rem;
  animation: fadeUp 0.9s ease-out 0.5s both;
}

.post-nav {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.post-nav a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.3s;
}

.post-nav a:hover {
  color: var(--accent-light);
}

@media (max-width: 600px) {
  .page-hero { padding: 7rem 1.25rem 3rem; }
  .section-wrap { padding: 4.5rem 1.25rem; }
  .cta-actions { flex-direction: column; align-items: center; }
  .domain-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .maturity-strip { grid-template-columns: 1fr 1fr; }
  .maturity-level { border-right: none !important; border-bottom: 1px solid var(--border); }
  .maturity-level:last-child { border-bottom: none; }
  .blog-card { padding: 1.25rem; }
}
