/* ===================================================
   vaos.online — Vision-Native AI Operating System
   Industrial Cognition Platform · Developer-first
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* Core palette — clean infrastructure light */
  --bg:         #F8FAFC;
  --bg-1:       #FFFFFF;
  --bg-2:       #F8FAFC;
  --bg-card:    #FFFFFF;
  --bg-code:    #0B1220;
  --bg-code-2:  #182235;

  --border:     rgba(15, 23, 42, 0.10);
  --border-hi:  rgba(15, 23, 42, 0.18);
  --border-card: #E2E8F0;
  --border-acc: rgba(25, 199, 181, 0.45);

  --text:       #0F172A;
  --text-2:     #1f2937;
  --muted:      #64748B;
  --dim:        #94a3b8;

  /* Action — Validation Teal */
  --teal:       #19C7B5;
  --teal-deep:  #14a899;
  --teal-dim:   rgba(25, 199, 181, 0.10);
  --teal-glow:  0 12px 40px rgba(25, 199, 181, 0.18);

  /* Brand — Cognition Orange */
  --brand:        #F29B4B;
  --brand-light:  #ffba78;
  --brand-glow:   #ffe6c0;
  --brand-dim:    rgba(242, 155, 75, 0.10);
  --brand-line:   rgba(242, 155, 75, 0.45);

  /* Secondary accent */
  --amber:      #F29B4B;
  --amber-dim:  rgba(242, 155, 75, 0.12);

  /* Code/syntax */
  --code-text:  #e6e6e6;
  --code-kw:    #5dd7c5;
  --code-str:   #f9c74f;
  --code-com:   #6e7689;
  --code-num:   #d27735;

  --shadow-sm:  0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow:     0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-lg:  0 12px 32px rgba(15, 23, 42, 0.10);

  /* Typography */
  --font-heading: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', 'Fira Code', 'Menlo', 'Courier New', monospace;

  font-family: var(--font-body);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.028) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
code, kbd, samp { font-family: var(--font-mono); font-size: 0.9em; }

/* ─── Typography ─── */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.18; letter-spacing: -0.02em; color: var(--text); }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.05rem, 1.5vw, 1.2rem); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--brand);
  margin-bottom: 0.85rem;
}
.lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--muted);
  max-width: 720px;
  line-height: 1.7;
}
.lead.center { margin: 0 auto; text-align: center; }
.mono { font-family: var(--font-mono); }

/* ─── Layout ─── */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}
.container.narrow { max-width: 880px; }
.section { padding: 84px 0; }
.section.compact { padding: 56px 0; }
.section-header { text-align: center; margin-bottom: 56px; max-width: 760px; margin-left: auto; margin-right: auto; }
.section-header h2 { margin-bottom: 0.85rem; }
.bg-alt { background: var(--bg-1); }
.bg-card-band { background: var(--bg-card); }
/* Sections that use bg-alt get the white-over-grid rhythm */
section.bg-alt, .section.bg-alt { background-color: var(--bg-1); background-image: none; }

/* ─── Navbar — dark cinematic, mirrors the footer ─── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 62px;
  background:
    radial-gradient(ellipse 55% 110% at 50% 120%, rgba(25, 199, 181, 0.07) 0%, transparent 70%),
    linear-gradient(90deg, #0B1220 0%, #111827 50%, #0B1220 100%);
  border-bottom: 1px solid rgba(25, 199, 181, 0.18);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  color: #cdd6e3;
}
/* scanline pulse along the bottom edge — mirrors footer's top scanline */
.navbar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(25, 199, 181, 0.55) 35%,
    rgba(94, 220, 255, 0.85) 50%,
    rgba(25, 199, 181, 0.55) 65%,
    transparent 100%);
  background-size: 200% 100%;
  animation: footer-scanline 9s linear infinite;
  pointer-events: none;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
/* SVG wordmark — navbar size */
.nav-logo-img {
  height: 42px;
  width: auto;
  display: block;
  /* SVG already carries its own glow; this is a fallback drop-shadow for crisp edges */
  filter: drop-shadow(0 0 14px rgba(255, 186, 120, 0.22));
  transition: filter 0.2s ease, transform 0.2s ease;
}
.nav-logo:hover .nav-logo-img {
  filter: drop-shadow(0 0 22px rgba(255, 186, 120, 0.48));
}
/* footer brand wordmark — slightly larger for hierarchy */
.footer-brand .nav-logo-img {
  height: 50px;
  filter: drop-shadow(0 0 18px rgba(255, 186, 120, 0.26));
}
/* keep the old span-based brand-name styling around as a safety net,
   in case any page still uses the inline brand structure */
