/*
 * The landing page wears the console's look (SPEC.md, "The look"): no
 * borders and no rules, areas told apart by fill and space, pill controls,
 * one color, lime, always a fill with black on it, on pure grays. Light
 * by default, dark when the system asks, or when the visitor chose it.
 */
@font-face { font-family: 'Space Grotesk'; font-weight: 400; font-display: swap; src: url(/fonts/space-grotesk-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 500; font-display: swap; src: url(/fonts/space-grotesk-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 600; font-display: swap; src: url(/fonts/space-grotesk-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 700; font-display: swap; src: url(/fonts/space-grotesk-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url(/fonts/jetbrains-mono-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-display: swap; src: url(/fonts/jetbrains-mono-latin-500-normal.woff2) format('woff2'); }

:root {
  color-scheme: light;
  --lime: #d4ff3a;
  --on-lime: #0a0a0a;
  --bg: #ffffff;
  --surface: #f4f4f4;
  --surface-2: #e6e6e6;
  --raised: #ffffff;
  --hover: #ededed;
  --text: #0a0a0a;
  --muted: #5c5c5c;
  --focus: #0a0a0a;
  --ink: #0a0a0a;
  --ink-text: #f2f2f2;
  --ink-muted: #8c8c8c;
  --ink-field: #1c1c1c;
  --font: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --max: 1160px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #161616;
    --surface: #202020;
    --surface-2: #2e2e2e;
    --raised: #262626;
    --hover: #262626;
    --text: #f2f2f2;
    --muted: #a3a3a3;
    --focus: #f2f2f2;
    --ink: #0a0a0a;
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #161616;
  --surface: #202020;
  --surface-2: #2e2e2e;
  --raised: #262626;
  --hover: #262626;
  --text: #f2f2f2;
  --muted: #a3a3a3;
  --focus: #f2f2f2;
  --ink: #0a0a0a;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--surface); padding: 0.1em 0.4em; border-radius: 6px; }
h1, h2, h3 { letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
.muted { color: var(--muted); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  padding: 10px 16px; border-radius: 999px; background: var(--lime); color: var(--on-lime); font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* Pills */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 18px; border-radius: 999px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: background-color 0.15s, transform 0.15s;
}
.pill.big { height: 50px; padding: 0 26px; font-size: 16px; }
.pill.lime { background: var(--lime); color: var(--on-lime); }
.pill.lime:hover { background: #c6f224; }
.pill.ghost { background: var(--surface); }
.pill.ghost:hover { background: var(--surface-2); }
.pill.raised { background: var(--raised); }
.pill.raised:hover { background: var(--hover); }
.pill.block { display: flex; width: 100%; margin-top: auto; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.top-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand img { border-radius: 8px; display: block; }
.brand-sub { font-weight: 500; color: var(--muted); }
.brand.small { font-size: 16px; }
.brand.small img { border-radius: 6px; }
.top-nav { display: flex; gap: 4px; margin-left: 12px; }
.top-nav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; }
.top-nav a:hover { color: var(--text); background: var(--surface); }
.top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn {
  width: 40px; height: 40px; border: 0; border-radius: 999px; background: transparent;
  display: inline-flex; align-items: center; justify-content: center; color: var(--muted);
}
.icon-btn:hover { background: var(--surface); color: var(--text); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; display: none; }
.icon-btn[data-mode='system'] .i-sys,
.icon-btn[data-mode='light'] .i-light,
.icon-btn[data-mode='dark'] .i-dark { display: block; }
.icon-btn:not([data-mode]) .i-sys { display: block; }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 56px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--surface);
  font-size: 14px; font-weight: 500; color: var(--muted);
}
.dot { width: 10px; height: 10px; border-radius: 999px; background: var(--lime); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) 35%, transparent); }
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); line-height: 1.02; letter-spacing: -0.035em; margin-top: 22px; }
.lede { margin-top: 22px; font-size: 19px; color: var(--muted); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cta-row.center { justify-content: center; }
.fine { margin-top: 16px; font-size: 14px; color: var(--muted); }
.fine.center { text-align: center; max-width: 46em; margin: 28px auto 0; }

/* The demo, on the black fill the console's logs use, in both themes */
.hero-demo { background: var(--ink); color: var(--ink-text); border-radius: 22px; padding: 10px; min-width: 0; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18); }
.demo-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 8px; }
.tabs { display: flex; gap: 4px; background: var(--ink-field); padding: 4px; border-radius: 999px; }
.tabs button {
  border: 0; background: transparent; color: var(--ink-muted);
  height: 32px; padding: 0 14px; border-radius: 999px; font-family: var(--mono); font-size: 13px; font-weight: 500;
}
.tabs button[aria-selected='true'] { background: var(--lime); color: var(--on-lime); }
.tabs button:hover:not([aria-selected='true']) { color: var(--ink-text); }
.tabs button:focus-visible, .copy:focus-visible { outline-color: var(--lime); }
.copy {
  border: 0; height: 32px; padding: 0 14px; border-radius: 999px;
  background: var(--ink-field); color: var(--ink-text); font-size: 13px; font-weight: 600;
}
.copy:hover { background: #2a2a2a; }
.demo-pane {
  margin: 0; padding: 18px 18px 20px; border-radius: 14px; background: var(--ink-field);
  font-family: var(--mono); font-size: 13.5px; line-height: 1.65; overflow-x: auto; min-height: 290px;
}
.demo-pane code { background: none; padding: 0; font-size: inherit; color: inherit; }
.demo-pane .c { color: var(--ink-muted); }
.demo-pane .p { color: var(--lime); user-select: none; }
.demo-pane .o { color: #c9c9c9; }

/* Highlights */
.strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  padding-top: 8px; padding-bottom: 8px;
}
.strip div { background: var(--surface); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.strip strong { font-size: 18px; }
.strip span { color: var(--muted); font-size: 14px; }

/* Sections */
.section { padding-top: 104px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.section h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; margin-top: 12px; max-width: 18em; }
.section h2 code { font-size: 0.8em; background: var(--lime); color: var(--on-lime); border-radius: 10px; padding: 0.04em 0.3em; }
.section-lede { margin-top: 16px; font-size: 18px; color: var(--muted); max-width: 38em; }

.grid { display: grid; gap: 12px; margin-top: 40px; }
.grid.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--surface); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.card h3 { font-size: 19px; }
.card p { color: var(--muted); font-size: 15px; }
.card.feature { grid-column: span 2; padding: 28px; }
.card.feature h3 { font-size: 24px; }
.card.feature p { font-size: 16px; max-width: 30em; }
.card.wide { grid-column: span 2; }
.card.ink { background: var(--ink); color: var(--ink-text); }
.card.ink p { color: var(--ink-muted); }
.card.ink code { background: var(--ink-field); color: var(--lime); }
.card-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--lime); color: var(--on-lime); display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Agents */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-direction: column; gap: 14px; }
.ticks li { position: relative; padding-left: 34px; color: var(--muted); }
.ticks li strong { color: var(--text); }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 999px;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.console-shot { display: flex; gap: 10px; background: var(--surface); border-radius: 24px; padding: 10px; min-height: 360px; }
.cs-rail { flex: 0 0 150px; display: flex; flex-direction: column; gap: 4px; padding: 8px; }
.cs-item { display: flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 500; }
.cs-item.on { background: var(--lime); color: var(--on-lime); font-weight: 600; }
.cs-item.muted { margin-top: auto; }
.cs-main { flex: 1; min-width: 0; background: var(--raised); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.cs-title { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0; vertical-align: middle; }
.cs-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--surface); border-radius: 12px; padding: 10px 14px; font-family: var(--mono); font-size: 13px; }
.live { background: var(--lime); color: var(--on-lime); padding: 2px 10px; border-radius: 999px; font-family: var(--font); font-weight: 600; font-size: 12px; }
.cs-bar { margin-top: auto; display: flex; align-items: center; gap: 10px; background: var(--ink); color: var(--ink-text); border-radius: 999px; padding: 6px 6px 6px 6px; overflow: hidden; }
.cs-fmt { background: var(--lime); color: var(--on-lime); border-radius: 999px; padding: 4px 12px; font-family: var(--mono); font-size: 12px; font-weight: 500; flex-shrink: 0; }
.cs-bar code { background: none; color: var(--ink-text); padding: 0; font-size: 13px; white-space: nowrap; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.plan { background: var(--surface); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.plan h3 { font-size: 22px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan.pro { background: var(--ink); color: var(--ink-text); }
.lime-badge { background: var(--lime); color: var(--on-lime); }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.amount { font-size: 56px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.per { color: var(--muted); font-size: 16px; }
.pro .per, .pro .plan-note, .pro li span:first-child { color: var(--ink-muted); }
.plan-note { color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 14px 0 22px; display: flex; flex-direction: column; gap: 4px; }
.plan li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; border-radius: 12px; background: var(--raised); font-size: 15px; }
.pro li { background: var(--ink-field); }
.plan li span:first-child { color: var(--muted); }
.plan li span:last-child { font-weight: 600; text-align: right; }

/* Closing */
.final { padding-top: 104px; }
.final-in { background: var(--lime); color: var(--on-lime); border-radius: 28px; padding: 64px 32px; text-align: center; }
.final h2 { font-size: clamp(32px, 4.4vw, 52px); }
.final p { margin-top: 12px; font-size: 18px; }
.final code { background: rgba(10, 10, 10, 0.1); color: var(--on-lime); }
.final .pill.lime { background: var(--on-lime); color: var(--lime); }
.final .pill.lime:hover { background: #262626; }

.foot { margin-top: 72px; padding: 32px 0 48px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.foot nav { display: flex; gap: 20px; color: var(--muted); }
.foot nav a:hover { color: var(--text); }
.foot p { margin-left: auto; font-size: 14px; }

/* Narrower screens */
@media (max-width: 1000px) {
  .hero, .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero { padding-top: 48px; }
  .grid.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .top-nav { display: none; }
  .grid.three, .plans { grid-template-columns: minmax(0, 1fr); }
  .section, .final { padding-top: 72px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .hide-sm { display: none; }
  .grid.products, .strip { grid-template-columns: minmax(0, 1fr); }
  .card.feature, .card.wide { grid-column: auto; }
  .console-shot { flex-direction: column; min-height: 0; }
  .cs-rail { flex-direction: row; flex-wrap: wrap; flex-basis: auto; }
  .cs-item.muted { margin-top: 0; }
  .plan { padding: 24px 20px; }
  .plan li { flex-direction: column; gap: 2px; }
  .plan li span:last-child { text-align: left; }
  .demo-pane { font-size: 12px; min-height: 0; }
  .final-in { padding: 48px 20px; }
  .foot p { margin-left: 0; }
  .brand-sub { display: none; }
}
