:root {
  color-scheme: dark;
  --bg: #06070c;
  --bg-2: #0a0c14;
  --panel: #0f1220;
  --panel-2: #141829;
  --line: #1f2438;
  --line-strong: #2a3050;
  --ink: #e9ecf5;
  --muted: #8b93ab;
  --muted-2: #616a85;
  --accent: #6366f1;
  --accent-2: #22d3ee;
  --accent-soft: rgba(99, 102, 241, 0.16);
  --violet: #8b5cf6;
  --success: #10b981;
  --warn: #f59e0b;
  --danger: #ef4444;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.4);
  --container: 1200px;
  --font: "Inter var", Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular,
    "SF Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font);
  font-feature-settings: "cv11", "ss01", "ss03";
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  font-weight: 650;
  letter-spacing: -0.022em;
  margin: 0;
}

p {
  margin: 0;
}

code,
pre {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
}

pre {
  margin: 0;
  padding: 20px 22px;
  white-space: pre;
  overflow-x: auto;
  color: #d8dcee;
}

/* ============================ Background FX ============================ */

.bg-orb {
  position: fixed;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.orb-purple {
  top: -200px;
  left: -120px;
  background: radial-gradient(closest-side, rgba(124, 92, 255, 0.55), transparent);
}

.orb-cyan {
  top: 10vh;
  right: -220px;
  background: radial-gradient(closest-side, rgba(34, 211, 238, 0.4), transparent);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at top, rgba(0, 0, 0, 0.9), transparent 70%);
}

/* ================================ Topbar ================================ */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: rgba(6, 7, 12, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 15px;
}

.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
  background: #fff;
}

.brand-name {
  letter-spacing: -0.01em;
}

.brand-tag {
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.2vw, 28px);
  font-size: 14px;
  color: var(--muted);
}

.topbar nav a:hover {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ghost-link {
  font-size: 14px;
  color: var(--muted);
}

.ghost-link:hover {
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  background: #fff;
  color: #0b0d17;
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.08);
}

/* ================================ Hero ================================ */

main {
  position: relative;
  z-index: 1;
}

.hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(120px, 16vh, 180px) clamp(18px, 4vw, 48px) 80px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(20, 24, 41, 0.8);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 24px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.tag:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
}

.hero-title {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.grad {
  background: linear-gradient(120deg, var(--accent) 10%, var(--violet) 50%, var(--accent-2) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 52px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  border: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn.primary {
  color: #fff;
  background: linear-gradient(120deg, var(--accent), var(--violet));
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.35);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(99, 102, 241, 0.45);
}

.btn.ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-strong);
}

.btn.full {
  width: 100%;
  justify-content: center;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
}

.hero-metrics div {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 18, 32, 0.5);
}

.hero-metrics dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  margin-bottom: 8px;
}

.hero-metrics dd {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.hero-metrics dd strong {
  color: var(--ink);
  font-weight: 650;
  margin-right: 6px;
}

/* Hero chat card mock */

.hero-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(20, 24, 41, 0.9), rgba(10, 12, 20, 0.9));
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  transform: rotate(0.5deg);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(99, 102, 241, 0.6), transparent 40%, rgba(34, 211, 238, 0.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hc-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 18, 32, 0.75);
}

.hc-dots {
  display: flex;
  gap: 6px;
}

.hc-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #2a3050;
}

.hc-title {
  font-size: 12.5px;
  color: var(--muted);
}

.hc-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 430px;
  overflow: hidden;
}

.msg {
  max-width: 86%;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  white-space: normal;
}

.msg.user {
  align-self: flex-end;
  background: linear-gradient(120deg, var(--accent), var(--violet));
  color: #fff;
  border-bottom-right-radius: 4px;
}

.msg.bot {
  align-self: flex-start;
  background: rgba(31, 36, 56, 0.6);
  border: 1px solid var(--line);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}

.msg.bot ul {
  margin: 6px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13.5px;
}

.bot-name {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-2);
  margin-bottom: 4px;
}