.nav-logo .mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, #f6cb89, #cf9148);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 900; color: #0c1018;
  font-family: var(--font-mono);
  box-shadow: 0 0 16px rgba(238, 178, 102, 0.45);
  margin-right: 10px;
}
.nav-logo .brand-name {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f5f9ff;
}
.nav-logo .brand-name sup.tm {
  font-size: 0.55em;
  vertical-align: super;
  color: #f4bc70;
  margin-left: 1px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 14px;
  flex: 1;
  justify-content: center;
}
.nav-links a,
.nav-links .nav-link {
  padding: 10px 22px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #b9c4d4;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover,
.nav-links .nav-link:hover { color: #f5f9ff; background: rgba(255, 186, 120, 0.08); }
.nav-links a.active { color: #ffe6c0; background: rgba(255, 186, 120, 0.14); }

/* small bullet indicator (e.g. next to "Trust") — inherits text color until the link is active */
.nav-dot {
  display: inline;
  margin-left: 5px;
  color: inherit;
  font-weight: 700;
  transition: color 0.2s, text-shadow 0.2s;
}
/* champagne + pulse only when the page is active */
.nav-links a.active .nav-dot {
  color: var(--brand-light);
  text-shadow: 0 0 8px rgba(255, 186, 120, 0.55);
  animation: nav-dot-pulse 2.4s ease-in-out infinite;
}
@keyframes nav-dot-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}

.nav-cta { display: flex; align-items: center; gap: 8px; }

/* ─── Nav mega-menu (mirrors the footer columns) ─── */
.nav-item { position: relative; list-style: none; }
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: #b9c4d4;
  letter-spacing: 0.01em;
}
.nav-trigger .caret {
  font-size: 0.6rem;
  opacity: 0.65;
  transition: transform 0.25s ease, opacity 0.2s, color 0.2s;
}
.nav-item--active > .nav-trigger {
  color: #ffe6c0;
  background: rgba(255, 186, 120, 0.14);
}

/* dropdown panel — dark cinematic */
.dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, -8px);
  min-width: 320px;
  padding: 14px;
  background:
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(25, 199, 181, 0.10) 0%, transparent 70%),
    linear-gradient(180deg, #0c1018 0%, #080b13 100%);
  border: 1px solid rgba(25, 199, 181, 0.22);
  border-radius: 14px;
  box-shadow:
    0 24px 60px rgba(5, 8, 14, 0.55),
    0 0 0 1px rgba(25, 199, 181, 0.06),
    0 0 30px rgba(25, 199, 181, 0.12);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  display: grid;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  z-index: 1000;
}
.dropdown-panel::before {
  content: '';
  position: absolute;
  top: -7px; left: 50%;
  width: 14px; height: 14px;
  background: #0c1018;
  border-top: 1px solid rgba(25, 199, 181, 0.22);
  border-left: 1px solid rgba(25, 199, 181, 0.22);
  transform: translateX(-50%) rotate(45deg);
}
/* thin glowing scanline along the top edge of the panel */
.dropdown-panel::after {
  content: '';
  position: absolute;
  top: 0; left: 12px; right: 12px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(94, 234, 212, 0.6), transparent);
  border-radius: 2px;
}
.nav-item.has-dropdown:hover > .dropdown-panel,
.nav-item.has-dropdown:focus-within > .dropdown-panel,
.nav-item.has-dropdown.open > .dropdown-panel {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
  visibility: visible;
  transition: opacity 0.22s ease, transform 0.28s ease, visibility 0s linear 0s;
}
.nav-item.has-dropdown:hover > .nav-trigger .caret,
.nav-item.has-dropdown:focus-within > .nav-trigger .caret,
.nav-item.has-dropdown.open > .nav-trigger .caret {
  transform: rotate(180deg);
  opacity: 1;
  color: #ffe6c0;
}
/* invisible bridge so cursor doesn't leave during the gap to the panel */
.nav-item.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%; left: 0; right: 0;
  height: 14px;
}

.dropdown-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: #cdd6e3;
  transition: background 0.18s, transform 0.18s, color 0.18s;
}
.dropdown-link strong {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  color: #f5f9ff;
}
.dropdown-link strong sup.tm {
  font-size: 0.55em;
  color: #ffba78;
  vertical-align: super;
  margin-left: 1px;
}
.dropdown-link strong .ext {
  color: #ffba78;
  font-size: 0.85em;
  margin-left: 4px;
}
.dropdown-link span {
  font-size: 0.76rem;
  color: #8593a8;
  letter-spacing: 0.01em;
}
.dropdown-link:hover {
  background: linear-gradient(90deg, rgba(255, 186, 120, 0.12), rgba(255, 186, 120, 0.03));
  transform: translateX(2px);
}
.dropdown-link:hover strong { color: #ffe6c0; text-shadow: 0 0 14px rgba(255, 186, 120, 0.35); }
.dropdown-link:hover span { color: #f4d6a8; }

/* ─── Mega-menu — wider grouped dropdown panel (for Platform) ─── */
.dropdown-panel.dropdown-mega {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 24px;
  padding: 20px 22px;
  min-width: 760px;
  max-width: 880px;
}
.dropdown-mega .dropdown-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dropdown-mega .dropdown-group-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-light);
  padding: 6px 14px 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255, 186, 120, 0.18);
}
.dropdown-mega .dropdown-link { padding: 9px 14px; }
.dropdown-mega .dropdown-link strong { font-size: 0.82rem; }
.dropdown-mega .dropdown-link span { font-size: 0.72rem; }

