:root {
  --bg:         #0a0a0a;
  --surface:    #141414;
  --surface-2:  #101010;
  --border:     #262626;
  --text:       #ededed;
  --muted:      #8a8a8a;
  --accent:     #f97316;
  --accent-dim: #b45309;
  --success:    #22c55e;
  --warning:    #eab308;
  --neutral:    #6b7280;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw: 1120px;
  --pad-section: 96px;
  --gap: 24px;
  --radius: 8px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.muted { color: var(--muted); }
.small { font-size: 13px; }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(40px, 7vw, 72px); line-height: 1.05; }
h2 { font-size: clamp(28px, 3.5vw, 40px); line-height: 1.15; margin-bottom: 8px; }
h3 { font-size: 18px; line-height: 1.3; }

p { margin: 0 0 8px 0; }

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.logo-accent { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--muted);
  align-items: center;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-links a:hover { color: var(--text); }
.nav-icon { display: none; width: 20px; height: 20px; }

/* ============ HERO ============ */
.hero {
  padding: 120px 0 80px;
}
.hero .lede {
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 18px);
  max-width: 640px;
  margin: 20px 0 32px;
}
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
}
.btn-primary:hover { background: var(--accent-dim); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--text); color: var(--text); }

/* ============ STATS STRIP ============ */
.stats-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  background: var(--surface-2);
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--text);
}
.stat-label {
  font-size: 13px;
  color: var(--muted);
}

/* ============ SECTIONS ============ */
.section {
  padding: var(--pad-section) 0;
}
.section-alt {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head { margin-bottom: 40px; max-width: 720px; }

/* ============ FILTERS ============ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.filter-chip {
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s, background 0.12s;
}
.filter-chip:hover { color: var(--text); border-color: #3a3a3a; }
.filter-chip.active {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(249, 115, 22, 0.08);
}

/* ============ CATALOG GRID ============ */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.12s;
}
.card:hover { border-color: #3a3a3a; }
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-cat {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.card h3 { font-size: 17px; }
.card p { color: var(--muted); font-size: 14px; flex: 1; }
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}
.card-link {
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
}
.card-link.disabled { color: var(--muted); cursor: default; }

/* ============ STATUS BADGES ============ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neutral);
}
.dot.live, .dot.active { background: var(--success); }
.dot.beta { background: var(--warning); }
.dot.in-dev, .dot.archived { background: var(--neutral); }

/* ============ PROJECTS ============ */
.projects-grid .card {
  cursor: default;
  background: var(--bg);
  position: relative;
  min-height: 220px;
}
.projects-grid .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent);
  opacity: 0.5;
  border-radius: var(--radius) 0 0 var(--radius);
}
.projects-grid .card:hover { border-color: var(--border); }
.projects-grid .card p { font-size: 13px; }
.proj-stats {
  display: flex;
  gap: 24px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
}
.proj-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.proj-stat-num {
  font-size: 20px;
  color: var(--text);
  line-height: 1.1;
}
.proj-stat-label {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-sans);
}

/* ============ INTEGRATIONS ============ */
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.int-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.int-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
  margin-bottom: 4px;
}
.int-card h3 { font-size: 17px; }
.int-card p { font-size: 14px; }
.int-badge {
  align-self: flex-start;
  margin-top: auto;
  font-size: 11px;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ============ HOW IT WORKS ============ */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
}
.steps h3 { margin-bottom: 4px; }

/* ============ PRICING ============ */
.pricing-block { max-width: 640px; }
.pricing-block .lede { color: var(--text); font-size: 20px; margin: 12px 0; }

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  background: var(--bg);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}
.footer-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--muted);
}
.footer-inner > .small {
  text-align: right;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  :root { --pad-section: 64px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .integrations-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
  .footer-inner > .small { text-align: left; }
}
@media (max-width: 560px) {
  :root { --pad-section: 48px; }
  .nav-links { gap: 20px; }
  .nav-icon { display: block; }
  .nav-label { display: none; }
  .nav-links a { padding: 6px; border-radius: 6px; }
  .nav-links a:hover { background: var(--surface); color: var(--text); }
  .grid { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 56px; }
}
