:root {
  --ink: #0c0b14;
  --ink-2: #3b3a4a;
  --muted: #6d6b7d;
  --line: #e8e6ef;
  --bg: #fbfaf8;
  --card: #ffffff;
  --violet: #7c3aed;
  --pink: #ec4899;
  --orange: #fb923c;
  --lime: #a3e635;
  --grad: linear-gradient(100deg, #7c3aed 0%, #db2777 50%, #fb923c 100%);
  --radius: 20px;
  --shadow: 0 1px 2px rgba(12, 11, 20, .04), 0 8px 24px -8px rgba(12, 11, 20, .10);
  --shadow-lg: 0 2px 4px rgba(12, 11, 20, .04), 0 30px 60px -20px rgba(76, 29, 149, .28);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --checker: repeating-conic-gradient(#ececf2 0% 25%, #ffffff 0% 50%) 0 0 / 22px 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
code, pre, kbd { font-family: var(--mono); }
::selection { background: #e9d5ff; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--violet);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--grad); border-radius: 2px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.01em; }
h1, h2, h3 { line-height: 1.05; letter-spacing: -.035em; margin: 0; font-weight: 650; }
h2 { font-size: clamp(36px, 5vw, 60px); }
h3 { font-size: 20px; letter-spacing: -.02em; line-height: 1.25; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 60ch; }
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section-head { display: grid; gap: 18px; margin-bottom: 56px; max-width: 760px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 16px; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 10px 30px -10px rgba(124, 58, 237, .6); }
.btn-primary:hover { background: #1e1b2e; box-shadow: 0 14px 34px -10px rgba(219, 39, 119, .55); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: #cfcbe0; }
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 12px 30px -12px rgba(219, 39, 119, .7); }
.btn-grad:hover { filter: saturate(1.15) brightness(1.04); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 15px; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- announcement + nav ---------- */
.announce {
  background: var(--ink); color: #e9e7f5; font-size: 14px; text-align: center; padding: 10px 16px;
}
.announce a { color: #fff; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.35); }
.announce .pill {
  display: inline-block; background: var(--grad); color: #fff; font-weight: 700; font-size: 11px; letter-spacing: .06em;
  padding: 2px 8px; border-radius: 99px; margin-right: 8px; text-transform: uppercase; vertical-align: 1px;
}
.nav {
  position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  background: rgba(251, 250, 248, .78); border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -.03em; }
.brand-mark { width: 32px; height: 32px; }
.brand b { font-weight: 700; }
.brand span { color: var(--muted); font-weight: 500; }
.nav-links { display: flex; gap: 30px; font-size: 15px; color: var(--ink-2); font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--bg);
    padding: 20px 24px 28px; border-bottom: 1px solid var(--line); gap: 18px; font-size: 18px;
  }
  .menu-btn { display: block; }
  .nav-cta .btn-ghost { display: none; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(70px, 9vw, 120px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto auto; width: 900px; height: 900px; z-index: -1;
  background: radial-gradient(closest-side, rgba(167, 139, 250, .35), transparent 70%),
              radial-gradient(closest-side at 70% 60%, rgba(251, 146, 60, .22), transparent 70%);
  filter: blur(10px);
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(50px, 7.4vw, 96px); letter-spacing: -.05em; line-height: .95; }
.hero h1 .serif { font-size: 1.08em; line-height: .8; }
.hero .lede { margin: 26px 0 34px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; color: var(--muted); font-size: 14.5px; }
.hero-proof span { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof svg { color: #16a34a; }

/* compare slider */
.compare-wrap { position: relative; }
.compare {
  position: relative; aspect-ratio: 1 / 1.02; border-radius: 28px; overflow: hidden; background: var(--checker);
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.7); user-select: none; touch-action: pan-y; cursor: ew-resize;
  --pos: 52%;
}
.compare .layer { position: absolute; inset: 0; }
.compare .scene { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare .subject { pointer-events: none; }
.compare .layer svg, .compare .layer img { width: 100%; height: 100%; object-fit: contain; }
.compare .scene img { object-fit: cover; }
.compare .handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff;
  box-shadow: 0 0 0 1px rgba(12,11,20,.06), 0 0 20px rgba(0,0,0,.15);
}
.compare .knob {
  position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; transform: translate(-50%, -50%); border-radius: 50%;
  background: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(12,11,20,.25); color: var(--ink);
}
.compare .tag {
  position: absolute; top: 16px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 99px; backdrop-filter: blur(8px);
}
.compare .tag.before { left: 16px; background: rgba(12,11,20,.55); color: #fff; }
.compare .tag.after { right: 16px; background: rgba(255,255,255,.85); color: var(--ink); }
.compare input[type=range] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: ew-resize; margin: 0; }
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow); font-size: 14px; font-weight: 600; white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}
.float-chip small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.float-chip .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.chip-a { left: -28px; bottom: 14%; }
.chip-b { right: -22px; top: 12%; animation-delay: -3s; }
@media (max-width: 640px) { .chip-a { left: 8px; bottom: -22px; } .chip-b { right: 8px; top: -18px; } }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ---------- logos / marquee ---------- */
.trust { padding: 10px 0 30px; }
.trust p { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span { font-weight: 650; font-size: 20px; color: #a7a4b8; letter-spacing: -.02em; display: inline-flex; gap: 10px; align-items: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- migrate ---------- */
.migrate { background: var(--ink); color: #fff; border-radius: 36px; margin: 0 12px; overflow: hidden; position: relative; }
.migrate::after {
  content: ""; position: absolute; width: 700px; height: 700px; right: -200px; top: -300px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124,58,237,.45), transparent); pointer-events: none;
}
.migrate .eyebrow { color: #c4b5fd; }
.migrate .lede { color: #bdbacd; }
.migrate-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
@media (max-width: 980px) { .migrate-grid { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; color: #dedbea; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { flex: none; margin-top: 4px; color: var(--lime); }

.code-card { background: #15131f; border: 1px solid #2a2738; border-radius: 22px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); }
.code-tabs { display: flex; gap: 4px; padding: 10px; border-bottom: 1px solid #2a2738; overflow-x: auto; }
.code-tabs button {
  background: none; border: 0; color: #9c98b0; font-size: 13.5px; font-weight: 600; padding: 7px 13px; border-radius: 10px; white-space: nowrap;
}
.code-tabs button[aria-selected=true] { background: #2a2738; color: #fff; }
.code-tabs .dots { display: flex; gap: 6px; align-items: center; padding: 0 10px 0 4px; }
.code-tabs .dots i { width: 11px; height: 11px; border-radius: 50%; background: #3a3650; display: block; }
.code-body { position: relative; }
pre.code { margin: 0; padding: 22px 24px; overflow-x: auto; font-size: 14px; line-height: 1.75; color: #e7e5f2; tab-size: 2; }
pre.code[hidden] { display: none; }
.code .del { background: rgba(244, 63, 94, .14); color: #fda4af; display: block; margin: 0 -24px; padding: 0 24px; text-decoration: line-through; text-decoration-color: rgba(253,164,175,.5); }
.code .add { background: rgba(163, 230, 53, .12); color: #d9f99d; display: block; margin: 0 -24px; padding: 0 24px; }
.code .c { color: #77738c; } .code .s { color: #fcd34d; } .code .k { color: #c4b5fd; } .code .f { color: #7dd3fc; }
.copy-btn {
  position: absolute; top: 12px; right: 12px; background: #2a2738; color: #dedbea; border: 0; border-radius: 9px; font-size: 12.5px;
  font-weight: 600; padding: 6px 10px;
}
.copy-btn:hover { background: #3a3650; }

/* ---------- features (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  grid-column: span 2; position: relative; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tile.wide { grid-column: span 3; }
.tile.xl { grid-column: span 4; }
.tile p { color: var(--muted); margin: 10px 0 0; font-size: 16px; }
.tile .ic {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 22px; color: #fff;
  background: var(--grad);
}
.tile .ic.v { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.tile .ic.p { background: linear-gradient(135deg, #f472b6, #db2777); }
.tile .ic.o { background: linear-gradient(135deg, #fdba74, #f97316); }
.tile .ic.g { background: linear-gradient(135deg, #86efac, #16a34a); }
.tile .ic.b { background: linear-gradient(135deg, #7dd3fc, #0284c7); }
@media (max-width: 980px) { .bento { grid-template-columns: repeat(2, 1fr); } .tile, .tile.wide, .tile.xl { grid-column: span 2; } }
@media (min-width: 640px) and (max-width: 980px) { .tile { grid-column: span 1; } }
.sizes { display: flex; gap: 10px; align-items: flex-end; margin-top: 22px; }
.sizes div {
  border: 1.5px dashed #c9c3dc; border-radius: 10px; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--muted);
  background: var(--checker); background-size: 12px 12px;
}
.swatches { display: flex; gap: 10px; margin-top: 22px; }
.swatches i { width: 54px; height: 54px; border-radius: 14px; display: block; border: 1px solid var(--line); position: relative; overflow: hidden; }
.swatches i::after {
  content: ""; position: absolute; inset: 22% 26% 0; border-radius: 40% 40% 8px 8px;
  background: linear-gradient(180deg, #1f1b2e, #3f3a56);
}
.price-strike { display: flex; align-items: baseline; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.price-strike s { color: #b4b0c4; font-size: 22px; }
.price-strike b { font-size: 44px; letter-spacing: -.04em; }

/* ---------- live demo ---------- */
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 860px) { .demo-grid { grid-template-columns: 1fr; } }
.dropzone {
  border: 2px dashed #cdc7df; border-radius: 28px; background: #fff; min-height: 420px; display: grid; place-items: center; text-align: center;
  padding: 32px; transition: border-color .2s, background .2s; cursor: pointer; position: relative;
}
.dropzone:hover, .dropzone.drag { border-color: var(--violet); background: #faf7ff; }
.dropzone .big-ic { width: 72px; height: 72px; border-radius: 22px; background: var(--grad); color: #fff; display: grid; place-items: center; margin: 0 auto 20px; box-shadow: 0 16px 30px -12px rgba(219,39,119,.6); }
.dropzone h3 { font-size: 24px; }
.dropzone p { color: var(--muted); margin: 8px 0 22px; }
.demo-result { border-radius: 28px; min-height: 420px; background: var(--checker); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; position: relative; }
.demo-result img { max-height: 520px; object-fit: contain; }
.demo-result .empty { color: var(--muted); font-weight: 500; background: rgba(255,255,255,.85); padding: 12px 18px; border-radius: 14px; max-width: 80%; text-align: center; }
.demo-result .dl { position: absolute; bottom: 16px; right: 16px; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid #e9e4f7; border-top-color: var(--violet); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); position: relative; }
.step::before {
  counter-increment: step; content: "0" counter(step); font-family: var(--mono); font-size: 13px; font-weight: 600;
  color: var(--violet); background: #f3efff; padding: 4px 9px; border-radius: 8px; display: inline-block; margin-bottom: 18px;
}
.step p { color: var(--muted); margin: 8px 0 0; }

/* ---------- pricing ---------- */
.pricing-bg { background: linear-gradient(180deg, transparent, #f3f0fb 30%, #f3f0fb 70%, transparent); }
.toggle { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px; box-shadow: var(--shadow); }
.toggle button { border: 0; background: none; padding: 10px 20px; border-radius: 999px; font-weight: 600; color: var(--muted); font-size: 15px; }
.toggle button[aria-pressed=true] { background: var(--ink); color: #fff; }
.toggle .save { font-size: 11.5px; background: #dcfce7; color: #166534; padding: 2px 7px; border-radius: 99px; margin-left: 6px; }
.toggle button[aria-pressed=true] .save { background: rgba(163,230,53,.25); color: #d9f99d; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; align-items: stretch; }
.plans[hidden] { display: none; }
@media (max-width: 1080px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px 26px; display: flex; flex-direction: column;
  box-shadow: var(--shadow); position: relative;
}
.plan.featured { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 30px 60px -20px rgba(76,29,149,.55); }
.plan.featured::before {
  content: ""; position: absolute; inset: -1.5px; border-radius: 25px; padding: 1.5px; background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.plan .badge {
  position: absolute; top: -12px; left: 26px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 99px;
}
.plan h3 { font-size: 18px; }
.plan .desc { color: var(--muted); font-size: 14.5px; margin: 4px 0 20px; min-height: 44px; }
.plan.featured .desc, .plan.featured .per, .plan.featured li { color: #c9c5da; }
.plan .price { font-size: 48px; font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.plan .price small { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.plan.featured .price small { color: #a9a4bf; }
.plan .credits { font-weight: 600; margin-top: 14px; }
.plan .per { font-size: 14px; color: var(--muted); font-family: var(--mono); }
.plan ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; font-size: 15px; color: var(--ink-2); }
.plan li { display: flex; gap: 10px; }
.plan li svg { flex: none; margin-top: 5px; color: var(--violet); }
.plan.featured li svg { color: var(--lime); }
.plan .btn { margin-top: auto; width: 100%; }
.plan.featured .btn-ghost { background: #fff; }
.pricing-note { text-align: center; color: var(--muted); font-size: 14.5px; margin-top: 26px; }

.compare-cost { margin-top: 70px; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.compare-cost header { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.compare-cost h3 { font-size: 28px; }
.compare-cost .src { color: var(--muted); font-size: 13px; }
.bars { display: grid; gap: 16px; }
.bar-row { display: grid; grid-template-columns: 230px 1fr 110px; gap: 18px; align-items: center; font-size: 15px; }
@media (max-width: 700px) { .bar-row { grid-template-columns: 1fr 90px; } .bar-row .bar { grid-column: 1 / -1; grid-row: 2; } }
.bar-row .name { font-weight: 600; }
.bar-row .name small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }
.bar { height: 14px; background: #f1eff6; border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: #c8c3d8; width: 0; transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.bar-row.us .bar i { background: var(--grad); }
.bar-row .amt { text-align: right; font-family: var(--mono); font-weight: 600; }
.bar-row.us .amt { color: var(--violet); }

/* ---------- use cases ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .cases { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cases { grid-template-columns: 1fr; } }
.case { border-radius: var(--radius); padding: 26px; background: #fff; border: 1px solid var(--line); display: flex; gap: 16px; }
.case .emo { flex: none; width: 46px; height: 46px; border-radius: 14px; background: #f4f1fb; display: grid; place-items: center; color: var(--violet); }
.case p { color: var(--muted); font-size: 15.5px; margin: 6px 0 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 0 24px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 0; font-weight: 600; font-size: 17.5px; display: flex; justify-content: space-between; gap: 20px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; font-weight: 400; color: var(--violet); transition: transform .2s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--ink-2); }
.faq code { background: #f3f0fa; padding: 2px 6px; border-radius: 6px; font-size: .9em; }

/* ---------- final CTA ---------- */
.cta-final {
  margin: 0 12px; border-radius: 36px; padding: clamp(60px, 9vw, 110px) 24px; text-align: center; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 0% 0%, #6d28d9 0%, transparent 55%), radial-gradient(100% 120% at 100% 100%, #f97316 0%, transparent 55%), #be185d;
}
.cta-final::before { content: ""; position: absolute; inset: 0; background: var(--checker); opacity: .06; }
.cta-final > * { position: relative; }
.cta-final h2 { font-size: clamp(40px, 6vw, 76px); }
.cta-final p { color: rgba(255,255,255,.85); font-size: 19px; margin: 18px auto 34px; max-width: 560px; }
.signup-inline { display: flex; gap: 10px; max-width: 520px; margin: 0 auto; background: #fff; padding: 6px; border-radius: 999px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.5); }
.signup-inline input { flex: 1; border: 0; outline: 0; padding: 0 18px; font: inherit; font-size: 16px; background: transparent; color: var(--ink); min-width: 0; }
.cta-final small { display: block; margin-top: 16px; color: rgba(255,255,255,.75); font-size: 14px; }
@media (max-width: 520px) { .signup-inline { flex-direction: column; border-radius: 22px; } .signup-inline input { height: 48px; } }

/* ---------- footer ---------- */
footer { padding: 70px 0 50px; color: var(--muted); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
footer h4 { color: var(--ink); font-size: 14px; margin: 0 0 14px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
footer a:hover { color: var(--ink); }
.foot-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 14px; }
.status-dot { display: inline-flex; align-items: center; gap: 8px; }
.status-dot i { width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 4px rgba(245,158,11,.15); }
.status-dot.live i { background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.15); }

/* ---------- modal ---------- */
dialog.modal { border: 0; padding: 0; border-radius: 28px; width: min(520px, calc(100% - 32px)); box-shadow: 0 50px 100px -20px rgba(12,11,20,.45); color: var(--ink); }
dialog.modal::backdrop { background: rgba(12,11,20,.5); backdrop-filter: blur(6px); }
.modal-body { padding: 34px; }
.modal-body h3 { font-size: 28px; letter-spacing: -.03em; }
.modal-body p { color: var(--muted); margin: 8px 0 22px; }
.modal-close { position: absolute; top: 16px; right: 16px; background: #f3f1f8; border: 0; width: 36px; height: 36px; border-radius: 50%; font-size: 20px; line-height: 1; color: var(--ink-2); }
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 14px; }
.field input {
  height: 50px; border: 1px solid #dcd8e8; border-radius: 14px; padding: 0 16px; font: inherit; outline: 0; transition: border-color .15s, box-shadow .15s;
}
.field input:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124,58,237,.15); }
.form-error { color: #be123c; font-size: 14.5px; min-height: 20px; margin: -4px 0 10px; }
.key-box { display: flex; gap: 8px; align-items: center; background: #15131f; color: #e7e5f2; border-radius: 14px; padding: 12px 12px 12px 16px; font-family: var(--mono); font-size: 13.5px; }
.key-box code { flex: 1; overflow-x: auto; white-space: nowrap; }
.warn { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; border-radius: 12px; padding: 10px 14px; font-size: 14px; margin: 14px 0; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- docs ---------- */
.docs-layout { display: grid; grid-template-columns: 240px 1fr; gap: 56px; padding: 50px 0 100px; }
@media (max-width: 900px) { .docs-layout { grid-template-columns: 1fr; } .docs-nav { display: none; } }
.docs-nav { position: sticky; top: 96px; align-self: start; display: grid; gap: 4px; font-size: 15px; }
.docs-nav h5 { margin: 18px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.docs-nav a { padding: 6px 12px; border-radius: 10px; color: var(--ink-2); }
.docs-nav a:hover { background: #f1eef8; color: var(--ink); }
.doc { max-width: 820px; min-width: 0; }
.doc h1 { font-size: clamp(40px, 5vw, 56px); margin-bottom: 16px; }
.doc h2 { font-size: 32px; margin: 64px 0 16px; padding-top: 20px; scroll-margin-top: 80px; }
.doc h3 { margin: 32px 0 10px; }
.doc p, .doc li { color: var(--ink-2); }
.doc :not(pre) > code { background: #f1eef8; color: #5b21b6; padding: 2px 6px; border-radius: 6px; font-size: .88em; }
.doc pre.code { background: #15131f; border-radius: 16px; margin: 18px 0; font-size: 13.5px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 18px 0; }
@media (max-width: 700px) { .doc table { display: block; overflow-x: auto; } }
.doc th, .doc td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.doc td code { white-space: nowrap; }
.method { font-family: var(--mono); font-size: 13px; font-weight: 700; padding: 3px 8px; border-radius: 7px; background: #dcfce7; color: #166534; margin-right: 8px; }
.method.get { background: #dbeafe; color: #1e40af; }
.endpoint { display: flex; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-family: var(--mono); font-size: 15px; overflow-x: auto; white-space: nowrap; }
.callout { background: #f5f3ff; border: 1px solid #ddd6fe; border-radius: 16px; padding: 16px 20px; color: #4c1d95; margin: 20px 0; }
