@font-face {
  font-family: "Geist";
  src: url("https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-sans/Geist-Variable.woff2")
    format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-mono/GeistMono-Variable.woff2")
    format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --background: #fff;
  --surface: #f5f5f5;
  --inline-code: #ebebeb;
  --foreground: #1d1d1f;
  --muted: #666;
  --link-rule: #888;
  --glow: #fafafa;
  --syntax: #5c45a0;
  --string: #16734d;
  --selection-background: #1d1d1f;
  --selection-foreground: #fff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #000;
    --surface: #111;
    --inline-code: #1f1f1f;
    --foreground: #ededed;
    --muted: #888;
    --link-rule: #666;
    --glow: #0a0a0a;
    --syntax: #d8b4fe;
    --string: #86efac;
    --selection-background: #ededed;
    --selection-foreground: #000;
  }
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
}

body {
  margin: 0;
  color: var(--foreground);
  background:
    radial-gradient(circle at 32% -20%, var(--glow) 0, transparent 34rem),
    var(--background);
  font-family: "Geist", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.005em;
  text-rendering: optimizeLegibility;
  -webkit-user-select: text;
  user-select: text;
}

.page {
  width: min(760px, calc(100% - 80px));
  margin: 0 0 0 40px;
  padding: 24px 0 80px;
}

p,
h1,
h2,
pre,
dl {
  margin: 0;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 112px;
  font-size: 13px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--foreground);
  text-decoration: none;
}

.vercel-mark {
  font-size: 16px;
  line-height: 1;
}

.brand-divider,
.product-name {
  color: var(--muted);
}

nav {
  display: flex;
  gap: 18px;
}

section + section {
  margin-top: 56px;
}

h2 {
  margin-bottom: 16px;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.06em;
}

p {
  max-width: 640px;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(36px, 6vw, 52px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.intro > p {
  max-width: 580px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
}

.actions a {
  font-size: 13px;
  font-weight: 500;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 40px 0 0;
  padding: 0;
  border-top: 1px solid var(--foreground);
  border-bottom: 1px solid var(--foreground);
  color: var(--muted);
  list-style: none;
}

.benefits li {
  min-height: 126px;
  padding: 22px 20px 24px;
}

.benefits li + li {
  border-left: 1px solid var(--foreground);
}

.benefits strong {
  display: block;
  margin-bottom: 9px;
  color: var(--foreground);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}

.benefits li > span {
  display: block;
  font-size: 13px;
  line-height: 1.45;
}

a {
  color: var(--foreground);
  text-decoration-line: underline;
  text-decoration-color: var(--link-rule);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:focus-visible {
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 1px solid var(--foreground);
  outline-offset: 3px;
}

code,
pre {
  font-family: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
}

p code,
dd code {
  padding: 2px 4px;
  border-radius: 4px;
  background: var(--inline-code);
}

pre {
  max-width: 760px;
  overflow-x: auto;
  padding: 13px 16px;
  border-radius: 6px;
  background: var(--surface);
  line-height: 1.5;
  tab-size: 2;
}

.agent-demo {
  --demo-duration: 5.2s;

  overflow: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sandbox-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  color: var(--muted);
  transform-origin: center;
}

.sandbox-icon svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 10px;
  color: var(--muted);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10px;
}

.demo-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--foreground);
}

.demo-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 10px;
}

.demo-terminal,
.demo-browser {
  min-height: 224px;
  border-radius: 3px;
}

.demo-terminal {
  padding: 16px;
  overflow: hidden;
  color: #ededed;
  background: #111;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10px;
}

.demo-label {
  margin-bottom: 28px;
  color: #737373;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.demo-line {
  max-width: none;
  margin-top: 16px;
  white-space: nowrap;
}

.demo-prompt {
  margin-right: 5px;
  color: #737373;
}

.demo-browser {
  position: relative;
  overflow: hidden;
  color: #1d1d1f;
  background: #fff;
}