@media (max-width: 900px) {
  .dropdown-panel.dropdown-mega {
    grid-template-columns: 1fr;
    min-width: 0;
    max-width: none;
    width: 100%;
  }
  .dropdown-mega .dropdown-group + .dropdown-group {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 186, 120, 0.10);
  }
}

.hamburger {
  display: none;
  background: none;
  border: 1px solid rgba(94, 234, 212, 0.22);
  color: #cdd6e3;
  font-size: 1.1rem;
  cursor: pointer;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  border-radius: 8px;
}
.hamburger:hover { background: rgba(25, 199, 181, 0.10); border-color: rgba(94, 234, 212, 0.45); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  border: 1px solid transparent;
  font-family: inherit;
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.btn-primary:hover {
  background: var(--text-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-teal {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.btn-teal:hover {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
  box-shadow: 0 10px 28px rgba(25, 199, 181, 0.32);
  transform: translateY(-2px);
}
.btn-outline {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border-card);
}
.btn-outline:hover { border-color: var(--text); box-shadow: var(--shadow-sm); transform: translateY(-1px); }

/* Navbar lives on a dark surface — give btn-outline a dark-bg variant only inside the nav */
.navbar .btn-outline {
  background: rgba(25, 199, 181, 0.06);
  color: #e6edf7;
  border-color: rgba(94, 234, 212, 0.30);
}
.navbar .btn-outline:hover {
  background: rgba(25, 199, 181, 0.14);
  border-color: rgba(94, 234, 212, 0.6);
  color: #f5f9ff;
  box-shadow: 0 0 18px rgba(25, 199, 181, 0.22);
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
}
.btn-ghost:hover { color: var(--text); background: rgba(15,23,42,0.04); }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-lg { padding: 12px 22px; font-size: 0.95rem; }
.btn-mono { font-family: var(--font-mono); font-weight: 500; }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ─── Hero ─── */
.hero {
  position: relative;
  padding: 80px 28px 72px;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, var(--brand-dim) 0%, transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15,23,42,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 80%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--brand-line);
  background: var(--brand-dim);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--brand);
  margin-bottom: 1.5rem;
}
.hero-tag .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-light);
  box-shadow: 0 0 8px rgba(255, 186, 120, 0.6);
  animation: pulse 2.2s infinite;
}
.hero h1 { margin-bottom: 1.25rem; letter-spacing: -0.03em; }
.hero h1 .accent { color: var(--brand); }
.hero .lead { margin: 0 auto 2rem; }
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Quick install block in hero ─── */
.install-box {
  margin: 2.5rem auto 0;
  max-width: 620px;
  background: var(--bg-code);
  border: 1px solid var(--border-hi);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--code-text);
  box-shadow: var(--shadow-lg);
}
.install-box .prompt { color: var(--code-kw); user-select: none; }
.install-box .cmd { flex: 1; overflow-x: auto; white-space: nowrap; }
.install-box .cmd .arg { color: var(--code-str); }
.install-box .copy-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--code-text);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.install-box .copy-btn:hover { background: rgba(255,255,255,0.12); }

/* Page hero (inner pages) — subtle warm tint to tie back to brand */
.page-hero {
  position: relative;
  padding: 90px 28px 64px;
  text-align: left;
  background:
    radial-gradient(ellipse 70% 60% at 80% 0%, var(--brand-dim) 0%, transparent 65%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.page-hero .container { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero h1 .accent { color: var(--brand); }
.page-hero .lead { margin: 0; max-width: 640px; }

/* ─── Cards ─── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  border-color: rgba(15, 23, 42, 0.22);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  transform: translateY(-3px);
}
.card.teal-accent { border-left: 3px solid var(--brand-light); }
.card-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--brand-dim);
  border: 1px solid var(--brand-line);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 1.1rem;
}
.card h3 { margin-bottom: 0.55rem; font-size: 1.05rem; }
.card p { color: var(--muted); font-size: 0.9rem; line-height: 1.65; }

/* Feature card with mono header */
.feat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 24px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.feat-card:hover { border-color: var(--border-acc); box-shadow: var(--shadow); transform: translateY(-2px); }
.feat-card .feat-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--dim);
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}
.feat-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.feat-card p { color: var(--muted); font-size: 0.88rem; line-height: 1.6; }

/* ─── Grids ─── */
.grid2 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid3 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid4 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ─── Code blocks ─── */
.code-block {
  background: var(--bg-code);
  border: 1px solid #1f2937;
  border-radius: 10px;
  padding: 18px 22px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--code-text);
  overflow-x: auto;
  line-height: 1.75;
  box-shadow: var(--shadow);
}
.code-block .kw { color: var(--code-kw); }
.code-block .str { color: var(--code-str); }
.code-block .num { color: var(--code-num); }
.code-block .comment { color: var(--code-com); font-style: italic; }
.code-block .fn { color: #6b8eff; }

.code-block-titled {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-hi);
  box-shadow: var(--shadow);
}
.code-block-titled .code-title {
  background: var(--bg-code-2);
  color: var(--muted);
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  border-bottom: 1px solid #1f2937;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.code-block-titled .code-title .lang-tag {
  font-size: 0.72rem;
  padding: 2px 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  color: #b0b6c1;
}
.code-block-titled .code-block { border: none; border-radius: 0; box-shadow: none; }

