/* ConductBench design tokens — lifted from conductscience-headless / conductcolony pattern */

:root {
  /* Brand — teal slots between cognition (rose), colony (amber), signal (green), speech (violet) */
  --brand-50:  #f0fdfa;
  --brand-100: #ccfbf1;
  --brand-200: #99f6e4;
  --brand-300: #5eead4;
  --brand-400: #2dd4bf;
  --brand-500: #14b8a6;
  --brand-600: #0d9488;
  --brand-700: #0f766e;
  --brand-800: #115e59;
  --brand-900: #134e4a;

  /* Neutral — slightly warm, scientific */
  --ink-900: #0f172a;
  --ink-800: #1e293b;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-500: #64748b;
  --ink-400: #94a3b8;
  --ink-300: #cbd5e1;
  --ink-200: #e2e8f0;
  --ink-100: #f1f5f9;
  --ink-50:  #f8fafc;
  --ink-white: #ffffff;

  /* Status / data-source coding (per spec) */
  --ok:      #059669;  /* complete metadata (green) */
  --ok-bg:   #ecfdf5;
  --warn:    #d97706;  /* warnings (amber) */
  --warn-bg: #fffbeb;
  --block:   #dc2626;  /* blocking issues (red) */
  --block-bg:#fef2f2;
  --info:    #2563eb;  /* account/system actions (restrained blue) */
  --info-bg: #eff6ff;
  --src-vision: #7c3aed; /* future ConductVision source */
  --src-vision-bg: #f5f3ff;
  --src-signal: #0891b2; /* future ConductSignal source */
  --src-signal-bg: #ecfeff;
  --src-bench: var(--brand-600);
  --src-bench-bg: var(--brand-50);

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Layout */
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.04), 0 1px 1px rgba(15,23,42,.02);
  --shadow-md: 0 4px 12px -2px rgba(15,23,42,.06), 0 2px 4px -2px rgba(15,23,42,.04);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--ink-white);
  color: var(--ink-900);
  font-family: var(--font-sans);
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.mono { font-family: var(--font-mono); }

a { color: inherit; text-decoration: none; }

/* Reusable primitives ---------------------------------------------------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 999px;
  border: 1px solid var(--ink-200);
  background: var(--ink-50);
  color: var(--ink-700);
  font-family: var(--font-mono);
  white-space: nowrap;
}
.chip-ok      { background: var(--ok-bg);     color: var(--ok);     border-color: #a7f3d0; }
.chip-warn    { background: var(--warn-bg);   color: var(--warn);   border-color: #fde68a; }
.chip-block   { background: var(--block-bg);  color: var(--block);  border-color: #fecaca; }
.chip-info    { background: var(--info-bg);   color: var(--info);   border-color: #bfdbfe; }
.chip-bench   { background: var(--src-bench-bg);  color: var(--src-bench);  border-color: var(--brand-200); }
.chip-vision  { background: var(--src-vision-bg); color: var(--src-vision); border-color: #ddd6fe; }
.chip-signal  { background: var(--src-signal-bg); color: var(--src-signal); border-color: #a5f3fc; }

.dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background-color .12s ease, border-color .12s ease, color .12s ease, box-shadow .12s ease;
  white-space: nowrap;
  user-select: none;
}
.btn-primary { background: var(--brand-600); color: white; }
.btn-primary:hover { background: var(--brand-700); }
.btn-ghost  { background: transparent; color: var(--ink-800); border-color: var(--ink-200); }
.btn-ghost:hover { background: var(--ink-50); }
.btn-link { background: none; color: var(--brand-700); padding: 0; }
.btn-link:hover { color: var(--brand-800); }
.btn-sm { padding: 6px 10px; font-size: 12.5px; }

.card {
  background: white;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.panel {
  background: white;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--ink-200);
}
.panel-head h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-700);
}
.panel-body { padding: 16px; }

/* scrollbar polish */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--ink-200); border-radius: 999px; border: 2px solid white; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-300); }

/* Hero animations */
@keyframes cb-rise {
  0%   { opacity: 0; transform: translateY(14px) scale(.98); }
  100% { opacity: 1; transform: translateY(0)    scale(1);   }
}
@keyframes cb-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
@keyframes cb-pulse {
  0%   { box-shadow: 0 0 0 0    rgba(45,212,191,.55); }
  70%  { box-shadow: 0 0 0 7px  rgba(45,212,191,0);   }
  100% { box-shadow: 0 0 0 0    rgba(45,212,191,0);   }
}
@keyframes cb-grow {
  0%   { width: 0%; }
  100% { width: 83%; }
}
@keyframes cb-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Hero responsive grid */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 36px;
  align-items: center;
}
.hero-grid > :first-child { padding-right: 12px; }

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { height: 520px; max-width: 560px; margin: 0 auto; width: 100%; }
}
@media (max-width: 640px) {
  .hero-visual { height: 460px; }
  .hero-record { width: 280px !important; }
}
