:root {
  --bg: #faf6ee; --bg-2: #f4eee2; --card: #fffdf8; --line: #e8e0d2;
  --ink: #1c1a17; --ink-2: #5d564c; --ink-3: #8e8679;
  --accent: #5a49d6; --accent-soft: #eeeafb;
  --peach: #f6c7a6; --lilac: #cbb9f4; --mint: #b6e3d1;
  --code-bg: #1f1c19; --code-ink: #ece5d8; --code-dim: #8f877b;
  --r: 20px;
  --shadow: 0 1px 0 rgba(28, 26, 23, .04), 0 18px 40px -20px rgba(28, 26, 23, .22);
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.028em; line-height: 1.06; }
em { font: italic 500 1.1em/1 var(--serif); letter-spacing: -.01em; padding-right: .05em;
  background: linear-gradient(100deg, #7a5af0, #d47a9e 55%, #e39a5a);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(250, 246, 238, .75);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -.03em; color: var(--ink); }
.logo-dot { width: 18px; height: 18px; border-radius: 50%;
  background: conic-gradient(from 200deg, var(--lilac), var(--peach), var(--mint), var(--lilac));
  box-shadow: inset 0 0 0 1px rgba(28, 26, 23, .08); }
.nav { display: flex; gap: 28px; margin-left: 12px; font-size: 15px; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.top-act { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { font: 500 13px var(--sans); color: var(--ink-2); background: none; border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 12px; cursor: pointer; }
.lang:hover { color: var(--ink); border-color: var(--ink-3); }
@media (max-width: 820px) { .nav { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 22px; border-radius: 999px;
  font: 500 16px var(--sans); cursor: pointer; white-space: nowrap; transition: transform .15s, background .2s, border-color .2s; }
.btn svg { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-ink { background: var(--ink); color: var(--bg); box-shadow: 0 10px 24px -12px rgba(28, 26, 23, .6); }
.btn-ink:hover { transform: translateY(-1px); background: #000; }
.btn-ghost { border: 1px solid var(--line); background: rgba(255, 253, 248, .6); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; }
.aura { position: absolute; inset: -20% -10% auto; height: 130%; pointer-events: none; filter: blur(70px); opacity: .7; }
.aura i { position: absolute; border-radius: 50%; animation: drift 26s ease-in-out infinite alternate; }
.aura i:nth-child(1) { width: 520px; height: 520px; background: var(--lilac); top: 2%; right: 4%; }
.aura i:nth-child(2) { width: 440px; height: 440px; background: var(--peach); top: 30%; right: 26%; animation-duration: 32s; animation-delay: -8s; }
.aura i:nth-child(3) { width: 380px; height: 380px; background: var(--mint); top: -8%; right: 36%; animation-duration: 38s; animation-delay: -16s; }
@keyframes drift { 50% { transform: translate(-60px, 40px) scale(1.08); } 100% { transform: translate(40px, -30px) scale(.95); } }
.dots-bg { position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(28, 26, 23, .1) 1px, transparent 1.3px); background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 25% 45%, #000 15%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 70% at 25% 45%, #000 15%, transparent 70%); }
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-in > * { min-width: 0; }
@media (max-width: 960px) { .hero-in { grid-template-columns: 1fr; gap: 44px; } .hero { padding: 48px 0 64px; } }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; font-size: 13px;
  color: var(--ink-2); background: rgba(255, 253, 248, .7); border: 1px solid var(--line); }
.pulse { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #3bb273; animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(59, 178, 115, .5); } 70%, 100% { box-shadow: 0 0 0 8px rgba(59, 178, 115, 0); } }
h1 { font-size: clamp(40px, 6vw, 70px); margin: 22px 0 20px; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); max-width: 34em; margin: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.note { margin: 18px 0 0; font-size: 14px; color: var(--ink-3); }

/* code card */
.code-card { background: var(--code-bg); color: var(--code-ink); border-radius: var(--r); overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(28, 26, 23, .55), 0 0 0 1px rgba(28, 26, 23, .06); }
.code-head { display: flex; align-items: center; gap: 16px; padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.wdots { display: flex; gap: 6px; flex: none; }
.wdots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.code-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.code-tabs button { font: 500 12.5px var(--sans); color: var(--code-dim); background: none; border: 0; padding: 6px 10px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.code-tabs button[aria-selected="true"] { color: var(--code-ink); background: rgba(255, 255, 255, .08); }
.code { margin: 0; padding: 20px; font: 400 13.5px/1.7 var(--mono); overflow-x: auto; min-height: 268px; }
.code .k { color: #c9b6ff; } .code .s { color: #f2c29b; } .code .n { color: #9fe0c8; } .code .t { color: #9cc7ff; } .code .f { color: #9fe0c8; }
.code-out { padding: 14px 20px; min-height: 52px; border-top: 1px solid rgba(255, 255, 255, .07); background: rgba(255, 255, 255, .025); font: 400 13.5px/1.6 var(--mono); }
.out-label { display: inline-block; margin-right: 10px; padding: 1px 8px; font: 500 11px/18px var(--sans); text-transform: uppercase; letter-spacing: .08em;
  color: var(--code-dim); border: 1px solid rgba(255, 255, 255, .12); border-radius: 6px; vertical-align: 1px; }
.caret { display: inline-block; width: 8px; height: 15px; margin-left: 2px; background: #c9b6ff; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* models */
.models { padding: 8px 0 24px; }
.eyebrow { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 16px; text-align: center; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips li { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 14.5px; color: var(--ink-2); }
.chips b { color: var(--ink); font-weight: 600; margin-right: 4px; }

/* sections */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
@media (max-width: 720px) { .section { padding: 64px 0; } }
.sec-head { max-width: 640px; margin: 0 0 44px; }
h2 { font-size: clamp(32px, 4.4vw, 52px); }
.sec-head p { color: var(--ink-2); margin: 16px 0 0; font-size: 17px; }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feat { padding: 28px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s, opacity .7s; }
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.js .feat.reveal.in { transition: opacity .7s, transform .25s, box-shadow .25s; }
.ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px; background: var(--accent-soft); color: var(--accent); }
.feat:nth-child(3n+2) .ico { background: #fcebdd; color: #b5652b; }
.feat:nth-child(3n) .ico { background: #e2f4ec; color: #2e7d5b; }
.ico svg { width: 22px; height: 22px; }
.feat h3 { font-size: 19px; margin-bottom: 8px; letter-spacing: -.015em; line-height: 1.25; }
.feat p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* pricing */
.price-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; box-shadow: var(--shadow); }
.price-bar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 6px; }
.seg { display: inline-flex; gap: 2px; padding: 4px; max-width: 100%; overflow-x: auto; scrollbar-width: none; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; }
.seg button { font: 500 14px var(--sans); color: var(--ink-2); background: none; border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.seg button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(28, 26, 23, .08), 0 0 0 1px var(--line); }
.table-wrap { overflow-x: auto; margin-top: 6px; }
.ptable { width: 100%; border-collapse: collapse; font-size: 15px; }
.ptable th { text-align: left; font-weight: 500; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ptable td { padding: 15px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ptable tbody tr:last-child td { border-bottom: 0; }
.ptable tbody tr:hover td { background: rgba(244, 238, 226, .55); }
.ptable .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ptable .muted { color: var(--ink-3); text-align: center; padding: 40px 16px; }
.mid { font: 500 14px var(--mono); white-space: nowrap; }
.prov { display: inline-block; margin-left: 10px; padding: 2px 8px; font-size: 11.5px; color: var(--ink-3); background: var(--bg-2); border-radius: 999px; vertical-align: 1px; }
.ttl { font-weight: 600; white-space: nowrap; }
.sub { display: block; margin-top: 2px; font: 400 12.5px var(--mono); color: var(--ink-3); }
.var { display: inline-flex; gap: 6px; align-items: baseline; margin: 3px 14px 3px 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.var small, .unit { color: var(--ink-3); font-size: 13px; white-space: nowrap; }
.pnote { margin: 6px 16px 10px; font-size: 13.5px; color: var(--ink-3); }

/* connect */
.steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.steps li { padding: 26px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.steps .num { display: block; margin-bottom: 14px; font: italic 500 46px/1 var(--serif); color: var(--accent); }
.steps h3 { font-size: 18px; margin-bottom: 6px; letter-spacing: -.015em; }
.steps p { margin: 0; color: var(--ink-2); font-size: 15px; }
.connect-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; align-items: start; }
.connect-grid > * { min-width: 0; }
@media (max-width: 900px) { .connect-grid { grid-template-columns: 1fr; } }
.base { padding: 26px; border-radius: var(--r); background: var(--ink); color: var(--bg); }
.base-label { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
.base-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 6px 6px 6px 16px; background: rgba(255, 255, 255, .08); border-radius: 12px; }
.base-row code { flex: 1; min-width: 0; font: 500 15px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy { flex: none; font: 500 13px var(--sans); color: var(--ink); background: var(--bg); border: 0; border-radius: 9px; padding: 9px 14px; cursor: pointer; }
.base-hint { margin: 14px 0 0; font-size: 14px; opacity: .65; }
.endpoints { list-style: none; margin: 0; padding: 6px 0; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.endpoints li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding: 13px 22px; border-bottom: 1px solid var(--line); }
.endpoints li:last-child { border-bottom: 0; }
.endpoints code { font: 400 13.5px var(--mono); word-break: break-all; }
.endpoints b { font-weight: 600; color: var(--accent); margin-right: 8px; }
.endpoints span { color: var(--ink-3); font-size: 14px; }

/* faq */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 18px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 300 28px/1 var(--sans); color: var(--ink-3); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -6px 0 22px; color: var(--ink-2); max-width: 62ch; }

/* cta + footer */
.cta { position: relative; overflow: hidden; padding: 80px 24px; text-align: center; border-radius: 28px; background: var(--card); border: 1px solid var(--line); }
.cta .aura { inset: -50% -20%; height: auto; opacity: .5; }
.cta .aura i:nth-child(1) { right: 10%; } .cta .aura i:nth-child(3) { right: 55%; }
.cta > :not(.aura) { position: relative; }
.cta p { color: var(--ink-2); margin: 16px auto 30px; max-width: 30em; font-size: 17px; }
.foot { padding: 8px 0 48px; color: var(--ink-3); font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 24px; }
.foot a:hover { color: var(--ink); }

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