/* ─── Inline code ─── */
.inline-code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(25, 199, 181, 0.10);
  color: var(--teal-deep);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-acc);
}

/* ─── Sidebar layout (docs) ─── */
.docs-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: flex-start;
  padding: 48px 0 96px;
}
.docs-sidebar {
  position: sticky;
  top: 80px;
  align-self: flex-start;
  font-size: 0.88rem;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding-right: 8px;
}
.docs-sidebar h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 24px 0 8px;
  font-weight: 600;
}
.docs-sidebar h4:first-child { margin-top: 0; }
.docs-sidebar ul { list-style: none; }
.docs-sidebar a {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  transition: color 0.15s, background 0.15s;
}
.docs-sidebar a:hover { color: var(--text); background: rgba(15,23,42,0.04); }
.docs-sidebar a.active { color: var(--teal-deep); background: var(--teal-dim); font-weight: 500; }
.docs-content { min-width: 0; }
.docs-content h1 { margin-bottom: 0.75rem; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.docs-content h2 { margin: 2.25rem 0 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.docs-content h2:first-of-type { border: none; padding-top: 0; }
.docs-content h3 { margin: 1.5rem 0 0.6rem; font-size: 1.1rem; }
.docs-content p { color: var(--muted); margin-bottom: 1rem; line-height: 1.75; }
.docs-content > p:first-of-type { font-size: 1.05rem; color: var(--text-2); margin-bottom: 1.5rem; }
.docs-content ul, .docs-content ol { margin: 0 0 1.25rem 1.4rem; color: var(--muted); }
.docs-content ul li, .docs-content ol li { margin-bottom: 0.35rem; }
.docs-content a:not(.btn) { color: var(--brand); text-decoration: underline; text-decoration-color: rgba(255, 186, 120, 0.45); text-underline-offset: 3px; }
.docs-content a:not(.btn):hover { text-decoration-color: var(--brand); }
.docs-content .code-block, .docs-content .code-block-titled { margin: 1rem 0 1.5rem; }

@media (max-width: 900px) {
  .docs-shell { grid-template-columns: 1fr; gap: 24px; padding: 24px 0 64px; }
  .docs-sidebar {
    position: static;
    max-height: none;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
  }
}

/* ─── Steppers / Quickstart steps ─── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  counter-reset: step;
}
.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  align-items: flex-start;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-dim);
  border: 1px solid var(--brand-line);
  border-radius: 10px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step h3 { margin-bottom: 0.4rem; font-size: 1.05rem; }
.step p { color: var(--muted); font-size: 0.92rem; margin-bottom: 0.75rem; }

/* ─── Stat / metric strip ─── */
/* ─── Ecosystem Pulse ─── */
.pulse-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}
.pulse-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse-ping 2s ease-out infinite;
}
@keyframes pulse-ping {
  0%   { box-shadow: 0 0 0 0   rgba(25,199,181,0.45); }
  70%  { box-shadow: 0 0 0 7px rgba(25,199,181,0); }
  100% { box-shadow: 0 0 0 0   rgba(25,199,181,0); }
}
.pulse-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  background: var(--bg-card);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
  transition: opacity 0.35s ease;
}
.pulse-strip.is-fading { opacity: 0; }
.pulse-metric {
  padding: 26px 28px;
  border-right: 1px solid var(--border-card);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pulse-metric:last-child { border-right: none; }
.pulse-icon { font-size: 1.05rem; margin-bottom: 4px; }
.pulse-value {
  font-family: var(--font-mono);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
}
.pulse-name { font-size: 0.83rem; color: var(--muted); }
.pulse-badge {
  position: absolute;
  top: 13px;
  right: 13px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  padding: 2px 6px;
  border-radius: 4px;
}
.pulse-badge.live {
  background: rgba(20,184,166,0.10);
  color: var(--teal-deep);
  border: 1px solid rgba(20,184,166,0.22);
}
.pulse-badge.soon {
  background: var(--amber-dim);
  color: var(--amber);
  border: 1px solid rgba(242,156,82,0.28);
}
.pulse-badge.spec {
  background: var(--bg-1);
  color: var(--dim);
  border: 1px solid var(--border);
}
@media (max-width: 700px) {
  .pulse-strip { grid-template-columns: repeat(2, 1fr); }
  .pulse-metric:nth-child(2) { border-right: none; }
  .pulse-metric:nth-child(3) { border-top: 1px solid var(--border); }
  .pulse-metric:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  border: 1px solid var(--border-card);
  border-radius: 16px;
  background: var(--bg-card);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}
.metric-strip .metric {
  padding: 28px 32px;
  border-right: 1px solid var(--border-card);
}
.metric-strip .metric:last-child { border-right: none; }
.metric .val {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.metric .lab { font-size: 0.85rem; color: var(--muted); }

/* ─── Roadmap kanban-style ─── */
.kanban {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.kanban-col {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 20px;
  min-height: 200px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.kanban-col h3 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.kanban-col h3::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--dim);
}
.kanban-col.shipped h3::before { background: var(--brand-light); }
.kanban-col.progress h3::before { background: var(--teal); }
.kanban-col.planned h3::before { background: var(--dim); }
.kanban-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 10px;
  font-size: 0.88rem;
}
.kanban-card .tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.kanban-card h4 { font-size: 0.92rem; margin-bottom: 4px; }
.kanban-card p { font-size: 0.82rem; color: var(--muted); margin: 0; }

/* ─── Tags / badges ─── */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}
.tag-list li, .tag-pill {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--bg-card);
  transition: border-color 0.2s, color 0.2s;
}
.tag-list li:hover { border-color: var(--brand-line); color: var(--brand); }
.tag-pill.acc { color: var(--brand); border-color: var(--brand-line); background: var(--brand-dim); }
.tag-pill.warn { color: var(--amber); border-color: rgba(210,119,53,0.4); background: var(--amber-dim); }
.tag-pill.announcement-pill {
  color: var(--amber);
  border-color: rgba(242, 156, 82, 0.35);
  background: var(--amber-dim);
  font-weight: 600;
}

