/* Shared design tokens for every page in the portfolio. Demo pages link this file
   and use only these variables and classes, so the whole site looks like one product. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #0b1220;
  --surface: #121b2e;
  --surface-2: #1a2540;
  --border: #26324d;
  --text: #e6ecf5;
  --muted: #93a1b8;
  --accent: #2dd4bf;      /* teal: primary actions, highlights */
  --accent-2: #f5b84b;    /* amber: sales / money figures */
  --good: #4ade80;
  --bad: #f87171;
  --radius: 12px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.55; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; }
h2 { font-size: 1.4rem; font-weight: 600; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }
code, pre, .mono { font-family: var(--mono); font-size: .9em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.topbar .brand { font-weight: 700; color: var(--text); }
.topbar nav a { margin-left: 18px; color: var(--muted); font-size: .95rem; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.btn { display: inline-block; background: var(--accent); color: #04211d; font-weight: 600; border: 0; border-radius: 8px; padding: 10px 16px; cursor: pointer; font-family: var(--font); font-size: .95rem; }
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn.secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }

.tag { display: inline-block; font-size: .78rem; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; margin: 0 6px 6px 0; }
.kpi { font-size: 1.8rem; font-weight: 700; }
.kpi.money { color: var(--accent-2); }
.muted { color: var(--muted); }
.good { color: var(--good); }
.bad { color: var(--bad); }

.demo-banner { background: var(--surface-2); border: 1px dashed var(--border); color: var(--muted); font-size: .85rem; border-radius: 8px; padding: 8px 12px; margin-bottom: 20px; }

table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 500; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

input, select, textarea { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; font-family: var(--font); font-size: .95rem; }
footer { color: var(--muted); font-size: .85rem; padding: 40px 0; border-top: 1px solid var(--border); margin-top: 48px; }

@media (max-width: 640px) {
  .topbar nav a { margin-left: 10px; font-size: .85rem; }
}