.demo-browser-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 32px;
  padding: 0 10px;
  color: #777;
  background: #ebebeb;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 9px;
}

.browser-pixel {
  color: #1d1d1f;
  font-size: 7px;
}

.demo-url {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-page {
  position: relative;
  min-height: 192px;
  overflow: hidden;
  padding: 24px;
  background-color: #fff;
  background-image:
    linear-gradient(#f3f3f3 1px, transparent 1px),
    linear-gradient(90deg, #f3f3f3 1px, transparent 1px);
  background-size: 8px 8px;
}

.demo-kicker {
  margin-bottom: 16px;
  color: #888;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 8px;
  letter-spacing: 0.1em;
}

.demo-title {
  margin-top: 14px;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.demo-pixel-mark {
  width: 5px;
  height: 5px;
  background: #1d1d1f;
  box-shadow:
    6px 0 #1d1d1f,
    12px 0 #1d1d1f,
    0 6px #1d1d1f,
    12px 6px #1d1d1f,
    0 12px #1d1d1f,
    6px 12px #1d1d1f,
    12px 12px #1d1d1f;
}

.demo-target {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: 16px;
  padding: 0 14px;
  border-radius: 2px;
  color: #fff;
  background: #1d1d1f;
  font-size: 10px;
  font-weight: 500;
  transform-origin: center;
}

.demo-ref {
  position: absolute;
  top: -10px;
  right: -15px;
  padding: 2px 5px;
  border-radius: 2px;
  color: #fff;
  background: #0070f3;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 8px;
  font-weight: 600;
}

.demo-pixel-burst {
  position: absolute;
  top: 50%;
  right: 126px;
  width: 4px;
  height: 4px;
}

.demo-pixel-burst span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #000;
}

.demo-pixel-burst span:nth-child(even) {
  background: #fff;
  box-shadow: 0 0 0 1px #000;
}

.demo-pixel-burst span:nth-child(1) {
  --pixel-x: -18px;
  --pixel-y: -14px;
}

.demo-pixel-burst span:nth-child(2) {
  --pixel-x: 10px;
  --pixel-y: -20px;
}

.demo-pixel-burst span:nth-child(3) {
  --pixel-x: 18px;
  --pixel-y: 2px;
}

.demo-pixel-burst span:nth-child(4) {
  --pixel-x: 6px;
  --pixel-y: 18px;
}

.demo-pixel-burst span:nth-child(5) {
  --pixel-x: -16px;
  --pixel-y: 14px;
}

.demo-pixel-burst span:nth-child(6) {
  --pixel-x: -26px;
  --pixel-y: 0px;
}

.demo-pixel-burst span:nth-child(7) {
  --pixel-x: -8px;
  --pixel-y: -25px;
}

.demo-pixel-burst span:nth-child(8) {
  --pixel-x: 24px;
  --pixel-y: -10px;
}

.demo-pixel-burst span:nth-child(9) {
  --pixel-x: 24px;
  --pixel-y: 16px;
}

.demo-pixel-burst span:nth-child(10) {
  --pixel-x: -8px;
  --pixel-y: 27px;
}

.demo-pixel-burst span:nth-child(11) {
  --pixel-x: -34px;
  --pixel-y: -20px;
}

.demo-pixel-burst span:nth-child(12) {
  --pixel-x: -32px;
  --pixel-y: 22px;
}

.demo-pixel-burst span:nth-child(13) {
  --pixel-x: 34px;
  --pixel-y: -24px;
}

.demo-pixel-burst span:nth-child(14) {
  --pixel-x: 38px;
  --pixel-y: 6px;
}

.demo-pixel-burst span:nth-child(15) {
  --pixel-x: 34px;
  --pixel-y: 28px;
}

.demo-pixel-burst span:nth-child(16) {
  --pixel-x: 14px;
  --pixel-y: -36px;
}

.demo-pixel-burst span:nth-child(17) {
  --pixel-x: -10px;
  --pixel-y: -38px;
}

.demo-pixel-burst span:nth-child(18) {
  --pixel-x: -40px;
  --pixel-y: 3px;
}

.demo-pixel-burst span:nth-child(19) {
  --pixel-x: -22px;
  --pixel-y: 34px;
}

.demo-pixel-burst span:nth-child(20) {
  --pixel-x: 12px;
  --pixel-y: 38px;
}

.demo-pixel-burst span:nth-child(21) {
  --pixel-x: 0px;
  --pixel-y: -14px;
}

.demo-pixel-burst span:nth-child(22) {
  --pixel-x: 14px;
  --pixel-y: 10px;
}

.demo-pixel-burst span:nth-child(23) {
  --pixel-x: -10px;
  --pixel-y: 8px;
}

.demo-pixel-burst span:nth-child(24) {
  --pixel-x: 0px;
  --pixel-y: 25px;
}

.demo-capture {
  position: absolute;
  inset: 32px 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 10px;
  opacity: 0;
  box-shadow: inset 0 0 0 1px rgb(0 112 243 / 0%);
  pointer-events: none;
}

.demo-capture::before {
  position: absolute;
  top: 8px;
  right: 8px;
  left: 8px;
  height: 1px;
  background: rgb(0 112 243 / 70%);
  content: "";
  opacity: 0;
}

.demo-capture span {
  padding: 3px 5px;
  color: #fff;
  background: #1d1d1f;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 8px;
  letter-spacing: 0.06em;
  opacity: 0;
  transform: translateY(-3px);
}

.agent-demo.is-animated .demo-line,
.agent-demo.is-animated .demo-page-content,
.agent-demo.is-animated .demo-ref,
.agent-demo.is-animated .demo-pixel-burst span {
  opacity: 0;
}

.agent-demo.is-running .demo-line-open {
  animation: demo-open var(--demo-duration) ease infinite;
}

.agent-demo.is-running .demo-page-content {
  animation: demo-page var(--demo-duration) ease infinite;
}

.agent-demo.is-running .demo-ref {
  animation: demo-ref var(--demo-duration) ease infinite;
}

.agent-demo.is-running .demo-line-click {
  animation: demo-click-line var(--demo-duration) ease infinite;
}

.agent-demo.is-running .demo-target {
  animation: demo-target var(--demo-duration) ease infinite;
}

.agent-demo.is-running .demo-pixel-burst span {
  animation: demo-pixel-burst var(--demo-duration) ease-out infinite;
}

.agent-demo.is-running .demo-line-screenshot {
  animation: demo-screenshot-line var(--demo-duration) ease infinite;
}

.agent-demo.is-running .demo-capture {
  animation: demo-capture var(--demo-duration) ease infinite;
}

.agent-demo.is-running .demo-capture::before {
  animation: demo-capture-scan var(--demo-duration) ease-in-out infinite;
}

.agent-demo.is-running .demo-capture span {
  animation: demo-capture-label var(--demo-duration) ease infinite;
}

.agent-demo.is-running .sandbox-icon {
  animation: demo-sandbox-command var(--demo-duration) ease infinite;
}

.note {
  margin-top: 12px;
  color: var(--muted);
}

.token-keyword,
.token-number {
  color: var(--syntax);
}

.token-string {
  color: var(--string);
}

.api-list {
  display: grid;
  gap: 18px;
}

.api-list > div {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 1.25fr;
  gap: 24px;
}

dt,
dd {
  margin: 0;
}

dt {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 650;
}

.api-list dt code {
  color: var(--foreground);
  font-weight: 650;
}

dd {
  color: var(--muted);
}

footer {
  margin-top: 108px;
  color: var(--muted);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
}

::selection {
  color: var(--selection-foreground);
  background: var(--selection-background);
}

@keyframes demo-open {
  0%,
  4%,
  100% {
    opacity: 0;
    transform: translateY(3px);
  }

  10%,
  94% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes demo-sandbox-command {
  0%,
  8%,
  16%,
  38%,
  48%,
  64%,
  74%,
  100% {
    color: var(--muted);
    opacity: 0.65;
    transform: scale(1);
  }

  10%,
  40%,
  66% {
    color: var(--foreground);
    opacity: 1;
    transform: scale(0.82);
  }

  13%,
  43%,
  69% {
    color: var(--foreground);
    opacity: 1;
    transform: scale(1.12);
  }
}

@keyframes demo-page {
  0%,
  12%,
  100% {
    opacity: 0;
    transform: translateY(4px);
  }

  18%,
  94% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes demo-ref {
  0%,
  24%,
  100% {
    opacity: 0;
    transform: translateY(3px) scale(0.96);
  }

  29%,
  94% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes demo-click-line {
  0%,
  29%,
  100% {
    opacity: 0;
    transform: translateY(3px);
  }

  35%,
  94% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes demo-target {
  0%,
  40%,
  49%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgb(0 112 243 / 0%);
  }

  44% {
    transform: scale(0.95);
    box-shadow: 0 0 0 2px rgb(0 112 243 / 45%);
  }
}

@keyframes demo-pixel-burst {
  0%,
  43%,
  100% {
    opacity: 0;
    transform: translate(0, 0) scale(0.5);
  }

  47% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }

  55% {
    opacity: 0.8;
    transform: translate(var(--pixel-x), var(--pixel-y)) scale(1);
  }

  60% {
    opacity: 0;
    transform: translate(var(--pixel-x), var(--pixel-y)) scale(0.5);
  }
}

@keyframes demo-screenshot-line {
  0%,
  57%,
  100% {
    opacity: 0;
    transform: translateY(3px);
  }

  63%,
  94% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes demo-capture {
  0%,
  66%,
  100% {
    opacity: 0;
    box-shadow: inset 0 0 0 1px rgb(0 112 243 / 0%);
  }

  69%,
  87% {
    opacity: 1;
    box-shadow: inset 0 0 0 1px rgb(0 112 243 / 38%);
  }

  91% {
    opacity: 0;
    box-shadow: inset 0 0 0 1px rgb(0 112 243 / 0%);
  }
}

@keyframes demo-capture-scan {
  0%,
  67%,
  88%,
  100% {
    opacity: 0;
    top: 8px;
  }

  70% {
    opacity: 0.8;
    top: 8px;
  }

  83% {
    opacity: 0.35;
    top: calc(100% - 9px);
  }
}

@keyframes demo-capture-label {
  0%,
  76%,
  92%,
  100% {
    opacity: 0;
    transform: translateY(-3px);
  }

  81%,
  88% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .page {
    width: calc(100% - 36px);
    margin: 0 18px;
    padding: 18px 0 56px;
  }

  .masthead {
    align-items: flex-start;
    margin-bottom: 80px;
  }

  .brand-divider,
  .product-name {
    display: none;
  }

  h1 {
    font-size: clamp(26px, 8.4vw, 38px);
  }

  .benefits {
    grid-template-columns: 1fr;
  }

  .benefits li {
    min-height: 0;
    padding: 18px 0 20px;
  }

  .benefits li + li {
    border-top: 1px solid var(--foreground);
    border-left: 0;
  }

  .demo-header > span:last-child {
    display: none;
  }

  .demo-stage {
    grid-template-columns: 1fr;
  }

  .demo-terminal {
    min-height: 190px;
  }

  .demo-label {
    margin-bottom: 24px;
  }

  .api-list > div {
    display: block;
  }

  pre {
    padding: 16px;
  }

  dd {
    margin-top: 4px;
  }

  footer {
    margin-top: 76px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agent-demo.is-animated .demo-line,
  .agent-demo.is-animated .demo-page-content,
  .agent-demo.is-animated .demo-ref,
  .agent-demo.is-animated .demo-pixel-burst span {
    opacity: 1;
    transform: none;
  }

  .agent-demo.is-animated * {
    animation: none !important;
  }
}
