/* NeuroVerseOS — design system: Newsreader (display), Overpass (body), Overpass Mono (technical). */

:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --surface-alt: #faf9f7;
  --text: #18170f;
  --text-2: #5c5a52;
  --text-3: #97958d;
  --border: #e6e4df;
  --accent: #1856b8;
  --on-accent: #ffffff;
  --code-bg: #18170f;
  --code-text: #f6f5f2;
  --display: "Newsreader", Georgia, serif;
  --body: "Overpass", system-ui, sans-serif;
  --mono: "Overpass Mono", ui-monospace, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1917;
    --surface: #24211e;
    --surface-alt: #211e1b;
    --text: #f6f5f2;
    --text-2: #c9c6be;
    --text-3: #97958d;
    --border: #3a3631;
    --accent: #7aa7ec;
    --on-accent: #1c1917;
    --code-bg: #0f0e0c;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 44rem; }

/* Nav */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 4rem; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text); font-family: var(--display); font-weight: 600; font-size: 1.125rem; }
.brand:hover { text-decoration: none; opacity: 0.8; }
.brand img { height: 32px; width: auto; }
.pill { display: inline-flex; align-items: center; padding: 0.35rem 1rem; border: 1px solid var(--border); border-radius: 999px; color: var(--text); font-size: 0.875rem; font-weight: 500; }
.pill:hover { text-decoration: none; background: var(--surface-alt); }

/* Sections */
.hero { padding: 4rem 0 3.5rem; }
h1 { font-family: var(--display); font-weight: 600; letter-spacing: -0.015em; line-height: 1.12; margin: 0; }
.hero h1 { font-size: clamp(2.1rem, 7vw, 3.75rem); }
.accent { color: var(--accent); }
.band { padding: 3.5rem 0; }
.alt { background: var(--surface-alt); }
.bordered { border-top: 1px solid var(--border); }
.plain p { font-size: 1.125rem; margin: 0 0 1rem; }
.plain p:last-child { margin-bottom: 0; }
.muted { color: var(--text-2); font-size: 0.9375rem; }
.muted p { margin: 0 0 0.75rem; }
.eyebrow { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-3); margin: 0 0 1rem; }

/* Install line */
.install { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; background: var(--code-bg); border-radius: 0.5rem; padding: 0.75rem 1rem; margin-bottom: 1.5rem; }
.install code { font-family: var(--mono); font-size: 0.875rem; color: var(--code-text); overflow-wrap: anywhere; }
.copy { flex-shrink: 0; font: 500 0.75rem var(--body); color: var(--code-text); background: transparent; border: 1px solid rgba(246, 245, 242, 0.3); border-radius: 0.375rem; padding: 0.3rem 0.7rem; cursor: pointer; }
.copy:hover { background: rgba(246, 245, 242, 0.1); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1rem 0 0; }
.button { display: inline-flex; align-items: center; padding: 0.6rem 1.2rem; border: 1px solid var(--border); border-radius: 0.5rem; color: var(--text-2); font-size: 0.875rem; font-weight: 600; }
.button:hover { text-decoration: none; border-color: var(--text-3); }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.button.primary:hover { opacity: 0.9; }

/* Legal pages */
.legal h1 { font-size: clamp(2rem, 6vw, 2.75rem); margin-bottom: 0.5rem; }
.legal h2 { font-family: var(--display); font-weight: 600; font-size: 1.375rem; margin: 2.25rem 0 0.5rem; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 1.25rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface-alt); padding: 3rem 0; text-align: center; }
.brand-footer { margin-bottom: 1.5rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 1.5rem; margin-bottom: 1.5rem; }
.footer-links a { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--text-2); font-size: 0.875rem; }
.footer-links a:hover { color: var(--text); }
.footer-legal { border-top: 1px solid var(--border); padding-top: 1.5rem; color: var(--text-2); font-size: 0.875rem; }
.footer-legal p { margin: 0 0 0.5rem; }
.small { font-size: 0.75rem; }

@media (min-width: 768px) {
  .hero { padding: 6rem 0 5rem; }
  .band { padding: 4.5rem 0; }
}
