:root {
  --bg: #161826;
  --surface: #232532;
  --surface-2: #1d1f2c;
  --ink: #e9e9ed;
  --muted: #9397ab;
  --line: #3f424d;
  --accent: #9184d9;
  --accent-soft: #d2cefd;
  --accent-deep: #2b2741;
  --warn: #e3b26b;
  --radius: 14px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
    --bg: #f6f5fb;
    --surface: #ffffff;
    --surface-2: #efedf8;
    --ink: #1d1b2e;
    --muted: #5d6075;
    --line: #d9d6e8;
    --accent: #6a5bc4;
    --accent-soft: #4b3fa0;
    --accent-deep: #e6e2fb;
    --warn: #9a6416;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-soft); text-underline-offset: 3px; }
code, pre { font-family: ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace; }
code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 0.1em 0.35em; font-size: 0.9em; }
pre {
  margin: 0;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.55;
}
pre code { background: none; border: 0; padding: 0; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
section { padding: 72px 0 0; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.lead { color: var(--muted); max-width: 62ch; margin: 12px 0 0; font-size: 1.05rem; }
.eyebrow { color: var(--accent-soft); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; margin-bottom: 10px; }

/* header */
header.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; gap: 20px; height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand svg { width: 24px; height: 24px; }
header.top nav { display: flex; gap: 18px; margin-left: auto; align-items: center; }
header.top nav a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
header.top nav a:hover { color: var(--ink); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang a { padding: 3px 10px; font-size: 0.8rem; color: var(--muted); }
.lang a[aria-current='true'] { background: var(--accent-deep); color: var(--accent-soft); }
@media (max-width: 760px) { header.top nav a.hide-sm { display: none; } }

/* hero */
.hero { padding-top: 72px; text-align: center; }
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); max-width: 18ch; margin-inline: auto; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent-soft), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-inline: auto; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; background: var(--surface); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:hover { filter: brightness(1.1); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 22px; }
.badge { font-size: 0.8rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; }
.shot { margin-top: 44px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--accent) 55%, transparent); overflow: hidden; background: var(--surface); }
.shot img { width: 100%; height: auto; }

/* cards */
.grid { display: grid; gap: 16px; margin-top: 32px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card .ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-deep); color: var(--accent-soft); margin-bottom: 14px; font-size: 1.2rem; }

/* split blocks */
.split { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; align-items: center; margin-top: 32px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.split ul { margin: 14px 0 0; padding-left: 1.1em; color: var(--muted); }
.split li { margin: 6px 0; }
.split li strong { color: var(--ink); font-weight: 600; }

/* chat mock */
.chat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 12px; font-size: 0.95rem; }
.msg { padding: 10px 14px; border-radius: 12px; max-width: 92%; }
.msg.me { background: var(--accent-deep); color: var(--accent-soft); justify-self: end; }
.msg.ai { background: var(--surface-2); border: 1px solid var(--line); }
.msg small { display: block; color: var(--muted); margin-top: 6px; font-family: ui-monospace, Consolas, monospace; font-size: 0.78rem; }

/* tools */
.tools { display: grid; gap: 14px; margin-top: 28px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.tools div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.tools h3 { font-size: 0.95rem; margin-bottom: 8px; }
.tools code { display: inline-block; margin: 2px 2px 2px 0; font-size: 0.78rem; }

/* gallery */
.gallery { display: grid; gap: 20px; margin-top: 32px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.gallery figure { margin: 0; }
.gallery figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }
.gallery .shot { margin: 0; box-shadow: none; }

/* steps */
.steps { counter-reset: s; display: grid; gap: 16px; margin-top: 28px; }
.step { display: grid; grid-template-columns: 36px 1fr; gap: 14px; }
.step::before { counter-increment: s; content: counter(s); width: 36px; height: 36px; border-radius: 50%; background: var(--accent-deep); color: var(--accent-soft); display: grid; place-items: center; font-weight: 700; }
.step p { margin: 0 0 8px; color: var(--muted); }
.step strong { color: var(--ink); }

footer { margin-top: 96px; border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }

.step > div { min-width: 0; }
.step p { overflow-wrap: anywhere; }

/* screenshot zoom */
a.zoom { display: block; cursor: zoom-in; }
#lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; color: var(--ink); }
#lightbox::backdrop { background: rgb(5 5 12 / 0.88); }
#lightbox[open] { display: flex; flex-direction: column; align-items: center; gap: 10px; }
#lightbox .lb-stage { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; }
#lightbox img { display: block; max-width: min(86vw, 1280px); max-height: 86vh; width: auto; height: auto; border-radius: 10px; cursor: zoom-out; }
#lightbox .lb-nav { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; flex-shrink: 0; }
#lightbox .lb-nav:hover { border-color: var(--accent); color: var(--accent); }
#lightbox .lb-caption { margin: 0; font-size: 0.9rem; color: var(--muted); text-align: center; }

/* phone screenshots */
.phones { display: grid; gap: 24px; margin-top: 32px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.phones figure { margin: 0; }
.phones figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 10px; }
a.zoom.phone { max-width: 260px; margin: 0 auto; border-radius: 26px; border: 1px solid var(--line); box-shadow: 0 24px 60px -28px color-mix(in srgb, var(--accent) 55%, transparent); overflow: hidden; background: var(--surface); }
a.zoom.phone img { width: 100%; height: auto; display: block; }
.phones figcaption { text-align: center; }