/* ─── News announcement banner ─── */
.news-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 22px 28px;
  border-radius: 14px;
  background:
    radial-gradient(ellipse 60% 100% at 0% 50%, rgba(242, 156, 82, 0.12) 0%, transparent 65%),
    linear-gradient(135deg, rgba(25, 199, 181, 0.06), rgba(25, 199, 181, 0.02));
  border: 1px solid rgba(242, 156, 82, 0.28);
  box-shadow: 0 8px 24px rgba(5, 8, 14, 0.08), 0 0 32px rgba(242, 156, 82, 0.08);
  position: relative;
  overflow: hidden;
}
.news-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--amber), transparent);
}
.news-banner-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(242, 156, 82, 0.4);
  background: rgba(242, 156, 82, 0.12);
  border-radius: 6px;
  white-space: nowrap;
}
.news-banner-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.news-banner-body p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}
.news-banner-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--teal);
  color: #fff !important;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.news-banner-cta:hover {
  background: var(--teal-deep);
  box-shadow: 0 8px 20px rgba(25, 199, 181, 0.30);
  transform: translateY(-1px);
}
@media (max-width: 760px) {
  .news-banner { grid-template-columns: 1fr; gap: 16px; padding: 20px 22px; }
  .news-banner-tag { justify-self: start; }
  .news-banner-cta { justify-self: start; }
}

/* ─── OSTVAL equation cards ─── */
.equation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}
.equation-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand-light);
  border-radius: 12px;
  padding: 22px 24px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.equation-card:hover {
  border-color: var(--border-hi);
  border-left-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.equation-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.85rem;
}
.equation-formula {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(255, 186, 120, 0.06) 0%, rgba(255, 186, 120, 0.02) 100%);
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  margin-bottom: 0.85rem;
  font-family: var(--font-mono);
  line-height: 1.4;
}
.equation-formula .sym {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.equation-formula .op {
  font-size: 1.05rem;
  color: var(--brand);
  font-weight: 600;
}
.equation-formula .body {
  font-size: 0.98rem;
  color: var(--text-2);
}
.equation-formula sub {
  font-size: 0.7em;
  vertical-align: sub;
}
.equation-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}
.equation-card p sub { font-size: 0.78em; vertical-align: sub; }

/* announcement card — left-accent amber stripe */
.announcement-card { position: relative; }
.announcement-card::before {
  content: '';
  position: absolute;
  top: 16px; left: 0;
  width: 3px; height: calc(100% - 32px);
  background: linear-gradient(180deg, var(--amber), rgba(242, 156, 82, 0.2));
  border-radius: 0 3px 3px 0;
}

/* ─── Plugins grid ─── */
.plugin-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.plugin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 20px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.plugin-card:hover { border-color: var(--border-acc); box-shadow: var(--shadow); transform: translateY(-2px); }
.plugin-card .plugin-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.plugin-card .plugin-icon {
  width: 32px; height: 32px;
  border-radius: 7px;
  background: var(--brand-dim);
  border: 1px solid var(--brand-line);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  font-family: var(--font-mono);
  font-weight: 700;
  flex-shrink: 0;
}
.plugin-card h3 { font-size: 0.95rem; margin: 0; font-family: var(--font-mono); }
.plugin-card .plugin-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--dim);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.plugin-card p { color: var(--muted); font-size: 0.86rem; line-height: 1.6; margin: 0; }

