/* NavoFlo — bilingual static landing page
   No external fonts or libraries required.
*/

:root {
  --bg: #080d12;
  --bg-2: #0b1117;
  --panel: #101820;
  --panel-2: #141f29;
  --line: rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.15);
  --text: #f2f6f8;
  --muted: #97a7b4;
  --muted-2: #71818e;
  --accent: #35d39a;
  --accent-2: #73f1bf;
  --max: 1180px;
  --radius: 18px;
  --shadow: 0 28px 80px rgba(0,0,0,.35);
  /* V8.47.0 — shared type scale. Rule: no UI text under --fs-xs (labels, chips, status bars);
     --fs-sm for dense tables / drawers, --fs-md for body & inputs, --fs-lg+ for titles. */
  --fs-xs: 11px;
  --fs-sm: 12px;
  --fs-md: 14px;
  --fs-lg: 16px;
  --fs-xl: 20px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 8%, rgba(53,211,154,.08), transparent 28rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

a { color: inherit; }
img, svg { max-width: 100%; }
button, input, textarea, select { font: inherit; }

::selection {
  background: var(--accent);
  color: #04110c;
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 112px 0;
}

.section-muted {
  background:
    linear-gradient(180deg, rgba(255,255,255,.015), rgba(255,255,255,0)),
    var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 10px 14px;
  background: var(--accent);
  color: #04110c;
  border-radius: 8px;
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(8,13,18,.74);
  backdrop-filter: blur(18px);
  transition: border-color .2s ease, background .2s ease;
}
.site-header.scrolled {
  border-color: var(--line);
  background: rgba(8,13,18,.92);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 760;
  font-size: 20px;
  letter-spacing: -.03em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  width: 28px;
  height: 28px;
  display: inline-block;
}
.brand-mark span {
  position: absolute;
  width: 6px;
  border-radius: 2px;
  transform: skewY(-28deg);
  background: var(--accent);
  box-shadow: 0 0 18px rgba(53,211,154,.16);
}
.brand-mark span:nth-child(1) { height: 17px; left: 2px; top: 7px; }
.brand-mark span:nth-child(2) { height: 24px; left: 11px; top: 2px; }
.brand-mark span:nth-child(3) { height: 15px; left: 20px; top: 8px; }

