/* Ebb: benmore.tech v2 tokens. One blue accent on a warm neutral ground. */
:root {
  --bg: #f4f4f2;
  --bg-2: #ebebe8;
  --card: #ffffff;
  --fg: #0b0b0b;
  --muted: #6f6f6c;
  --accent: #1d54e2;
  --line: rgba(0, 0, 0, 0.08);
  --radius: 24px;
  --radius-sm: 12px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(72px, 9vw, 136px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
code, pre, .mono { font-family: var(--mono); }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(244, 244, 242, 0.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.nav .wrap { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.375rem; letter-spacing: -0.04em; }
.brand img { width: 28px; height: 28px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 0.9375rem; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color 180ms var(--ease); }
.nav-links a:hover { color: var(--fg); }
.nav-links .pill { color: #fff; }

/* Buttons */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 24px; border-radius: 999px; font: 500 0.9375rem/1 var(--font); text-decoration: none; white-space: nowrap; transition: transform 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease); }
.pill:hover { transform: translateY(-1px); }
.pill-dark { background: var(--fg); color: #fff; }
.pill-dark:hover { background: #262626; }
.pill-line { border: 1px solid rgba(0, 0, 0, 0.16); color: var(--fg); background: transparent; }
.pill-line:hover { border-color: var(--fg); }
.pill-sm { height: 40px; padding: 0 18px; }
.pill svg { width: 16px; height: 16px; flex: none; }

/* Hero */
.hero { padding: clamp(64px, 9vw, 128px) 0 clamp(48px, 6vw, 80px); }
.hero h1 { font-size: clamp(2.75rem, 6.6vw, 6rem); line-height: 1; letter-spacing: -0.045em; max-width: 14ch; }
.hero .lead { margin-top: 28px; font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.5; color: var(--muted); max-width: 40rem; }
.hero .actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.meta { margin-top: 18px; font-size: 0.875rem; color: var(--muted); }

.shot { margin-top: clamp(48px, 6vw, 80px); border-radius: var(--radius); overflow: hidden; background: var(--bg); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.10), 0 0 0 1px var(--line); }

/* Sections */
section.block { padding: var(--section) 0 0; }
.head { display: flex; flex-direction: column; gap: 16px; max-width: 46rem; margin-bottom: clamp(32px, 4vw, 56px); }
.head h2 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.02; letter-spacing: -0.05em; }
.head p { font-size: clamp(1.0625rem, 1.3vw, 1.25rem); color: var(--muted); }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); }
.card { background: var(--card); border-radius: var(--radius); padding: clamp(24px, 2.4vw, 36px); box-shadow: 0 0 0 1px var(--line); }

/* Evidence */
.stat { display: flex; flex-direction: column; gap: 10px; text-decoration: none; transition: transform 280ms var(--ease), box-shadow 280ms var(--ease); }
.stat:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.14), 0 18px 40px rgba(0, 0, 0, 0.06); }
.stat .num { font-size: clamp(2.5rem, 3.6vw, 3.5rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; white-space: nowrap; }
.stat .what { font-size: 1.0625rem; line-height: 1.45; }
.stat .src { margin-top: auto; padding-top: 12px; font-size: 0.8125rem; color: var(--accent); }

/* Ideas */
.idea h3 { font-size: clamp(1.375rem, 1.8vw, 1.75rem); line-height: 1.15; }
.idea p { margin-top: 12px; color: var(--muted); font-size: 1.0625rem; }
.idea .n { font-family: var(--mono); font-size: 0.8125rem; color: var(--accent); margin-bottom: 18px; }

.split { display: grid; gap: clamp(32px, 5vw, 72px); grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); align-items: center; }
.split .shot { margin-top: 0; }
.split h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.05; letter-spacing: -0.045em; }
.split p { margin-top: 16px; color: var(--muted); font-size: 1.125rem; }

