/* ─── WAVScribe shared stylesheet ─── */
/* Loaded by index.html, privacy/index.html, opensource/index.html */

:root {
  color-scheme: dark;
  --bg-deep: #0a0c0f;
  --bg: #0d1014;
  --bg-raised: #13181e;
  --bg-elev: #181e26;
  --bg-elevated: #181e26; /* alias for --bg-elev, used by opensource page */
  --border-subtle: #1c232c;
  --border: #252e39;
  --border-strong: #364352;
  --text: #e6e8ec;
  --text-muted: #8d96a3;
  --text-dim: #5b6573;
  --accent: #3ab8f0;
  --accent-bright: #5ccaf5;
  --accent-dim: rgba(58, 184, 240, 0.15);
  --green: #4ade80;

  /* Font aliases (used by opensource page-specific CSS) */
  --font-display: 'Geist', system-ui, -apple-system, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

@font-face { font-family: 'Geist'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/geist-400.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/geist-500.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/geist-600.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/ibm-plex-sans-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/ibm-plex-sans-500.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/ibm-plex-sans-600.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/jetbrains-mono-400.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/jetbrains-mono-500.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/jetbrains-mono-600.woff2') format('woff2'); }

/* ─── NAV ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  background: rgba(10, 12, 15, 0.72);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 32px; height: 32px; display: block; }
.brand-mark {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.015em;
  display: flex;
  align-items: baseline;
}
.brand-mark .wav { color: var(--accent); }
.brand-mark .scribe { color: var(--text); }
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  font-family: 'Geist', sans-serif;
}
.nav-links a { transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-raised);
  transition: all 0.15s;
}
.nav-cta:hover { border-color: var(--accent); color: var(--accent-bright); }

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

/* ─── FOOTER ─── */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-deep);
  position: relative;
  z-index: 2;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand-block .brand { margin-bottom: 14px; }
.footer-brand-text {
  font-size: 13px;
  line-height: 20px;
  color: var(--text-muted);
  max-width: 280px;
}
.footer-col-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  line-height: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 0; margin: 0; }
.footer-links a {
  display: block;
  font-size: 13px;
  line-height: 18px;
  color: var(--text-muted);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); }
.footer-links a[aria-current="page"] {
  color: var(--text);
  font-weight: 500;
}
.footer-legal {
  border-top: 1px solid var(--border-subtle);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-copyright {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  line-height: 17px;
  color: var(--text-dim);
}
.footer-trademark {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  max-width: 580px;
  line-height: 17px;
  text-align: right;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-trademark { text-align: left; }
}
