/* ============================================================
   CAI Benchmark — design system
   Palette derived from the CAI emblem: near-black navy,
   electric blue glow, chrome/silver type.
   ============================================================ */

:root {
  --bg: #050a14;
  --bg-raise: #0a1322;
  --bg-card: #0d1830;
  --line: rgba(30, 144, 255, 0.18);
  --line-strong: rgba(30, 144, 255, 0.45);
  --blue: #1e90ff;
  --cyan: #00bfff;
  --glow: rgba(0, 191, 255, 0.35);
  --text: #e8eef7;
  --text-dim: #93a4bd;
  --chrome: linear-gradient(180deg, #ffffff 0%, #c7d3e4 45%, #8fa3c0 55%, #e8eef7 100%);
  --accent-grad: linear-gradient(90deg, var(--blue), var(--cyan));
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --display: "Space Grotesk", "Segoe UI", sans-serif;
  --body: "Inter", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(30, 144, 255, 0.4); }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

code, .mono { font-family: var(--mono); font-size: 0.92em; }

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

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 10, 20, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; gap: 28px;
  height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--text); letter-spacing: 0.04em; }
.nav-logo img { height: 36px; width: 36px; border-radius: 50%; box-shadow: 0 0 14px var(--glow); }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--text-dim); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.btn { color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 10px;
  font-family: var(--display); font-weight: 600; font-size: 16px;
  border: 1px solid transparent; cursor: pointer; transition: all 0.18s ease;
}
.btn-primary {
  background: var(--accent-grad); color: #fff;
  box-shadow: 0 0 24px rgba(0, 191, 255, 0.35);
}
.btn-primary:hover { box-shadow: 0 0 38px rgba(0, 191, 255, 0.6); transform: translateY(-1px); text-decoration: none; }
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--cyan); background: rgba(30, 144, 255, 0.08); text-decoration: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 110px 0 90px;
  text-align: center;
}
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto;
  height: 130%;
  background:
    radial-gradient(ellipse 55% 45% at 50% 38%, rgba(30, 144, 255, 0.22), transparent 65%),
    radial-gradient(ellipse 30% 25% at 50% 30%, rgba(0, 191, 255, 0.18), transparent 70%);
  pointer-events: none;
}
.hero > .wrap { position: relative; }
.hero img.emblem {
  height: 168px; width: 168px; border-radius: 50%;
  box-shadow: 0 0 70px var(--glow);
  margin-bottom: 34px;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700; line-height: 1.08; letter-spacing: -0.015em;
  background: var(--chrome);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero h1 em {
  font-style: normal;
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.sub {
  max-width: 680px; margin: 24px auto 0;
  font-size: 20px; color: var(--text-dim);
}
.hero .cta { margin-top: 42px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero .meta { margin-top: 26px; color: var(--text-dim); font-size: 14px; font-family: var(--mono); }

/* ---------- sections ---------- */
section { padding: 88px 0; border-top: 1px solid rgba(30, 144, 255, 0.08); }
.kicker {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 14px;
}
h2 {
  font-family: var(--display); font-size: clamp(28px, 4vw, 40px);
  font-weight: 700; line-height: 1.15; margin-bottom: 18px; letter-spacing: -0.01em;
}
.lede { font-size: 19px; color: var(--text-dim); max-width: 720px; }

/* ---------- score trio ---------- */
.scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.score-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 16px; padding: 34px 28px; text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.score-card:hover { border-color: var(--line-strong); box-shadow: 0 0 30px rgba(0, 191, 255, 0.12); }
.score-card .num {
  font-family: var(--display); font-size: 56px; font-weight: 700;
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.score-card h3 { font-family: var(--display); font-size: 19px; margin: 8px 0 10px; }
.score-card p { font-size: 15px; color: var(--text-dim); }

/* ---------- workload grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; margin-top: 48px; }
.card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 14px; padding: 26px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4); }
.card .tag {
  display: inline-block; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan); border: 1px solid var(--line-strong);
  border-radius: 99px; padding: 3px 10px; margin-bottom: 14px;
}
.card h3 { font-family: var(--display); font-size: 18px; margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--text-dim); }
.card a.more { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; }

/* ---------- comparison strip ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 48px; }
.compare .col { border-radius: 16px; padding: 30px; border: 1px solid var(--line); }
.compare .col.bad { background: #120d12; border-color: rgba(255, 99, 99, 0.18); }
.compare .col.good { background: var(--bg-card); border-color: var(--line-strong); box-shadow: 0 0 36px rgba(0, 191, 255, 0.10); }
.compare h3 { font-family: var(--display); font-size: 18px; margin-bottom: 16px; }
.compare ul { list-style: none; }
.compare li { padding: 8px 0 8px 30px; position: relative; color: var(--text-dim); font-size: 15.5px; }
.compare .bad li::before { content: "✕"; position: absolute; left: 2px; color: #ff7a7a; }
.compare .good li::before { content: "✓"; position: absolute; left: 2px; color: var(--cyan); }

/* ---------- see it in action ---------- */
.action-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 26px; margin-top: 48px; align-items: start; }
.shot {
  border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.55), 0 0 40px rgba(0, 191, 255, 0.08);
}
.shot img { display: block; width: 100%; height: auto; }
.terminal {
  background: #04080f; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; font-family: var(--mono); font-size: 13.5px; line-height: 1.65;
}
.terminal .bar {
  display: flex; align-items: center; gap: 7px; padding: 11px 16px;
  background: #0a1322; border-bottom: 1px solid var(--line);
}
.terminal .bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3a55; }
.terminal .bar span { margin-left: 8px; color: var(--text-dim); font-size: 12px; }
.terminal pre { margin: 0; padding: 18px 20px; overflow-x: auto; color: #bfe3ff; background: transparent; border: 0; }
.terminal .cmd { color: #fff; font-weight: 600; }
.terminal .ok { color: #69f0ae; }
.terminal .dim { color: var(--text-dim); }
.shot-caption { font-family: var(--mono); font-size: 12.5px; color: var(--text-dim); margin-top: 12px; }
@media (max-width: 880px) { .action-grid { grid-template-columns: 1fr; } }

/* ---------- credibility strip ---------- */
.cred { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 44px; }
.cred span {
  font-family: var(--mono); font-size: 13.5px; color: var(--text-dim);
  border: 1px solid var(--line); border-radius: 99px; padding: 8px 18px;
}

/* ---------- article / docs pages ---------- */
.article { max-width: 780px; margin: 0 auto; padding: 72px 24px 96px; }
.article .kicker { margin-bottom: 10px; }
.article h1 { font-family: var(--display); font-size: clamp(32px, 5vw, 46px); line-height: 1.12; margin-bottom: 20px; letter-spacing: -0.01em; }
.article h2 { font-size: 26px; margin: 52px 0 14px; }
.article h3 { font-family: var(--display); font-size: 19px; margin: 34px 0 10px; }
.article p { margin: 14px 0; color: #c6d2e4; }
.article ul, .article ol { margin: 14px 0 14px 26px; color: #c6d2e4; }
.article li { margin: 7px 0; }
.article pre {
  background: #060d1a; border: 1px solid var(--line); border-radius: 10px;
  padding: 18px 20px; overflow-x: auto; margin: 18px 0;
  font-family: var(--mono); font-size: 14px; line-height: 1.6; color: #bfe3ff;
}
.article .note {
  border-left: 3px solid var(--cyan); background: rgba(30, 144, 255, 0.07);
  border-radius: 0 10px 10px 0; padding: 16px 20px; margin: 22px 0;
  font-size: 15.5px; color: var(--text-dim);
}
.article table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
.article th, .article td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.article th { font-family: var(--display); color: var(--text); }
.article td { color: var(--text-dim); }
.formula {
  font-family: var(--mono); text-align: center; font-size: 16px;
  padding: 22px; margin: 22px 0; color: #bfe3ff;
  background: #060d1a; border: 1px solid var(--line); border-radius: 10px;
}

/* ---------- download cards ---------- */
.dl-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 48px; }
.dl-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px;
  padding: 32px; text-align: center;
}
.dl-card.recommended { border-color: var(--line-strong); box-shadow: 0 0 36px rgba(0, 191, 255, 0.12); }
.dl-card .os { font-family: var(--display); font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.dl-card .file { font-family: var(--mono); font-size: 13px; color: var(--text-dim); margin: 12px 0 20px; word-break: break-all; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line); padding: 44px 0 56px;
  color: var(--text-dim); font-size: 14px;
}
.foot-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.foot-inner .links { display: flex; gap: 20px; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .scores { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
  section { padding: 64px 0; }
  .hero { padding: 72px 0 64px; }
}
