:root {
  color-scheme: light;
  --background: #f5f5ef;
  --surface: #fcfcf8;
  --surface-strong: #ffffff;
  --ink: #171a16;
  --muted: #656a61;
  --line: #d9dbd2;
  --accent: #196b45;
  --accent-soft: #dcecdf;
  --accent-ink: #10462f;
  --code-bg: #151a16;
  --code-line: #2d352f;
  --code-ink: #e8eee9;
  --shadow: 0 24px 70px rgba(37, 46, 39, 0.10);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #10120f;
  --surface: #151814;
  --surface-strong: #1a1e19;
  --ink: #f0f2eb;
  --muted: #a4aa9f;
  --line: #30362e;
  --accent: #6ecb94;
  --accent-soft: #183929;
  --accent-ink: #a5e3bc;
  --code-bg: #090b09;
  --code-line: #252b26;
  --code-ink: #e8eee9;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }

.shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  background: color-mix(in srgb, var(--background) 88%, transparent);
  backdrop-filter: blur(16px);
}

.nav-shell { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.06rem; font-weight: 720; letter-spacing: -0.03em; }
.brand-mark { width: 30px; height: 30px; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: 0.9rem; font-weight: 560; }
.nav-links > a { transition: color 150ms ease; }
.nav-links > a:hover, .nav-links > a:focus-visible { color: var(--ink); }

.theme-picker { display: none; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.js .theme-picker { display: flex; }
.theme-picker button { display: grid; width: 28px; height: 26px; padding: 0; place-items: center; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.theme-picker button:hover, .theme-picker button:focus-visible { color: var(--ink); outline: none; }
.theme-picker button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-ink); }
.theme-picker svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

