/* ==========================================================================
   Bifrost Lodestar — site styles
   ========================================================================== */

:root {
  --black: #000;
  --panel: #0a0a0b;
  --panel-2: #101013;
  --white: #f5f5f5;
  --muted: #a5a5ad;
  --dim: #6e6e78;
  --line: #1e1e21;
  --line-2: #2c2c31;

  --accent: #3d9bff;
  --accent-soft: rgba(61, 155, 255, .12);
  --warn: #ff8f5c;

  /* Scene colours lifted from the Lodestar Fusion renderer, so every diagram
     on the site reads the same way the software does. */
  --anchor: #0f8ae3;
  --tracker: #1ec83a;
  --boundary: #73c7ff;
  --boundary-fill: rgba(64, 110, 140, .16);
  --axis-x: #e0362a;
  --axis-y: #1ec83a;
  --origin-dot: #f2f2f2;

  --container: min(1180px, calc(100% - 48px));
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--black);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
::selection { color: #fff; background: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container {
  width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 15px;
  border-radius: 8px;
  background: #fff;
  color: #000;
  font-size: 13px;
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

/* ----- Header ------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 72px;
  flex: 0 0 72px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  color: #f2f2f2;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.04em;
}

.wordmark img {
  width: 34px;
  height: 34px;
  margin: -4px;
  object-fit: contain;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
}

.primary-nav a {
  color: var(--muted);
  white-space: nowrap;
  transition: color .15s ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a[aria-current="page"] { color: var(--white); }

.primary-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 17px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--white);
  transition: border-color .15s ease, background .15s ease;
}

.primary-nav .nav-cta:hover { border-color: #5a5a63; background: #131316; }

.mobile-nav { display: none; position: relative; }

.mobile-nav summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  padding: 8px 15px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 13px;
}

.mobile-nav summary::-webkit-details-marker { display: none; }

.mobile-nav nav {
  position: absolute;
  top: 46px;
  right: 0;
  width: 200px;
  padding: 7px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: #0e0e10;
  box-shadow: 0 20px 44px rgba(0, 0, 0, .6);
}

.mobile-nav nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 14px;
}

.mobile-nav nav a:hover { background: #17171a; color: var(--white); }

main { flex: 1 0 auto; }

/* ----- Typography -------------------------------------------------------- */

h1, h2, h3, h4, p { margin-top: 0; }

h1, h2, h3 {
  margin-bottom: 20px;
  letter-spacing: -.04em;
  line-height: 1.08;
}

h1 { font-size: clamp(40px, 4.9vw, 62px); }
h2 { font-size: clamp(29px, 3.2vw, 41px); }
h3 { font-size: 20px; line-height: 1.28; }

p { margin-bottom: 18px; color: var(--muted); }

/* Section eyebrow. Sentence case and the body typeface, so it sits in the same
   voice as everything around it. */
.overline {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 15px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.overline i { font-size: 13px; }

.lead {
  max-width: 660px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.68;
}

.section { padding-block: clamp(70px, 8.5vw, 112px); }
.section-line { border-top: 1px solid var(--line); }

.section-heading { max-width: 780px; margin-bottom: 50px; }
.section-heading p:last-child { margin-bottom: 0; }

/* ----- Buttons and links -------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}

.button-primary { background: var(--accent); color: #04121f; }
.button-primary:hover { background: #5aabff; }
.button-ghost { border-color: var(--line-2); color: var(--white); }
.button-ghost:hover { border-color: #5a5a63; background: #121215; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
}

.text-link i { font-size: 12px; transition: transform .15s ease; }
.text-link:hover i { transform: translateX(4px); }

/* ----- Hero --------------------------------------------------------------- */

.hero { border-bottom: 0; }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: 58px;
  padding-block: clamp(54px, 7vw, 88px);
}

.hero-copy h1 { margin-bottom: 24px; }
.hero-copy .lead { max-width: 520px; margin-bottom: 34px; }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ----- Scene diagrams -----------------------------------------------------
   The venue plan, the frame diagram and the console all share one visual
   language, matched to the software: blue anchors, green trackers, a pale blue
   boundary with white vertices, and a red/green origin gizmo.
   ------------------------------------------------------------------------- */

.diagram {
  padding: 20px;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: var(--panel-2);
}

.diagram-svg {
  display: block;
  width: 100%;
  height: auto;
}

.venue-floor { fill: var(--boundary-fill); stroke: none; }
.venue-hole { fill: #08080a; stroke: var(--boundary); stroke-width: 2; opacity: .75; }
.venue-wall { fill: none; stroke: var(--boundary); stroke-width: 2.2; stroke-linejoin: round; }
.venue-vertex { fill: #fff; stroke: none; }

.range-line {
  stroke: var(--anchor);
  stroke-width: 1.2;
  stroke-dasharray: 4 5;
  opacity: .6;
}

.anchor-node rect { fill: var(--anchor); }
.anchor-node circle { fill: none; stroke: var(--anchor); stroke-width: 1.3; opacity: .32; }
.tracker-node circle.halo { fill: rgba(30, 200, 58, .14); stroke: rgba(30, 200, 58, .5); stroke-width: 1; }
.tracker-node circle.core { fill: var(--tracker); }

.axis-x { stroke: var(--axis-x); }
.axis-y { stroke: var(--axis-y); }
.origin-dot { fill: var(--origin-dot); }

.diagram-label {
  fill: var(--muted);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
}

.diagram-label-dim { fill: var(--dim); }

.diagram-key {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding-top: 15px;
  margin-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 12.5px;
}

.diagram-key span { display: inline-flex; align-items: center; gap: 8px; }
.diagram-key i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.key-anchor { color: var(--anchor); }
.key-anchor i { border-radius: 2px; }
.key-tracker { color: var(--tracker); }
.key-boundary { color: var(--boundary); }
.key-boundary i { width: 14px; height: 0; border-radius: 0; background: none; border-top: 2px solid currentColor; }
.key-origin { color: var(--origin-dot); }

/* ----- Fact strip --------------------------------------------------------- */

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.facts div {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 26px 24px 26px 0;
  border-right: 1px solid var(--line);
}

.facts div:last-child { border-right: 0; }
.facts div + div { padding-left: 24px; }

.facts i {
  flex: 0 0 18px;
  margin-top: 5px;
  color: var(--accent);
  font-size: 17px;
  text-align: center;
}

.facts strong { display: block; margin-bottom: 2px; font-size: 21px; letter-spacing: -.03em; }
.facts small { display: block; color: var(--dim); font-size: 12.5px; line-height: 1.5; }

/* ----- Split features ----------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
}

.split.reverse .split-copy { order: 2; }
.split-copy h2 { margin-bottom: 18px; }
.split-copy > p { max-width: 540px; }

.detail-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.detail-list li {
  display: grid;
  grid-template-columns: 22px 200px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.detail-list i { margin-top: 3px; color: var(--accent); font-size: 14px; text-align: center; }
.detail-list strong { font-size: 14.5px; letter-spacing: -.01em; }
.detail-list span { color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* ----- Comparison --------------------------------------------------------- */

.compare {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.compare article {
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.compare article.is-solution {
  border-color: rgba(61, 155, 255, .42);
  background: rgba(61, 155, 255, .05);
}

.compare .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-bottom: 20px;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 700;
}

.compare article.is-solution .tag { border-color: rgba(61, 155, 255, .5); color: var(--accent); }
.compare h3 { margin-bottom: 13px; }
.compare p { margin-bottom: 20px; font-size: 14.5px; }

.compare ul { margin: auto 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }

.compare li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.compare li:last-child { border-bottom: 0; }
.compare li i { margin-top: 3px; color: #7a5148; font-size: 12px; text-align: center; }
.compare article.is-solution li i { color: var(--tracker); }

/* ----- Drift diagram ------------------------------------------------------ */

.drift-card { display: grid; gap: 14px; }

.drift-case {
  padding: 18px 18px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.drift-case.is-corrected { border-color: rgba(30, 200, 58, .32); }

.drift-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.drift-head strong { display: flex; align-items: center; gap: 9px; font-size: 14.5px; letter-spacing: -.015em; }
.drift-head span { color: var(--dim); font-size: 13px; white-space: nowrap; }
.drift-head b { font-variant-numeric: tabular-nums; }
.is-drifting .drift-head strong i, .is-drifting .drift-head b { color: var(--warn); }
.is-corrected .drift-head strong i, .is-corrected .drift-head b { color: var(--tracker); }

.drift-svg { display: block; width: 100%; height: auto; }

.truth-path { fill: none; stroke: #7c7c88; stroke-width: 1.6; stroke-dasharray: 6 5; }
.reported-path { fill: none; stroke-width: 2.2; stroke-linecap: round; }
.is-drifting .reported-path { stroke: var(--warn); }
.is-corrected .reported-path { stroke: var(--tracker); }

.error-band { stroke: none; }
.is-drifting .error-band { fill: rgba(255, 143, 92, .16); }
.is-corrected .error-band { fill: rgba(30, 200, 58, .18); }

.truth-marker { fill: none; stroke: #8b8b95; stroke-width: 1.5; }
.reported-marker { stroke: #08080a; stroke-width: 1.5; }
.is-drifting .reported-marker { fill: var(--warn); }
.is-corrected .reported-marker { fill: var(--tracker); }

.drift-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 11px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 12px;
}

.drift-foot span { display: inline-flex; align-items: center; gap: 8px; }
.drift-foot em { width: 15px; height: 0; border-top: 2px solid currentColor; }
.drift-foot .k-truth { color: #8b8b95; }
.drift-foot .k-truth em { border-top-style: dashed; }
.is-drifting .drift-foot .k-report { color: var(--warn); }
.is-corrected .drift-foot .k-report { color: var(--tracker); }

/* ----- Multiplayer architecture ------------------------------------------- */

.net-card {
  padding: 28px 26px 26px;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: var(--panel-2);
}

.net-label {
  margin-bottom: 12px;
  color: var(--dim);
  font-size: 12.5px;
  text-align: center;
}

.server-node {
  display: flex;
  align-items: center;
  gap: 15px;
  width: min(340px, 100%);
  margin-inline: auto;
  padding: 17px 20px;
  border: 1px solid rgba(61, 155, 255, .45);
  border-radius: 14px;
  background: rgba(61, 155, 255, .08);
}

.node-glyph { display: grid; place-items: center; flex: 0 0 auto; }

.server-node .node-glyph {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(61, 155, 255, .18);
  color: var(--accent);
  font-size: 17px;
}

.server-node strong { display: block; font-size: 15px; letter-spacing: -.02em; }
.server-node small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.45; }

/* Two static flows either side of a stem: state the server pushes down, poses
   the clients report back up. */
.net-trunk {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 54px;
  height: 78px;
  margin: 2px 0;
}

.net-trunk::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--line-2);
}

.net-flow { display: flex; align-items: center; }
.net-flow i { color: var(--accent); font-size: 26px; }
.net-flow.up i { color: var(--tracker); }

.client-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.client-node {
  padding: 15px 10px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--panel);
  text-align: center;
}

.client-node .node-glyph {
  width: 32px;
  height: 32px;
  margin: 0 auto 9px;
  border-radius: 50%;
  background: rgba(30, 200, 58, .13);
  color: var(--tracker);
  font-size: 14px;
}

.client-node strong { display: block; font-size: 12.5px; letter-spacing: -.01em; }
.client-node small { display: block; margin-top: 4px; color: var(--dim); font-size: 11px; }

/* ----- Replication grid --------------------------------------------------- */

.repl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 58px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.repl-grid article { padding: 26px 24px; background: var(--panel); }

.repl-grid h3 {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 10px;
  font-size: 17px;
}

.repl-grid h3 i {
  flex: 0 0 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
}

.repl-grid p { margin-bottom: 0; font-size: 14px; line-height: 1.62; }

/* ----- Operator console screenshot ---------------------------------------- */

.console-shot {
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--panel);
  overflow: hidden;
}

.console-shot img { width: 100%; }

.console-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  margin-top: 44px;
}

.console-features h3 {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 10px;
  font-size: 17px;
}

.console-features h3 i { flex: 0 0 auto; color: var(--accent); font-size: 15px; }
.console-features p { margin-bottom: 0; font-size: 14px; line-height: 1.62; }

/* ----- Code switcher ------------------------------------------------------ */

.code-card {
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: var(--panel);
  overflow: hidden;
}

.code-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 10px 0;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}

.code-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--dim);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}

