:root {
  --bg: #0a0e17;
  --bg-raised: #10151f;
  --card: #131a29;
  --card-border: #202a3d;
  --card-border-hover: #2c394f;
  --text: #e7ebf3;
  --text-dim: #8b96ab;
  --text-faint: #5b6579;
  --accent: #22c58b;
  --accent-strong: #2fe3a3;
  --accent-dim: rgba(34, 197, 139, 0.12);
  --blue: #3b82f6;
  --blue-dim: rgba(59, 130, 246, 0.12);
  --red: #ef4444;
  --red-dim: rgba(239, 68, 68, 0.14);
  --amber: #f5a524;
  --amber-dim: rgba(245, 165, 36, 0.14);
  --radius: 10px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---- Top nav ---- */
.topnav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; border-bottom: 1px solid var(--card-border);
  background: rgba(10, 14, 23, 0.9); backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 50;
  /* Chromium has a known glitch where sticky + backdrop-filter renders the element in the
     wrong place mid-scroll unless it's promoted to its own compositing layer. */
  transform: translateZ(0);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #05140d; font-weight: 800;
}
.brand-sub { color: var(--text-faint); font-weight: 500; font-size: 11px; }
.nav-links { display: flex; gap: 26px; font-size: 13px; color: var(--text-dim); }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-ip { font-family: var(--mono); font-size: 12px; color: var(--text-dim); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 8px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--card-border); background: var(--card); color: var(--text);
  transition: border-color .15s, background .15s;
}
.btn:hover { border-color: var(--card-border-hover); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #04140d; }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn-blue { background: var(--blue); border-color: var(--blue); color: #06122b; }
.btn-red { background: var(--red); border-color: var(--red); color: #2b0505; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---- Pills / badges ---- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600;
  border: 1px solid var(--card-border); color: var(--text-dim);
}
.pill-accent { background: var(--accent-dim); border-color: rgba(34,197,139,.35); color: var(--accent-strong); }
.pill-blue { background: var(--blue-dim); border-color: rgba(59,130,246,.35); color: #7fb0ff; }
.pill-red { background: var(--red-dim); border-color: rgba(239,68,68,.35); color: #ff8f8f; }
.pill-amber { background: var(--amber-dim); border-color: rgba(245,165,36,.35); color: #ffc25c; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---- Cards ---- */
.card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 18px;
}
.card-title { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card-sub { font-size: 11.5px; color: var(--text-faint); margin-top: 2px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }

/* ---- Hero ---- */
.hero { padding: 72px 0 40px; }
.hero-badges { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.hero h1 { font-size: 44px; line-height: 1.1; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero h1 .accent { color: var(--accent-strong); }
.hero p.lead { color: var(--text-dim); font-size: 15px; max-width: 640px; margin: 0 0 28px; }
.hero-stats { display: flex; gap: 34px; margin: 26px 0; }
.hero-stat-label { font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .04em; }
.hero-stat-value { font-size: 15px; font-weight: 700; margin-top: 4px; }
.hero-actions { display: flex; gap: 12px; }

.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.video-mock {
  background: var(--bg-raised); border: 1px solid var(--card-border); border-radius: var(--radius);
  overflow: hidden;
}
.video-mock .vm-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--card-border); }
.video-mock .vm-body { aspect-ratio: 16/10; background: radial-gradient(120% 100% at 20% 0%, #0e1c14 0%, #0a0e17 60%); position: relative; display: flex; align-items: center; justify-content: center; }
.video-mock .vm-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.video-mock .vm-foot { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; font-size: 11px; color: var(--text-faint); border-top: 1px solid var(--card-border); }

/* ---- Section ---- */
.section { padding: 64px 0; scroll-margin-top: 68px; } /* keeps a smooth-scrolled section's heading clear of the sticky nav */
.section-head { margin-bottom: 30px; }
.section-head h2 { font-size: 26px; margin: 0 0 8px; letter-spacing: -0.01em; }
.section-head p { color: var(--text-dim); font-size: 14px; margin: 0; max-width: 620px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-strong); margin-bottom: 10px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card ul { margin: 0; padding-left: 16px; color: var(--text-dim); font-size: 12.5px; line-height: 1.7; }
.feature-icon { width: 30px; height: 30px; border-radius: 8px; background: var(--accent-dim); color: var(--accent-strong); display: flex; align-items: center; justify-content: center; font-size: 14px; margin-bottom: 12px; }

.code-block {
  background: var(--bg-raised); border: 1px solid var(--card-border); border-radius: var(--radius);
  font-family: var(--mono); font-size: 12px; overflow-x: auto;
}
.code-block .cb-head { display: flex; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid var(--card-border); color: var(--text-faint); font-family: var(--sans); font-size: 11px; }
.code-block pre { margin: 0; padding: 14px; overflow-x: auto; }
.code-block .c-kw { color: #ff8f8f; }
.code-block .c-str { color: #7fd6a0; }
.code-block .c-com { color: var(--text-faint); }
.code-block .c-num { color: #ffc25c; }

table.perms { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.perms th { text-align: left; color: var(--text-faint); font-weight: 600; text-transform: uppercase; font-size: 10.5px; letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--card-border); }
table.perms td { padding: 9px 10px; border-bottom: 1px solid var(--card-border); }
table.perms tr:last-child td { border-bottom: none; }
table.perms code { font-family: var(--mono); color: var(--accent-strong); font-size: 11.5px; }

.footer-cta { text-align: center; padding: 56px 0; border-top: 1px solid var(--card-border); scroll-margin-top: 68px; }
.footer-cta h2 { font-size: 24px; margin: 0 0 10px; }
.footer-cta p { color: var(--text-dim); margin: 0 0 22px; }
footer.site-foot { border-top: 1px solid var(--card-border); padding: 20px 0; font-size: 11.5px; color: var(--text-faint); display: flex; justify-content: space-between; }
