:root {
  --bg: #0b0d12;
  --bg-elev: #141824;
  --border: #232838;
  --text: #e6e9f0;
  --muted: #8a92a6;
  --accent: #4f8cff;               /* Probit blue — distinct from the Arcane hub violet */
  --accent-soft: rgba(79, 140, 255, 0.15);
  --ok: #37d67a;
  --err: #ff5c5c;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(79, 140, 255, 0.12), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

/* ---- Sticky site navigation (injected by nav.js) ---- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(11, 13, 18, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
}
.topbar-brand .mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 15px;
  box-shadow: 0 4px 14px rgba(79, 140, 255, 0.3);
}

.navsel { position: relative; }

.navsel-btn {
  width: auto;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;
  cursor: pointer;
}
.navsel-btn:hover { filter: none; border-color: var(--muted); }
.navsel-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }
.caret { transition: transform 0.15s ease; color: var(--muted); }

.navsel-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 190px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  flex-direction: column;
  gap: 2px;
  display: none;            /* closed by default */
}
.navsel-menu.open { display: flex; }   /* opened by nav.js */

.navsel-menu a {
  display: block;
  width: 100%;
  text-align: left;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 8px;
}
.navsel-menu a:hover { background: var(--accent-soft); }
.navsel-menu a.active {
  color: var(--accent);
  background: var(--accent-soft);
}

/* ---- Hero + sections ---- */
.hero h2 {
  font-size: 34px;
  line-height: 1.25;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}
.hero p {
  color: var(--muted);
  font-size: 17px;
  max-width: 62ch;
}
.hero-lg h2 { font-size: 40px; }

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

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.section { margin-top: 64px; }
.section-head { margin-bottom: 24px; }
.section-head h3 { font-size: 26px; margin: 0 0 8px; }
.section-head p { color: var(--muted); margin: 0; }

/* ---- Cards ---- */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

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

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.feature {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.feature h4 { margin: 0 0 8px; font-size: 16px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

.feature-card { display: flex; flex-direction: column; gap: 12px; }
.feature-card h3 { margin: 0; font-size: 18px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; }

.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
}

/* ---- Buttons / links ---- */
button {
  width: 100%;
  margin-top: 16px;
  padding: 13px 16px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s ease, opacity 0.15s ease;
}
button:hover { filter: brightness(1.08); }
button:disabled { opacity: 0.6; cursor: default; }

.btn-link {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  padding: 13px 20px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  transition: filter 0.15s ease;
}
.btn-link:hover { filter: brightness(1.08); }
.btn-link.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-link.ghost:hover { border-color: var(--accent); filter: none; }
.btn-link.big { padding: 15px 26px; font-size: 16px; }
.btn-link[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.link-hint { color: var(--accent); font-size: 13px; margin-top: auto; text-decoration: none; }
.link-hint:hover { text-decoration: underline; }

/* ---- Forms ---- */
label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0d0f16;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea { resize: vertical; min-height: 120px; }
input:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field { margin-bottom: 16px; }
.field:last-of-type { margin-bottom: 0; }

/* Off-screen honeypot — real users never see or fill it. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact { margin-top: 28px; max-width: 560px; }

.note { font-size: 14px; margin-top: 14px; min-height: 20px; }
.note.ok { color: var(--ok); }
.note.err { color: var(--err); }

/* ---- Download page ---- */
.dl {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dl .dl-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.dl .dl-head h3 { margin: 0; font-size: 20px; }
.dl .dl-meta { color: var(--muted); font-size: 13px; }
.dl .dl-actions { margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap; }
.dl .price-tag {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 3px 12px;
}
.req { margin-top: 20px; }
.req h4 { margin: 0 0 10px; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; }
.req ul { margin: 0; padding-left: 20px; }
.req li { color: var(--muted); font-size: 14px; margin-bottom: 6px; }

/* ---- Prose (about) ---- */
.prose { margin-top: 28px; }
.prose h3 { font-size: 18px; margin: 26px 0 8px; }
.prose h3:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent); }

.cta {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.cta h3 { margin: 0 0 4px; }
.cta p { margin: 0; color: var(--muted); }

.muted-note {
  margin-top: 40px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.muted-note a { color: var(--accent); text-decoration: none; }
.muted-note a:hover { text-decoration: underline; }

/* ---- FAQ accordion ---- */
.faq { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 20px;
}
.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }
.faq a { color: var(--accent); }

/* ---- Shared site footer (injected by nav.js) ---- */
.site-foot {
  border-top: 1px solid var(--border);
  margin-top: 80px;
  padding: 40px 24px;
}
.site-foot-inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-foot-brand .brandline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.site-foot-brand .mark {
  width: 26px; height: 26px; border-radius: 7px; font-size: 13px;
}
.site-foot-brand p { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.site-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-content: flex-start;
}
.site-foot-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.site-foot-links a:hover { color: var(--text); }
.site-foot-legal {
  max-width: 880px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 12px;
}

/* Shared brand mark image (topbar + footer). Size / radius set per-context above. */
.mark {
  display: block;
  object-fit: cover;
}
