/*
 * Homepage only. The legal pages and docs keep styles.css, which is tuned for
 * long-form reading; this one is tuned for a product page: light-first, wide
 * product shots, tight headings, short copy blocks.
 *
 * System fonts only: the CSP in _headers allows no third-party font hosts.
 */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f7fb;
  --bg-tint: #f3f0ff;
  --card: #ffffff;
  --line: #e7e7ef;
  --line-strong: #d6d6e2;

  --ink: #0e0e1a;
  --ink-2: #3b3b52;
  --ink-3: #6b6b82;

  --brand: #6d28d9;
  --brand-2: #7c3aed;
  --brand-soft: #ede9fe;
  --teal: #0891b2;
  --green: #059669;
  --green-soft: #d1fae5;
  --amber: #b45309;

  --shot-bg: #0f0f17;
  --shadow: 0 1px 2px rgba(16, 16, 40, .06), 0 12px 32px -12px rgba(16, 16, 40, .18);
  --shadow-lg: 0 2px 4px rgba(16, 16, 40, .04), 0 40px 80px -24px rgba(60, 30, 140, .35);

  --r: 12px;
  --r-lg: 20px;
  --wrap: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a10;
    --bg-soft: #101018;
    --bg-tint: #17122b;
    --card: #12121b;
    --line: #22222f;
    --line-strong: #30303f;
    --ink: #f4f4f8;
    --ink-2: #c4c4d4;
    --ink-3: #8c8ca3;
    --brand: #a78bfa;
    --brand-2: #8b5cf6;
    --brand-soft: #231a3f;
    --teal: #22d3ee;
    --green: #34d399;
    --green-soft: #063a2c;
    --amber: #fbbf24;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 40px 80px -24px rgba(0, 0, 0, .7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, svg { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 12px; z-index: 100; background: var(--card); padding: 8px 14px; border-radius: 8px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
@media (max-width: 640px) { .wrap { padding-inline: 16px; } }

h1, h2, h3, h4 { margin: 0; color: var(--ink); letter-spacing: -.022em; line-height: 1.12; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); font-weight: 750; letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 720; }
h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -.012em; }
p { margin: 0; }

.kicker {
  display: inline-block;
  font-size: .8rem;
  font-weight: 650;
  color: var(--brand);
  margin-bottom: 14px;
}
.sub { color: var(--ink-2); font-size: 1.125rem; line-height: 1.6; }
.dim { color: var(--ink-3); }
.sec { padding-block: 104px; }
.sec-head { max-width: 720px; margin-bottom: 56px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head .sub { margin-top: 18px; }
.soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
@media (max-width: 760px) { .sec { padding-block: 72px; } .sec-head { margin-bottom: 40px; } }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px;
  border-radius: 10px; border: 1px solid transparent;
  font: 600 .95rem/1 var(--font);
  white-space: nowrap; cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-2); color: #fff; box-shadow: 0 6px 16px -6px rgba(124, 58, 237, .6); }
