/* Vibe landing page.
   Palette, radii and easing are the Nexus token canvas values (`@agent-nexus/apps-ui`
   tokens.css, dark set) so the page sits in the product's own colour world. The TYPE
   SCALE is deliberately NOT the kit's: that ramp closes at 22px for dense app chrome,
   and a landing page needs display sizes. Everything here is self-contained — the page
   renders with no JavaScript at all; main.ts only adds copy buttons and scroll-spy. */

:root {
  /* Nexus dark neutrals — warm-biased, never pure grey */
  --bg: #121110;
  --bg-raised: #1f1e1b;
  --bg-sunken: #0d0c0b;
  --fg: #eceae6;
  --fg-muted: #a29e96;
  --fg-faint: #6e6a63;
  --border: #2c2b27;
  --border-strong: #45433d;

  --accent: #818cf8;
  --accent-deep: #4f46e5;
  --accent-soft: #232438;
  --ok: #4ade80;

  --radius-s: 6px;
  --radius-m: 9px;
  --radius-l: 14px;
  --radius-full: 9999px;

  --ease-settle: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 120ms;
  --t-med: 200ms;

  --font-sans: Inter, -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --shell: 1140px;
  --gutter: 24px;
}

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

html {
  scroll-behavior: smooth;
  /* the sticky header must not cover an anchored heading */
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* one soft wash behind the top of the page — the only decoration on it */
body::before {
  content: "";
  position: fixed;
  inset: -20vh 0 auto 0;
  height: 70vh;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60% 55% at 22% 0%, rgb(129 140 248 / 0.16), transparent 70%),
    radial-gradient(45% 50% at 85% 5%, rgb(79 70 229 / 0.1), transparent 70%);
}

main,
.topbar,
.footer {
  position: relative;
  z-index: 1;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: 0.1em 0.4em;
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-s);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 50;
  background: var(--accent);
  color: #14131f;
  padding: 10px 16px;
  font-weight: 600;
  border-radius: 0 0 var(--radius-m) 0;
}
.skip:focus {
  left: 0;
}

/* ───────────────────────────── top bar ───────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(18 17 16 / 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--fg-muted);
}
.wordmark b {
  color: var(--fg);
  font-weight: 650;
}
.wordmark-sep {
  color: var(--fg-faint);
  margin-inline: 5px;
}
.wordmark-dot {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-full);
  background: var(--accent);
  box-shadow: 0 0 0 4px rgb(129 140 248 / 0.16);
}

.topnav {
  display: flex;
  gap: 4px;
  font-size: 14px;
}
.topnav a {
  color: var(--fg-muted);
  padding: 7px 11px;
  border-radius: var(--radius-full);
  transition: color var(--t-fast) var(--ease-settle), background var(--t-fast) var(--ease-settle);
}
.topnav a:hover {
  color: var(--fg);
  background: var(--bg-raised);
}
.topnav a[aria-current="true"] {
  color: var(--fg);
  background: var(--accent-soft);
}

/* ───────────────────────────── hero ───────────────────────────── */

.hero {
  padding: clamp(56px, 9vw, 112px) 0 clamp(40px, 6vw, 72px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.eyebrow-new {
  display: inline-block;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgb(129 140 248 / 0.28);
  border-radius: var(--radius-full);
  padding: 4px 11px;
  letter-spacing: 0.1em;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 600;
}
h1 em {
  font-style: normal;
  color: var(--accent);
}

.lede {
  margin: 22px 0 0;
  max-width: 40ch;
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--fg-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform var(--t-fast) var(--ease-settle), background var(--t-med) var(--ease-settle),
    border-color var(--t-med) var(--ease-settle);
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--accent);
  color: #14131f;
}
.btn-primary:hover {
  background: #9aa3fa;
}
.btn-ghost {
  border-color: var(--border-strong);
  color: var(--fg);
}
.btn-ghost:hover {
  background: var(--bg-raised);
  border-color: var(--fg-faint);
}

/* terminal */

.term {
  margin: 0;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.45);
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 14px;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
}
.term-dots {
  display: inline-flex;
  gap: 6px;
}
.term-dots i {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-full);
  background: var(--border-strong);
}
.term-title {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-faint);
  letter-spacing: 0.02em;
}

.copy {
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-muted);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  cursor: pointer;
  transition: color var(--t-fast) var(--ease-settle), border-color var(--t-fast) var(--ease-settle);
}
.copy:hover {
  color: var(--fg);
  border-color: var(--fg-faint);
}
.copy[data-done="true"] {
  color: var(--ok);
  border-color: rgb(74 222 128 / 0.4);
}

.term pre {
  margin: 0;
  padding: 20px 18px;
  overflow-x: auto;
}
.term code {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.85;
  background: none;
  border: 0;
  padding: 0;
  white-space: pre;
  color: var(--fg);
}
.c-cmd {
  color: var(--accent);
  font-weight: 600;
}
.c-flag {
  color: #f0abfc;
}
.c-arg {
  color: var(--fg-muted);
}
.c-note {
  color: var(--fg-faint);
}
.c-ok {
  color: var(--ok);
}

