/* LynxAI Portal — shared theme */
/* Inspired by RoofLynx brand: industrial, high-contrast, lime-green accent */

@import url("https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800;900&family=Geist+Mono:wght@400;500&family=Instrument+Serif&family=Saira+Condensed:wght@700;800;900&display=swap");

:root {
  /* Core palette */
  --ink: #0a0c0a;          /* near-black, slight green undertone */
  --ink-2: #14181a;         /* card surface */
  --ink-3: #1d2225;         /* elevated */
  --line: #2a2f33;          /* borders */
  --line-2: #3a4045;        /* hover/active borders */
  --paper: #f4f1ea;         /* warm off-white */
  --paper-2: #e8e3d6;       /* dim */
  --mute: #8b9296;          /* secondary text on dark */
  --mute-2: #5a6065;        /* tertiary */

  /* Accent — pulled from RoofLynx leaf */
  --lime: #8bc53f;
  --lime-bright: #a4dd54;
  --lime-deep: #6ba428;
  --lime-glow: rgba(139, 197, 63, 0.18);

  /* Type */
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-display: "Instrument Serif", Georgia, serif;

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Layout */
  --maxw: 1200px;
  --pad: clamp(20px, 4vw, 56px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---------- Brand mark (LynxAI wordmark) ---------- */
/* Used as a single SVG image — sized via height. */
.lynxai-mark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  height: 36px;
}
.lynxai-mark img,
.lynxai-mark svg {
  height: 100%;
  width: auto;
  display: block;
}
.lynxai-mark.sm { height: 28px; }
.lynxai-mark.lg { height: 56px; }

/* ---------- Buttons ---------- */
.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn:hover {
  border-color: var(--line-2);
  background: var(--ink-2);
}
.btn-primary {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--lime-bright);
  border-color: var(--lime-bright);
}
.btn-ghost {
  border-color: transparent;
  color: var(--mute);
}
.btn-ghost:hover {
  color: var(--paper);
  background: var(--ink-2);
  border-color: var(--line);
}

/* ---------- Form inputs ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mute);
  font-weight: 500;
}
.input {
  background: var(--ink-2);
  border: 1px solid var(--line);
  color: var(--paper);
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  border-radius: 2px;
  outline: none;
  transition: all 0.2s var(--ease-out);
}
.input:focus {
  border-color: var(--lime);
  background: var(--ink-3);
  box-shadow: 0 0 0 3px var(--lime-glow);
}

/* ---------- Top nav (used on protected pages) ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 12, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.topbar nav {
  display: flex;
  gap: 4px;
  align-items: center;
}
.topbar nav a {
  color: var(--mute);
  text-decoration: none;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 2px;
  transition: color 0.15s var(--ease-out), background 0.15s var(--ease-out);
}
.topbar nav a:hover {
  color: var(--paper);
  background: var(--ink-2);
}
.topbar nav a.active {
  color: var(--lime);
}
.topbar .session {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--mute);
}
.topbar .session .who {
  font-family: var(--font-mono);
  color: var(--paper);
}
.topbar .session .who::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--lime);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 0 10px var(--lime);
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
}
.eyebrow.muted {
  color: var(--mute);
}

/* ---------- Utility ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}
.no-flash {
  visibility: hidden;
}

/* Reusable animated underline */
.lime-rule {
  position: relative;
  display: inline-block;
}
.lime-rule::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 3px;
  background: var(--lime);
  transform-origin: left;
  animation: ruleIn 0.9s var(--ease-out) 0.3s both;
}
@keyframes ruleIn {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up {
  animation: fadeUp 0.7s var(--ease-out) both;
}
