:root {
  --bg: #fcfaff;
  --surface: #ffffff;
  --surface-2: #f3eff9;
  --fg: #1d1b20;
  --muted: #5d5868;
  --line: #e4dfec;
  --accent: #6750a4;
  --accent-2: #00897b;
  --on-accent: #ffffff;
  --code-bg: #1e1b24;
  --code-fg: #ece6f5;
  --shadow: 0 1px 2px rgba(29, 27, 32, .06), 0 12px 40px rgba(76, 52, 140, .12);
  --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131118;
    --surface: #1c1a22;
    --surface-2: #242130;
    --fg: #ebe6f2;
    --muted: #b1aabd;
    --line: #34303e;
    --accent: #cfbcff;
    --accent-2: #5fd4c4;
    --on-accent: #22124d;
    --code-bg: #0e0c12;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 40px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 "Google Sans Text", Roboto, "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
code { font: .9em ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace; }
:not(pre) > code { background: var(--surface-2); padding: .1em .35em; border-radius: 5px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); text-align: center; }
h3 { font-size: 1.2rem; }
section { padding: clamp(56px, 8vw, 104px) 20px; max-width: 1200px; margin: 0 auto; }
.section-lede { text-align: center; color: var(--muted); max-width: 680px; margin: 0 auto 28px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { white-space: nowrap; display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--fg); text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: clamp(10px, 2.4vw, 26px); }
.nav-links a:not(.btn) { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav-links a:not(.btn):hover { color: var(--fg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font-weight: 600; text-decoration: none; border: 1px solid transparent; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--line); }
.btn-ghost:hover { box-shadow: none; background: var(--surface-2); }
.btn-small { padding: 7px 16px; font-size: .9rem; }

/* Hero: the headline and the three steps, together above the fold */
.hero {
  padding: clamp(16px, 2.5vw, 32px) clamp(16px, 4vw, 40px) clamp(32px, 5vw, 56px);
  max-width: 1320px; margin: 0 auto;
  text-align: center;
}
.eyebrow {
  display: inline-block; margin: 0 0 10px; padding: 3px 12px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); font-size: .85rem; font-weight: 600;
}
.hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin: 0 auto .25em; max-width: 1000px; text-wrap: balance; }
.accent {
  display: inline-block; white-space: nowrap;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: clamp(1rem, 1.3vw, 1.1rem); color: var(--muted); max-width: 720px; margin: 0 auto 20px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }

.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px);
  text-align: left;
}
.step {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.step:hover { transform: translateY(-3px); }
.shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #111; border-bottom: 1px solid var(--line); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.step-text { display: flex; gap: 14px; padding: 16px 18px 20px; }
.step-text h3 { font-size: 1.08rem; margin-bottom: .3em; }
.step-text p { color: var(--muted); margin: 0; font-size: .93rem; line-height: 1.5; }
.step-num {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 10px; font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--on-accent);
}

.showcase { max-width: 1320px; }
.hero-shot {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  background: var(--surface);
}