.code-tab:hover { color: var(--muted); }
.code-tab[aria-selected="true"] { color: var(--white); border-bottom-color: var(--accent); }

.code-panel[hidden] { display: none; }

.code-card pre {
  margin: 0;
  padding: 20px 18px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.85;
  -webkit-overflow-scrolling: touch;
}

.code-card code { color: #d6d6dd; }
.code-card .c-com { color: #5c5c66; }
.code-card .c-fn { color: var(--accent); }
.code-card .c-str { color: var(--tracker); }
.code-card .c-key { color: #c39bff; }
.code-card .c-num { color: #ffb27a; }

.engine-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.engine-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.engine-chip small { color: var(--dim); font-size: 11.5px; font-weight: 400; }
a.engine-chip { transition: border-color .15s ease, background .15s ease; }
a.engine-chip:hover { border-color: #5a5a63; background: #121215; }

/* ----- Process steps ------------------------------------------------------ */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.steps li { display: flex; flex-direction: column; padding: 28px 24px 30px; background: var(--panel); }
.steps li + li { border-left: 1px solid var(--line); }

.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }

.step-no {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--dim);
  font-size: 12px;
  font-weight: 700;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 16px;
}

.steps h3 { margin-bottom: 9px; font-size: 17px; }
.steps p { margin-bottom: 0; font-size: 13.5px; line-height: 1.6; }

/* ----- Hardware ----------------------------------------------------------- */

.spec-list { margin: 0; border-top: 1px solid var(--line); }

.spec-list div {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.spec-list i { color: var(--accent); font-size: 13px; text-align: center; }
.spec-list dt { color: var(--muted); font-size: 13.5px; }
.spec-list dd { margin: 0; font-size: 13.5px; font-weight: 700; }

.role-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 70px;
}

.role-band article {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  overflow: hidden;
}

.role-band figure {
  display: grid;
  place-items: center;
  height: 270px;
  margin: 0;
  padding: 18px;
}

/* A percentage height does not resolve against the grid area here, so the box
   is clamped with a definite max-height and object-fit letterboxes inside it.
   234px is the figure height less its padding. */
.role-band figure img { width: 100%; max-height: 234px; object-fit: contain; }

/* The arm runs out of frame to the right, so this figure bleeds to the card
   edge rather than letterboxing and clipping the wrist mid-way. */
.role-band .hand-figure { padding: 18px 0 18px 18px; justify-items: stretch; }
.role-band .hand-figure img { width: calc(100% + 18px); max-height: 244px; object-fit: cover; object-position: left center; }

.role-band .band-copy { padding: 0 28px 30px; }

.role-band h3 { display: flex; align-items: center; gap: 11px; margin-bottom: 11px; font-size: 19px; }
.role-band h3 i { flex: 0 0 auto; font-size: 15px; }
.role-band h3 .r-anchor { color: var(--anchor); }
.role-band h3 .r-tracker { color: var(--tracker); }
.role-band p { margin-bottom: 0; font-size: 14.5px; line-height: 1.62; }

/* ----- Use cases ---------------------------------------------------------- */

.use-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.use-grid article { padding: 28px 24px; background: var(--panel); }

.use-grid .use-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 17px;
}

.use-grid h3 { margin-bottom: 10px; font-size: 17px; }
.use-grid p { margin-bottom: 0; font-size: 13.5px; line-height: 1.6; }

/* ----- FAQ ---------------------------------------------------------------- */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr);
  gap: clamp(32px, 5vw, 72px);
}

