*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0A0A14;
  --bg-2: #0F1020;
  --card: #15172A;
  --card-2: #1C1F38;
  --line: rgba(255,255,255,0.09);
  --line-2: rgba(255,255,255,0.14);
  --white: #F5F6FB;
  --slate: #A3A9C2;
  --muted: #62688A;
  --indigo: #6366F1;
  --violet: #A855F7;
  --cyan: #22D3EE;
  --emerald: #34D399;
  --amber: #FBBF24;
  --pink: #EC4899;
  --grad: linear-gradient(120deg, #6366F1, #A855F7);
  --grad-3: linear-gradient(120deg, #22D3EE, #6366F1, #A855F7);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1200px;
  --fd: 'Space Grotesk', system-ui, sans-serif;
  --fb: 'Inter', system-ui, sans-serif;
  --fm: 'JetBrains Mono', ui-monospace, monospace;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--fb); background: var(--bg); color: var(--white); line-height: 1.65; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; background: var(--indigo); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

/* Top banner */
.topbar { background: var(--grad); color: #fff; text-align: center; font-size: 13.5px; padding: 9px 16px; font-weight: 500; }
.topbar a { text-decoration: underline; font-weight: 700; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(10,10,20,0.82); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--fd); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; }
.brand-mark svg { width: 18px; height: 18px; }
.nav { display: none; }
.nav ul { display: flex; gap: 28px; align-items: center; }
.nav a { color: var(--slate); font-size: 14.5px; font-weight: 500; transition: color .15s; }
.nav a:hover { color: var(--white); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--fd); font-weight: 600; font-size: 14.5px; padding: 11px 22px; border-radius: var(--radius-sm); cursor: pointer; border: 1px solid transparent; transition: transform .15s, box-shadow .15s, background .15s, border-color .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-grad { background: var(--grad); color: #fff; }
.btn-grad:hover { box-shadow: 0 12px 30px rgba(99,102,241,.4); }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--slate); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.nav-toggle { display: inline-flex; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: #fff; border-radius: 2px; }
@media (min-width: 940px) {
  .nav { display: block; }
  .nav-toggle { display: none; }
}
.mobile-nav { display: none; border-top: 1px solid var(--line); }
.mobile-nav.open { display: block; }
.mobile-nav ul { flex-direction: column; padding: 10px 0; }
.mobile-nav a { display: block; padding: 12px 22px; color: var(--slate); font-weight: 500; }
@media (min-width: 940px) { .mobile-nav { display: none !important; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: 88px 72px; text-align: center; }
.hero::before { content: ""; position: absolute; top: -20%; left: 50%; transform: translateX(-50%); width: 900px; height: 600px; background: radial-gradient(ellipse, rgba(99,102,241,.22), transparent 60%); pointer-events: none; }
.hero::after { content: ""; position: absolute; top: 10%; right: 5%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(168,85,247,.18), transparent 60%); pointer-events: none; }
.hero-inner { position: relative; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 16px; font-size: 13px; color: var(--slate); margin-bottom: 28px; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 10px var(--emerald); }
.hero h1 { font-family: var(--fd); font-size: clamp(38px, 7vw, 76px); font-weight: 700; line-height: 1.02; letter-spacing: -0.03em; margin-bottom: 22px; max-width: 16ch; margin-inline: auto; }
.hero h1 .grad { background: var(--grad-3); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: clamp(16px, 2.4vw, 20px); color: var(--slate); max-width: 60ch; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Trust strip */
.trust { padding-block: 40px; border-block: 1px solid var(--line); }
.trust p { text-align: center; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 24px; }
.trust-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 40px; align-items: center; }
.trust-logo { font-family: var(--fd); font-weight: 700; font-size: 19px; color: var(--muted); opacity: .8; letter-spacing: -0.01em; }

/* Section */
.section { padding-block: 84px; }
.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-block; font-family: var(--fm); font-size: 13px; color: var(--cyan); margin-bottom: 12px; }
.section-title { font-family: var(--fd); font-size: clamp(28px, 4.5vw, 42px); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
.section-title .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.section-head p { margin-top: 14px; color: var(--slate); font-size: 17px; }

/* Product grid */
.prod-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 600px) { .prod-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 920px) { .prod-grid { grid-template-columns: repeat(3, 1fr); } }
.prod { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .2s, border-color .2s, background .2s; }
.prod:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--card-2); }
.prod-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 24px; margin-bottom: 16px; border: 1px solid var(--line); }
.ic-indigo { background: rgba(99,102,241,.14); }
.ic-violet { background: rgba(168,85,247,.14); }
.ic-cyan { background: rgba(34,211,238,.14); }
.ic-emerald { background: rgba(52,211,153,.14); }
.ic-amber { background: rgba(251,191,36,.14); }
.ic-pink { background: rgba(236,72,153,.14); }
.prod h3 { font-family: var(--fd); font-size: 18px; font-weight: 600; margin-bottom: 7px; }
.prod p { font-size: 14px; color: var(--slate); line-height: 1.6; }