/* Get started steps */
.start-steps { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.start-steps .tabs { justify-content: flex-start; }
.start-steps > li { min-width: 0; display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.start-steps h3 { font-size: 1.05rem; margin: 4px 0 .3em; }
.start-steps p { margin: 0 0 .4em; color: var(--muted); }
.start-steps li > div { min-width: 0; flex: 1; }
.start-note { color: var(--muted); font-size: .95rem; text-align: center; }

/* Gallery */
.hero-compact { padding-bottom: 8px; }
.gallery { max-width: 1320px; padding-top: 24px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.gallery-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.gallery-card .shot { position: relative; }
.gallery-card .play {
  position: absolute; inset: auto 12px 12px auto; padding: 6px 14px; border-radius: 999px;
  background: rgba(20, 18, 24, .78); color: #fff; font-weight: 600; font-size: .85rem;
  opacity: 0; transition: opacity .15s ease;
}
.gallery-card .shot:hover .play, .gallery-card .shot:focus-visible .play { opacity: 1; }
.gallery-text { padding: 16px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.gallery-text .kind { margin: 0 0 4px; font-size: .8rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.gallery-text h3 { margin-bottom: .3em; }
.gallery-text .desc { margin: 0 0 16px; color: var(--muted); font-size: .93rem; flex: 1; }
.gallery-links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.gallery-links a:not(.btn) { font-size: .9rem; }
.nav-links a[aria-current="page"] { color: var(--fg); }

/* Video */
.video-frame { max-width: 960px; margin: 32px auto 0; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video-frame iframe, .video-frame video { width: 100%; height: 100%; border: 0; display: block; }

/* Get started */
.start { max-width: 860px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 18px; }
.tabs button {
  font: inherit; font-size: .95rem; cursor: pointer;
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--muted);
}
.tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.tab-panel, .try {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 24px 16px;
}
.try { margin-top: 20px; }
pre {
  position: relative; margin: 10px 0 16px; padding: 16px 72px 16px 18px; overflow-x: auto;
  background: var(--code-bg); color: var(--code-fg); border-radius: 12px; font-size: .88rem; line-height: 1.5;
}
pre code { font-size: inherit; }
/* Commands wrap rather than scroll, so the Copy button never sits over the end of one. */
pre { white-space: pre-wrap; overflow-wrap: anywhere; }
/* The agent prompt is long: the first lines show, the rest behind "Show the whole prompt". Copy
   copies all of it either way. */
pre.prompt.collapsed {
  max-height: 11.5em; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
.prompt-toggle {
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; margin: -6px 0 12px;
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--accent);
}
.placeholder { color: #ffd479; font-style: italic; }
.copy {
  position: absolute; top: 8px; right: 8px; font: 600 .75rem system-ui, sans-serif; cursor: pointer;
  padding: 4px 10px; border-radius: 999px; border: 1px solid #ffffff33; background: #ffffff14; color: var(--code-fg);
}
.plain { padding-left: 1.2em; }
.plain li { margin: 10px 0; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-top: 36px; }
.feature-grid article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature-grid h3 { font-size: 1.05rem; }
.feature-grid p { margin: 0; color: var(--muted); font-size: .95rem; }
.feature-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.feature-shots figure { margin: 0; }
.feature-shots.single { grid-template-columns: 1fr; max-width: 1000px; margin-left: auto; margin-right: auto; }
.feature-shots img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
figcaption { color: var(--muted); font-size: .92rem; margin-top: 10px; text-align: center; }

/* Closing + footer */
.closing { text-align: center; }
.footer { border-top: 1px solid var(--line); padding: 28px 20px 40px; text-align: center; color: var(--muted); font-size: .9rem; }
.footer p { margin: 4px 0; }
.muted { opacity: .75; }

@media (max-width: 820px) {
  .eyebrow { font-size: .78rem; }
  .brand { font-size: .95rem; }
  .nav-links a:not(.btn) { display: none; }
  .steps { grid-template-columns: 1fr; }
  .feature-shots { grid-template-columns: 1fr; }
}

/* The screenshot viewer (site.js). */
.zoomable { cursor: zoom-in; }
.viewer { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: transparent; cursor: zoom-out; }
.viewer::backdrop { background: rgb(10 8 14 / 92%); }
.viewer[open] { display: grid; place-items: center; }
.viewer figure { margin: 0; padding: 16px; cursor: default; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 100%; max-height: 100%; box-sizing: border-box; }
.viewer img { display: block; max-width: min(96vw, 1600px); max-height: calc(100vh - 96px); width: auto; height: auto; border-radius: 12px; box-shadow: 0 20px 60px rgb(0 0 0 / 45%); }
.viewer figcaption { color: #f1edf7; font-size: .9rem; text-align: center; max-width: 72ch; }
