/* neura.namabots.com site shell: app tokens, shared header/menu/footer, quiet controls.
   Loaded after each page's own <style>, so these values win. Standard: app docs/UI-UX-GOAL.md
   (dark neutral surfaces, one accent, no gradients or glows on controls, calm ~200 ms motion). */

/* app.css tokens (namabots app); NEURA keeps its own violet accent */
:root {
  --bg: oklch(26.5% 0.005 18);
  --fg: oklch(97% 0 0);
  --surface: oklch(30% 0.004 18);
  --surface-2: oklch(33% 0.005 18);
  --muted: oklch(70% 0.008 18);
  --sep: oklch(35% 0.005 18);
  --violet: #a78bfa;
  --violet2: #7c3aed;
  --accent-ink: #ffffff;
  --violet-glow: rgba(167, 139, 250, 0.22);
  --grid: rgba(255, 255, 255, 0.045);
  --card-shadow: 0 1px 2px oklch(0% 0 0 / 0.25), 0 8px 24px oklch(0% 0 0 / 0.28);
  --site-max: 1160px;
  --site-gut: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(0.2, 0, 0, 1);
}
html[data-theme="light"] {
  --bg: oklch(97% 0.004 80);
  --fg: oklch(19% 0.005 18);
  --surface: oklch(99.5% 0.002 80);
  --surface-2: oklch(95% 0.006 80);
  --muted: oklch(48% 0.01 80);
  --sep: oklch(90% 0.006 80);
  --violet: #6d28d9;
  --violet2: #6d28d9;
  --violet-glow: rgba(109, 40, 217, 0.14);
  --grid: rgba(28, 25, 23, 0.06);
  --card-shadow: 0 1px 2px oklch(19% 0.005 18 / 0.05), 0 6px 18px oklch(19% 0.005 18 / 0.08);
}

body { -webkit-font-smoothing: antialiased; }
.wrap { max-width: var(--site-max); padding-left: var(--site-gut); padding-right: var(--site-gut); }

/* ---------- header ---------- */
.site-header.topbar {
  position: relative; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 72px; padding: 10px 0;
  animation: none; opacity: 1; transform: none;
}
.site-logo { position: relative; display: inline-flex; align-items: center; color: var(--fg); text-decoration: none; line-height: 0; flex: none; }
.site-logo > svg { display: block; height: 48px; width: auto; }
.site-logo nama-bot { position: absolute; left: 70px; top: 21px; pointer-events: none; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 8px;
  color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.site-nav a:hover { color: var(--fg); background: var(--surface); }
.site-nav a[aria-current="page"] { color: var(--fg); background: var(--surface); }
.site-actions { display: flex; align-items: center; gap: 8px; }
.site-actions .theme-toggle, .site-actions .menu-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--sep);
  background: transparent; color: var(--fg); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.site-actions .theme-toggle:hover, .site-actions .menu-btn:hover { background: var(--surface); border-color: var(--sep); color: var(--fg); }
.site-actions .menu-btn { display: none; }
.site-actions svg { width: 18px; height: 18px; }
@media (max-width: 760px) {
  .site-nav, .site-actions .theme-toggle-desktop { display: none; }
  .site-actions .menu-btn { display: inline-flex; }
}

/* ---------- mobile menu (sheet) ---------- */
.fs-menu.site-menu {
  position: fixed; inset: 0; z-index: 60; background: var(--bg);
  display: flex; flex-direction: column; gap: 8px;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) var(--site-gut) calc(env(safe-area-inset-bottom, 0px) + 20px);
}
.fs-menu.site-menu[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .fs-menu.site-menu.open { animation: site-sheet 0.2s var(--ease); }
}
@keyframes site-sheet { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.site-menu .fs-menu-top { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.site-menu nav { display: flex; flex-direction: column; margin-top: 8px; }
.site-menu nav a {
  display: flex; align-items: center; justify-content: space-between; min-height: 52px;
  border-bottom: 1px solid var(--sep); color: var(--fg); text-decoration: none; font-size: 17px; font-weight: 600;
}
.site-menu nav a small { color: var(--muted); font-size: 13px; font-weight: 500; }
.site-menu .fs-menu-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; min-height: 52px; color: var(--muted); font-size: 14px; }
.site-menu .theme-toggle, .site-menu .menu-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--sep); background: transparent; color: var(--fg);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}

/* ---------- controls: flat, one accent ---------- */
.btn-primary, .btn-ghost, .site-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 10px;
  font: 600 14px/1 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: 0;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
  box-shadow: none; transform: none;
}
.btn-primary, .site-btn.primary { background: var(--violet2); color: var(--accent-ink); border: 1px solid transparent; }
.btn-primary:hover, .site-btn.primary:hover { background: color-mix(in srgb, var(--violet2) 86%, #fff); box-shadow: none; transform: none; }
.btn-ghost, .site-btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--sep); }
.btn-ghost:hover, .site-btn.ghost:hover { background: var(--surface); border-color: var(--sep); transform: none; }
.btn-primary:focus-visible, .btn-ghost:focus-visible, .site-btn:focus-visible,
.site-nav a:focus-visible, .site-actions button:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--sep); margin-top: 48px;
  padding: 40px 0 calc(env(safe-area-inset-bottom, 0px) + 32px);
  font-size: 14px; color: var(--muted); text-align: left;
}
.site-footer .sf-in { max-width: var(--site-max); margin: 0 auto; padding: 0 var(--site-gut); }
.site-footer .sf-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.site-footer h2 { font: 700 12px/1.3 system-ui, sans-serif; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg); margin: 0 0 12px; }
.site-footer p { margin: 0; line-height: 1.6; max-width: 46ch; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.site-footer a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.site-footer a:hover { color: var(--fg); }
.site-footer .sf-brand { display: flex; gap: 14px; align-items: flex-start; }
.site-footer .sf-base { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--sep); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; }
@media (max-width: 760px) {
  .site-footer .sf-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .site-footer .sf-grid > :first-child { grid-column: 1 / -1; }
}

/* ---------- calm motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation-duration: 0.45s !important; }
}
.glow, .orbit { display: none !important; }
.site-menu .menu-btn svg, .site-menu .theme-toggle svg { width: 18px; height: 18px; }
