/* VCP — graphite design system tokens. Single source of truth for the visual language. */

:root {
  /* Text */
  --ink: #1a1c1e;
  --ink-muted: #545a60;
  --ink-soft: #6e7479;
  --ink-faint: #9aa0a5;

  /* Borders */
  --line: #d9dada;
  --line-soft: #e7e8e9;

  /* Surfaces */
  --surface: #f4f5f6;
  --surface-card: #ffffff;
  --surface-warm: #e5e4e1;
  --surface-deep: #eaebec;

  /* Accent (steel-blue) */
  --accent: #3e6e8c;
  --accent-ink: #ffffff;
  --accent-soft: #e3ebf0;
  --accent-line: #3e6e8c;

  /* Semantic */
  --positive: #3f7d58;
  --positive-soft: #e4efe8;
  --warn: #b07a2e;
  --warn-soft: #f4ebdc;
  --danger: #a4453c;
  --danger-soft: #f3e1de;

  /* Maturity score bands */
  --band-green: #3f7d58;
  --band-green-soft: #e0ede5;
  --band-teal: #3e6e8c;
  --band-teal-soft: #e1eaf0;
  --band-yellow: #b07a2e;
  --band-yellow-soft: #f3eada;
  --band-red: #a4453c;
  --band-red-soft: #f2e0dd;

  --font-sans: "Gilroy", "Poppins", "Montserrat", system-ui, sans-serif;
  --font-mono: "Menlo", "JetBrains Mono", ui-monospace, monospace;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow-card: 0 1px 2px rgba(26,28,30,0.04);
  --shadow-drawer: -8px 0 28px rgba(26,28,30,0.10);
  --shadow-pop: 0 6px 22px rgba(26,28,30,0.12);

  --sidebar-w: 232px;
  --topbar-h: 56px;
}

/* Dark mode — graphite inverts to a deep cool charcoal, accent stays steel-blue. */
:root.dark {
  --ink: #e8eaeb;
  --ink-muted: #aab0b5;
  --ink-soft: #8b9197;
  --ink-faint: #5f656a;
  --line: #34383c;
  --line-soft: #2a2d31;
  --surface: #16181a;
  --surface-card: #1e2123;
  --surface-warm: #22262a;
  --surface-deep: #25282b;
  --accent: #5a93b5;
  --accent-ink: #0f1416;
  --accent-soft: #233038;
  --accent-line: #5a93b5;
  --positive: #5fa57c;
  --positive-soft: #1d2a23;
  --warn: #c79a55;
  --warn-soft: #2c2618;
  --danger: #c4685f;
  --danger-soft: #2c1d1b;
  --band-green: #5fa57c; --band-green-soft: #1d2a23;
  --band-teal: #5a93b5; --band-teal-soft: #1c2830;
  --band-yellow: #c79a55; --band-yellow-soft: #2c2618;
  --band-red: #c4685f; --band-red-soft: #2c1d1b;
  --shadow-card: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-drawer: -8px 0 28px rgba(0,0,0,0.45);
  --shadow-pop: 0 6px 22px rgba(0,0,0,0.5);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--font-sans);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#root { height: 100%; }

button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 13px; color: var(--ink); }
a { color: inherit; text-decoration: none; }

.tabular { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* Micro-label: uppercase tracked, the deck's "SECTION 01" eyebrow. */
.micro {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  font-weight: 600;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; border: 2px solid var(--surface); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-faint); }
::-webkit-scrollbar-track { background: transparent; }

/* Transitions kept short + calm. */
.t150 { transition: all 150ms ease; }

/* Scrollable region default */
.scroll-y { overflow-y: auto; }

/* focus ring */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Selection */
::selection { background: var(--accent-soft); }

/* Generic fade-in for route changes */
@keyframes vcpFade { from { transform: translateY(5px); } to { transform: none; } }
.route-fade { animation: vcpFade 160ms ease both; }
@keyframes vcpFadeOpacity { from { opacity: 0; } to { opacity: 1; } }

/* Drawer slide */
@keyframes vcpDrawerIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes vcpScrim { from { opacity: 0; } to { opacity: 1; } }
