:root {
  color-scheme: light dark;
  --page: #fbfbfe;
  --surface: #ffffff;
  --surface-2: #f3f2fb;
  --text: #17162b;
  --muted: #5d5b74;
  --line: #e6e4f2;
  --accent: #6a4fe0;
  --accent-2: #3d7bf2;
  --accent-soft: #eeeafe;
  --accent-text: #5236c9;
  --grad: linear-gradient(135deg, #8a5cf6 0%, #5b6cf0 55%, #3d8bf2 100%);
  --shadow: 0 1px 2px rgb(23 22 43 / 6%), 0 12px 32px -12px rgb(23 22 43 / 18%);
  --radius: 14px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #0f0e1a;
    --surface: #17162a;
    --surface-2: #1e1c35;
    --text: #ecebf7;
    --muted: #a3a1bd;
    --line: #2b2947;
    --accent: #9b84ff;
    --accent-2: #6aa5ff;
    --accent-soft: #262248;
    --accent-text: #b6a6ff;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 16px 40px -16px rgb(0 0 0 / 60%);
  }
}

:root[data-theme="dark"] {
  --page: #0f0e1a;
  --surface: #17162a;
  --surface-2: #1e1c35;
  --text: #ecebf7;
  --muted: #a3a1bd;
  --line: #2b2947;
  --accent: #9b84ff;
  --accent-2: #6aa5ff;
  --accent-soft: #262248;
  --accent-text: #b6a6ff;
  --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 16px 40px -16px rgb(0 0 0 / 60%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-text); text-underline-offset: 3px; }

kbd {
  font: 0.82em var(--mono);
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface);
  white-space: nowrap;
}

