/* bestAIHarness.com — shared styles */
:root {
  --bg: #0b0c10;
  --bg-soft: #121319;
  --surface: #16181f;
  --surface-2: #1c1f28;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f5f7;
  --muted: #9aa0ad;
  --faint: #6b7180;
  --accent: #7c6cff;
  --accent-soft: rgba(124, 108, 255, 0.14);
  --mint: #5eead4;
  --amber: #fbbf24;
  --rose: #fb7185;
  --max: 1080px;
  --radius: 14px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { line-height: 1.15; margin: 0; font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.narrow { max-width: 760px; }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 12, 16, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 0.98rem; letter-spacing: -0.02em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(140deg, var(--accent), var(--mint));
  display: grid; place-items: center; color: #0b0c10; font-weight: 900; font-size: 0.9rem;
}
.brand b { color: var(--accent); }
.nav { display: none; gap: 26px; font-size: 0.9rem; font-weight: 600; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 20px; border-radius: 999px; font-weight: 700; font-size: 0.92rem;
  background: var(--accent); color: #0b0c10; border: 1px solid var(--accent);
  transition: transform 0.12s ease, filter 0.12s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: var(--surface); filter: none; }
.btn-lg { padding: 15px 30px; font-size: 1rem; }

/* ---- generic section ---- */
section { padding: 78px 0; }
.eyebrow {
  font-family: var(--mono); font-size: 0.76rem; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--accent); font-weight: 600;
}
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.8rem, 4.4vw, 2.7rem); margin-top: 14px; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }
.lead { font-size: 1.18rem; color: var(--muted); }

/* ---- hero ---- */
.hero { padding: 96px 0 84px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -180px; left: 50%; transform: translateX(-50%);
  width: 720px; height: 480px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(124, 108, 255, 0.22), transparent 70%);
}
.hero-inner { position: relative; max-width: 800px; }
.hero h1 { font-size: clamp(2.4rem, 6.6vw, 4.3rem); letter-spacing: -0.035em; }
.hero h1 .grad {
  background: linear-gradient(100deg, var(--accent), var(--mint));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { margin-top: 22px; font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--muted); max-width: 620px; }
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 22px; color: var(--faint); font-size: 0.88rem; font-family: var(--mono); }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }

/* ---- cards / grids ---- */
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: 1fr; }
.g3 { grid-template-columns: 1fr; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.97rem; }
.card .ic {
  width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft);
  display: grid; place-items: center; font-size: 1.15rem; margin-bottom: 16px;
}

/* ---- callout / definition box ---- */
.callout {
  background: var(--surface); border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent); border-radius: 12px;
  padding: 24px 26px; margin: 28px 0;
}
.callout.def { border-left-color: var(--mint); }
.callout .lbl { font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--faint); }
.callout p { margin-top: 8px; font-size: 1.08rem; }

/* ---- prose ---- */
.prose h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); margin: 48px 0 14px; }
.prose h3 { font-size: 1.22rem; margin: 32px 0 10px; }
.prose p { color: var(--muted); margin: 14px 0; }
.prose ul { color: var(--muted); padding-left: 22px; margin: 14px 0; }
.prose li { margin: 7px 0; }
.prose strong { color: var(--text); }
.prose a.inline { color: var(--accent); border-bottom: 1px solid rgba(124,108,255,0.4); }

/* ---- comparison table ---- */
.table-scroll { overflow-x: auto; margin: 26px 0; border: 1px solid var(--line); border-radius: 12px; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 540px; }
table.cmp th, table.cmp td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.cmp thead th { background: var(--surface-2); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
table.cmp tbody td:first-child { color: var(--text); font-weight: 600; }
table.cmp td { color: var(--muted); }
table.cmp tr:last-child td { border-bottom: none; }
.col-win { color: var(--mint) !important; font-weight: 600; }
.yes { color: var(--mint); font-weight: 700; }
.no { color: var(--rose); font-weight: 700; }
.partial { color: var(--amber); font-weight: 700; }

/* ---- ranked list ---- */
.rank { display: grid; gap: 16px; margin: 30px 0; }
.rank-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: start;
}
.rank-item.top { border-color: var(--accent); background: linear-gradient(180deg, var(--accent-soft), var(--surface)); }
.rank-num {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--mono); font-weight: 800; font-size: 1.3rem;
  background: var(--surface-2); color: var(--muted);
}
.rank-item.top .rank-num { background: var(--accent); color: #0b0c10; }
.rank-body h3 { font-size: 1.2rem; }
.rank-body h3 .tag {
  font-family: var(--mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em;
  background: var(--accent); color: #0b0c10; padding: 3px 8px; border-radius: 5px; margin-left: 8px;
  vertical-align: middle;
}
.rank-body p { color: var(--muted); font-size: 0.96rem; margin-top: 7px; }
.rank-body .meta { margin-top: 10px; font-family: var(--mono); font-size: 0.8rem; color: var(--faint); }

/* ---- faq ---- */
.faq details {
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  padding: 4px 22px; margin: 12px 0;
}
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .ans { color: var(--muted); padding: 16px 0 20px; font-size: 0.98rem; }

/* ---- cta band ---- */
.cta-band { background: linear-gradient(160deg, var(--accent-soft), transparent); border-top: 1px solid var(--line); }
.cta-band .inner { text-align: center; max-width: 620px; margin: 0 auto; }
.cta-band h2 { font-size: clamp(1.8rem, 4.4vw, 2.6rem); }
.cta-band p { color: var(--muted); margin-top: 14px; }
.cta-band .hero-cta { justify-content: center; }

/* ---- footer ---- */
footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 48px 0 40px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
.footer-grid p { color: var(--faint); font-size: 0.9rem; margin-top: 12px; max-width: 360px; }
.footer-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); margin-bottom: 14px; font-family: var(--mono); }
.footer-col a { display: block; color: var(--muted); font-size: 0.92rem; padding: 5px 0; }
.footer-col a:hover { color: var(--text); }
.footer-base { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 24px; color: var(--faint); font-size: 0.84rem; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* ---- breadcrumb ---- */
.crumb { font-family: var(--mono); font-size: 0.8rem; color: var(--faint); padding-top: 30px; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--accent); }

/* ---- pagehead ---- */
.pagehead { padding: 40px 0 10px; }
.pagehead h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.03em; }
.pagehead .lead { margin-top: 18px; }

@media (min-width: 720px) {
  .g2 { grid-template-columns: 1fr 1fr; }
  .g3 { grid-template-columns: repeat(3, 1fr); }
  .nav { display: flex; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