.bot-sources {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.bot-sources span {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #b5b8ff;
}

.msg.event {
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
  font-size: 12.5px;
  padding: 9px 12px;
  border-radius: 8px;
}

.event-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

.hc-compose {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: rgba(15, 18, 32, 0.6);
}

.hc-placeholder {
  font-size: 13px;
  color: var(--muted-2);
}

.hc-send {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
}

/* ============================== Trust row ============================== */

.trust {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 48px) 60px;
  text-align: center;
}

.trust p {
  font-size: 13px;
  color: var(--muted-2);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.trust-row {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  font-size: 13.5px;
  color: var(--muted);
}

.trust-row li {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 18, 32, 0.4);
}

/* ================================ Section ================================ */

.section {
  padding: clamp(64px, 10vh, 120px) clamp(18px, 4vw, 48px);
}

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-heading h2,
.api-layout h2,
.widget-layout h2,
.cta-grid h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.section-sub {
  margin-top: 18px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.65;
}

/* ============================== Features ============================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature {
  padding: 28px;
  background: linear-gradient(180deg, rgba(20, 24, 41, 0.6), rgba(10, 12, 20, 0.4));
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.feature:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.feature h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.feature p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: var(--accent-soft);
  color: #c7c9ff;
  position: relative;
}

.feature-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 20px 20px;
}

.icon-chat::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a5b4fc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/></svg>");
}
.icon-kb::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a5b4fc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/><path d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/></svg>");
}
.icon-lead::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a5b4fc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/><circle cx='12' cy='7' r='4'/></svg>");
}
.icon-handover::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a5b4fc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.12.9.34 1.77.63 2.6a2 2 0 0 1-.45 2.11L8 9.91a16 16 0 0 0 6 6l1.48-1.29a2 2 0 0 1 2.11-.45c.83.29 1.7.51 2.6.63A2 2 0 0 1 22 16.92z'/></svg>");
}
.icon-keys::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a5b4fc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.78 7.78 5.5 5.5 0 0 1 7.78-7.78zm0 0L15.5 7.5m0 0 3 3L22 7l-3-3'/></svg>");
}
.icon-usage::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a5b4fc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 20V10M18 20V4M6 20v-6'/></svg>");
}

/* ================================ API ================================ */

.api-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: start;
}

.api-layout .kicker {
  margin-bottom: 12px;
}

.endpoints {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: grid;
  gap: 10px;
}

.endpoints li {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(15, 18, 32, 0.4);
  font-size: 14px;
}

.endpoints li code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
}

.endpoints li span:last-child {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.verb {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 6px;
}

.verb.post {
  background: rgba(99, 102, 241, 0.16);
  color: #a5b4fc;
}
.verb.get {
  background: rgba(34, 211, 238, 0.12);
  color: #67e8f9;
}

.code-panel {
  position: relative;
  background: linear-gradient(180deg, rgba(15, 18, 32, 0.95), rgba(10, 12, 20, 0.9));
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.code-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(99, 102, 241, 0.5), transparent 50%, rgba(34, 211, 238, 0.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.code-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 18, 32, 0.7);
  position: relative;
  z-index: 1;
}

.code-tabs button {
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
  font-family: var(--font);
}

.code-tabs button:hover {
  color: var(--ink);
}

.code-tabs button[aria-selected="true"] {
  color: var(--ink);
  background: rgba(99, 102, 241, 0.15);
}

.code-body {
  position: relative;
  z-index: 1;
}

.code-body pre {
  display: none;
}

.code-body pre.active {
  display: block;
}

.c-cmd { color: #c4b5fd; }
.c-str { color: #86efac; }
.c-kw { color: #7dd3fc; }
.c-attr { color: #fca5a5; }
.c-tag { color: #f9a8d4; }

/* ============================== Widget section ============================== */

.widget-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.embed-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 18, 32, 0.9), rgba(10, 12, 20, 0.85));
  box-shadow: var(--shadow);
  position: relative;
}

.embed-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(34, 211, 238, 0.4), transparent 50%, rgba(139, 92, 246, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.embed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.copy-btn {
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  font-size: 12px;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.18s ease;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.checks {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 12px;
  color: var(--muted);
  font-size: 15px;
}

.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-left: 4px;
}

.checks li::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.18) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2334d399' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='5 10 9 14 15 6'/></svg>") center/12px no-repeat;
}

.checks li code {
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.12);
  color: #b5b8ff;
  font-size: 12.5px;
}

/* ================================ Flow ================================ */

.flow-grid {
  display: grid;
  grid-template-columns: 1fr 24px 1fr 24px 1fr 24px 1fr;
  align-items: stretch;
  gap: 0;
}

.flow-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 18, 32, 0.55);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.flow-grid article:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.flow-grid article h3 {
  font-size: 16px;
  margin: 10px 0 6px;
}