code { font: 0.88em var(--mono); background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--page) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; }
.brand small { font-weight: 500; color: var(--muted); }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current] { color: var(--text); }
.theme-toggle {
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  width: 36px; height: 36px; border-radius: 10px; cursor: pointer; font-size: 16px;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 11px;
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px -8px #6a4fe0aa; }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn-sm { padding: 8px 14px; font-size: 14px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 84px 0 40px; text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 760px; z-index: -1;
  background:
    radial-gradient(closest-side at 30% 50%, #8a5cf633, transparent),
    radial-gradient(closest-side at 70% 40%, #3d8bf22e, transparent);
}
.pill {
  display: inline-flex; gap: 8px; align-items: center;
  padding: 5px 14px; border-radius: 999px; font-size: 14px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
}
.pill b { color: var(--accent-text); }
.hero h1 {
  font-size: clamp(38px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.035em;
  margin: 22px auto 18px; max-width: 14ch;
}
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 640px; margin: 0 auto 30px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.trust { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-top: 22px; color: var(--muted); font-size: 14px; }
.trust span::before { content: "✓ "; color: var(--accent); font-weight: 700; }

/* Browser frame for media */
.frame {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.frame-bar { display: flex; gap: 6px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.frame-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); }
.frame img { width: 100%; background: #fff; }
.hero-shot { max-width: 940px; margin: 24px auto 0; }
/* A fixed stage, so the frame keeps its size between tabs; a demo is shown at most at its own size. */
.hero-stage { height: min(560px, 64vh); display: grid; place-items: center; background: var(--surface-2); }
.hero-stage img, .hero-stage video { width: auto; max-width: 100%; max-height: 100%; }
.hero-stage [hidden] { display: none; }
.frame video { width: 100%; height: auto; display: block; background: #fff; }

/* Tabs on the hero shot */
.tabs { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 56px; }
.tab {
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  padding: 8px 14px; border-radius: 999px; font: 600 14px var(--font); cursor: pointer;
}
.tab[aria-selected="true"] { color: #fff; background: var(--grad); border-color: transparent; }
.hero-shot + .caption, .caption { color: var(--muted); font-size: 14px; margin-top: 14px; text-align: center; }

/* Sections */
section.block { padding: 88px 0; }
section.alt { background: var(--surface-2); border-block: 1px solid var(--line); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; font-weight: 700; color: var(--accent-text); margin: 0 0 10px; }
h2.title { font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 14px; }
.intro { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 0 48px; }
.center { text-align: center; }
.center .intro { margin-inline: auto; }

/* Showcase rows */
.showcase { display: grid; gap: 96px; }
.row { display: grid; grid-template-columns: 1fr 1.35fr; gap: 56px; align-items: center; }
.row:nth-child(even) { grid-template-columns: 1.35fr 1fr; }
.row:nth-child(even) .copy { order: 2; }
.row h3 { font-size: 28px; letter-spacing: -0.02em; margin: 0 0 12px; line-height: 1.2; }
.row p { color: var(--muted); margin: 0 0 16px; }
.row ul { padding: 0; margin: 0 0 20px; list-style: none; display: grid; gap: 8px; }
.row li { padding-left: 26px; position: relative; }
.row li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 4px; background: var(--grad); opacity: 0.9; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent-text); background: var(--accent-soft); padding: 3px 10px; border-radius: 999px; margin-bottom: 14px; }
.more { font-weight: 600; text-decoration: none; }
.more::after { content: " →"; }

/* Feature grid */
.group { margin-top: 48px; }
.group h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.card {
  display: block; padding: 18px 18px 16px; border-radius: 12px; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); transition: border-color 0.15s, transform 0.15s;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card b { display: block; margin-bottom: 4px; }
.card span { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* Two-up cards */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.panel h3 { margin: 0 0 10px; font-size: 21px; }
.panel p, .panel li { color: var(--muted); }
.panel ul { padding-left: 20px; margin: 0; }
.panel .ver { font-weight: 700; color: var(--text); }

/* Steps */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps3 .panel::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--grad); color: #fff; font-weight: 700; margin-bottom: 14px;
}

/* CTA band */
.cta-band { text-align: center; padding: 72px 24px; border-radius: 22px; background: var(--grad); color: #fff; }
.cta-band h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.03em; margin: 0 0 10px; }
.cta-band p { opacity: 0.9; margin: 0 0 26px; font-size: 18px; }
.cta-band .btn { background: #fff; color: #3a2aa8; }

footer { padding: 48px 0 56px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); margin-top: 88px; }
footer .wrap { display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer nav { display: flex; gap: 18px; }

/* Guide page */
.guide-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; padding-top: 40px; }
.toc { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 100px); overflow: auto; padding-bottom: 32px; font-size: 14px; }
.toc input {
  width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: inherit; margin-bottom: 18px;
}
.toc p { text-transform: uppercase; letter-spacing: 0.1em; font-size: 12px; font-weight: 700; color: var(--muted); margin: 20px 0 6px; }
.toc a { display: block; padding: 4px 10px; border-radius: 7px; color: var(--muted); text-decoration: none; border-left: 2px solid transparent; }
.toc a:hover { color: var(--text); background: var(--surface-2); }
.toc a.active { color: var(--accent-text); background: var(--accent-soft); font-weight: 600; }
.guide-head h1 { font-size: 44px; letter-spacing: -0.03em; margin: 0 0 8px; }
.guide-head p { color: var(--muted); font-size: 18px; margin: 0 0 8px; max-width: 640px; }
.feature { padding: 40px 0; border-bottom: 1px solid var(--line); max-width: 760px; }
.feature h2 { font-size: 30px; letter-spacing: -0.02em; margin: 0 0 10px; line-height: 1.2; }
.feature h3 { font-size: 19px; margin: 28px 0 8px; }
.feature .group-label { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--accent-text); text-transform: uppercase; letter-spacing: 0.1em; }
.feature .summary { font-size: 18px; color: var(--muted); }
.feature ul, .feature ol { padding-left: 22px; }
.feature li { margin: 6px 0; }
.feature .hint { display: block; color: var(--muted); font-size: 14px; }
.feature figure.shot { margin: 22px 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.feature figure.shot img, .feature figure.shot video { width: 100%; height: auto; display: block; }
.feature .tip { background: var(--accent-soft); border-radius: 12px; padding: 14px 18px; margin: 20px 0; }
.feature .tip strong:first-child { color: var(--accent-text); margin-right: 6px; }
.feature .switch-note { font-size: 14px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 24px; }
.feature table { border-collapse: collapse; width: 100%; font-size: 15px; }
.feature th, .feature td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.feature [hidden] { display: none; }

@media (max-width: 900px) {
  .nav { display: none; }
  .row, .row:nth-child(even) { grid-template-columns: 1fr; gap: 28px; }
  .row:nth-child(even) .copy { order: 0; }
  .duo, .steps3 { grid-template-columns: 1fr; }
  .guide-layout { grid-template-columns: 1fr; gap: 0; }
  .toc { position: static; max-height: none; }
  .wrap { padding: 0 16px; }
}

@media (max-width: 600px) {
  .topbar .wrap { gap: 10px; }
  .brand { white-space: nowrap; }
  .brand small { display: none; }
  .theme-toggle { margin-left: auto; }
}

/* Pause or play an animation (site.js). */
.has-toggle { position: relative; }
.has-toggle video, .has-toggle img { cursor: pointer; }
.media-toggle {
  position: absolute; right: 12px; bottom: 12px; z-index: 1;
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; background: rgb(23 22 43 / 62%); font-size: 13px; line-height: 1;
  cursor: pointer; opacity: 0; transition: opacity 0.15s;
}
.has-toggle:hover .media-toggle, .media-toggle:focus-visible, .media-toggle[aria-label^="Play"] { opacity: 1; }
.media-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.media-toggle[hidden] { display: none; }
@media (hover: none) { .media-toggle { opacity: 1; } }