.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }

.faq-list summary {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary > i:first-child { color: var(--accent); font-size: 14px; text-align: center; }
.faq-list summary .chev { color: var(--dim); font-size: 13px; text-align: center; transition: transform .18s ease; }
.faq-list details[open] summary .chev { transform: rotate(180deg); }

.faq-list p {
  max-width: 700px;
  margin: 0;
  padding: 0 0 22px 34px;
  font-size: 14.5px;
}

/* ----- CTA banner and footer ---------------------------------------------- */

.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(34px, 5vw, 52px);
  border: 1px solid rgba(61, 155, 255, .3);
  border-radius: 20px;
  background: rgba(61, 155, 255, .05);
}

.cta-banner h2 { margin-bottom: 12px; font-size: clamp(26px, 2.9vw, 36px); }
.cta-banner p { margin-bottom: 0; max-width: 520px; font-size: 15.5px; }

.site-footer { flex: 0 0 auto; padding-block: 54px 44px; border-top: 1px solid var(--line); }

.footer-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
}

.footer-wrap > div:first-child p { max-width: 320px; margin: 16px 0 0; color: var(--dim); font-size: 13.5px; }

.footer-col h4 { margin: 0 0 16px; color: var(--white); font-size: 13.5px; }

.footer-col a,
.footer-col span {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
  color: var(--muted);
  font-size: 13.5px;
}