/* ─── Architecture / diagram ─── */
.arch-stack {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.arch-layer {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: border-color 0.2s, transform 0.2s;
}
.arch-layer:hover { border-color: var(--brand-line); transform: translateX(4px); }
.arch-layer .arch-icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  background: var(--brand-dim);
  border: 1px solid var(--brand-line);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.arch-layer .arch-body { flex: 1; min-width: 0; }
.arch-layer h4 { font-size: 0.95rem; font-family: var(--font-mono); margin-bottom: 2px; color: var(--text); }
.arch-layer p { font-size: 0.84rem; color: var(--muted); margin: 0; }
.arch-layer .arch-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--brand);
  background: var(--brand-dim);
  border: 1px solid var(--brand-line);
  padding: 3px 9px;
  border-radius: 5px;
  flex-shrink: 0;
}

/* ─── Footer — dark cinematic "cognition infrastructure" ─── */
.footer {
  position: relative;
  padding: 88px 0 32px;
  margin-top: 80px;
  background:
    radial-gradient(ellipse 80% 70% at 20% 0%, rgba(25, 199, 181, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 70% 60% at 85% 100%, rgba(94, 134, 255, 0.08) 0%, transparent 65%),
    linear-gradient(180deg, #0b0f17 0%, #070a11 100%);
  color: #cdd6e3;
  border-top: 1px solid rgba(25, 199, 181, 0.18);
  overflow: hidden;
  isolation: isolate;
}
/* glowing top edge — thin teal scanline */
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(25, 199, 181, 0.55) 35%,
    rgba(94, 220, 255, 0.85) 50%,
    rgba(25, 199, 181, 0.55) 65%,
    transparent 100%);
  background-size: 200% 100%;
  animation: footer-scanline 9s linear infinite;
  z-index: 2;
}
/* faint hex/grid lattice */
.footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 170, 200, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 170, 200, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 75% 90% at 50% 50%, #000 25%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 75% 90% at 50% 50%, #000 25%, transparent 85%);
  pointer-events: none;
  z-index: 0;
}
.footer .container { position: relative; z-index: 1; }

@keyframes footer-scanline {
  0%   { background-position: -100% 0; }
  100% { background-position: 100% 0; }
}

/* top row — brand on left, follow CTA on right */
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
  padding-bottom: 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid rgba(120, 170, 200, 0.10);
}
.footer-follow {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}
.footer-follow-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffba78;
}
.footer-follow-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.follow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 186, 120, 0.22);
  background: rgba(255, 186, 120, 0.05);
  color: #cdd6e3;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.follow-pill:hover {
  background: rgba(255, 186, 120, 0.14);
  border-color: rgba(255, 186, 120, 0.55);
  color: #ffe6c0;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 186, 120, 0.20);
}