/* Table */
.table-box { overflow-x: auto; border-radius: var(--radius); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 0.9375rem; }
th { text-align: left; font-weight: 500; font-size: 0.8125rem; color: var(--muted); padding: 18px 24px; border-bottom: 1px solid var(--line); }
td { padding: 18px 24px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: none; }
td:first-child { font-weight: 600; white-space: nowrap; }
td.muted { color: var(--muted); }
.tag { display: inline-flex; height: 28px; align-items: center; padding: 0 12px; border-radius: 999px; font-size: 0.8125rem; background: var(--bg-2); white-space: nowrap; }
.tag-blue { background: #e7edfc; color: var(--accent); }

/* Never list */
.never { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-radius: var(--radius); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.never li { display: flex; gap: 18px; padding: 22px clamp(24px, 2.4vw, 36px); border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
.never li:last-child { border-bottom: none; }
.never svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--accent); }

/* CLI */
.term { background: #0b0b0b; color: #e9e9e6; border-radius: var(--radius); padding: clamp(20px, 2.6vw, 36px); overflow-x: auto; font-family: var(--mono); font-size: 0.8125rem; line-height: 1.7; white-space: pre; }
.term .c { color: #8a8a86; }
.term .b { color: #fff; font-weight: 600; }
.term .a { color: #6f9bff; }
.term .w { color: #f2a93b; }
.cmds { display: grid; gap: 0; border-radius: var(--radius); background: var(--card); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.cmds div { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 16px; padding: 16px clamp(20px, 2.4vw, 32px); border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.cmds div:last-child { border-bottom: none; }
.cmds code { font-size: 0.875rem; }
.cmds span { color: var(--muted); }
.install { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.install code { display: block; background: var(--bg-2); border-radius: var(--radius-sm); padding: 14px 18px; font-size: 0.8125rem; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Works with */
.agent h3 { font-size: 1.25rem; letter-spacing: -0.02em; }
.agent p { margin-top: 8px; color: var(--muted); }

/* FAQ */
.faq { border-radius: var(--radius); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: none; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px clamp(24px, 2.4vw, 36px); font-size: 1.125rem; font-weight: 500; letter-spacing: -0.01em; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; flex: none; transition: transform 280ms var(--ease); color: var(--muted); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 clamp(24px, 2.4vw, 36px) 24px; color: var(--muted); font-size: 1.0625rem; max-width: 52rem; }

/* Closing */
.close { margin-top: var(--section); background: var(--fg); color: #f4f4f2; border-radius: var(--radius); padding: clamp(40px, 7vw, 96px) clamp(24px, 6vw, 80px); display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.close h2 { font-size: clamp(2.25rem, 5vw, 4.25rem); line-height: 1; letter-spacing: -0.055em; max-width: 16ch; }
.close p { color: rgba(244, 244, 242, 0.62); font-size: 1.125rem; }
.close .pill-light { background: #f4f4f2; color: var(--fg); }
.close .pill-light:hover { background: #fff; }

footer { padding: 48px 0 64px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 0.875rem; color: var(--muted); }
footer a { text-decoration: none; }
footer a:hover { color: var(--fg); }
footer nav { display: flex; gap: 24px; }

/* Download page */
.dl { padding: clamp(64px, 9vw, 120px) 0 0; max-width: 820px; }
.dl h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -0.055em; }
.dl .lead { margin-top: 20px; color: var(--muted); font-size: 1.25rem; }
.steps { margin-top: 48px; list-style: none; padding: 0; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; }
.steps li::before { content: counter(s); width: 40px; height: 40px; border-radius: 999px; background: var(--card); box-shadow: 0 0 0 1px var(--line); display: flex; align-items: center; justify-content: center; font-weight: 600; }
.steps h3 { font-size: 1.1875rem; letter-spacing: -0.02em; margin-top: 8px; }
.steps p { margin-top: 6px; color: var(--muted); }
.steps code { font-size: 0.875rem; background: var(--bg-2); padding: 2px 6px; border-radius: 6px; }

@media (max-width: 720px) {
  .nav-links a:not(.pill) { display: none; }
  .cmds div { grid-template-columns: 1fr; gap: 4px; }
  .hero .actions .pill { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
