/* BioSonic shared core — matches biosonic_visual_library_final.html */
:root {
  --font-body: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --bg: #0c1820;
  --bg-2: #0e1d26;
  --bg-card: #142833;
  --bg-card-alt: #0a141b;
  --border: #1e3544;

  --teal: #5cb89a;
  --teal-light: #7dcbb0;
  --red: #b85450;
  --amber: #d4a04a;
  --blue: #4a8fc2;
  --purple: #8b7ec4;
  --orange: #e88a48;

  --text: #e4e9e0;
  --text-muted: #96b0a2;
  --text-dim: #6d8878;

  --accent-soft: rgba(92, 184, 154, 0.12);

  --maxw: 1280px;
  --pad-container: 32px;
  --pad-section: 110px;
  --radius: 10px;
  --radius-lg: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-container); }
.center { text-align: center; }
/* Top nav */
.nav {
  position: relative; z-index: 10;
  padding: 20px var(--pad-container) 0;
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 22px; border-bottom: 1px solid var(--border);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 600; font-size: 17px; letter-spacing: -0.01em;
}
.brand-mark { width: 26px; height: 26px; color: var(--teal); }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--text-muted); font-size: 14px; transition: color .15s; }
.nav-links a:hover, .nav-links a.on { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.link-muted { color: var(--text-muted); font-size: 14px; }
.link-muted:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px;
  font-size: 14px; font-weight: 500; line-height: 1;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
  font-family: inherit;
}
.btn-lg { padding: 14px 24px; font-size: 14.5px; }
.btn-primary { background: var(--teal); color: #0c1820; }
.btn-primary:hover { background: var(--teal-light); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

/* Headings */
.serif-display {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(34px, 4.4vw, 58px); line-height: 1.05;
  letter-spacing: -0.02em; margin: 0 0 22px; text-wrap: balance;
}
.serif-display em { font-style: italic; font-weight: 300; color: var(--teal); }
.eyebrow {
  font-family: var(--font-mono); font-size: 10.5px;
  color: var(--teal); letter-spacing: 0.18em; text-transform: uppercase;
  margin: 0 0 16px; font-weight: 500;
}
.eyebrow-line {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--teal); letter-spacing: 0.18em; text-transform: uppercase;
  margin: 0 0 16px; font-weight: 500;
}
.eyebrow-muted {
  font-family: var(--font-mono); font-size: 10.5px;
  color: var(--text-muted); letter-spacing: 0.18em; text-transform: uppercase;
  margin: 0 0 16px; font-weight: 500;
}
.section-sub {
  color: var(--text-muted); font-size: 17px; max-width: 60ch; margin: 0 0 8px;
  line-height: 1.55;
}
.section-sub.center { margin-left: auto; margin-right: auto; }

/* Cards */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
}

/* Toggle button row (e.g., map mode selector) */
.toggle-row { display: flex; justify-content: center; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.toggle-btn {
  padding: 8px 18px; border-radius: 8px; border: 1px solid var(--border);
  background: transparent; color: var(--text-muted); cursor: pointer;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
}
.toggle-btn.on { background: var(--teal); border-color: var(--teal); color: #fff; }

/* Section spacing */
section { position: relative; }
.sect { padding: var(--pad-section) 0; }
.cta-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 28px 0 14px; }
.cta-foot { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); margin: 0; }

@media (max-width: 880px) {
  .nav-links { display: none; }
}