main { padding-top: 72px; }
.hero { min-height: 720px; padding-block: 92px 82px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(430px, 0.92fr); align-items: center; gap: 78px; }
.eyebrow, .kicker { margin: 0 0 18px; color: var(--accent); font-size: 0.75rem; font-weight: 740; letter-spacing: 0.11em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow > span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
h1, h2, h3, p { text-wrap: pretty; }
h1 { margin: 0; max-width: 680px; font-size: clamp(2.8rem, 5.3vw, 4.65rem); font-weight: 630; line-height: 0.99; letter-spacing: -0.06em; }
h1 em { color: var(--accent); font-style: normal; }
.hero-lead { max-width: 655px; margin: 28px 0 0; color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.14rem); line-height: 1.72; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.button { display: inline-flex; min-height: 48px; padding: 0 20px; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 9px; font-size: 0.94rem; font-weight: 680; transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: var(--background); }
.button-primary:hover { background: var(--accent); color: #fff; }
.button-secondary { border-color: var(--line); background: var(--surface); }
.button-secondary:hover { border-color: var(--muted); }
.development-note { display: flex; align-items: center; gap: 8px; margin: 19px 0 0; color: var(--muted); font-size: 0.78rem; }
.development-note span { width: 6px; height: 6px; border-radius: 50%; background: #d79424; }

.workflow-window { overflow: hidden; border: 1px solid var(--code-line); border-radius: 16px; background: var(--code-bg); color: var(--code-ink); box-shadow: var(--shadow); transform: rotate(1deg); }
.window-bar { min-height: 50px; padding: 0 16px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; border-bottom: 1px solid var(--code-line); color: #8f9b91; font: 0.68rem/1 "SFMono-Regular", Consolas, monospace; }
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #424b43; }
.window-status { justify-self: end; display: flex; align-items: center; gap: 6px; color: #80ba95; }
.window-status i { width: 5px; height: 5px; border-radius: 50%; background: #64cc8a; box-shadow: 0 0 8px #64cc8a; }
.window-body { padding: 20px; }
.tool-call { display: flex; gap: 11px; align-items: flex-start; padding-bottom: 18px; }
.tool-call .prompt { color: #68d195; font: 1rem/1.35 monospace; }
.tool-call strong { display: block; font: 0.78rem/1.35 monospace; }
.tool-call small { display: block; margin-top: 4px; color: #8f9b91; font-size: 0.72rem; line-height: 1.45; }
.window-body pre { overflow-x: auto; margin: 0; padding: 17px; border: 1px solid var(--code-line); border-radius: 10px; background: #0e110e; color: var(--code-ink); font-size: 0.72rem; line-height: 1.65; }
.code-muted { color: #89948a; }.code-keyword { color: #86bfff; }.code-string { color: #d7b875; }
.deployment-track { margin: 20px 0 0; padding: 0; list-style: none; }
.deployment-track li { position: relative; min-height: 48px; display: grid; grid-template-columns: 29px 1fr auto; align-items: start; gap: 9px; color: #8f9b91; }
.deployment-track li:not(:last-child)::after { content: ""; position: absolute; top: 22px; bottom: -2px; left: 10px; width: 1px; background: #384139; }
.deployment-track li > span { z-index: 1; display: grid; width: 21px; height: 21px; place-items: center; border: 1px solid #445047; border-radius: 50%; background: var(--code-bg); font: 0.52rem monospace; }
.deployment-track strong, .deployment-track small { display: block; }
.deployment-track strong { color: #dfe7e1; font-size: 0.75rem; line-height: 1.3; }
.deployment-track small { margin-top: 2px; font-size: 0.65rem; }
.deployment-track li > i { font: normal 0.62rem monospace; color: #69cd8f; }
.deployment-track .live > i { padding: 3px 6px; border-radius: 999px; background: #183929; text-transform: uppercase; }

.section { padding-block: 100px; border-top: 1px solid var(--line); scroll-margin-top: 72px; }
.section-heading { max-width: 780px; margin-bottom: 46px; }
.section h2, .closing h2 { margin: 0; font-size: clamp(2rem, 3.7vw, 3.15rem); font-weight: 610; line-height: 1.08; letter-spacing: -0.045em; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-card { min-height: 310px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.step-number { color: var(--accent); font: 0.75rem/1 monospace; }
.step-label { margin: 0 0 7px; color: var(--accent); font-size: 0.7rem; font-weight: 720; letter-spacing: 0.08em; text-transform: uppercase; }
.step-card h3 { margin: 0; font-size: 1.2rem; letter-spacing: -0.025em; }
.step-card p:last-child { margin: 10px 0 0; color: var(--muted); font-size: 0.89rem; line-height: 1.65; }
.step-card code { padding: 0.1em 0.28em; border-radius: 4px; background: var(--accent-soft); color: var(--accent-ink); font-size: 0.8em; }

.split-heading { max-width: none; display: grid; grid-template-columns: 1fr 0.72fr; gap: 90px; align-items: end; }
.split-heading > p { margin: 0; color: var(--muted); font-size: 0.96rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature-card { min-height: 245px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 42%, transparent); }
.feature-icon { display: grid; width: 39px; height: 39px; margin-bottom: 42px; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--accent); font: 0.65rem/1 monospace; font-weight: 720; }
.feature-card h3 { margin: 0 0 14px; font-size: 1.02rem; letter-spacing: -0.02em; }
.feature-card ul { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.83rem; line-height: 1.8; }
.feature-card li::before { content: "✓"; margin-right: 8px; color: var(--accent); font-weight: 720; }

.closing { margin-block: 24px 0; padding: 62px; display: flex; align-items: end; justify-content: space-between; gap: 48px; border-radius: 18px; background: var(--ink); color: var(--background); }
.closing > div { max-width: 760px; }
.closing .kicker { color: color-mix(in srgb, var(--background) 68%, transparent); }
.button-inverse { flex: none; border-color: color-mix(in srgb, var(--background) 30%, transparent); color: var(--background); }
.button-inverse:hover { background: var(--background); color: var(--ink); }
footer { padding-block: 32px 44px; color: var(--muted); font-size: 0.78rem; }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; padding-top: 72px; gap: 56px; }
  .hero-copy { max-width: 760px; }
  .workflow-window { width: min(100%, 580px); margin-inline: auto; transform: none; }
  .steps { grid-template-columns: 1fr; }
  .step-card { min-height: 235px; }
  .split-heading { grid-template-columns: 1fr; gap: 24px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .closing { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 32px, 1120px); }
  .nav-shell { min-height: 64px; }
  main { padding-top: 64px; }
  .nav-links { gap: 12px; }
  .nav-links > a { display: none; }
  .nav-links > a:last-of-type { display: inline; }
  .hero { min-height: auto; padding-block: 64px 70px; }
  h1 { font-size: clamp(2.55rem, 13vw, 3.5rem); }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .workflow-window { margin-inline: 0; }
  .window-bar { grid-template-columns: 1fr auto; }
  .window-dots { display: none; }
  .window-body { padding: 14px; }
  .window-body pre { font-size: 0.62rem; }
  .section { padding-block: 72px; scroll-margin-top: 64px; }
  .section-heading { margin-bottom: 34px; }
  .step-card { min-height: 255px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 220px; }
  .closing { width: 100%; margin-top: 0; padding: 52px 24px; border-radius: 0; }
  .closing .button { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