.brand.mini {
  font-size: 15px;
  gap: 7px;
}
.brand.mini .brand-mark {
  transform: scale(.72);
  transform-origin: left center;
  margin-right: -6px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.site-nav > a,
.site-nav .nav-auth > a {
  color: #b8c4cc;
  text-decoration: none;
  font-size: 14px;
  font-weight: 620;
  transition: color .2s ease;
}
.site-nav > a:hover,
.site-nav .nav-auth > a:hover { color: var(--text); }
.site-nav a.active { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent, #35d19f); text-underline-offset: 6px; }
.site-nav .nav-auth { display: contents; }
/* Apps group (Navo2D / Navo3D / NavoAI) is separated from site links by a thin rule. */
.site-nav .nav-sep { width: 1px; height: 18px; background: var(--line, rgba(255,255,255,.12)); margin: 0 -6px; }
.site-nav > a.nav-app { color: #d3dde4; }
.site-nav > a.button.nav-login { color: #0b1117; font-size: 13px; }
.site-nav .nav-logout { opacity: .7; font-weight: 520; }

.lang-switcher {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255,255,255,.025);
}
.lang-switcher a {
  min-width: 34px;
  padding: 7px 8px;
  border-radius: 6px;
  color: var(--muted);
  text-align: center;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
}
.lang-switcher a.active {
  background: var(--accent);
  color: #04110c;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle > span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--text);
  margin: 5px auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--accent);
  border-radius: 9px;
  background: var(--accent);
  color: #04110c !important;
  text-decoration: none;
  font-weight: 760;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(53,211,154,.11);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(53,211,154,.18);
  background: var(--accent-2);
}
.button-small {
  min-height: 39px;
  padding: 0 16px;
}
.button-ghost {
  border-color: var(--line-strong);
  background: rgba(255,255,255,.025);
  color: var(--text) !important;
  box-shadow: none;
}
.button-ghost:hover {
  background: rgba(255,255,255,.06);
  box-shadow: none;
}

.hero {
  padding-top: 90px;
  min-height: 760px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 84%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.03fr .97fr;
  gap: 70px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  border: 1px solid rgba(53,211,154,.22);
  background: rgba(53,211,154,.06);
  border-radius: 999px;
  color: #bdeedc;
  font-size: 12px;
  font-weight: 720;
  letter-spacing: .02em;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(53,211,154,.08);
}

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

h1 {
  max-width: 720px;
  margin: 24px 0 22px;
  font-size: clamp(54px, 6.3vw, 86px);
  line-height: .98;
  letter-spacing: -.057em;
  font-weight: 790;
}
h1 span, h2 span { color: var(--accent); }

.hero-lead {
  max-width: 690px;
  color: #aebbc5;
  font-size: 18px;
  line-height: 1.72;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 660px;
}
.hero-meta > div {
  display: grid;
  gap: 4px;
}
.hero-meta strong {
  font-size: 13px;
  letter-spacing: .01em;
}
.hero-meta span {
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.45;
}

.hero-visual {
  position: relative;
  min-width: 0;
}
.visual-glow {
  position: absolute;
  inset: 12% 8%;
  background: rgba(53,211,154,.15);
  filter: blur(80px);
  border-radius: 50%;
}
.workflow-panel {
  position: relative;
  z-index: 1;
  padding: 22px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(145deg, rgba(255,255,255,.045), transparent 36%),
    rgba(14,22,29,.94);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.panel-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.panel-top > div { display: grid; gap: 4px; }
.panel-kicker, .node-label {
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
}
.panel-top strong { font-size: 14px; }
.live-pill {
  padding: 6px 8px;
  border: 1px solid rgba(53,211,154,.18);
  background: rgba(53,211,154,.07);
  color: var(--accent);
  border-radius: 5px;
  font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
}
.flow-node {
  margin-top: 20px;
  min-height: 72px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255,255,255,.025);
}
.node-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d151c;
  color: var(--accent);
  font: 800 15px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.cad-icon { color: #a9c8ff; }
.flow-node > div:nth-child(2) { display: grid; gap: 2px; }
.flow-node strong { font-size: 13px; }
.node-state {
  color: var(--muted-2);
  font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
}
.node-state.success { color: var(--accent); }

.flow-connector {
  position: relative;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--muted-2);
}
.flow-connector span {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(var(--line), rgba(53,211,154,.36), var(--line));
}
.flow-connector small {
  position: relative;
  padding: 3px 7px;
  background: var(--panel);
  color: var(--muted-2);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.navoflo-core {
  border: 1px solid rgba(53,211,154,.3);
  border-radius: 13px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(53,211,154,.07), rgba(53,211,154,.02));
  box-shadow: inset 0 0 40px rgba(53,211,154,.025);
}
.core-header {
  min-height: 48px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(53,211,154,.16);
}
.core-header > span {
  color: rgba(115,241,191,.65);
  font: 700 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
}
.core-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
}
.core-grid > div {
  min-height: 80px;
  padding: 13px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  column-gap: 10px;
  border-right: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.core-grid > div:nth-child(even) { border-right: 0; }
.core-grid > div:nth-child(n+3) { border-bottom: 0; }
.core-grid span {
  grid-row: 1 / 3;
  color: var(--accent);
  font: 700 9px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.core-grid strong {
  font-size: 11px;
  line-height: 1.2;
}
.core-grid small {
  color: var(--muted-2);
  font-size: 9px;
}

.section-heading { max-width: 620px; }
.section-heading.narrow { max-width: 760px; }
.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}
.eyebrow-text {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent);
  font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .17em;
}
.section-heading h2 {
  margin-bottom: 20px;
  font-size: clamp(38px, 4.3vw, 58px);
  line-height: 1.05;
  letter-spacing: -.045em;
}
.section-heading p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.problem-grid {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.problem-card {
  min-height: 270px;
  padding: 30px;
  background: rgba(255,255,255,.018);
  border-right: 1px solid var(--line);
}
.problem-card:last-child { border-right: 0; }
.card-number {
  display: block;
  color: var(--accent);
  font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.problem-card h3 {
  margin: 90px 0 10px;
  font-size: 20px;
}
.problem-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.solution-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 100px;
  align-items: center;
}
.text-link {
  display: inline-flex;
  gap: 8px;
  margin-top: 15px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.text-link span {
  color: var(--accent);
  transition: transform .2s ease;
}
.text-link:hover span { transform: translateX(4px); }

.stack-diagram {
  max-width: 550px;
  margin-left: auto;
  width: 100%;
}
.stack-block {
  position: relative;
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.stack-block > span {
  color: var(--muted-2);
  font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
}
.stack-block > strong { font-size: 17px; }
.stack-block.core-block {
  border-color: rgba(53,211,154,.28);
  background: linear-gradient(90deg, rgba(53,211,154,.07), rgba(53,211,154,.015));
}
.core-block > strong { color: var(--accent); }
.stack-arrow {
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--muted-2);
  font-size: 18px;
}
.rule-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}
.rule-tags em {
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 5px;
  background: rgba(255,255,255,.03);
  color: #9fb0bc;
  font: normal 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.split-heading {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 100px;
  align-items: end;
}
.split-heading p { margin-bottom: 5px; }

.cap-grid {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.cap-card {
  position: relative;
  min-height: 245px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.02);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.cap-card:hover {
  transform: translateY(-3px);
  border-color: rgba(53,211,154,.22);
  background: rgba(53,211,154,.025);
}
.cap-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0d151c;
  color: var(--accent);
  font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.cap-card h3 {
  margin: 56px 0 9px;
  font-size: 17px;
}
.cap-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.future-label {
  position: absolute;
  top: 26px;
  right: 26px;
  color: var(--muted-2);
  font: 700 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
}

.steps {
  display: grid;
  grid-template-columns: 1fr 80px 1fr 80px 1fr;
  align-items: stretch;
  margin-top: 60px;
}
.step {
  position: relative;
  min-height: 330px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.step.featured {
  border-color: rgba(53,211,154,.28);
  background: linear-gradient(160deg, rgba(53,211,154,.075), rgba(53,211,154,.012));
}
.step-no {
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--muted-2);
  font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.step-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 60px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b1218;
  color: var(--accent);
  font: 800 18px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.step-type {
  color: var(--muted-2);
  font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
}
.step h3 {
  margin: 8px 0 11px;
  font-size: 22px;
}
.step p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.step-line {
  position: relative;
  display: grid;
  place-items: center;
  color: var(--muted-2);
}
.step-line::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1px;
  background: var(--line);
}
.step-line span {
  position: relative;
  z-index: 1;
  padding: 0 8px;
  background: var(--bg);
  font-size: 16px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 100px;
  align-items: start;
}
.benefit-list {
  border-top: 1px solid var(--line);
}
.benefit-list article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}
.benefit-list article > span {
  color: var(--accent);
  font: 700 9px/1.8 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.benefit-list h3 {
  margin-bottom: 5px;
  font-size: 16px;
}
.benefit-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.sw-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  align-items: center;
  gap: 45px;
  max-width: 980px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(100deg, rgba(255,255,255,.025), transparent);
}
.sw-badge {
  width: 110px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.04), transparent),
    #0d151c;
  box-shadow: inset 0 0 45px rgba(53,211,154,.025);
}
.sw-badge span {
  color: var(--accent);
  font: 800 25px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: -.08em;
}
.sw-card h2 {
  margin: 0 0 13px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.07;
  letter-spacing: -.04em;
}
.sw-card p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.cta { padding-top: 45px; }
.cta-card {
  position: relative;
  overflow: hidden;
  min-height: 470px;
  display: grid;
  place-items: center;
  padding: 70px 40px;
  border: 1px solid rgba(53,211,154,.22);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 105%, rgba(53,211,154,.14), transparent 45%),
    var(--panel);
  box-shadow: var(--shadow);
}
.cta-grid-bg {
  position: absolute;
  inset: 0;
  opacity: .45;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 70%);
}
.cta-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  text-align: center;
}
.cta-content .eyebrow { margin-inline: auto; }
.cta-content h2 {
  margin: 20px 0 16px;
  font-size: clamp(42px, 5.3vw, 68px);
  line-height: 1;
  letter-spacing: -.052em;
}
.cta-content p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 16px;
}
.cta-actions {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.email-link {
  color: #b8c5ce;
  font-size: 13px;
  text-decoration: none;
}
.email-link:hover { color: var(--text); }

.site-footer {
  padding: 50px 0 45px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 50px;
  align-items: start;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.footer-grid > div:first-child p {
  margin: 9px 0 0;
  color: var(--muted-2);
  font-size: 12px;
}
.footer-links {
  display: flex;
  gap: 22px;
}
.footer-links a,
.footer-meta a {
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}
.footer-links a:hover,
.footer-meta a:hover { color: var(--text); }
.footer-meta {
  justify-self: end;
  display: grid;
  justify-items: end;
  gap: 5px;
  color: var(--muted-2);
  font-size: 11px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 1080px) {
  .site-nav { gap: 17px; }
  .site-nav > a:not(.button),
  .site-nav .nav-auth > a { font-size: 13px; }
  .nav-right { gap: 11px; }
}

@media (max-width: 1000px) {
  .hero {
    padding-top: 80px;
    min-height: auto;
  }
  .hero-grid,
  .solution-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 65px;
  }
  .hero-copy { max-width: 760px; }
  .hero-visual {
    max-width: 620px;
    width: 100%;
    margin-inline: auto;
  }
  .solution-grid { gap: 55px; }
  .stack-diagram {
    max-width: none;
    margin-left: 0;
  }
  .split-heading {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .split-heading > p { max-width: 700px; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .steps {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .step { min-height: 260px; }
  .step-icon { margin-bottom: 42px; }
  .step-line { height: 34px; }
  .step-line::before {
    top: 0;
    bottom: 0;
    left: 50%;
    right: auto;
    width: 1px;
    height: auto;
  }
  .step-line span {
    background: var(--bg);
    transform: rotate(90deg);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-meta {
    grid-column: 2;
    justify-self: end;
  }
}

@media (max-width: 850px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: fixed;
    top: 69px;
    left: 14px;
    right: 14px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    background: rgba(11,17,23,.98);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav > a:not(.button),
  .site-nav .nav-auth > a { padding: 13px 12px; }
  .site-nav .nav-sep { width: auto; height: 1px; margin: 6px 0; }
  .site-nav .button { margin-top: 8px; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 82px 0; }
  .nav-wrap { min-height: 68px; }

  .hero { padding-top: 60px; }
  .hero-grid { gap: 48px; }
  h1 {
    margin-top: 21px;
    font-size: clamp(48px, 14vw, 66px);
  }
  .hero-lead { font-size: 16px; }
  .hero-meta {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 40px;
  }
  .workflow-panel {
    padding: 14px;
    border-radius: 16px;
  }
  .panel-top { gap: 10px; }
  .live-pill { display: none; }
  .core-grid { grid-template-columns: 1fr; }
  .core-grid > div {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.06) !important;
  }
  .core-grid > div:last-child { border-bottom: 0 !important; }

  .section-heading h2 { font-size: clamp(36px, 11vw, 48px); }

  .problem-grid { grid-template-columns: 1fr; }
  .problem-card {
    min-height: 220px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .problem-card:last-child { border-bottom: 0; }
  .problem-card h3 { margin-top: 65px; }

  .cap-grid { grid-template-columns: 1fr; }
  .cap-card { min-height: 220px; }

  .sw-card {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 28px;
  }
  .cta-card {
    min-height: 430px;
    padding: 60px 22px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 15px 22px;
  }
  .footer-meta {
    grid-column: auto;
    justify-self: start;
    justify-items: start;
  }
}

@media (max-width: 540px) {
  .nav-right { gap: 8px; }
  .lang-switcher a {
    min-width: 30px;
    padding: 6px;
  }
  .button { width: 100%; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .flow-node { grid-template-columns: 40px 1fr; }
  .flow-node .node-state { display: none; }
  .node-icon { width: 38px; height: 38px; }
  .core-header > span { display: none; }
}

@media (max-width: 390px) {
  .brand { font-size: 18px; }
  .brand-mark {
    transform: scale(.9);
    transform-origin: left center;
    margin-right: -2px;
  }
}

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

/* ── V8.40 landing: full-suite homepage ─────────────────────────────────────── */
.stats {
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.012);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 26px 22px;
  border-right: 1px solid var(--line);
  display: grid;
  gap: 4px;
}
.stat:last-child { border-right: 0; }
.stat strong {
  font-size: 22px;
  letter-spacing: -.02em;
  color: var(--text);
}
.stat strong em { color: var(--accent); font-style: normal; }
.stat span { color: var(--muted); font-size: 13px; line-height: 1.5; }

.apps-grid {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.02);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.app-card:hover {
  transform: translateY(-3px);
  border-color: rgba(53,211,154,.22);
  background: rgba(53,211,154,.025);
}
.app-card.featured {
  border-color: rgba(53,211,154,.3);
  background: linear-gradient(180deg, rgba(53,211,154,.07), rgba(53,211,154,.015));
}
.app-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.app-logo {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #0d151c;
  color: var(--accent);
  font: 800 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .04em;
}
.app-badge {
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .1em;
  white-space: nowrap;
}
.app-badge.pro { border-color: rgba(53,211,154,.3); color: #bdeedc; background: rgba(53,211,154,.08); }
.app-card h3 { margin: 22px 0 4px; font-size: 22px; letter-spacing: -.02em; }
.app-tag { margin: 0 0 14px; color: var(--accent); font-size: 13px; font-weight: 700; }
.app-card > p { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.app-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 8px;
  color: #cbd7df;
  font-size: 13.5px;
  line-height: 1.5;
}
.app-list li { padding-left: 22px; position: relative; }
.app-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.app-formats {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.app-formats em {
  font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .06em;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-style: normal;
}
.shell-note {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
  border: 1px dashed var(--line-strong);
  border-radius: 13px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.shell-note strong { color: var(--text); }

.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.feature-list {
  display: grid;
  gap: 4px;
  margin-top: 30px;
}
.feature-list article {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.feature-list article > span {
  color: var(--accent);
  font: 800 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  padding-top: 5px;
}
.feature-list h3 { margin: 0 0 5px; font-size: 16px; }
.feature-list p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.65; }

/* NavoAI mock panel (BOM + suggested routing) */
.ai-mock {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: linear-gradient(180deg, #0e161e, #0a1218);
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  gap: 12px;
}
.ai-mock .panel-top { margin-bottom: 0; }
.bom-rows { display: grid; gap: 6px; }
.bom-row {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 9px;
  background: rgba(255,255,255,.02);
  font-size: 13px;
}
.bom-row.child { margin-left: 22px; }
.bom-row strong { font-weight: 650; }
.bom-row small { display: block; color: var(--muted-2); font-size: 11px; margin-top: 2px; }
.bom-row .st { width: 9px; height: 9px; border-radius: 50%; }
.st.ok { background: var(--accent); box-shadow: 0 0 0 4px rgba(53,211,154,.12); }
.st.warn { background: #f2b661; box-shadow: 0 0 0 4px rgba(242,182,97,.14); }
.st.miss { background: #f0655d; box-shadow: 0 0 0 4px rgba(240,101,93,.14); }
.bom-row .facts {
  color: var(--muted);
  font: 600 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .04em;
  text-align: right;
}
.route {
  padding: 12px;
  border: 1px solid rgba(53,211,154,.16);
  border-radius: 11px;
  background: rgba(53,211,154,.04);
}
.route .panel-kicker { display: block; margin-bottom: 8px; }
.route-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.route-chips .chip {
  padding: 6px 9px;
  border-radius: 7px;
  border: 1px solid rgba(53,211,154,.3);
  background: rgba(53,211,154,.1);
  color: #d5f5e8;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.route-chips .chip.ext {
  border-color: rgba(242,182,97,.4);
  background: rgba(242,182,97,.1);
  color: #ffe1b0;
}
.route-chips .arrow { color: var(--muted-2); font-size: 12px; }
.route-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

.price-grid {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.price-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.02);
}
.price-card.featured {
  border-color: rgba(53,211,154,.34);
  background: linear-gradient(180deg, rgba(53,211,154,.08), rgba(53,211,154,.015));
}
.price-card .app-badge { align-self: flex-start; }
.price-card h3 { margin: 18px 0 6px; font-size: 24px; letter-spacing: -.02em; }
.price-amount { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.price-amount strong { font-size: 34px; letter-spacing: -.03em; }
.price-amount span { color: var(--muted); font-size: 13px; }
.price-sub { margin: 0 0 18px; color: var(--muted-2); font-size: 12.5px; }
.price-card .app-list { margin-bottom: 26px; }
.price-card .button { margin-top: auto; justify-content: center; text-align: center; }

@media (max-width: 1000px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .apps-grid, .price-grid { grid-template-columns: 1fr; }
  .ai-grid { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 540px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .shell-note { grid-template-columns: 1fr; }
  .bom-row .facts { display: none; }
}