/* 5 equal columns mirroring the 5 menu entries */
.footer-inner {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

/* Brand block — soft glow behind logo */
.footer-brand { position: relative; }
.footer-brand::before {
  content: '';
  position: absolute;
  top: -20px; left: -30px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(25, 199, 181, 0.18) 0%, transparent 65%);
  pointer-events: none;
  z-index: -1;
  filter: blur(8px);
}
.footer-brand .nav-logo { margin-bottom: 1.1rem; }
.footer-brand .nav-logo .mark {
  background: linear-gradient(135deg, #2dd4bf, #0d9488);
  box-shadow: 0 0 18px rgba(45, 212, 191, 0.55), 0 0 2px rgba(94, 234, 212, 0.9) inset;
}
.footer-brand .nav-logo .brand-name {
  color: #f5f9ff;
  letter-spacing: 0.04em;
  text-shadow: 0 0 22px rgba(25, 199, 181, 0.35);
}
.footer-brand .nav-logo .brand-name sup.tm {
  color: #5eead4;
}
.footer-brand p {
  color: #93a3b8;
  font-size: 0.9rem;
  max-width: 300px;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

/* Column headers — champagne amber to match the wordmark */
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffba78;
  margin-bottom: 1.15rem;
  position: relative;
  padding-bottom: 8px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 22px; height: 1px;
  background: linear-gradient(90deg, rgba(255, 186, 120, 0.85), transparent);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col ul li a {
  font-size: 0.88rem;
  color: #b9c4d4;
  transition: color 0.18s, transform 0.18s, text-shadow 0.18s;
  display: inline-block;
}
.footer-col ul li a:hover {
  color: #ffe6c0;
  transform: translateX(2px);
  text-shadow: 0 0 12px rgba(255, 186, 120, 0.5);
}

/* Bottom legal strip */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid rgba(120, 170, 200, 0.10);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #6b788c;
  letter-spacing: 0.02em;
}
.footer-bottom a { color: #93a3b8; transition: color 0.15s; }
.footer-bottom a:hover { color: #ffe6c0; }

/* eye3.ai cross-link pill — amber tie-back to the parent brand */
.footer-platform-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid rgba(238, 178, 102, 0.35);
  border-radius: 7px;
  background: rgba(238, 178, 102, 0.08);
  color: #f4bc70 !important;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 0 0 0 rgba(238, 178, 102, 0);
}
.footer-platform-link:hover {
  background: rgba(238, 178, 102, 0.14);
  border-color: rgba(238, 178, 102, 0.55);
  box-shadow: 0 0 24px rgba(238, 178, 102, 0.22);
  transform: translateY(-1px);
}

@media (max-width: 1240px) {
  .footer-inner { grid-template-columns: repeat(3, 1fr); gap: 28px; row-gap: 40px; }
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-follow { align-items: flex-start; }
  .footer-follow-links { justify-content: flex-start; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer { padding: 64px 0 28px; }
}

/* ─── Animations ─── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}
.fade-up { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-up.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: inline-flex; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 62px; left: 0; right: 0;
    background:
      radial-gradient(ellipse 80% 60% at 20% 0%, rgba(25, 199, 181, 0.10) 0%, transparent 65%),
      linear-gradient(180deg, #0b0f17 0%, #070a11 100%);
    border-bottom: 1px solid rgba(25, 199, 181, 0.22);
    padding: 16px 20px; gap: 4px;
    box-shadow: 0 24px 60px rgba(5, 8, 14, 0.55), 0 0 30px rgba(25, 199, 181, 0.10);
    max-height: calc(100vh - 62px); overflow-y: auto;
  }
  /* on mobile, dropdowns drop inline as an accordion */
  .nav-item.has-dropdown { width: 100%; }
  .nav-item.has-dropdown::after { display: none; }
  .nav-trigger { width: 100%; justify-content: space-between; padding: 12px 14px; }
  .dropdown-panel {
    position: static;
    transform: none;
    min-width: 0;
    width: 100%;
    margin-top: 4px;
    margin-bottom: 8px;
    background: #0c1018;
    box-shadow: 0 8px 24px rgba(5, 8, 14, 0.4);
  }
  .dropdown-panel::before { display: none; }
  .nav-item.has-dropdown:hover > .dropdown-panel,
  .nav-item.has-dropdown:focus-within > .dropdown-panel { opacity: 0; visibility: hidden; pointer-events: none; }
  .nav-item.has-dropdown.open > .dropdown-panel { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .page-hero { padding: 60px 28px 40px; }
}
@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .install-box { font-size: 0.78rem; padding: 12px 14px; }
}

/* ─── Contributors strip ─── */
.contrib-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.contrib-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  background: linear-gradient(135deg, var(--brand-dim), var(--bg-1));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand);
  margin-left: -10px;
}
.contrib-avatar:first-child { margin-left: 0; }

/* ─── Pre/code in docs ─── */
pre { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; margin: 1rem 0 1.5rem; font-size: 0.92rem; }
table th, table td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
table th { background: var(--bg-1); font-weight: 600; font-family: var(--font-mono); font-size: 0.84rem; }

/* ─── Sponsor / link callout ─── */
.callout {
  background: var(--brand-dim);
  border-left: 3px solid var(--brand-light);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  font-size: 0.92rem;
  color: var(--text-2);
  margin: 1.25rem 0;
}
.callout strong { color: var(--brand); }
.callout-warn { background: var(--amber-dim); border-left-color: var(--amber); }
.callout-warn strong { color: var(--amber); }

/* ─── Search box (docs) ─── */
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(25, 199, 181, 0.06);
  border: 1px solid rgba(94, 234, 212, 0.18);
  border-radius: 8px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: #93a3b8;
  width: 240px;
  cursor: text;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-box:hover { border-color: rgba(94, 234, 212, 0.45); color: #cdd6e3; }
.search-box .kbd {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 6px;
  border: 1px solid rgba(94, 234, 212, 0.20);
  border-radius: 4px;
  background: rgba(25, 199, 181, 0.10);
  color: #93a3b8;
  margin-left: auto;
}
@media (max-width: 1100px) { .search-box { display: none; } }

/* ─── Pipeline / Runtime flow (reasoning.html) ─── */
.pipeline {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 4px;
}
.pipe-node {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 18px 18px 14px;
  flex: 1;
  min-width: 148px;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pipe-node:hover {
  border-color: rgba(25, 199, 181, 0.40);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.07);
}
.pipe-node.core {
  border-color: rgba(25, 199, 181, 0.35);
  background: rgba(25, 199, 181, 0.04);
}
.pipe-node.core:hover {
  border-color: rgba(25, 199, 181, 0.65);
  box-shadow: 0 6px 20px rgba(25, 199, 181, 0.12);
}
.pipe-connector {
  flex: 0 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 0.9rem;
  opacity: 0.5;
  flex-shrink: 0;
}
.pipe-connector::after {
  content: '→';
}
.pipe-icon {
  font-size: 1.25rem;
  margin-bottom: 2px;
}
.pipe-label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.pipe-sub {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.45;
}
.pipe-tag {
  position: absolute;
  top: 10px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brand);
  opacity: 0.75;
}