.btn-primary:hover { background: #6d28d9; }
.btn-line { background: var(--card); color: var(--ink); border-color: var(--line-strong); }
.btn-line:hover { border-color: var(--ink-3); }
.btn-sm { height: 38px; padding: 0 16px; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Announcement + header ───────────────────────────── */
.announce {
  background: var(--ink); color: #fff;
  font-size: .86rem; text-align: center; padding: 9px 16px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .announce { background: var(--brand-soft); color: var(--ink); } }
.announce a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.announce .tag { display: inline-block; background: var(--brand-2); color: #fff; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; margin-right: 8px; }

header.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; gap: 28px; height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 750; font-size: 1.15rem; color: var(--ink); letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.menu { display: flex; gap: 26px; margin-right: auto; }
.menu a { color: var(--ink-2); font-size: .93rem; font-weight: 500; }
.menu a:hover { color: var(--ink); text-decoration: none; }
.top-cta { display: flex; align-items: center; gap: 18px; }
.top-cta .signin { color: var(--ink-2); font-size: .93rem; font-weight: 500; }
@media (max-width: 920px) { .menu { display: none; } .top-cta { margin-left: auto; } }
@media (max-width: 420px) { .top-cta .signin { display: none; } }

/* ── Hero ────────────────────────────────────────────── */
.hero { position: relative; padding: 88px 0 0; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 760px; z-index: -1;
  background:
    radial-gradient(600px 320px at 22% 20%, rgba(124, 58, 237, .16), transparent 70%),
    radial-gradient(520px 300px at 82% 10%, rgba(8, 145, 178, .13), transparent 70%);
}
.hero-copy { max-width: 820px; margin-inline: auto; text-align: center; }
.hero h1 em { font-style: normal; color: var(--brand-2); }
.hero .sub { max-width: 640px; margin: 24px auto 0; font-size: 1.2rem; }
.hero .btn-row { justify-content: center; margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 22px; color: var(--ink-3); font-size: .88rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { color: var(--green); flex: none; }

.pill-new {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 5px; margin-bottom: 26px;
  border: 1px solid var(--line); border-radius: 99px; background: var(--card);
  font-size: .85rem; color: var(--ink-2); box-shadow: var(--shadow);
}
.pill-new b { white-space: nowrap; background: var(--brand-soft); color: var(--brand); font-size: .75rem; padding: 3px 9px; border-radius: 99px; }
.pill-new:hover { text-decoration: none; border-color: var(--line-strong); }

.stage { position: relative; margin: 64px auto 0; max-width: 1080px; }
.window {
  background: var(--shot-bg); border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: var(--shadow-lg);
}
.window .bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #16161f; border-bottom: 1px solid #22222e; }
.window .bar i { width: 10px; height: 10px; border-radius: 50%; background: #2c2c3a; }
.window .bar span { margin-left: 14px; font-size: .72rem; color: #7b7b92; background: #0e0e15; padding: 3px 12px; border-radius: 6px; }

.float {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 11px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 14px; box-shadow: var(--shadow);
  font-size: .84rem; line-height: 1.35; color: var(--ink-2);
}
.float strong { display: block; color: var(--ink); font-size: .88rem; }
.float .dot { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; }
/* Kept to the window's edges and the empty foot of the conversation list, so
   none of them covers the chat they're describing. */
.f1 { left: -44px; bottom: 3%; }
.f2 { right: 8%; top: -26px; }
.f3 { left: 14%; top: -26px; }
@media (max-width: 1160px) { .f1 { left: 10px; } }
@media (max-width: 760px) { .float { display: none; } .stage { margin-top: 44px; } }

/* ── Works-with strip ───────────────────────────────── */
.strip { padding: 56px 0 8px; text-align: center; }
.strip p { color: var(--ink-3); font-size: .86rem; margin-bottom: 20px; }
.marks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; }
.marks span { font-weight: 650; font-size: 1.02rem; color: var(--ink-3); letter-spacing: -.01em; }

/* ── Numbers row ────────────────────────────────────── */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.facts div { padding: 28px 26px; }
.facts div + div { border-left: 1px solid var(--line); }
.facts b { display: block; font-size: 1.9rem; letter-spacing: -.03em; font-weight: 750; }
.facts span { color: var(--ink-3); font-size: .9rem; }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .facts div { padding: 20px 16px; }
  .facts b { font-size: 1.35rem; }
  .facts span { font-size: .84rem; }
}

/* ── Product tour (tabs) ────────────────────────────── */
.tabs { display: flex; gap: 6px; padding: 6px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; width: max-content; max-width: 100%; margin: 0 auto 44px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font: 600 .92rem/1 var(--font); color: var(--ink-3);
  padding: 11px 18px; border-radius: 9px; white-space: nowrap;
}
.tabs button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.no-js .tabs { display: none; }

.panel { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.panel + .panel { margin-top: 88px; }
.js .panel[hidden] { display: none; }
.js .panel + .panel { margin-top: 0; }
.panel h3 { font-size: 1.75rem; letter-spacing: -.025em; margin-bottom: 14px; }
.panel .sub { font-size: 1.05rem; }
.list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--ink-2); font-size: .97rem; }
.list li::before {
  content: ""; width: 22px; height: 22px; border-radius: 7px; margin-top: 1px;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat;
}
.list b { color: var(--ink); font-weight: 600; }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 26px; font-weight: 600; font-size: .95rem; }
.shot-wrap { background: linear-gradient(140deg, var(--bg-tint), var(--bg-soft)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.shot-wrap .window { box-shadow: var(--shadow); }
@media (max-width: 900px) {
  .panel { grid-template-columns: 1fr; gap: 32px; }
  .shot-wrap { padding: 14px; }
}

/* ── Journey ────────────────────────────────────────── */
.journey { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; counter-reset: j; }
.journey li {
  list-style: none; position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px 16px 18px;
}
.journey li::before {
  counter-increment: j; content: counter(j);
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: .8rem;
  margin-bottom: 14px;
}
.journey li:not(:last-child)::after {
  content: ""; position: absolute; top: 32px; right: -12px; width: 12px; height: 2px; background: var(--line-strong);
}
.journey b { display: block; font-size: .95rem; margin-bottom: 4px; }
.journey span { font-size: .85rem; color: var(--ink-3); line-height: 1.45; display: block; }
.journey ol { padding: 0; margin: 0; }
@media (max-width: 980px) {
  .journey { grid-template-columns: repeat(3, 1fr); }
  .journey li:nth-child(3)::after { display: none; }
}
@media (max-width: 560px) {
  .journey { grid-template-columns: 1fr; }
  .journey li::after { display: none; }
}

/* ── Feature directory ──────────────────────────────── */
.dir { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
.dir h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 650; margin-bottom: 14px; }
.dir ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.dir a { display: block; padding: 10px 12px; margin-inline: -12px; border-radius: 10px; color: var(--ink); }
.dir a:hover { background: var(--card); text-decoration: none; box-shadow: var(--shadow); }
.dir a b { display: block; font-weight: 600; font-size: .96rem; }
.dir a span { display: block; color: var(--ink-3); font-size: .87rem; line-height: 1.45; margin-top: 2px; }
@media (max-width: 900px) { .dir { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .dir { grid-template-columns: 1fr; } }

/* ── Cards (use cases, trust) ───────────────────────── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.card h3 { margin: 16px 0 8px; }
.card p { color: var(--ink-2); font-size: .95rem; }
.card .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.card .uses { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.card .uses span { font-size: .78rem; font-weight: 600; color: var(--ink-2); background: var(--bg-soft); border: 1px solid var(--line); padding: 3px 9px; border-radius: 99px; }
@media (max-width: 980px) { .cards.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .cards.four { grid-template-columns: 1fr; } }

/* ── Split (data, service) ──────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }

.modes { display: grid; gap: 12px; }
.mode { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.mode .n { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--bg-soft); border: 1px solid var(--line); font-weight: 700; color: var(--ink-2); }
.mode.on { border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-soft); }
.mode.on .n { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.mode b { display: block; margin-bottom: 3px; }
.mode p { color: var(--ink-3); font-size: .9rem; }

/* ── Steps ──────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; border-top: 2px solid var(--line); padding-top: 22px; }
.steps li:first-child { border-top-color: var(--brand-2); }
.steps li::before { content: "Step " counter(s); display: block; font-size: .8rem; font-weight: 650; color: var(--brand); margin-bottom: 10px; }
.steps b { display: block; font-size: 1.05rem; margin-bottom: 6px; }
.steps p { color: var(--ink-3); font-size: .93rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; gap: 32px 20px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ── FAQ ────────────────────────────────────────────── */
.faq { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-weight: 600; font-size: 1.05rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { padding: 0 40px 24px 0; color: var(--ink-2); }

/* ── Final CTA ──────────────────────────────────────── */
.final {
  position: relative; overflow: hidden; text-align: center;
  background: #120a2a; color: #fff; border-radius: 28px; padding: 88px 24px;
}
.final::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(500px 260px at 20% 0%, rgba(139, 92, 246, .55), transparent 70%),
    radial-gradient(460px 260px at 90% 100%, rgba(34, 211, 238, .28), transparent 70%);
}
.final > * { position: relative; }
.final h2 { color: #fff; max-width: 18ch; margin-inline: auto; }
.final p { color: #cfc8ea; max-width: 52ch; margin: 18px auto 0; font-size: 1.1rem; }
.final .btn-row { justify-content: center; margin-top: 32px; }
.final .btn-line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.final .btn-line:hover { border-color: #fff; }
@media (max-width: 560px) { .final { padding: 64px 20px; border-radius: 20px; } }

/* ── Footer ─────────────────────────────────────────── */
footer.foot { border-top: 1px solid var(--line); padding: 64px 0 36px; margin-top: 104px; font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 32px; }
.foot h4 { font-size: .85rem; margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot ul a { color: var(--ink-3); }
.foot ul a:hover { color: var(--ink); }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .82rem; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