/* Code showcase */
.code-section { background: var(--bg-2); border-block: 1px solid var(--line); }
.code-wrap { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 920px) { .code-wrap { grid-template-columns: 1fr 1fr; } }
.code-copy .section-title { margin-bottom: 16px; }
.code-copy p { color: var(--slate); font-size: 16px; margin-bottom: 22px; }
.code-feats { display: flex; flex-direction: column; gap: 12px; }
.code-feat { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--slate); }
.code-feat .ck { width: 22px; height: 22px; border-radius: 6px; background: rgba(52,211,153,.15); color: var(--emerald); display: grid; place-items: center; font-size: 13px; flex-shrink: 0; }
.code-block { background: #0C0D1A; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.code-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #0F1020; }
.code-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.code-bar .d1 { background: #ff5f57; } .code-bar .d2 { background: #febc2e; } .code-bar .d3 { background: #28c840; }
.code-bar .fname { margin-left: 8px; font-family: var(--fm); font-size: 12px; color: var(--muted); }
.code-block pre { margin: 0; padding: 20px; overflow-x: auto; font-family: var(--fm); font-size: 13px; line-height: 1.75; }
.code-block code { font-family: var(--fm); }
.t-key { color: #C792EA; } .t-fn { color: #82AAFF; } .t-str { color: #C3E88D; } .t-com { color: #546688; } .t-var { color: #F78C6C; } .t-punc { color: #89DDFF; }

/* Integrations */
.integ-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 600px) { .integ-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 920px) { .integ-grid { grid-template-columns: repeat(6, 1fr); } }
.integ { aspect-ratio: 3/2; background: var(--card); border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; gap: 6px; transition: border-color .2s, transform .2s; }
.integ:hover { border-color: var(--line-2); transform: translateY(-3px); }
.integ span { font-size: 26px; }
.integ small { font-size: 11.5px; color: var(--muted); font-family: var(--fm); }

/* Pricing */
.price-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 820px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
.price { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; }
.price.pop { border-color: transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad) border-box; border: 1px solid transparent; position: relative; }
.price-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 5px 14px; border-radius: 999px; }
.price h3 { font-family: var(--fd); font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.price .ptag { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.price .pamount { font-family: var(--fd); font-size: 40px; font-weight: 700; line-height: 1; margin-bottom: 4px; }
.price .pamount small { font-size: 15px; color: var(--muted); font-weight: 400; }
.price .pcur { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.price ul { display: flex; flex-direction: column; gap: 11px; margin-bottom: 26px; flex: 1; }
.price li { font-size: 14px; color: var(--slate); padding-left: 24px; position: relative; }
.price li::before { content: "✓"; position: absolute; left: 0; color: var(--emerald); font-weight: 700; }
.price .btn { width: 100%; justify-content: center; }

/* CTA */
.cta { text-align: center; }
.cta-card { position: relative; overflow: hidden; border: 1px solid var(--line-2); border-radius: 24px; padding: 72px 32px; background: var(--card); }
.cta-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,.28), transparent 60%); pointer-events: none; }
.cta-card h2 { position: relative; font-family: var(--fd); font-size: clamp(28px, 5vw, 46px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; }
.cta-card p { position: relative; color: var(--slate); font-size: 18px; max-width: 46ch; margin: 0 auto 30px; }
.cta-card .hero-actions { position: relative; }

/* FAQ */
.faq { max-width: 800px; margin-inline: auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 20px 24px; font-family: var(--fd); font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--violet); font-size: 22px; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 24px 20px; color: var(--slate); font-size: 14.5px; line-height: 1.7; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-block: 56px 32px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: var(--slate); max-width: 34ch; }
.footer-col h4 { font-family: var(--fd); font-size: 13px; font-weight: 700; margin-bottom: 14px; color: #fff; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--slate); font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
