/* ── tokens ──────────────────────────────────────────────────────────── */
:root {
  --bg: #08080d;
  --bg-alt: #0d0d15;
  --panel: #12121c;
  --border: rgba(255, 255, 255, 0.08);
  --text: #eceaf6;
  --muted: #9b98b3;
  --accent-1: #7c5cff;
  --accent-2: #00d4ff;
  --grad: linear-gradient(100deg, var(--accent-1), var(--accent-2));
  --radius: 14px;
  --font-ui: "Inter", -apple-system, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
code { font-family: var(--font-mono); font-size: 0.92em; color: var(--accent-2); }

/* ── nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 8, 13, 0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.wordmark {
  font-family: var(--font-mono); font-weight: 600; font-size: 20px;
  letter-spacing: -0.5px;
}
.wordmark-dot {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: blink 1.4s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.wordmark-sm { font-size: 16px; }
.nav-links { display: flex; gap: 24px; flex: 1; }
.nav-links a { color: var(--muted); font-size: 14.5px; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }

/* ── buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 10px;
  font-weight: 600; font-size: 15px; transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn-sm { padding: 8px 16px; font-size: 13.5px; }
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 4px 24px rgba(124, 92, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 32px rgba(124, 92, 255, 0.5); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }

/* ── hero ────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 110px 0 90px; text-align: center; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -40% -20% auto;  height: 720px;
  background:
    radial-gradient(600px 340px at 30% 30%, rgba(124, 92, 255, 0.22), transparent 70%),
    radial-gradient(600px 340px at 70% 25%, rgba(0, 212, 255, 0.14), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-eyebrow { margin-bottom: 22px; }
.pill {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.03);
  color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: 0.2px;
}
h1 {
  font-size: clamp(40px, 6.5vw, 68px);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.08;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  max-width: 680px; margin: 26px auto 0; color: var(--muted); font-size: 18px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }

/* ── terminal ────────────────────────────────────────────────────────── */
.terminal {
  margin: 64px auto 0; max-width: 920px; text-align: left;
  background: #0b0b12; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(124,92,255,0.06);
  overflow: hidden;
}
.terminal-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.tdot { width: 11px; height: 11px; border-radius: 50%; }
.tdot-r { background: #ff5f57; } .tdot-y { background: #febc2e; } .tdot-g { background: #28c840; }
.terminal-title { margin-left: 10px; color: var(--muted); font-size: 12.5px; font-family: var(--font-mono); }
.terminal-body {
  padding: 22px 24px; overflow-x: auto;
  font-family: var(--font-mono); font-size: 13px; line-height: 1.75;
}
.terminal-body code { color: var(--text); font-size: inherit; }
.t-dim { color: #5d5a78; }
.t-cmd { color: #c9c6e0; }
.t-ok { color: #4ade80; }

/* ── sections ────────────────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-title {
  font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em;
  text-align: center; line-height: 1.2;
}
.section-sub { text-align: center; color: var(--muted); max-width: 640px; margin: 18px auto 0; font-size: 16.5px; }
.section-title + .grid, .section-sub + .grid, .section-sub + .flow, .section-sub + .code-tabs { margin-top: 52px; }
.section-title + .flow { margin-top: 52px; }

/* ── cards ───────────────────────────────────────────────────────────── */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: transform 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(124, 92, 255, 0.35); }
.card h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 14.5px; }
.card-icon {
  font-family: var(--font-mono); font-size: 18px; font-weight: 600;
  width: 42px; height: 42px; border-radius: 10px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(124,92,255,0.18), rgba(0,212,255,0.12));
  border: 1px solid rgba(124, 92, 255, 0.3); color: var(--text);
}

/* ── flow ────────────────────────────────────────────────────────────── */
.flow { display: flex; align-items: stretch; gap: 10px; }
.flow-step {
  flex: 1; background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.flow-num {
  font-family: var(--font-mono); font-weight: 600; font-size: 13px;
  width: 28px; height: 28px; border-radius: 8px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff;
}
.flow-step h3 { font-size: 16px; margin-bottom: 8px; }
.flow-step p { color: var(--muted); font-size: 13.5px; }
.flow-arrow { align-self: center; color: var(--accent-1); font-size: 20px; }

/* ── code tabs ───────────────────────────────────────────────────────── */
.code-tabs {
  max-width: 860px; margin-left: auto; margin-right: auto;
  background: #0b0b12; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 24px 64px rgba(0,0,0,0.45);
}
.tab-row { display: flex; gap: 4px; padding: 10px 12px 0; border-bottom: 1px solid var(--border); }
.tab {
  padding: 9px 18px; border: none; cursor: pointer; border-radius: 8px 8px 0 0;
  background: transparent; color: var(--muted);
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); background: rgba(124, 92, 255, 0.12); }
.code-panel {
  display: none; padding: 24px 26px; overflow-x: auto;
  font-family: var(--font-mono); font-size: 13px; line-height: 1.7;
}
.code-panel.active { display: block; }
.code-panel code { color: #c9c6e0; font-size: inherit; }
.c-kw { color: #c792ea; } .c-str { color: #9ce7a9; } .c-fn { color: #7cb8ff; }
.c-cm { color: #5d5a78; font-style: italic; } .c-dim { color: #5d5a78; }

/* ── integrations ────────────────────────────────────────────────────── */
.integration-card h3 { font-size: 15.5px; }
.inline-link { color: var(--accent-2); }
.inline-link:hover { text-decoration: underline; }
.brand-icon {
  /* Brand marks sit on a neutral tile, not the gradient one. */
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
}
.brand-logo { width: 21px; height: 21px; display: block; }

/* ── pricing ─────────────────────────────────────────────────────────── */
.pricing-grid { align-items: stretch; }
.price-card { display: flex; flex-direction: column; position: relative; }
.price-card ul { list-style: none; margin-top: 18px; }
.price-card li { color: var(--muted); font-size: 14px; padding: 5px 0 5px 24px; position: relative; }
.price-card li::before {
  content: "✓"; position: absolute; left: 0; color: var(--accent-2); font-weight: 700;
}
.price { font-size: 30px; font-weight: 800; margin-top: 12px; letter-spacing: -0.02em; }
.price-note { color: var(--muted); font-size: 13px; margin-top: 2px; }
.price-featured { border-color: rgba(124, 92, 255, 0.5); box-shadow: 0 0 40px rgba(124, 92, 255, 0.12); }
.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}

/* ── CTA + footer ────────────────────────────────────────────────────── */
.section-cta { padding: 110px 0; }
.cta-box {
  text-align: center; padding: 64px 32px; border-radius: 20px;
  background:
    radial-gradient(480px 220px at 50% 0%, rgba(124, 92, 255, 0.18), transparent 70%),
    var(--panel);
  border: 1px solid var(--border);
}
.cta-box h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; letter-spacing: -0.02em; }
.cta-box p { color: var(--muted); margin-top: 12px; }
.footer { border-top: 1px solid var(--border); padding: 28px 0; }
.footer-inner { display: flex; align-items: center; gap: 24px; }
.footer-links { display: flex; gap: 20px; flex: 1; }
.footer-links a { color: var(--muted); font-size: 13.5px; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--muted); font-size: 13px; }

/* ── responsive ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .flow { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); padding: 2px 0; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .grid-3 { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 60px; }
  .terminal-body { font-size: 11.5px; }
  .footer-inner { flex-direction: column; gap: 12px; }
}
