/* neuro.lab — shared landing template (see grobid.rs/packages/landing/styles.css).
   White theme with neutral grays; terminals stay dark.
   Palette conventions follow llm.rs / neo.bank landings. */

:root {
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --surface: #ffffff;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --text: #111827;
  --text-muted: #6b7280;
  --text-tertiary: #9ca3af;
  --accent: #0f766e;
  --accent-hover: #115e59;
  --accent-active: #134e4a;
  --accent-soft: #f0fdfa;
  --accent-bright: #2dd4bf;
  --terminal-bg: #111827;
  --terminal-bar: #0b1220;
  --terminal-line: #262626;
  --terminal-text: #e8e8e8;
  --terminal-dim: #8b93a3;
  --radius: 14px;
  --radius-inner: 8px;
  --container: 72rem;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

/* Light theme only — terminals stay dark in both cases. */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.container-narrow { max-width: 48rem; }

h1, h2, h3 { line-height: 1.2; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: 1.875rem; letter-spacing: -0.01em; }
h3 { font-size: 1.125rem; }
p { margin: 0; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

img { display: block; max-width: 100%; height: auto; }

section { scroll-margin-top: 4.5rem; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
}
.brand img { border-radius: 6px; }

.nav-links {
  display: none;
  gap: 1.25rem;
  margin-left: auto;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
}
.nav-links a:hover { color: var(--text); }

@media (min-width: 64rem) { .nav-links { display: flex; } }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }
.btn-sm { padding: 0.375rem 0.875rem; font-size: 0.875rem; }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; }

.btn-ghost {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface);
}
.btn-ghost:hover { border-color: var(--text-tertiary); color: var(--text); }

/* ---------- hero ---------- */

.hero { padding: 5rem 0 4rem; }

.hero-inner {
  max-width: 72rem;
  display: grid;
  gap: 3rem;
  align-items: center;
  text-align: left;
}
@media (min-width: 64rem) {
  .hero-inner { grid-template-columns: 1.05fr 1fr; }
}

.lede {
  margin-top: 1.5rem;
  font-size: 1.1875rem;
  color: var(--text-muted);
  max-width: 36rem;
}

.cta-row {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.hero-inner .cta-row { justify-content: flex-start; }

.stats {
  margin: 2.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.stats dt {
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.stats dd {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ---------- sections ---------- */

.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-head { text-align: center; max-width: 44rem; margin: 0 auto 3rem; }
.section-head p {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

/* ---------- grids & cards ---------- */

.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 40rem) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.grid-demo { grid-template-columns: 1fr; }
@media (min-width: 64rem) {
  .grid-demo { grid-template-columns: repeat(2, 1fr); }
  .terminal-wide { grid-column: 1 / -1; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 0.875rem;
}
.card-icon svg { width: 1.375rem; height: 1.375rem; }

.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text-muted); font-size: 0.9375rem; }

.step-num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.snippet {
  display: block;
  margin-top: 1rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-inner);
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  overflow-x: auto;
}

/* ---------- terminal ---------- */

.terminal {
  margin: 0;
  background: var(--terminal-bg);
  border: 1px solid var(--terminal-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgb(17 24 39 / 0.14);
}

.terminal figcaption {
  padding: 0.5rem 0.875rem 0.625rem;
  border-bottom: 1px solid var(--terminal-line);
  background: var(--terminal-bar);
  font-family: var(--font);
  font-size: 0.8125rem;
  color: var(--terminal-dim);
}

.terminal pre {
  margin: 0;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  font-variant-numeric: tabular-nums;
  color: var(--terminal-text);
  white-space: pre;
}

.terminal code { font-family: inherit; }
.prompt { color: var(--accent-bright); user-select: none; }
.out { color: var(--terminal-text); }

/* ---------- install ---------- */

.install-note {
  margin-top: 1.25rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.install-note code {
  font-family: var(--mono);
  font-size: 0.875em;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.125rem 0.375rem;
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}
.footer nav { display: flex; gap: 1.25rem; margin-left: auto; }
.footer a { color: var(--text-muted); text-decoration: none; }
.footer a:hover { color: var(--text); }

@media (max-width: 40rem) {
  .footer nav { margin-left: 0; }
}

/* ---------- focus & motion ---------- */

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Terminal syntax accents (GitHub-dark inspired, dark terminal only). */
.terminal .ok { color: #7ee787; }
.terminal .str, .terminal .key { color: #79c0ff; }
.terminal .num { color: #ffa657; }
.terminal .comment, .terminal .idx, .terminal .ts, .terminal-dim { color: var(--terminal-dim); }