.footer-col i { flex: 0 0 15px; color: var(--dim); font-size: 12px; text-align: center; }
.footer-col a:hover { color: var(--white); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 12.5px;
}

/* ----- Interior page hero -------------------------------------------------- */

.page-hero { border-bottom: 1px solid var(--line); }
.page-hero-inner { max-width: 760px; padding-block: clamp(52px, 6.5vw, 88px); }
.page-hero h1 { font-size: clamp(36px, 4.4vw, 56px); }
.page-hero .lead { margin-bottom: 0; }

/* ----- Downloads ---------------------------------------------------------- */

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.download-grid article {
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color .18s ease;
}

.download-grid article:hover { border-color: var(--line-2); }

.dl-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }

.dl-platform {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 13px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
}

.dl-platform i { color: var(--accent); }
.dl-version { color: var(--dim); font-size: 12.5px; }

.download-grid h2 { margin-bottom: 12px; font-size: 23px; }
.download-grid p { font-size: 14.5px; }

.dl-features { margin: 4px 0 26px; padding: 0; list-style: none; }

.dl-features li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 11px;
  padding: 7px 0;
  color: var(--muted);
  font-size: 13.5px;
}

.dl-features i { margin-top: 3px; color: var(--accent); font-size: 12px; text-align: center; }
.download-grid .text-link { margin-top: auto; }

