/* dataprof site — shared design tokens and components.
   Used by the landing page and the generated benchmark pages. */

:root {
  --bg: #f6f8fb;
  --bg-raised: #ffffff;
  --ink: #17222e;
  --muted: #56687a;
  --line: #dbe4ed;
  --accent: #26658f;
  --accent-ink: #1d5379;
  --rust: #c05a2c;
  --terminal-bg: #101a24;
  --terminal-ink: #d7e2ec;
  --shadow: 0 1px 2px rgba(23, 34, 46, 0.05), 0 12px 32px rgba(23, 34, 46, 0.07);
  --radius: 14px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d141c;
    --bg-raised: #141f2b;
    --ink: #e4ecf3;
    --muted: #96a7b8;
    --line: #253748;
    --accent: #64a9d6;
    --accent-ink: #8ec4e8;
    --rust: #e07c4c;
    --terminal-bg: #0a1119;
    --terminal-ink: #cfdae4;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

code, pre, kbd {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
}

a { color: var(--accent-ink); }

h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.015em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---- header ---- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand img { width: 30px; height: 30px; border-radius: 7px; }

.site-nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 7px 11px;
  border-radius: 9px;
}

.site-nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.site-nav a.nav-cta { color: var(--accent-ink); }

/* ---- shared components ---- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--rust);
}

.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 11px;
  font-weight: 650;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { filter: brightness(1.08); }

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: var(--bg-raised);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); }

.pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent-ink);
  white-space: nowrap;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

td a { font-weight: 600; text-decoration: none; }
td a:hover { text-decoration: underline; }

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 88px;
  padding: 36px 0 48px;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-items: center;
}

.site-footer a { color: var(--muted); font-weight: 600; text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer .spacer { flex: 1; }
