/* ============================================================
   Starter design system — dark glass, one accent, zero deps.
   Everything themeable from :root. Looks shipped at hour 1.
   ============================================================ */
:root {
  --bg: #0b1120;            /* page base */
  --bg-glow-1: rgba(34, 197, 94, .07);   /* EDIT: ambient glows — match your brand */
  --bg-glow-2: rgba(56, 189, 248, .06);
  --panel: rgba(30, 41, 59, .55);
  --panel-solid: #141d31;
  --line: rgba(148, 163, 184, .14);
  --text: #f1f5f9;
  --muted: #8fa0b8;
  --acc: #22c55e;           /* EDIT: your accent. One accent. Only one. */
  --acc-ink: #06170c;
  --warn: #f59e0b;
  --bad: #ef4444;
  --r: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 16px 40px -18px rgba(0,0,0,.6);
  --font: ui-sans-serif, system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; }
body {
  font-family: var(--font);
  background: var(--bg);
  background-image:
    radial-gradient(700px 400px at 15% -10%, var(--bg-glow-1), transparent 60%),
    radial-gradient(700px 400px at 85% 110%, var(--bg-glow-2), transparent 60%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(11, 17, 32, .7);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; gap: 10px; padding: 14px 0; }
.logo-dot {
  width: 12px; height: 12px; border-radius: 4px;
  background: var(--acc); box-shadow: 0 0 12px var(--acc);
}
.brand { font-weight: 800; letter-spacing: -.01em; font-size: 17px; }
.header-in nav { margin-left: auto; display: flex; gap: 6px; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 36px; text-align: left; max-width: 620px; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }
.hero h1 em { font-style: normal; color: var(--acc); }
.hero p { margin-top: 12px; color: var(--muted); font-size: 17px; max-width: 54ch; }
.hero .cta-row { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- buttons ---------- */
.btn {
  font: inherit; font-weight: 650; font-size: 15px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel); color: var(--text);
  padding: 10px 18px; cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
  min-height: 44px;
}
.btn:hover { background: rgba(148, 163, 184, .12); border-color: rgba(148, 163, 184, .3); }
.btn:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.btn-primary:hover { background: #34d874; border-color: #34d874; }
.btn-ghost { background: transparent; }

/* ---------- stats strip ---------- */
.stats { display: flex; gap: 12px; flex-wrap: wrap; padding: 8px 0 4px; }
.stat {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px 18px; min-width: 130px; box-shadow: var(--shadow);
}
.stat b { font-family: var(--mono); font-size: 24px; font-weight: 700; color: var(--acc); display: block; }
.stat span { font-size: 12.5px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

/* ---------- card grid ---------- */
.section-head { display: flex; align-items: baseline; gap: 12px; margin: 34px 0 14px; }
.section-head h2 { font-size: 20px; letter-spacing: -.01em; }
.section-head .hint { color: var(--muted); font-size: 13.5px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; padding-bottom: 60px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px; box-shadow: var(--shadow);
  transition: border-color .2s ease, background .2s ease;
}
.card:hover { border-color: rgba(148, 163, 184, .32); background: rgba(30, 41, 59, .75); }
.card h3 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.card .sub { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.card .row { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.card .metric { font-family: var(--mono); font-weight: 700; font-size: 18px; }
.tag {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted);
}
.tag-active  { color: var(--acc);  border-color: rgba(34, 197, 94, .4);  background: rgba(34, 197, 94, .08); }
.tag-review  { color: var(--warn); border-color: rgba(245, 158, 11, .4); background: rgba(245, 158, 11, .08); }
.tag-pending { color: #93c5fd;     border-color: rgba(147, 197, 253, .35); background: rgba(147, 197, 253, .07); }
.tag-idle    { color: var(--muted); }

/* ---------- states: skeleton / empty / error ---------- */
.skel-line {
  height: 12px; border-radius: 6px; margin: 8px 0;
  background: linear-gradient(90deg, rgba(148,163,184,.10) 25%, rgba(148,163,184,.22) 50%, rgba(148,163,184,.10) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite;
}
.w40 { width: 40%; } .w60 { width: 60%; } .w90 { width: 90%; }
@keyframes shimmer { to { background-position: -200% 0; } }

.empty, .error-state {
  grid-column: 1 / -1; text-align: center; padding: 48px 20px;
  border: 1px dashed var(--line); border-radius: var(--r); color: var(--muted);
}
.empty b, .error-state b { color: var(--text); display: block; font-size: 17px; margin-bottom: 4px; }

/* ---------- toasts ---------- */
#toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 50; display: grid; gap: 8px; }
.toast {
  background: var(--panel-solid); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 16px; font-size: 14px; box-shadow: var(--shadow);
  animation: toast-in .25s ease;
}
.toast-ok   { border-color: rgba(34, 197, 94, .45); }
.toast-warn { border-color: rgba(245, 158, 11, .45); }
.toast-out  { opacity: 0; transition: opacity .3s ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 18px 0 26px; color: var(--muted); font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  .skel-line { animation: none; }
  .toast { animation: none; }
  .btn, .card { transition: none; }
}
