:root {
  --bg: #08090b;
  --bg-2: #0e1013;
  --panel: #121418;
  --line: #22252b;
  --line-2: #2d3138;
  --fg: #eceef1;
  --fg-2: #a3a9b3;
  --fg-3: #6b717c;
  --accent: #34d399;
  --accent-2: #6ee7b7;
  --blue: #6ea8ff;
  --amber: #f5c451;
  --term: #1c1c1c;
  --radius: 14px;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
code, kbd, pre { font-family: var(--mono); }
:not(pre) > code, kbd {
  font-size: .86em;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .1em .4em;
  color: var(--fg);
}
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

.glow {
  position: absolute; inset: 0 0 auto 0; height: 900px; pointer-events: none; z-index: -1;
  background:
    radial-gradient(600px 340px at 50% -40px, rgba(52, 211, 153, .18), transparent 70%),
    radial-gradient(900px 500px at 50% 0, rgba(110, 168, 255, .08), transparent 70%);
}
.glow::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: .25;
  mask-image: radial-gradient(ellipse 60% 70% at 50% 0, #000 30%, transparent 80%);
}

/* Nav */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  width: min(1160px, 100% - 32px); margin: 0 auto; padding: 22px 0;
}
.logo {
  font: 700 24px/1 var(--sans); letter-spacing: -.04em; text-decoration: none;
}
.logo .dot { color: var(--accent); }
.logo.small { font-size: 18px; }
.nav nav { display: flex; gap: 6px; align-items: center; }
.nav nav a {
  text-decoration: none; color: var(--fg-2); font-size: 14px; padding: 8px 12px; border-radius: 8px;
}
.nav nav a:hover { color: var(--fg); background: var(--panel); }
.nav .gh { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--line); }

/* Hero */
.hero { text-align: center; padding: 72px 0 56px; }
.eyebrow {
  display: inline-flex; gap: 10px; align-items: center; margin: 0 0 28px;
  font-size: 13px; color: var(--fg-2);
  border: 1px solid var(--line); background: rgba(18, 20, 24, .7); padding: 5px 12px 5px 5px; border-radius: 999px;
}
.pill { background: rgba(52, 211, 153, .14); color: var(--accent-2); font: 500 12px var(--mono); padding: 2px 8px; border-radius: 999px; }
h1 {
  font-size: clamp(48px, 9vw, 104px); line-height: .95; letter-spacing: -.055em; font-weight: 600;
  margin: 0 auto; max-width: 12ch;
}
h1 em { color: var(--accent); font-size: 1.08em; }
.lede { max-width: 620px; margin: 28px auto 0; font-size: clamp(17px, 2.2vw, 20px); color: var(--fg-2); line-height: 1.55; }
.lede strong { color: var(--fg); font-weight: 500; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.fine { margin: 18px 0 0; font-size: 13px; color: var(--fg-3); }

.install {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 6px 6px 6px 16px; font-size: 15px; max-width: 100%;
}
.install .prompt { color: var(--accent); font-family: var(--mono); }
.install code { white-space: nowrap; }
.copy {
  font: 500 13px var(--sans); color: var(--fg); background: var(--line); border: 1px solid var(--line-2);
  border-radius: 7px; padding: 7px 12px; cursor: pointer; transition: background .15s;
}
.copy:hover { background: var(--line-2); }
.copy.done { color: #06140e; background: var(--accent); border-color: var(--accent); }
.btn {
  display: inline-flex; align-items: center; text-decoration: none; font-weight: 500; font-size: 15px;
  color: #06140e; background: var(--accent); padding: 12px 20px; border-radius: 10px;
  transition: transform .15s, background .15s;
}
.btn:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line-2); }
.btn.ghost:hover { background: var(--panel); }

/* Source → run demo */
.split-demo {
  display: grid; grid-template-columns: 1fr auto 1.08fr; gap: 0; align-items: stretch;
  margin-top: 24px;
}
.pane { margin: 0; border-radius: var(--radius); overflow: hidden; }
.source {
  background: var(--bg-2); border: 1px solid var(--line);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
}
.source figcaption, .prompt-bar {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line);
  font: 500 13px var(--mono); color: var(--fg-2);
}
.tag { margin-left: auto; font: 500 11px var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--fg-3); }
.source pre { margin: 0; padding: 18px 20px 22px; font-size: 13.5px; line-height: 1.6; overflow-x: auto; color: var(--fg-2); }
.fm { color: var(--fg-3); }
.fm b { color: var(--amber); font-weight: 400; }
.h { color: var(--fg); font-weight: 500; }
.p { color: var(--fg-3); font-style: italic; }
.p i { color: var(--fg-2); }
.fence { color: var(--blue); }
.run { color: var(--accent); font-weight: 500; }
.ph { color: var(--amber); }
.dim { color: var(--fg-3); }

.arrow {
  display: flex; align-items: center; justify-content: center; width: 64px; position: relative;
}
.arrow::before {
  content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 1px;
  background: linear-gradient(90deg, var(--line-2), var(--accent));
}
.arrow::after {
  content: ""; position: absolute; right: 6px; top: calc(50% - 4px); border: 4px solid transparent; border-left: 6px solid var(--accent);
}
.arrow span {
  position: relative; writing-mode: vertical-rl; transform: rotate(180deg);
  font: 500 12px var(--mono); color: var(--accent); background: var(--bg); padding: 10px 2px;
}
.term {
  margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--term);
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .02) inset;
  align-self: start;
}
.term img { width: 100%; }

