/* ============================================================
   Compound — shared design system  (dashboard)
   Near-black + electric cyan, matching the Aceternity landing.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg0: #050507;
  --bg1: #08090f;
  --bg2: #0e131f;
  --card: rgba(255, 255, 255, .025);
  --card-solid: #0b0e16;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(34, 211, 238, .24);
  --text: #e9eefb;
  --muted: #8b96b5;
  --dim: #5b6b8f;
  --blue: #4ee0ff;     /* electric cyan — primary accent */
  --cyan: #22d3ee;
  --purple: #818cf8;   /* desaturated violet, used sparingly */
  --green: #3ddc97;
  --red: #ff6b8b;
  --orange: #ffc24b;
  --grad: linear-gradient(92deg, #22d3ee, #38bdf8 55%, #60a5fa);
  --radius: 16px;
  --maxw: 1180px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
button, input, select, textarea { font-family: inherit; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg0);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(34, 211, 238, .35); }

/* slim cyan scrollbars to match the app shell */
* { scrollbar-width: thin; scrollbar-color: rgba(34, 211, 238, .25) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: rgba(34, 211, 238, .22); border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: rgba(34, 211, 238, .4); background-clip: content-box; }

/* background atmosphere */
.atmo {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 15% -5%, rgba(34, 211, 238, .12), transparent 60%),
    radial-gradient(800px 500px at 90% 10%, rgba(56, 189, 248, .10), transparent 60%),
    radial-gradient(900px 700px at 50% 110%, rgba(61, 220, 151, .05), transparent 60%),
    var(--bg0);
}
.atmo::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(34, 211, 238, .045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(34, 211, 238, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(800px 480px at 50% 0%, #000 30%, transparent 75%);
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* type */
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: clamp(38px, 5.6vw, 64px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 750; }
h3 { font-size: 19px; font-weight: 650; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.kicker {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 14px;
}
.lead { font-size: 19px; color: var(--muted); max-width: 720px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .86em; }

/* nav */
nav.top {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  background: rgba(5, 5, 7, .72);
  border-bottom: 1px solid var(--line);
}
nav.top .inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; color: var(--text); text-decoration: none; }
.logo .mark {
  width: 26px; height: 26px; border-radius: 8px; background: var(--grad);
  display: grid; place-items: center; font-size: 15px; color: #06070b; font-weight: 900;
}
nav.top a.nl { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 550; }
nav.top a.nl:hover { color: var(--text); }
.nav-spacer { flex: 1; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px; font-size: 15px; font-weight: 650;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #06070b; box-shadow: 0 8px 28px rgba(34, 211, 238, .28); }
.btn-primary:hover { box-shadow: 0 10px 36px rgba(34, 211, 238, .44); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, .06); color: var(--text); border-color: rgba(255, 255, 255, .16); box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.btn-ghost:hover { background: rgba(255, 255, 255, .11); border-color: rgba(255, 255, 255, .3); transform: translateY(-1px); }
.btn-sm { padding: 7px 14px; font-size: 13.5px; border-radius: 10px; }

/* cards */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02), 0 2px 10px rgba(0,0,0,.22);
}
.card.pad { padding: 26px; }

/* chips & badges */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 650; padding: 4px 11px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap;
}
.chip.green { color: var(--green); border-color: rgba(61, 220, 151, .35); background: rgba(61, 220, 151, .07); }
.chip.blue  { color: var(--blue);  border-color: rgba(78, 224, 255, .35); background: rgba(78, 224, 255, .07); }
.chip.purple{ color: #a5b4fc; border-color: rgba(129, 140, 248, .4); background: rgba(129, 140, 248, .08); }
.chip.orange{ color: var(--orange); border-color: rgba(255, 194, 75, .35); background: rgba(255, 194, 75, .07); }
.chip.red   { color: var(--red); border-color: rgba(255, 107, 139, .35); background: rgba(255, 107, 139, .07); }

/* tables */
table.data { width: 100%; border-collapse: collapse; font-size: 13.8px; }
table.data th {
  text-align: left; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--dim); font-weight: 650; padding: 10px 12px; border-bottom: 1px solid var(--line-strong);
  position: sticky; top: 0; background: var(--card-solid); z-index: 2;
}
table.data td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:hover td { background: rgba(34, 211, 238, .05); }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
table.data th.num { text-align: right; }

/* KPI cards */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.kpi { padding: 18px 20px; }
.kpi .label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); font-weight: 650; }
.kpi .value { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

/* toast */
#toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--card-solid); border: 1px solid var(--line-strong); color: var(--text);
  padding: 13px 22px; border-radius: 14px; font-size: 14.5px; font-weight: 550;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5); opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease; z-index: 100; max-width: 90vw; text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast b { color: var(--green); }

/* sections */
section.block { padding: 92px 0; }
section.block.tight { padding: 64px 0; }
.center { text-align: center; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 920px) { .grid3, .grid4 { grid-template-columns: 1fr 1fr; } .grid2 { grid-template-columns: 1fr; } }
@media (max-width: 580px) { .grid3, .grid4 { grid-template-columns: 1fr; } }

/* footer */
footer { border-top: 1px solid var(--line); padding: 44px 0 60px; color: var(--dim); font-size: 13.5px; }
footer a { color: var(--muted); }
