:root {
  --bg: #0a0e1a;
  --bg-alt: #0f1424;
  --surface: #131a2e;
  --border: #233049;
  --text: #e7ecf5;
  --muted: #93a0b8;
  --accent: #8b6fff;
  --accent-2: #6c4ee6;
  --radius: 14px;
  --max: 1300px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  /* Full-width texture so wide screens aren't flat black margins:
     a soft accent glow up top + a very faint fixed dot grid. */
  background-image:
    radial-gradient(1000px 620px at 50% -180px, rgba(56, 189, 248, 0.10), transparent 70%),
    radial-gradient(rgba(147, 160, 184, 0.05) 1px, transparent 1px);
  background-repeat: no-repeat, repeat;
  background-size: 100% 760px, 30px 30px;
  background-position: top center, 0 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }

.grad {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 24px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; }
.brand strong { color: var(--accent); font-weight: 700; }
.brand-mark { width: 28px; height: 28px; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text) !important;
}
.nav-cta:hover { border-color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.08s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-icon { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #04122b;
  box-shadow: 0 8px 30px -8px rgba(56, 189, 248, 0.5);
}
.btn-primary:hover { box-shadow: 0 12px 36px -8px rgba(56, 189, 248, 0.65); }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-lg { padding: 15px 30px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 24px 72px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(34px, 6vw, 60px); font-weight: 800; }
.lede {
  max-width: 660px;
  margin: 22px auto 0;
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--muted);
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero-sub { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* ---------- Hero animated product preview (pure CSS, ~loops) ---------- */
.hero-preview { margin: 44px auto 0; max-width: 480px; position: relative; z-index: 1; }
.hp-window { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden; box-shadow: 0 24px 70px rgba(0, 0, 0, .45); text-align: left; }
.hp-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.hp-bar > span { width: 10px; height: 10px; border-radius: 50%; background: #2c3850; }
.hp-bar > span:nth-child(1) { background: #ef6b6b; }
.hp-bar > span:nth-child(2) { background: #e3b23c; }
.hp-bar > span:nth-child(3) { background: #4cae6a; }
.hp-bar em { margin-left: 8px; color: var(--muted); font-size: 12px; font-style: normal; }
.hp-body { padding: 18px 18px 20px; }
.hp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.hp-steps li { display: flex; align-items: center; gap: 11px; font-size: 13px; color: var(--text); opacity: .4; animation: hpStep 6.5s ease-in-out infinite; animation-delay: calc(var(--i) * 0.95s); }
.hp-steps li::before { content: "✓"; flex: none; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; font-size: 11px; line-height: 1; color: transparent; background: var(--bg); border: 1.5px solid var(--border); animation: hpDot 6.5s ease-in-out infinite; animation-delay: calc(var(--i) * 0.95s); }
.hp-result { margin-top: 16px; padding: 9px 13px; border-radius: 9px; background: rgba(76, 174, 106, .14); color: #6ee29e; font-size: 12.5px; font-weight: 600; opacity: 0; animation: hpResult 6.5s ease-in-out infinite; }
@keyframes hpStep { 0%, 7% { opacity: .4; } 13%, 90% { opacity: 1; } 100% { opacity: .4; } }
@keyframes hpDot {
  0%, 7% { color: transparent; background: var(--bg); border-color: var(--border); }
  13%, 100% { color: #06140c; background: #4cae6a; border-color: #4cae6a; }
}
@keyframes hpResult { 0%, 72% { opacity: 0; transform: translateY(5px); } 80%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }
/* The hero preview is purely decorative — it intentionally keeps animating even when the
   OS/browser requests reduced motion, so the marketing hero always looks alive. (Other,
   non-decorative motion on the site is minimal and not gated here.) */

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(closest-side, rgba(37, 99, 235, 0.28), transparent 70%);
  z-index: 1;
  pointer-events: none;
}

/* ---------- Trust strip ---------- */
.strip {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.strip-item {
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.strip-item strong { color: var(--accent); font-size: 15px; }
.strip-item span { color: var(--muted); font-size: 14px; }

/* ---------- Sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 90px 24px; }
.section-alt { background: var(--bg-alt); max-width: none; }
.section-alt > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 700; }
.section-head p { color: var(--muted); margin: 12px auto 0; font-size: 17px; max-width: 640px; }

/* ---------- Feature grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.2s ease, transform 0.12s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card-ic { font-size: 26px; margin-bottom: 14px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-weight: 700;
  color: #04122b;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  margin-bottom: 14px;
}
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- Pricing ---------- */
.billing-toggle { display: flex; justify-content: center; gap: 4px; margin: 0 auto 28px; padding: 4px; width: fit-content; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.bt-opt { background: transparent; border: 0; color: var(--muted); font-size: 14px; padding: 8px 18px; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s; }
.bt-opt.is-active { background: var(--accent); color: #07111f; font-weight: 600; }
.bt-opt:hover:not(.is-active) { color: var(--text); }
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.tier {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tier-featured {
  border-color: var(--accent);
  box-shadow: 0 20px 50px -24px rgba(56, 189, 248, 0.5);
  position: relative;
}
.tier-badge {
  position: absolute;
  top: -12px;
  left: 26px;
  font-size: 12px;
  font-weight: 700;
  color: #04122b;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  padding: 4px 12px;
  border-radius: 999px;
}
.tier h3 { font-size: 20px; }
.price { font-size: 32px; font-weight: 800; margin: 6px 0; }
.price .per, .price span { font-size: 14px; font-weight: 500; color: var(--muted); }
.tier-sub { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.tier-feats { list-style: none; padding: 0; margin: 10px 0 22px; display: grid; gap: 9px; color: var(--muted); font-size: 14px; }
.tier .btn { justify-content: center; margin-top: auto; }

/* ---------- Plan comparison table ---------- */
.compare { margin-top: 64px; }
.compare-title { text-align: center; font-size: 22px; font-weight: 700; margin-bottom: 24px; }
.compare-scroll { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.compare-table th, .compare-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.compare-table thead th { color: var(--text); font-weight: 700; font-size: 15px; text-align: center; }
.compare-table thead th:first-child { text-align: left; }
.compare-table tbody td { text-align: center; color: var(--text); }
.compare-table tbody td:first-child { text-align: left; color: var(--muted); }
.compare-table th.col-team, .compare-table tbody td:nth-child(3) { background: rgba(56, 189, 248, 0.06); }
.compare-table tr.grp td { color: var(--accent); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; padding-top: 24px; background: transparent; }
.compare-table .ok { color: #4ade80; font-weight: 700; }
.compare-table .no { color: var(--muted); opacity: .45; }
.compare-table .lim { color: var(--muted); font-size: 13px; }

/* ---------- Doc pages (docs.html, changelog.html) ---------- */
.doc { max-width: 820px; margin: 0 auto; padding: 56px 24px 90px; }
.doc h1 { font-size: clamp(28px, 5vw, 40px); font-weight: 800; }
.doc .doc-lede { color: var(--muted); font-size: 18px; margin: 14px 0 40px; }
.doc h2 { font-size: 24px; font-weight: 700; margin: 40px 0 12px; }
.doc h3 { font-size: 18px; font-weight: 600; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--muted); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 13px;
  color: var(--text);
}
.doc pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  overflow: auto;
  font-size: 13px;
}
.doc pre code { background: none; border: none; padding: 0; }
.doc a { color: var(--accent); }
.release { border-left: 2px solid var(--border); padding: 0 0 4px 22px; margin: 0 0 8px; position: relative; }
.release::before { content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.release .tag { display: inline-block; font-size: 12px; color: var(--accent); font-weight: 700; letter-spacing: 0.04em; }
.release h3 { margin-top: 4px; color: var(--text); }

/* ---------- Download ---------- */
.download { display: flex; justify-content: center; }
.download-card {
  width: 100%;
  max-width: 720px;
  text-align: center;
  background: linear-gradient(180deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 56px 32px;
}
.download-card h2 { font-size: clamp(26px, 4vw, 34px); font-weight: 700; }
.download-card > p { color: var(--muted); margin: 14px auto 28px; max-width: 520px; }
.funnel {
  list-style: none;
  padding: 0;
  margin: 8px auto 30px;
  max-width: 460px;
  text-align: left;
  display: grid;
  gap: 14px;
}
.funnel li { display: flex; align-items: flex-start; gap: 14px; }
.funnel .step-n { margin: 0; flex: 0 0 auto; width: 30px; height: 30px; font-size: 14px; }
.funnel strong { display: block; color: var(--text); font-size: 15px; }
.funnel span { color: var(--muted); font-size: 14px; }
.reqs {
  list-style: none;
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0;
  margin: 30px 0 18px;
  color: var(--muted);
  font-size: 14px;
}
.muted { color: var(--muted); font-size: 14px; }
.muted a { color: var(--accent); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-alt); }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links { display: flex; gap: 22px; color: var(--muted); font-size: 15px; }
.footer-links a:hover { color: var(--text); }
.footer-help { color: var(--muted); font-size: 14px; margin: 0; width: 100%; }
.footer-help a { color: var(--accent); }
.footer-help a:hover { color: var(--text); }
.copyright { color: var(--muted); font-size: 14px; margin: 0; width: 100%; }

/* ---------- Mobile nav (hamburger) ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 38px;
  padding: 8px 9px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid, .steps, .strip { grid-template-columns: 1fr 1fr; }
  .pricing { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; }
  .section { padding: 64px 20px; }

  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin-top: 10px;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 11px 14px; border-radius: 9px; font-size: 16px; }
  .nav-links a:hover { background: var(--bg-alt); color: var(--text); }
  .nav-cta { text-align: center; margin-top: 4px; }
}
@media (max-width: 560px) {
  .grid, .steps, .strip { grid-template-columns: 1fr; }
  .hero-inner { padding-top: 64px; }
  .compare-table { font-size: 13px; }
}

/* See it in action — demo video grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 1040px;
  margin: 0 auto;
}
.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.video-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
  object-fit: contain;
}
.video-card figcaption {
  padding: 14px 18px;
  color: var(--muted);
  font-size: 14px;
}
.video-card figcaption strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  letter-spacing: -0.01em;
  margin-bottom: 3px;
}
@media (max-width: 720px) {
  .video-grid { grid-template-columns: 1fr; }
}