/* Uses */
.uses { padding: 88px 0 72px; }
.uses ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 32px;
}
.uses li { border-top: 1px solid var(--line); padding-top: 14px; }
.uses strong { display: block; font-weight: 500; font-size: 15px; margin-bottom: 4px; }
.uses span { display: block; color: var(--fg-3); font-size: 14px; line-height: 1.5; }

/* Features */
.feature {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center;
  padding: 96px 0; border-top: 1px solid var(--line);
}
.feature.flip .copy-col { order: 2; }
.num { font: 500 13px var(--mono); color: var(--accent); margin: 0 0 14px; letter-spacing: .02em; }
h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.02; letter-spacing: -.045em; font-weight: 600; margin: 0 0 20px; }
h2 em { color: var(--accent); font-size: 1.06em; }
.copy-col > p, .llm-head > p { color: var(--fg-2); font-size: 17px; margin: 0 0 22px; max-width: 48ch; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 28px; position: relative; color: var(--fg-2); }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; color: var(--accent); background: rgba(52, 211, 153, .12);
}
.snippet {
  margin: 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 18px; font-size: 14px; color: var(--fg-2); overflow-x: auto; max-width: 420px;
}

/* LLM */
.llm { padding: 96px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; }
.prompt-card {
  position: relative; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 0 0 1px rgba(52, 211, 153, .08), 0 40px 100px -40px rgba(52, 211, 153, .25);
}
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.raw { margin-left: auto; color: var(--fg-3); font-size: 12px; text-decoration: none; }
.raw:hover { color: var(--fg); }
.copy.big { background: var(--accent); color: #06140e; border-color: var(--accent); padding: 8px 14px; }
.copy.big:hover { background: var(--accent-2); }
.prompt-body {
  margin: 0; padding: 18px 20px 60px; height: 440px; overflow: auto;
  font-size: 12.5px; line-height: 1.6; color: var(--fg-2); white-space: pre-wrap; word-break: break-word;
}
.fade { position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(transparent, var(--bg-2)); pointer-events: none; }

/* Why */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.why > div { background: var(--bg); padding: 28px 24px; }
.why h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.why p { margin: 0; color: var(--fg-2); font-size: 14.5px; }

/* Final */
.final { text-align: center; padding: 120px 0 100px; }
.final h2 { margin: 0 auto; max-width: 16ch; }
.center { justify-content: center; }

.foot {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center;
  padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--fg-3); font-size: 14px;
}
.foot a { text-decoration: none; color: var(--fg-2); }
.foot a:hover { color: var(--fg); }

/* Responsive */
@media (max-width: 960px) {
  .split-demo { grid-template-columns: 1fr; }
  .arrow { width: auto; height: 64px; }
  .arrow::before { left: 50%; right: auto; top: 8px; bottom: 8px; width: 1px; height: auto; background: linear-gradient(var(--line-2), var(--accent)); }
  .arrow::after { right: auto; left: calc(50% - 4px); top: auto; bottom: 4px; border: 4px solid transparent; border-top: 6px solid var(--accent); }
  .arrow span { writing-mode: horizontal-tb; transform: none; padding: 2px 10px; }
  .feature, .llm { grid-template-columns: 1fr; gap: 36px; padding: 72px 0; }
  .feature.flip .copy-col { order: 0; }
  .why { grid-template-columns: 1fr 1fr; }
  .uses ul { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .nav nav a:not(.gh) { display: none; }
  .hero { padding: 48px 0 40px; }
  .cta { flex-direction: column; align-items: stretch; }
  .install { justify-content: space-between; }
  .btn { justify-content: center; }
  .source pre { font-size: 12.5px; }
  .uses { padding: 64px 0 48px; }
  .uses ul { grid-template-columns: 1fr 1fr; gap: 22px 20px; }
  .why { grid-template-columns: 1fr; }
  .prompt-body { height: 360px; }
  .foot { flex-direction: column; align-items: flex-start; }
}

.install code, .prompt-body code, .snippet code { background: none; border: 0; padding: 0; font-size: inherit; }

/* Plainer pass */
.glow::after { display: none; }
.glow { background: radial-gradient(700px 320px at 50% -60px, rgba(52, 211, 153, .10), transparent 70%); }
a.eyebrow { text-decoration: none; }
a.eyebrow:hover { border-color: var(--line-2); color: var(--fg); }
.fine a { color: var(--fg-2); }
.more { display: inline-block; margin-top: 22px; font-size: 15px; color: var(--accent); text-decoration: none; }
.more:hover { text-decoration: underline; }
.copy-col > .snippet { margin-top: 4px; }
.ticks + .more { margin-top: 26px; }
.why > a { background: var(--bg); padding: 28px 24px; text-decoration: none; transition: background .15s; }
.why > a:hover { background: var(--bg-2); }
.prompt-bar .file { margin-right: auto; }
.prompt-card { box-shadow: none; }
.why code { white-space: nowrap; }
.more-features { padding-top: 8px; }
.why .go { display: block; margin-top: 12px; color: var(--accent); font-size: 13px; }

.foot-brand { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.foot .credit-pill {
  display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--fg-3);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; transition: border-color .15s, color .15s;
}
.foot .credit-pill b { color: var(--fg-2); font-weight: 500; }
.foot .credit-pill:hover { border-color: var(--line-2); color: var(--fg-2); }
.eyebrow { white-space: nowrap; }
.foot .logo { color: var(--fg); }