@media (max-width: 700px) {
  .pipeline {
    flex-direction: column;
    overflow-x: visible;
  }
  .pipe-connector {
    flex: 0 0 20px;
    transform: rotate(90deg);
  }
  .pipe-node {
    min-width: 0;
  }
}

/* ─── OSTVAL Runtime Identity System ─────────────────────────
   Each loop step has a unique glyph, color, and motion.
   These become the VAOS visual vocabulary — like k8s pods
   or ROS nodes: instantly recognizable across the ecosystem.
   ──────────────────────────────────────────────────────────── */
.ostval-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 14px;
}
.ostval-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 16px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-align: center;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.ostval-node:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.09);
}
.ostval-glyph {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: box-shadow 0.22s ease;
}
.ostval-node-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ostval-node-desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Observe — indigo */
.ostval-node--observe { border-color: rgba(99, 102, 241, 0.22); }
.ostval-node--observe:hover { border-color: rgba(99, 102, 241, 0.5); box-shadow: 0 14px 36px rgba(99, 102, 241, 0.1); }
.ostval-node--observe .ostval-glyph { background: rgba(99, 102, 241, 0.10); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.25); }
.ostval-node--observe .ostval-node-label { color: #818cf8; }
.ostval-node--observe:hover .ostval-glyph { box-shadow: 0 0 20px rgba(99, 102, 241, 0.28); }

/* Structure — orange/brand */
.ostval-node--structure { border-color: rgba(242, 155, 75, 0.22); }
.ostval-node--structure:hover { border-color: rgba(242, 155, 75, 0.5); box-shadow: 0 14px 36px rgba(242, 155, 75, 0.1); }
.ostval-node--structure .ostval-glyph { background: rgba(242, 155, 75, 0.10); color: #F29B4B; border: 1px solid rgba(242, 155, 75, 0.28); }
.ostval-node--structure .ostval-node-label { color: #F29B4B; }
.ostval-node--structure:hover .ostval-glyph { box-shadow: 0 0 20px rgba(242, 155, 75, 0.30); }

/* Think — teal */
.ostval-node--think { border-color: rgba(25, 199, 181, 0.22); }
.ostval-node--think:hover { border-color: rgba(25, 199, 181, 0.5); box-shadow: 0 14px 36px rgba(25, 199, 181, 0.1); }
.ostval-node--think .ostval-glyph { background: rgba(25, 199, 181, 0.10); color: #19C7B5; border: 1px solid rgba(25, 199, 181, 0.28); }
.ostval-node--think .ostval-node-label { color: #19C7B5; }
.ostval-node--think:hover .ostval-glyph { box-shadow: 0 0 20px rgba(25, 199, 181, 0.30); }

/* Validate — green */
.ostval-node--validate { border-color: rgba(34, 197, 94, 0.22); }
.ostval-node--validate:hover { border-color: rgba(34, 197, 94, 0.5); box-shadow: 0 14px 36px rgba(34, 197, 94, 0.1); }
.ostval-node--validate .ostval-glyph { background: rgba(34, 197, 94, 0.10); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.28); }
.ostval-node--validate .ostval-node-label { color: #22c55e; }
.ostval-node--validate:hover .ostval-glyph { box-shadow: 0 0 20px rgba(34, 197, 94, 0.28); }

/* Act — red-orange */
.ostval-node--act { border-color: rgba(239, 68, 68, 0.22); }
.ostval-node--act:hover { border-color: rgba(239, 68, 68, 0.5); box-shadow: 0 14px 36px rgba(239, 68, 68, 0.1); }
.ostval-node--act .ostval-glyph { background: rgba(239, 68, 68, 0.10); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.28); }
.ostval-node--act .ostval-node-label { color: #f87171; }
.ostval-node--act:hover .ostval-glyph { box-shadow: 0 0 20px rgba(239, 68, 68, 0.28); }

/* Learn — violet */
.ostval-node--learn { border-color: rgba(168, 85, 247, 0.22); }
.ostval-node--learn:hover { border-color: rgba(168, 85, 247, 0.5); box-shadow: 0 14px 36px rgba(168, 85, 247, 0.1); }
.ostval-node--learn .ostval-glyph { background: rgba(168, 85, 247, 0.10); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.28); }
.ostval-node--learn .ostval-node-label { color: #c084fc; }
.ostval-node--learn:hover .ostval-glyph { box-shadow: 0 0 20px rgba(168, 85, 247, 0.28); }

/* Glyphs as SVG-like inline shapes via ::before content */
.ostval-node--observe .ostval-glyph::before  { content: '◉'; }
.ostval-node--structure .ostval-glyph::before { content: '⬡'; }
.ostval-node--think .ostval-glyph::before     { content: '⟆'; }
.ostval-node--validate .ostval-glyph::before  { content: '✓'; font-size: 1.4rem; }
.ostval-node--act .ostval-glyph::before       { content: '▶'; font-size: 1rem; }
.ostval-node--learn .ostval-glyph::before     { content: '↻'; font-size: 1.4rem; }
