/* VibeLifeBench — aligned with VibeSearchBench visual system */
:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface2: #f4f4f5;
  --border: #e4e4e7;
  --accent: #2563eb;
  --accent2: #1d4ed8;
  --text: #18181b;
  --muted: #71717a;
  --green: #16a34a;
  --amber: #d97706;
  --purple: #7c3aed;
  --mono: "Source Code Pro", "Fira Code", ui-monospace, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 8px;
  --nav-h: 60px;
  --maxw: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent2);
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Nav (light, fixed, blurred) ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}

.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(250, 250, 250, 0.98);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--text);
}

.logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.15rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: rgba(37, 99, 235, 0.08);
}

.nav-actions {
  display: flex;
  gap: 0.45rem;
  flex-shrink: 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.84rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary,
.btn-primary:visited {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:visited:hover {
  background: var(--accent2);
  color: #fff;
}

.btn-outline,
.btn-outline:visited {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn-outline:hover,
.btn-outline:visited:hover {
  background: rgba(37, 99, 235, 0.06);
  color: var(--accent);
}

.btn-ghost,
.btn-ghost:visited {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover,
.btn-ghost:visited:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.45);
  outline-offset: 2px;
}

/* ---- Page shell ---- */
.page {
  padding-top: var(--nav-h);
}

.page-sub .section.page-sub-main {
  padding: 1.25rem 0 2rem;
}

.page-intro-block {
  margin-bottom: 0.75rem;
}

.page-intro-title {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}

.page-intro-title span {
  color: var(--accent);
}

.page-intro-sub {
  margin-bottom: 0;
  max-width: 720px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}

.page-sub .card + .card {
  margin-top: 0.75rem;
}

.card-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
}

.card-footnote {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ---- Hero ---- */
.hero {
  padding: 10px 0 2rem;
  text-align: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 55% at 50% -5%, rgba(37, 99, 235, 0.08), transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  width: min(220px, 72vw);
  height: auto;
  object-fit: contain;
  display: block;
  margin: 28px auto 24px;
}

.hero-title {
  font-size: clamp(2.15rem, 5.8vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
}

.title-vibe {
  background: linear-gradient(90deg, #3ee8c9, #1fc5a5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.title-life {
  color: #3181f0;
}

.title-bench {
  color: #03194b;
}

.hero-tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.03em;
  margin: 0.55rem 0 0;
  max-width: 32rem;
  text-align: center;
  line-height: 1.35;
}

.tagline-accent {
  flex-shrink: 0;
  width: 1.75rem;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, #1fc5a5, transparent);
}

.tagline-accent-right {
  background: linear-gradient(90deg, transparent, #3181f0);
}

.hero-affiliation {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.1rem;
}

.hero-affiliation-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
}

.hero-affiliation-link {
  display: inline-flex;
  line-height: 0;
  border-radius: 4px;
  transition: opacity 0.2s;
}

.hero-affiliation-link:hover {
  opacity: 0.75;
}

.hero-affiliation-logo {
  display: block;
  width: auto;
  object-fit: contain;
}

.hero-affiliation-logo-dots {
  height: 28px;
}

.hero-affiliation-logo-evolvent {
  height: 28px;
}

.hero-affiliation-sep {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--border);
  line-height: 1;
}

.hero-stats {
  display: flex;
  width: 100%;
  max-width: 820px;
  margin: 28px auto;
  flex-wrap: nowrap;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.h-stat {
  flex: 1 1 0;
  min-width: 0;
  padding: 10px 0.4rem;
  border-right: 1px solid var(--border);
  text-align: center;
}

.h-stat:last-child {
  border-right: none;
}

.h-stat-n {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.h-stat-n-tasks { color: #2563eb; }
.h-stat-n-domains { color: #7c3aed; }
.h-stat-n-backends { color: #0891b2; }
.h-stat-n-tools { color: #16a34a; }
.h-stat-n-events { color: #d97706; }
.h-stat-n-checks { color: #dc2626; }

.h-stat-l {
  font-size: 0.58rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 0.25rem;
  line-height: 1.25;
}

.hero-sub {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 640px;
  margin: 0 auto 1.25rem;
}

.hero-sub-em {
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.hero-sub-kw {
  font-weight: 800;
  padding: 0.12em 0.35em;
  border-radius: 5px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-sub-kw-proactive {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.12);
  box-shadow: inset 0 -2px 0 rgba(220, 38, 38, 0.45);
}

.hero-sub-kw-living {
  color: #15803d;
  background: rgba(22, 163, 74, 0.14);
  box-shadow: inset 0 -2px 0 rgba(22, 163, 74, 0.4);
}

.hero-sub-kw-horizon {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.14);
  box-shadow: inset 0 -2px 0 rgba(124, 58, 237, 0.4);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

/* ---- Sections ---- */
.section {
  padding: 3rem 0 3.5rem;
}

.section-alt {
  background: var(--surface2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  margin-bottom: 1.75rem;
}

.section-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.section-title span {
  color: var(--accent);
}

.section-sub {
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 720px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.card .lead,
.lead {
  font-size: 0.92rem;
  color: #3f3f46;
  line-height: 1.7;
}

.hl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.hl-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.45rem;
}

.hl-card p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.65;
}

.tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.18rem 0.5rem;
  border-radius: 5px;
  background: #dbeafe;
  color: #1d4ed8;
  margin-top: 0.75rem;
}

.figbox {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}

.figbox img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.figbox .cap {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.65rem;
  text-align: left;
  line-height: 1.55;
}

.fig-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Nested figures already sit in a card — drop the inner frame */
.card .fig-grid .figbox {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

/* ---- Tables (aligned with VibeSearchBench leaderboard) ---- */
.table-wrap {
  overflow-x: auto;
  margin: 0 -0.15rem;
}

table.lb,
table.hm {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  min-width: 640px;
}

table.lb th,
table.hm th {
  text-align: left;
  padding: 0.55rem 0.85rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
  background: transparent;
  white-space: nowrap;
}

table.lb td,
table.hm td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  vertical-align: middle;
}

table.lb tbody tr:hover td,
table.hm tbody tr:hover td {
  background: #f8faff;
}

table.lb tr:last-child td,
table.hm tr:last-child td {
  border-bottom: none;
}

table.lb .num,
table.hm .num {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

table.lb th.num,
table.hm th.num {
  text-align: right;
}

.rank-badge {
  display: inline-flex;
  width: 1.5rem;
  height: 1.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--surface2);
  color: var(--muted);
}

.rank-1 {
  background: #fef3c7;
  color: #b45309;
}

.rank-2 {
  background: #f1f5f9;
  color: #475569;
}

.rank-3 {
  background: #ffedd5;
  color: #c2410c;
}

.model-name {
  font-weight: 600;
  color: var(--text);
}

.model-name.best {
  color: var(--accent);
}

.metric-primary {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.metric-primary.best {
  color: var(--accent);
}

table.hm th,
table.hm td {
  text-align: center;
}

table.hm td:first-child,
table.hm th:first-child {
  text-align: left;
  font-weight: 600;
}

table.hm td[data-v] {
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
}

.note {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.75rem;
}

/* ---- Bibtex / footer ---- */
pre.bib {
  background: #18181b;
  color: #e4e4e7;
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.55;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0 2.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer a {
  color: var(--accent);
}

@media (max-width: 820px) {
  .hl-grid,
  .fig-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-wrap: wrap;
  }

  .h-stat {
    flex: 1 1 33%;
    border-bottom: 1px solid var(--border);
  }

  .nav-actions {
    display: none;
  }

  .nav-links {
    margin-left: auto;
  }

  .hero-affiliation-logo-dots {
    height: 22px;
  }

  .hero-affiliation-logo-evolvent {
    height: 22px;
  }

  .hero-affiliation-sep {
    display: none;
  }

  .hero-affiliation-logos {
    gap: 0.55rem;
  }
}
