/* ───────── scrollbars ─────────
 * Thin, transparent, modern. Firefox uses the standard
 * scrollbar-width/color pair; WebKit/Blink (Safari, Chrome, Edge,
 * Tauri's webview) gets the ::-webkit-scrollbar overrides. */
* {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--fg-soft) 55%, transparent) transparent;
}
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  background: transparent;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--fg-soft) 45%, transparent);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--fg-soft) 75%, transparent);
  background-clip: padding-box;
}
*::-webkit-scrollbar-corner {
  background: transparent;
}

/* ───────── tokens ───────── */
:root {
  --bg: #ffffff;
  --bg-alt: #f7f8fb;
  --bg-elev: #ffffff;
  --bg-code: #0f1115;
  --fg: #0b0d12;
  --fg-muted: #4b5566;
  --fg-soft: #6b7385;
  --border: #e6e8ee;
  --border-strong: #d6d9e1;
  --accent: #6c5ce7;
  --accent-2: #00b8d4;
  --accent-grad: linear-gradient(135deg, #6c5ce7 0%, #00b8d4 100%);
  --danger: #e74c3c;
  --ok: #1ec28b;
  --shadow-sm: 0 1px 2px rgba(15, 17, 21, 0.04), 0 1px 1px rgba(15, 17, 21, 0.03);
  --shadow-md: 0 8px 24px rgba(15, 17, 21, 0.06), 0 2px 6px rgba(15, 17, 21, 0.04);
  --shadow-lg: 0 30px 60px rgba(15, 17, 21, 0.10), 0 6px 16px rgba(15, 17, 21, 0.05);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --max: 1180px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

html[data-theme="dark"] {
  --bg: #0a0b10;
  --bg-alt: #0f1118;
  --bg-elev: #131623;
  --bg-code: #0a0c12;
  --fg: #e8ebf3;
  --fg-muted: #aeb4c2;
  --fg-soft: #7d8597;
  --border: #1f2333;
  --border-strong: #2a2f44;
  --accent: #8b7cff;
  --accent-2: #38d6f5;
  --accent-grad: linear-gradient(135deg, #8b7cff 0%, #38d6f5 100%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 40px 80px rgba(0, 0, 0, 0.5), 0 8px 22px rgba(0, 0, 0, 0.35);
}

/* ───────── reset ───────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { overflow-x: hidden; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Marketing site — disable text selection site-wide for an app-like
   * feel. Inputs/textareas opt back in below. */
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
}
input, textarea, [contenteditable="true"],
pre, code, kbd {
  user-select: text;
  -webkit-user-select: text;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color .15s ease, opacity .15s ease; }
a:hover { color: var(--accent); }
button { font: inherit; cursor: pointer; }
code, pre, kbd { font-family: var(--font-mono); }
kbd {
  display: inline-block; padding: 1px 6px; border-radius: 6px;
  background: var(--bg-alt); border: 1px solid var(--border);
  font-size: 12px; line-height: 1.5;
}
.skip-link {
  position: absolute; left: -1000px; top: 0;
  padding: 8px 12px; background: var(--accent); color: #fff; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; z-index: 1000; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ───────── header ───────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-row { display: flex; align-items: center; gap: 24px; padding: 14px 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; font-size: 17px; }
.brand img { border-radius: 8px; }
.nav { display: flex; gap: 22px; margin-left: 20px; flex: 1; }
.nav a { color: var(--fg-muted); font-weight: 500; font-size: 14.5px; }
.nav a:hover { color: var(--fg); }
.header-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  background: transparent; color: var(--fg-muted); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px; display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.icon-btn:hover { background: var(--bg-alt); color: var(--fg); border-color: var(--border-strong); }
.icon-btn .i-sun { display: none; }
.icon-btn .i-moon { display: block; }
html[data-theme="dark"] .icon-btn .i-sun { display: block; }
html[data-theme="dark"] .icon-btn .i-moon { display: none; }

/* ───────── buttons ───────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: transform .12s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.btn-primary {
  color: #fff;
  background: var(--accent-grad);
  box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--accent) 80%, transparent);
}
.btn-primary:hover { color: #fff; box-shadow: 0 12px 28px -8px color-mix(in srgb, var(--accent) 90%, transparent); }
.btn-ghost {
  background: var(--bg-elev);
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--bg-alt); }

/* ───────── hero ───────── */
.hero {
  position: relative;
  padding: 80px 0 70px;
  overflow: hidden;
}
.bg-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--border) 60%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--border) 60%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 70%);
  opacity: 0.45;
}
.bg-glow {
  position: absolute; top: -200px; left: 50%;
  width: 900px; height: 600px; pointer-events: none;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--accent) 30%, transparent) 0%, transparent 60%);
  filter: blur(40px);
  transform: translate3d(-50%, 0, 0);
  animation: hero-glow-drift 30s ease-in-out infinite;
  will-change: transform;
}

