:root {
  --bg: #fbf7f0;
  --card: #ffffff;
  --ink: #23262f;
  --ink-2: #5d6170;
  --line: #e9e1d3;
  --coral: #ff8a6b;
  --coral-ink: #c4502f;
  --sky: #7ec8e3;
  --mint: #9ed9b5;
  --butter: #ffd66b;
  --lilac: #b9a7f2;
  --shadow: 0 1px 0 rgba(35, 38, 47, 0.04), 0 8px 24px -12px rgba(35, 38, 47, 0.18);
  --radius: 20px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, canvas { display: block; max-width: 100%; }

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

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px); background: rgba(251, 247, 240, 0.8); border-bottom: 1px solid transparent; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 19px/1 var(--serif); text-decoration: none; letter-spacing: -0.01em; }
.brand svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a { text-decoration: none; font-size: 14px; color: var(--ink-2); padding: 8px 12px; border-radius: 999px; }
.nav-links a:hover { background: #fff; color: var(--ink); }

/* Buttons & chips */
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1 var(--sans); padding: 13px 20px; border-radius: 999px; text-decoration: none; border: 1.5px solid var(--ink); background: var(--ink); color: #fff; box-shadow: 0 3px 0 rgba(35, 38, 47, 0.25); transition: transform 0.15s, box-shadow 0.15s; cursor: pointer; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 rgba(35, 38, 47, 0.25); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(35, 38, 47, 0.25); }
.btn.ghost { background: #fff; color: var(--ink); }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 500 13px/1 var(--sans); padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; align-items: center; padding: 40px 0 24px; }
.hero h1 { font: 600 clamp(40px, 6vw, 68px)/1.02 var(--serif); letter-spacing: -0.025em; margin: 18px 0 18px; font-variation-settings: "SOFT" 100, "WONK" 0; }
.hero h1 em { font-style: italic; color: var(--coral-ink); }
.hero p.lede { font-size: 19px; color: var(--ink-2); max-width: 30em; margin: 0 0 28px; }
.hero .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.stage { position: relative; aspect-ratio: 1.15; width: 100%; }
.stage canvas { width: 100%; height: 100%; }
.stage .caption { position: absolute; right: 8px; bottom: 4px; font-size: 12px; color: var(--ink-2); }

/* Speech bubble over the scene */
.bubble { position: absolute; left: 4%; top: 6%; max-width: 260px; background: #fff; border: 1.5px solid var(--ink); border-radius: 18px 18px 18px 4px; padding: 12px 14px; font-size: 14px; line-height: 1.45; box-shadow: 0 3px 0 rgba(35, 38, 47, 0.2); }
.bubble b { color: var(--coral-ink); }
.bubble small { display: block; color: var(--ink-2); margin-top: 4px; font-size: 12px; }

/* Sections */
section { padding: 72px 0; }
.eyebrow { font: 600 12px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral-ink); }
h2 { font: 600 clamp(28px, 4vw, 40px)/1.1 var(--serif); letter-spacing: -0.02em; margin: 12px 0 14px; }
.sub { color: var(--ink-2); font-size: 17px; max-width: 40em; margin: 0; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { font: 600 20px/1.2 var(--serif); margin: 14px 0 8px; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.blob { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; }

/* Tool list */
.tools { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 32px; }
.tool { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.tool code { font: 600 13px/1 var(--mono); background: var(--bg); border: 1px solid var(--line); padding: 6px 8px; border-radius: 8px; white-space: nowrap; }
.tool p { margin: 0; font-size: 15px; }
.tool q { display: block; color: var(--ink-2); font-size: 14px; margin-top: 4px; quotes: "“" "”"; }

/* Code / connect */
.connect { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 32px; }
pre { margin: 10px 0 0; background: var(--ink); color: #f3efe7; font: 13px/1.6 var(--mono); padding: 16px 18px; border-radius: 14px; overflow-x: auto; position: relative; }
pre .c { color: #9aa0ae; }
.copy { position: absolute; top: 8px; right: 8px; font: 500 12px/1 var(--sans); background: rgba(255, 255, 255, 0.12); color: #fff; border: 0; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.copy:hover { background: rgba(255, 255, 255, 0.22); }

/* Notice */
.notice { display: flex; gap: 12px; align-items: flex-start; background: #fff7e0; border: 1px solid #f3e1a6; border-radius: 16px; padding: 14px 16px; font-size: 14px; color: #6b5a1f; }

/* Demo */
.demo { display: grid; grid-template-columns: 320px 1fr; gap: 18px; margin-top: 32px; }
.demo label { display: block; font: 600 13px/1 var(--sans); color: var(--ink-2); margin: 14px 0 6px; }
.demo select { width: 100%; font: 15px var(--sans); padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.demo .btn { margin-top: 18px; width: 100%; justify-content: center; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { position: relative; padding: 0 0 18px 40px; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 26px; height: 26px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--ink); display: grid; place-items: center; font: 600 12px/1 var(--sans); }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 26px; bottom: 2px; border-left: 2px dashed var(--coral); }
.steps li:last-child::before { background: var(--coral); color: #fff; border-color: var(--coral); }
.total { font: 600 34px/1 var(--serif); margin-bottom: 18px; }
.total span { font: 500 15px var(--sans); color: var(--ink-2); }
.muted { color: var(--ink-2); font-size: 14px; }

.prompts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.prompts .chip { font-size: 14px; padding: 10px 14px; color: var(--ink); }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--ink-2); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; }
  .stage { order: -1; aspect-ratio: 1.2; }
  .grid3, .tools, .connect, .demo { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
  .bubble { max-width: 220px; font-size: 13px; }
  .nav-links a.hide-sm { display: none; }
}