/* hero stats */

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(44px, 6vw, 72px) 0 0;
  padding: 0;
  list-style: none;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
}
.hero-stats li {
  background: var(--bg);
  padding: 22px 24px;
}
.hero-stats strong {
  display: block;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.hero-stats span {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--fg-muted);
}

/* ───────────────────────────── bands ───────────────────────────── */

.band {
  padding: clamp(64px, 9vw, 120px) 0;
  border-top: 1px solid var(--border);
}

.band-feature {
  background:
    radial-gradient(70% 90% at 50% 0%, rgb(129 140 248 / 0.07), transparent 70%),
    var(--bg);
}

.band-head {
  max-width: 68ch;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.band-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 600;
}
.band-lede {
  margin: 16px 0 0;
  font-size: 17px;
  color: var(--fg-muted);
}

/* steps */

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
}
.steps li {
  background: var(--bg);
  display: grid;
  grid-template-columns: 72px minmax(0, 24ch) minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: 26px 28px;
  transition: background var(--t-med) var(--ease-settle);
}
.steps li:hover {
  background: var(--bg-raised);
}
.step-n {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}
.steps h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.steps p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 15px;
}

/* domains */

.domain-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.domain-steps {
  list-style: none;
  counter-reset: dstep;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
}
.domain-steps li {
  counter-increment: dstep;
  position: relative;
  padding-left: 46px;
}
.domain-steps li::before {
  content: counter(dstep);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  border: 1px solid rgb(129 140 248 / 0.3);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
}
.domain-steps h3 {
  margin: 3px 0 8px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.domain-steps p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 15px;
}

.pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.pill {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px 11px;
}
.pill + .pill::before {
  content: "→";
  color: var(--fg-faint);
  margin-right: 9px;
}
.pill-ok {
  color: var(--ok);
  border-color: rgb(74 222 128 / 0.35);
  background: rgb(74 222 128 / 0.08);
}

/* cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 24px;
  transition: border-color var(--t-med) var(--ease-settle), transform var(--t-med) var(--ease-settle);
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--fg-muted);
}
.card code {
  white-space: normal;
}

/* notes */

.notes {
  display: grid;
  gap: 16px;
}
.note {
  display: grid;
  grid-template-columns: minmax(0, 32ch) minmax(0, 1fr);
  gap: 32px;
  padding: 26px 28px;
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius-m);
  background: var(--bg-raised);
}
.note h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.note p {
  margin: 0;
  font-size: 15px;
  color: var(--fg-muted);
}
.note em {
  font-style: normal;
  color: var(--fg);
  font-weight: 600;
}

/* compare */

.band-why {
  background: var(--bg-sunken);
}

.compare {
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--bg);
}
.compare-head,
.compare-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.compare-head {
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
}
.compare-head span {
  padding: 13px 24px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.compare-head span:last-child,
.compare-row span:last-child {
  border-left: 1px solid var(--border);
}
.compare-head span:last-child {
  color: var(--accent);
}
.compare-row + .compare-row {
  border-top: 1px solid var(--border);
}
.compare-row span {
  padding: 17px 24px;
  font-size: 15px;
  color: var(--fg-muted);
}
.compare-row span:last-child {
  color: var(--fg);
}

.closer {
  margin: 36px 0 0;
  max-width: 62ch;
  font-size: 17px;
  color: var(--fg-muted);
}

/* ───────────────────────────── footer ───────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.footer-mark {
  font-size: 14px;
  color: var(--fg-muted);
}
.footer-mark b {
  color: var(--fg);
  font-weight: 650;
}
.footer-note {
  font-size: 14px;
  color: var(--fg-faint);
}

/* ───────────────────────────── reveal ───────────────────────────── */

/* JS adds .reveal only when IntersectionObserver exists, so a no-JS page is
   never left with hidden content. */
.reveal {
  opacity: 0;
  transform: translateY(12px);
}
.reveal[data-seen="true"] {
  opacity: 1;
  transform: none;
  transition: opacity 420ms var(--ease-settle), transform 420ms var(--ease-settle);
}

/* ───────────────────────────── responsive ───────────────────────────── */

@media (max-width: 1000px) {
  .hero-grid,
  .domain-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps li {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .steps h3 {
    grid-column: 2;
  }
  .steps p {
    grid-column: 2;
    margin-top: 6px;
  }
  .note {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
}

@media (max-width: 760px) {
  .topnav {
    display: none;
  }
  .hero-stats {
    grid-template-columns: minmax(0, 1fr);
  }
  .compare-head span:last-child,
  .compare-row span:last-child {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
  .compare-head,
  .compare-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* The page is authored dark. A light-preference visitor gets the same surface
   rather than a half-translated one — stated here so the absence is a decision. */