/* Slow drifting "cloud" blobs across the hero. */
.bg-cloud {
  position: absolute; pointer-events: none;
  border-radius: 50%;
  background: var(--accent-grad);
  filter: blur(60px);
  opacity: 0.28;
  will-change: transform;
}
.bg-cloud.c1 { top: 8%;  left: -6%;  width: 380px; height: 380px; animation: cloud-drift-a 32s ease-in-out infinite; }
.bg-cloud.c2 { top: 40%; right: -8%; width: 460px; height: 460px; opacity: 0.22; animation: cloud-drift-b 40s ease-in-out infinite; animation-delay: -6s; }
.bg-cloud.c3 { top: 60%; left: 30%;  width: 320px; height: 320px; opacity: 0.18; animation: cloud-drift-a 46s ease-in-out infinite; animation-delay: -14s; }
html[data-theme="dark"] .bg-cloud { opacity: 0.35; }
html[data-theme="dark"] .bg-cloud.c2 { opacity: 0.28; }
html[data-theme="dark"] .bg-cloud.c3 { opacity: 0.22; }

@keyframes hero-glow-drift {
  0%   { transform: translate3d(-50%, 0, 0) scale(1); }
  25%  { transform: translate3d(-46%, 30px, 0) scale(1.06); }
  50%  { transform: translate3d(-54%, -20px, 0) scale(0.96); }
  75%  { transform: translate3d(-48%, 40px, 0) scale(1.08); }
  100% { transform: translate3d(-50%, 0, 0) scale(1); }
}
@keyframes cloud-drift-a {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  25%  { transform: translate3d(8vw, 6vh, 0) scale(1.08); }
  50%  { transform: translate3d(14vw, -4vh, 0) scale(0.94); }
  75%  { transform: translate3d(4vw, 10vh, 0) scale(1.1); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes cloud-drift-b {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  25%  { transform: translate3d(-10vw, -8vh, 0) scale(1.06); }
  50%  { transform: translate3d(-4vw, 6vh, 0) scale(0.92); }
  75%  { transform: translate3d(-14vw, -2vh, 0) scale(1.12); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center;
}
.hero-copy { min-width: 0; }
.hero-copy h1 {
  font-size: clamp(32px, 5.2vw, 64px);
  line-height: 1.05; letter-spacing: -0.025em;
  margin: 18px 0 18px; font-weight: 800;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.grad {
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent); font-weight: 600; font-size: 13px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.eyebrow.alt {
  background: var(--bg-alt); color: var(--fg-muted); border-color: var(--border);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent);
}
.lede { font-size: 18px; color: var(--fg-muted); max-width: 580px; margin: 0 0 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-bullets { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--fg-muted); font-size: 14.5px; }

/* hero mock window */
.hero-art { position: relative; min-width: 0; max-width: 100%; }
.mock-window {
  border-radius: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
  max-width: 100%;
}
.mock-titlebar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; background: var(--bg-alt); border-bottom: 1px solid var(--border);
}
.tl-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.tl-dot.red { background: #ff5f56; }
.tl-dot.yel { background: #ffbd2e; }
.tl-dot.grn { background: #27c93f; }
.tl-title { margin-left: 10px; font-size: 12px; color: var(--fg-soft); font-family: var(--font-mono); }
.mock-body { display: grid; grid-template-columns: 180px 1fr; min-height: 360px; }
.mock-sidebar { background: var(--bg-alt); border-right: 1px solid var(--border); padding: 14px 10px; font-size: 13px; color: var(--fg-muted); }
.mock-tree-head { font-size: 11px; letter-spacing: .08em; color: var(--fg-soft); padding: 4px 6px 10px; }
.mock-tree-item { padding: 5px 8px; border-radius: 6px; cursor: default; }
.mock-tree-item.sub { padding-left: 18px; }
.mock-tree-item.active { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--fg); }
.mock-main { padding: 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mock-nlbar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  font-size: 13.5px;
}
.spark { color: var(--accent); }
.nl-text { color: var(--fg); flex: 1; font-style: italic; }
.mock-btn {
  padding: 5px 10px; border-radius: 7px;
  background: var(--accent-grad); color: #fff; font-size: 12px; font-weight: 600;
}
.mock-code, .code, .prompt-card pre, .dl pre {
  background: var(--bg-code); color: #d6def0;
  padding: 14px 16px; border-radius: 10px;
  font-size: 13px; line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
  border: 1px solid color-mix(in srgb, #fff 6%, transparent);
  margin: 0;
  min-width: 0;
  max-width: 100%;
}
.mock-code code, .code code, .prompt-card pre code, .dl pre code {
  background: transparent; padding: 0; border: 0; border-radius: 0;
  font-size: inherit; color: inherit; display: block;
}
html[data-theme="light"] .mock-code,
html[data-theme="light"] .code,
html[data-theme="light"] .prompt-card pre,
html[data-theme="light"] .dl pre {
  background: #0f1115; color: #d6def0;
}
.kw { color: #b48cff; }
.fn { color: #38d6f5; }
.str { color: #f1c386; }
.mock-grid { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; font-size: 13px; }
.mg-row { display: grid; grid-template-columns: 1fr 120px; padding: 7px 12px; border-bottom: 1px solid var(--border); }
.mg-row:last-child { border-bottom: 0; }
.mg-head { background: var(--bg-alt); color: var(--fg-soft); font-weight: 600; }

/* Hero mock — agent conversation variant. Mirrors the in-app chat
 * panel: user bubble right-aligned, agent bubble with an embedded
 * approval card that waits on the human for a destructive write. */
.mock-chat {
  gap: 6px;
  padding: 12px 14px 10px;
  min-height: 400px;
}
.mock-chat-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--fg-soft);
  padding-bottom: 6px; border-bottom: 1px solid var(--border);
}
.bot-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 5px;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  font-size: 12px;
}
.chip-small {
  margin-left: auto;
  padding: 2px 8px; border-radius: 999px;
  background: var(--bg-alt); border: 1px solid var(--border);
  font-size: 11px; color: var(--fg-soft);
}
.bubble {
  max-width: 86%;
  padding: 10px 10px; border-radius: 15px;
  font-size: 12px; line-height: 1.45;
}
.bubble p { margin: 0; }
.bubble code {
  background: color-mix(in srgb, #fff 8%, transparent);
  border-radius: 4px; padding: 0 4px;
  font-family: var(--font-mono); font-size: 11px;
}
.bubble.user {
  align-self: flex-end;
  background: var(--accent-grad); color: #fff;
  border-bottom-right-radius: 4px;
}
.bubble.user code { background: rgba(255,255,255,0.18); color: #fff; }
.bubble.agent {
  align-self: flex-start;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--fg);
  border-bottom-left-radius: 4px;
  display: flex; flex-direction: column; gap: 10px;
}
.approval-card {
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  overflow: hidden;
}
.ac-head {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  font-size: 11.5px; color: var(--fg-soft);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.ac-kind {
  padding: 1px 7px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 28%, transparent);
  color: var(--fg); font-weight: 600; font-size: 10.5px;
  letter-spacing: .04em;
}
.ac-target { font-family: var(--font-mono); color: var(--fg); }
.ac-rows { margin-left: auto; }
.ac-sql {
  margin: 0; padding: 18px 10px;
  font-family: var(--font-mono); font-size: 11px; line-height: 1.5;
  color: #d6def0; background: var(--bg-code);
  overflow-x: auto; white-space: pre;
}
.ac-actions {
  display: flex; justify-content: flex-end; gap: 6px;
  padding: 8px 10px;
  background: color-mix(in srgb, var(--accent) 4%, transparent);
}
.ac-btn {
  padding: 3px 9px; border-radius: 6px;
  font-size: 11px; font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-elev); color: var(--fg);
  cursor: pointer;
}
.ac-btn.approve {
  background: var(--accent-grad); color: #fff; border-color: transparent;
}

/* DELETE approval has a destructive red tint while pending so the
 * stakes are obvious; flips to green once the visitor approves so
 * the "done" state still reads as success. UPDATE keeps the neutral
 * brand tint (same as INSERT). */
.approval-card[data-kind="delete"] {
  border-color: color-mix(in srgb, #ff5f56 55%, transparent);
  background: color-mix(in srgb, #ff5f56 9%, transparent);
}
.approval-card[data-kind="delete"] .ac-head {
  border-bottom-color: color-mix(in srgb, #ff5f56 30%, transparent);
}
.approval-card[data-kind="delete"] .ac-kind {
  background: color-mix(in srgb, #ff5f56 30%, transparent);
}
.approval-card[data-kind="delete"][data-state="approved"] {
  border-color: color-mix(in srgb, #27c93f 60%, transparent);
  background: color-mix(in srgb, #27c93f 10%, transparent);
}
.approval-card[data-kind="delete"][data-state="approved"] .ac-head {
  border-bottom-color: color-mix(in srgb, #27c93f 35%, transparent);
}
.approval-card[data-kind="delete"][data-state="approved"] .ac-kind {
  background: color-mix(in srgb, #27c93f 30%, transparent);
}
/* Generic fade-in helper for the hero chat: elements start hidden +
 * lifted, then the `.in` class transitions them into place. Elements
 * without `.in` are also collapsed out of the layout so the typing
 * indicator and result bubble don't reserve empty rows in the chat
 * flex column. */
.fade-anim {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
}
.fade-anim:not(.in):not(.pre-in) {
  display: none !important;
}
/* `.pre-in` is set by the show() helper for one frame so the element
 * is in the layout (and at its initial opacity/transform state) before
 * `.in` is added — gives the transition a starting frame to animate
 * from instead of jumping straight to the final state. */
.fade-anim.pre-in {
  display: revert;
}
.fade-anim.in {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Approval card outcome states — locks the buttons + tints the card
 * border so the chosen action is visible. */
.approval-card[data-state="approved"] { border-color: color-mix(in srgb, #27c93f 55%, transparent); }
.approval-card[data-state="rejected"] { border-color: color-mix(in srgb, #ff5f56 55%, transparent); }
.approval-card[data-state="approved"] .ac-btn,
.approval-card[data-state="rejected"] .ac-btn {
  opacity: .55; cursor: default; pointer-events: none;
}
.ac-status {
  margin-left: auto;
  font-size: 10.5px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase;
}
.approval-card[data-state="approved"] .ac-status { color: #27c93f; }
.approval-card[data-state="rejected"] .ac-status { color: #ff5f56; }

.typing {
  display: inline-flex; gap: 4px; padding: 6px 10px;
  align-self: flex-start; border-radius: 12px;
  background: var(--bg-alt); border: 1px solid var(--border);
}
.typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 70%, transparent);
  animation: typing-dot 1.2s ease-in-out infinite;
}
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing-dot {
  0%, 60%, 100% { opacity: .25; transform: translateY(0); }
  30%           { opacity: 1;    transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
  .typing span { animation: none; }
}

/* ───────── strip ───────── */
.strip { padding: 28px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.strip-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--fg-soft); font-size: 14px; }
.chip {
  padding: 5px 12px; border-radius: 999px;
  background: var(--bg-elev); border: 1px solid var(--border); color: var(--fg);
  font-size: 13px; font-weight: 500;
}

/* ───────── sections ───────── */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 780px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 {
  font-size: clamp(28px, 3.5vw, 44px); line-height: 1.1; letter-spacing: -0.02em;
  margin: 0 0 14px; font-weight: 800;
}
.section-head .sub { color: var(--fg-muted); font-size: 17px; margin: 0; }
.section-head .sub code { background: var(--bg-elev); padding: 2px 6px; border-radius: 5px; border: 1px solid var(--border); font-size: 13.5px; }

/* ───────── ai grid ───────── */
.ai-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.prompt-stack { display: grid; gap: 18px; min-width: 0; }
.prompt-stack .prompt-card { min-width: 0; }
.prompt-card pre { min-width: 0; }
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.prompt-card .prompt-head { display: flex; align-items: center; gap: 8px; color: var(--fg-soft); font-size: 13px; margin-bottom: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.prompt-box {
  padding: 18px; border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px dashed color-mix(in srgb, var(--accent) 40%, transparent);
  font-size: 17px; color: var(--fg); font-style: italic;
}
.prompt-box p { margin: 0; }
.arrow { text-align: center; font-size: 22px; color: var(--accent); padding: 10px 0; }

.ai-bullets { display: grid; gap: 16px; }
.ai-bullet { padding: 18px; border-radius: 12px; background: var(--bg-elev); border: 1px solid var(--border); }
.ai-bullet h3 { margin: 8px 0 4px; font-size: 16.5px; }
.ai-bullet p { margin: 0; color: var(--fg-muted); font-size: 14.5px; }
.ai-bullet code { background: var(--bg-alt); padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }
.ai-icon { font-size: 22px; }

/* ───────── features ───────── */
.features-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.feature h3 { margin: 10px 0 6px; font-size: 16.5px; }
.feature p { margin: 0; color: var(--fg-muted); font-size: 14.5px; }
.f-icon { font-size: 26px; }

/* ───────── screenshots ───────── */
.shots-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.shot { margin: 0; }
.shot-placeholder {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background:
    repeating-linear-gradient(45deg, color-mix(in srgb, var(--accent) 8%, transparent) 0 12px, transparent 12px 24px),
    var(--bg-alt);
  border: 1px dashed var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-soft); font-size: 14px; text-align: center;
}
.shot-placeholder::after {
  content: attr(data-label) "  ·  screenshot coming soon";
  padding: 6px 12px; border-radius: 999px;
  background: var(--bg-elev); border: 1px solid var(--border); font-weight: 500;
}
.shot figcaption { color: var(--fg-muted); font-size: 14px; margin-top: 10px; text-align: center; }
.shot-frame {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-alt);
  box-shadow: var(--shadow-md);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  aspect-ratio: 16 / 9;
}
.shot-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.shot-frame:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 50%, var(--border-strong)); }

/* ───────── lightbox ───────── */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: none;
  align-items: center; justify-content: center;
  padding: 4vh 4vw;
  background: rgba(5, 6, 10, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .18s ease;
}
.lightbox.is-open { display: flex; opacity: 1; }
.lightbox-figure {
  margin: 0;
  max-width: min(1200px, 92vw);
  max-height: 92vh;
  display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  width: auto; height: auto;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, #fff 12%, transparent);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  object-fit: contain;
  background: #0a0c12;
}
.lightbox-cap {
  color: #d6def0; font-size: 14px; text-align: center;
  max-width: 80ch; line-height: 1.5;
}
.lightbox-close {
  position: absolute; top: 18px; right: 22px;
  width: 40px; height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 26px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease, transform .12s ease;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.18); transform: scale(1.05); }
.shot-frame { cursor: zoom-in; }

/* ───────── download ───────── */
.download-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.dl { display: flex; flex-direction: column; gap: 6px; }
.dl h3 { margin: 4px 0 0; font-size: 20px; }
.dl-sub { margin: 0 0 14px; color: var(--fg-soft); font-size: 14px; }
.dl-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.dl-os {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-grad);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--accent) 70%, transparent);
}
.dl-os svg { display: block; }
.dl-notes { font-size: 14px; color: var(--fg-muted); border-top: 1px dashed var(--border); padding-top: 12px; margin-top: 8px; }
.dl-notes summary { cursor: pointer; font-weight: 600; color: var(--fg); list-style: none; }
.dl-notes summary::-webkit-details-marker { display: none; }
.dl-notes summary::before { content: "▸ "; color: var(--accent); }
.dl-notes[open] summary::before { content: "▾ "; }
.dl-notes ol, .dl-notes ul { padding-left: 18px; }
.dl-notes ul li { margin-bottom: 4px; }
.dl-notes a { color: var(--accent); font-weight: 500; }
.dl-notes pre { font-size: 12.5px; padding: 10px 12px; margin: 8px 0; max-width: 100%; }
.dl-cmd {
  position: relative;
  font-size: 12.5px;
  padding: 12px 14px;
  margin: 4px 0 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow-x: auto;
  white-space: pre;
}
.dl-cmd code {
  background: transparent;
  border: none;
  padding: 0;
  color: var(--fg);
  font-size: 12.5px;
  white-space: pre;
}
.dl-cmd-wrap { position: relative; }
.dl-cmd.has-copy { padding-right: 44px; }
.dl-cmd-copy {
  position: absolute;
  top: 6px;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-alt);
  color: var(--fg-muted);
  opacity: 0;
  transition: opacity .15s ease, color .15s ease, background .15s ease, border-color .15s ease;
}
.dl-cmd-wrap:hover .dl-cmd-copy,
.dl-cmd-copy:focus-visible,
.dl-cmd-copy.is-copied { opacity: 1; }
.dl-cmd-copy svg { width: 15px; height: 15px; }
.dl-cmd-copy:hover { color: var(--fg); border-color: var(--accent); }
.dl-cmd-copy.is-copied { color: var(--accent); border-color: var(--accent); }
.dl-notes p { margin: 10px 0 4px; }
.dl-notes ol li { margin-bottom: 6px; }
.dl-foot { text-align: center; color: var(--fg-muted); margin-top: 24px; font-size: 14.5px; }
.dl-foot a { color: var(--accent); font-weight: 600; }

/* ───────── faq ───────── */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 18px; transition: border-color .15s ease;
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 12px 0 0; color: var(--fg-muted); }
.faq code { background: var(--bg-alt); padding: 1px 5px; border-radius: 4px; font-size: 13px; }

/* ───────── cta ───────── */
.cta-section { padding: 60px 0 100px; }
.cta-card {
  text-align: center;
  padding: 48px 24px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at top, color-mix(in srgb, var(--accent) 18%, transparent) 0%, transparent 60%),
    var(--bg-elev);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
}
.cta-card h2 { font-size: clamp(26px, 3.5vw, 38px); margin: 0 0 10px; letter-spacing: -0.02em; }
.cta-card p { color: var(--fg-muted); margin: 0 0 22px; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ───────── footer ───────── */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; background: var(--bg-alt); }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-nav a { color: var(--fg-muted); font-size: 14px; }
.foot-copy { margin: 0; color: var(--fg-soft); font-size: 13.5px; }
.foot-copy a { color: var(--accent); font-weight: 600; }

/* ───────── responsive ───────── */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { order: -1; max-width: 600px; margin: 0 auto; width: 100%; }
  .ai-grid { grid-template-columns: minmax(0, 1fr); }
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download-grid { grid-template-columns: minmax(0, 1fr); }
  .shots-grid { grid-template-columns: minmax(0, 1fr); }
  .nav { display: none; }
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
  .header-actions .btn { display: none; }
  .hero { padding: 50px 0 40px; }
  .section { padding: 60px 0; }
  .mock-body { grid-template-columns: 1fr; min-height: 0; }
  .mock-sidebar { display: none; }
  .container { padding: 10px 16px; }
  .hero-copy h1 { font-size: clamp(26px, 8vw, 40px); }
  .lede { font-size: 16px; }
  .mock-code { font-size: 11.5px; padding: 12px; }
  .mock-window { transform: none; }
  .mock-nlbar { font-size: 12px; padding: 8px 10px; flex-wrap: wrap; }
  .nl-text { flex: 1 1 100%; }
  .bubble { font-size: 12.5px; }
  .ac-sql { font-size: 11px; padding: 8px 10px; }
}

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