.flow-grid article p {
  color: var(--muted);
  font-size: 14px;
}

.flow-step {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-2);
}

.flow-connector {
  align-self: center;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

/* ================================ Pricing ================================ */

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.price-card {
  position: relative;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(20, 24, 41, 0.6), rgba(10, 12, 20, 0.5));
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.price-card.featured {
  border-color: rgba(99, 102, 241, 0.5);
  background:
    radial-gradient(at 80% -20%, rgba(99, 102, 241, 0.25), transparent 60%),
    linear-gradient(180deg, rgba(20, 24, 41, 0.85), rgba(10, 12, 20, 0.7));
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.25);
}

.badge {
  position: absolute;
  top: -12px;
  left: 24px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  background: linear-gradient(120deg, var(--accent), var(--violet));
  border-radius: 999px;
  color: #fff;
  letter-spacing: 0.06em;
}

.price-card h3 {
  font-size: 20px;
}

.price-card header p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.price {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.price span {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 4px;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.price-card ul li {
  padding-left: 22px;
  position: relative;
}

.price-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.15) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23a5b4fc' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='5 10 9 14 15 6'/></svg>") center/10px no-repeat;
}

/* ================================ CTA ================================ */

.cta-section {
  padding-top: 0;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding: clamp(48px, 8vw, 80px);
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.18), transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(34, 211, 238, 0.14), transparent 40%),
    linear-gradient(180deg, rgba(15, 18, 32, 0.9), rgba(10, 12, 20, 0.85));
}

.cta-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
  font-size: 15px;
  color: var(--muted);
}

.cta-list li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
}

.lead-form {
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(10, 12, 20, 0.7);
}

.lead-form h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.lead-form label {
  display: grid;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
}

.lead-form label span {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--muted-2);
}

.lead-form input,
.lead-form textarea {
  border: 1px solid var(--line);
  background: rgba(20, 24, 41, 0.5);
  color: var(--ink);
  border-radius: 9px;
  padding: 11px 12px;
  font: inherit;
  font-size: 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  outline: none;
}

.lead-form input::placeholder,
.lead-form textarea::placeholder {
  color: var(--muted-2);
}

.lead-form input:focus,
.lead-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.lead-form textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-status {
  min-height: 18px;
  font-size: 13px;
  color: var(--accent-2);
  margin: 0;
}

.form-note {
  font-size: 12.5px;
  color: var(--muted-2);
  margin: 0;
}

.form-note code {
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.12);
  color: #b5b8ff;
  font-size: 12px;
}

/* ================================ Footer ================================ */

.footer {
  border-top: 1px solid var(--line);
  background: rgba(10, 12, 20, 0.6);
  backdrop-filter: blur(12px);
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px clamp(18px, 4vw, 48px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fff;
  padding: 2px;
}

.footer-brand div {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  color: var(--muted);
}

.footer-brand strong {
  color: var(--ink);
  font-size: 14px;
}

.footer-nav {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--muted);
}

.footer-nav a:hover {
  color: var(--ink);
}

.footer-copy {
  font-size: 12.5px;
  color: var(--muted-2);
  margin: 0;
}

/* ============================== Responsive ============================== */

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 100px;
  }

  .hero-card {
    order: 2;
    transform: none;
  }

  .api-layout,
  .widget-layout,
  .cta-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .widget-layout .embed-card {
    order: 2;
  }

  .flow-grid {
    grid-template-columns: 1fr;
  }

  .flow-connector {
    display: none;
  }

  .price-grid {
    grid-template-columns: 1fr;
  }

  .topbar nav {
    display: none;
  }
}

@media (max-width: 520px) {
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 36px;
  }

  .cta-grid {
    padding: 28px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .nav-actions .ghost-link {
    display: none;
  }
}
