:root {
  --bg: #fbfaf8;
  --fg: #111;
  --muted: #6b6965;
  --line: #e9e6e1;
  --card: #fff;
  --dark: #111;
  --dot-off: #ebe8e3;
  --blue: #3b82f6;
  --red: #e5484d;
  --amber: #f5a524;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(var(--dot-off) 1px, transparent 1.4px);
  background-size: 22px 22px;
  color: var(--fg);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
}

code,
kbd,
pre {
  font-family: var(--mono);
}

p code {
  font-size: 0.88em;
  background: #f1efeb;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
}

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 6px;
  margin: 0 1px;
  font-size: 0.85em;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
}

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 22px;
  font-size: 14px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--fg);
}

.nav-links .nav-gh {
  color: var(--bg);
  background: var(--dark);
  padding: 4px 12px;
  border-radius: 999px;
}

.nav-links .nav-gh:hover {
  color: var(--bg);
  opacity: 0.85;
}

/* Hero */

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 24px 40px;
  text-align: center;
}

.wordmark {
  display: block;
  width: min(380px, 80vw);
  margin: 0 auto 36px;
}

.wordmark .off {
  fill: var(--dot-off);
}

.wordmark .lit {
  fill: var(--fg);
}

.wordmark .lit circle {
  animation: light 0.5s ease-out both;
}

@keyframes light {
  from {
    fill: var(--dot-off);
  }
}

.wordmark:hover .lit circle {
  animation: shimmer 1.2s ease-in-out;
}

@keyframes shimmer {
  50% {
    fill: var(--blue);
  }
}

.tagline {
  margin: 0 auto;
  max-width: 720px;
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.tagline a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-decoration-color: var(--line);
}

.tagline a:hover {
  text-decoration-color: currentColor;
}

.sub {
  max-width: 560px;
  margin: 20px auto 36px;
  color: var(--muted);
  font-size: 18px;
  text-wrap: balance;
}

.install {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  padding: 8px 8px 8px 18px;
  background: var(--dark);
  color: #eee;
  border-radius: 12px;
  font-size: 14.5px;
  box-shadow: 0 8px 24px -12px rgb(0 0 0 / 0.4);
}

.install code {
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.install .prompt {
  color: #666;
  font-family: var(--mono);
}

.copy {
  flex: none;
  padding: 6px 12px;
  border: 0;
  border-radius: 8px;
  background: #2a2a2a;
  color: #eee;
  font: 500 13px var(--sans);
  cursor: pointer;
  transition: background 0.15s;
}

.copy:hover {
  background: #3a3a3a;
}

.copy.done {
  background: #1f6f43;
}

.needs {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}

.needs code {
  font-size: 12.5px;
}

/* Harness switch */

.switch {
  display: inline-flex;
  margin: 64px 0 20px;
  padding: 3px;
  background: #efece7;
  border-radius: 999px;
}

.switch button {
  padding: 6px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 500 14px var(--mono);
  cursor: pointer;
  transition: all 0.15s;
}

.switch button[aria-selected='true'] {
  background: var(--card);
  color: var(--fg);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.12);
}

/* Window frame */

.window {
  margin: 0;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.6) inset,
    0 30px 80px -30px rgb(0 0 0 / 0.35);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: #f6f4f1;
}

.window-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #e0ddd8;
}

.window-bar i:nth-child(1) {
  background: #ff5f57;
}
.window-bar i:nth-child(2) {
  background: #febc2e;
}
.window-bar i:nth-child(3) {
  background: #28c840;
}

.window-bar span {
  margin-left: auto;
  margin-right: auto;
  padding-right: 50px;
  color: var(--muted);
  font: 12px var(--mono);
}

.shot {
  display: block;
  width: 100%;
  height: auto;
}

/* Features */

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

.features {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding: 80px 0 24px;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: center;
  gap: 48px;
  padding: 48px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.feature.reverse .copytext {
  order: 2;
}

.kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font: 500 12.5px var(--mono);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.copytext p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 17px;
}

.media {
  display: flex;
  justify-content: center;
}

.media .shot {
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 20px 50px -28px rgb(0 0 0 / 0.35);
}

.media img[data-src='jump'],
.media img[data-src='resources'] {
  width: auto;
  max-width: 100%;
  max-height: 440px;
}

.dots {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.dots li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot.blue {
  background: var(--blue);
}
.dot.red {
  background: var(--red);
}
.dot.amber {
  background: var(--amber);
}

/* Agents */

.agents {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: center;
  gap: 48px;
  margin: 0 0 24px;
  padding: 48px;
  background: var(--dark);
  color: #eee;
  border-radius: 20px;
}

.agents .kicker,
.agents .copytext p {
  color: #9a9893;
}

.agents p code {
  background: #222;
  border-color: #333;
  color: #eee;
}

.more {
  color: #eee;
  font-weight: 500;
  text-decoration: none;
}

.more:hover {
  text-decoration: underline;
}

.term {
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid #262626;
  border-radius: 12px;
}

.term .window-bar {
  background: #161616;
  border-color: #262626;
}

.term pre {
  margin: 0;
  padding: 20px 22px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.7;
}

.term .c {
  color: #6b6b6b;
}
.term .p {
  color: #4ade80;
}
.term .o {
  color: #93c5fd;
}

/* CTA + footer */

.cta {
  padding: 96px 0 72px;
  text-align: center;
}

.cta h2 {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 28px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 24px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  color: var(--fg);
}

@media (max-width: 820px) {
  .nav-links a:not(.nav-gh) {
    display: none;
  }

  .hero {
    padding-top: 40px;
  }

  .feature,
  .agents {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 28px;
  }

  .feature.reverse .copytext {
    order: 0;
  }

  .install {
    font-size: 12.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wordmark .lit circle {
    animation: none;
  }
}