.dl-soon {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  color: var(--dim);
  font-size: 15px;
  font-weight: 700;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 26px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.notice .node-glyph {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 15px;
}

.notice h3 { margin-bottom: 6px; font-size: 15px; }
.notice p { margin-bottom: 0; font-size: 13.5px; }

/* ----- Contact ------------------------------------------------------------ */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 20px;
  align-items: start;
}

.contact-panel {
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: var(--panel-2);
}

.panel-head {
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 21px; }
.panel-head h2 i { color: var(--accent); font-size: 17px; }
.panel-head p { margin-bottom: 0; font-size: 14px; line-height: 1.62; }

.mail-link {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.02em;
  word-break: break-word;
}

.checklist-intro {
  margin-bottom: 4px;
  color: var(--white);
  font-size: 13.5px;
  font-weight: 700;
}

.checklist { margin: 0; padding: 0; list-style: none; }

.checklist li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  color: var(--muted);
  font-size: 14px;
}

.checklist i { margin-top: 3px; color: var(--accent); font-size: 13px; text-align: center; }

.contact-form label { display: block; margin-bottom: 18px; color: var(--muted); font-size: 13px; }

.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 13px 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #0a0a0c;
  color: var(--white);
  font-size: 14.5px;
  transition: border-color .15s ease;
}

.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #4e4e57; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--accent); outline: none; }
.contact-form select { appearance: none; cursor: pointer; }

.form-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 22px; margin-top: 6px; }
.form-note { margin: 0; color: var(--dim); font-size: 12.5px; }

/* Off-screen rather than display:none, so bots that skip hidden inputs still
   trip it while screen readers skip the labelled wrapper. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 20px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.55;
}

.form-status.is-pending { color: var(--muted); }
.form-status.is-ok { border-color: rgba(30, 200, 58, .45); background: rgba(30, 200, 58, .07); color: var(--white); }
.form-status.is-error { border-color: rgba(255, 143, 92, .45); background: rgba(255, 143, 92, .07); color: var(--white); }
.form-status a { color: var(--accent); font-weight: 700; }

/* ----- Responsive --------------------------------------------------------- */

@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy .lead { max-width: none; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div:nth-child(2) { border-right: 0; }
  .facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .facts div:nth-child(3) { padding-left: 0; }
  .compare, .repl-grid, .use-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .console-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(3) { border-left: 0; }
  .steps li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .split, .faq-layout, .contact-layout { grid-template-columns: 1fr; }
  .split.reverse .split-copy { order: 0; }
  .footer-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  :root { --container: calc(100% - 32px); }
  .primary-nav { display: none; }
  .mobile-nav { display: block; }
  .compare, .repl-grid, .use-grid, .download-grid, .role-band, .field-pair, .console-features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li + li { border-left: 0; border-top: 1px solid var(--line); }
  .steps li:nth-child(-n+2) { border-bottom: 0; }
  .client-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-list li { grid-template-columns: 22px minmax(0, 1fr); gap: 5px 14px; }
  .detail-list span { grid-column: 2; }
  .cta-banner { flex-direction: column; align-items: flex-start; gap: 26px; }
  .net-card { padding: 24px 16px 20px; }
  .diagram { padding: 14px; border-radius: 16px; }
  .footer-wrap { grid-template-columns: 1fr; gap: 30px; }
  .hero-actions .button { flex: 1 0 auto; justify-content: center; }
  .faq-list p { padding-left: 0; }
}

@media (max-width: 460px) {
  :root { --container: calc(100% - 26px); }
  .facts { grid-template-columns: 1fr; }
  .facts div { padding: 18px 0 !important; border-right: 0; border-bottom: 1px solid var(--line); }
  .facts div:last-child { border-bottom: 0; }
  .client-row { grid-template-columns: 1fr; }
  .wordmark { font-size: 19px; }
  .wordmark img { width: 30px; height: 30px; }
  .net-trunk { gap: 10px; }
  .net-arrow { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
