/* =====================================================================
   "Run it all in one place" · "Full control" · "Connect everything" · "Let the business run itself"
   Structure after the owner's monday.com reference; Vantrex fonts, colours and content.
   ===================================================================== */
.mx-in { width: min(1640px, 100% - clamp(32px, 6.25vw, 120px)); margin-inline: auto; }
.mx-giant { font: 500 clamp(56px, 8.4vw, 160px)/.92 var(--font-display); letter-spacing: -0.035em; color: var(--ink); }
.mx-btn { display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 30px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 500 18px/1 var(--font-display); text-decoration: none; position: relative; overflow: hidden; isolation: isolate; }
.mx-btn::before { content: ""; position: absolute; inset: 0; background: var(--indigo); transform: translateY(101%); transition: transform .45s var(--ease-out); z-index: -1; }
.mx-btn:hover::before { transform: none; }
.mx-btn .ico { width: 18px; height: 18px; stroke-width: 2; transition: transform .35s var(--ease-out); }
.mx-btn:hover .ico { transform: translateX(4px); }
.mx-card h4, .mx-ctl h3, .mx-panel h3 { font-family: var(--font-display); }
.av { display: inline-block; border-radius: 50%; background: center / cover no-repeat var(--surface-sunk); }

/* ---------- Run it all in one place ---------- */
.mx-ctx { padding-top: clamp(96px, 10vw, 192px); overflow: hidden; }
.mx-ctx-head { width: min(1440px, 100% - 32px); margin-inline: auto; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 72px); align-items: start; }
.mx-ctx-head .mx-giant { text-align: right; }
.mx-ctx-side { padding-top: clamp(8px, 1.2vw, 20px); max-width: 560px; }
.mx-ctx-side p, .mx-lim-side p { font: 400 clamp(17px, 1.45vw, 26px)/1.45 var(--font-sans); color: var(--ink-2); }
.mx-ctx-side p b, .mx-lim-side p b { color: var(--ink); font-weight: 600; }
.mx-ctx-side .mx-btn, .mx-lim-side .mx-btn { margin-top: clamp(22px, 2vw, 36px); }

.mx-stage { position: relative; width: min(1440px, 100% - 32px); margin: clamp(-20px, -1vw, 0px) auto 0; height: clamp(620px, 58vw, 900px); }
.mx-hero-img { position: absolute; left: 50%; bottom: 0; width: clamp(280px, 30vw, 470px); aspect-ratio: 540 / 900; transform: translateX(-50%); margin: 0; overflow: hidden; border-radius: 240px 240px 0 0; background: var(--surface-sunk); }
.mx-hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mx-hero-img .sk { filter: grayscale(1) contrast(1.9) brightness(1.35); opacity: .55; mix-blend-mode: multiply; }
.mx-hero-img .col { clip-path: inset(var(--reveal, 100%) 0 0 0); }
.mx-hero-img::after { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--reveal-n, 1) * 100%); height: 2px; background: var(--indigo); box-shadow: 0 0 18px 2px color-mix(in srgb, var(--indigo) 60%, transparent); opacity: var(--line-o, 1); }

.mx-card { position: absolute; z-index: 2; padding: 14px; background: var(--surface-sunk); border-radius: 14px; box-shadow: 0 1px 0 rgba(21, 20, 18, .04); will-change: transform; }
.mx-card h4 { margin: 0 0 10px 4px; font-size: clamp(14px, 1.05vw, 18px); font-weight: 500; color: var(--ink); }
.mx-card > div, .mx-card > ul { background: var(--surface); border-radius: 10px; border: 1px solid var(--line); }
.mx-c1 { left: 2%; top: 4%; width: clamp(200px, 17vw, 270px); }
.mx-c2 { right: 3%; top: 0; width: clamp(240px, 21vw, 330px); }
.mx-c3 { right: 20%; top: 18%; width: clamp(230px, 18vw, 290px); }
.mx-c4 { left: 14%; top: 42%; width: clamp(200px, 15vw, 250px); }
.mx-c5 { right: 4%; top: 52%; width: clamp(290px, 25vw, 400px); }
.mx-c6 { left: 3%; top: 66%; width: clamp(220px, 17vw, 280px); }

.mx-hex { display: flex; padding: 16px 12px; background: transparent !important; border: 0 !important; }
.mx-hex span { width: 52px; height: 58px; margin-right: -6px; display: grid; place-items: center; background: var(--surface); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); filter: drop-shadow(0 0 1px var(--line)); }
.mx-hex span img { width: 24px; height: 24px; object-fit: contain; }
.mx-hex .more { font: 500 17px/1 var(--font-display); color: var(--ink-2); }
.mx-dash { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 12px; }
.mx-dash .kpi { border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.mx-dash .kpi small { display: block; font: 500 11px/1 var(--font-sans); color: var(--muted); }
.mx-dash .kpi b { display: block; margin-top: 8px; font: 500 clamp(18px, 1.5vw, 24px)/1 var(--font-display); color: var(--ink); }
.mx-dash .pie { width: 58px; height: 58px; transform: rotate(-90deg); }
.mx-dash .bars { grid-column: 1 / -1; height: 70px; display: flex; align-items: flex-end; gap: 8px; padding: 0 4px; border-bottom: 1px solid var(--line); }
.mx-dash .bars i { flex: 1; height: var(--h); background: var(--indigo); border-radius: 3px 3px 0 0; transform-origin: bottom; }
.mx-todo, .mx-files { list-style: none; margin: 0; padding: 8px; display: grid; gap: 4px; }
.mx-todo li { display: flex; align-items: center; gap: 9px; padding: 7px 6px; font: 400 13px/1.3 var(--font-sans); color: var(--ink-2); }
.mx-todo li > i { flex: none; width: 15px; height: 15px; border: 1.5px solid var(--line); border-radius: 4px; }
.mx-todo li > i.av { width: 20px; height: 20px; border: 0; border-radius: 50%; }
.mx-todo li.ok > i { background: var(--indigo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat; border-color: var(--indigo); }
.mx-todo li.ok span { text-decoration: line-through; color: var(--muted); }
.mx-files { background: transparent !important; border: 0 !important; padding: 0; gap: 8px; }
.mx-files li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; font: 400 13.5px/1 var(--font-sans); color: var(--ink-2); }
.mx-files img { width: 16px; height: 16px; }
.mx-orders { padding: 12px; }
.mx-orders .t { margin: 0 0 8px; font: 500 15px/1 var(--font-display); color: var(--indigo); }
.mx-orders .r { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 6px 8px 10px; border-left: 3px solid var(--indigo); border-bottom: 1px solid var(--line); font: 400 13px/1.2 var(--font-sans); color: var(--ink); }
.mx-orders .r em { font: 500 11px/1 var(--font-sans); font-style: normal; padding: 4px 7px; border-radius: 4px; }
.mx-orders .ghost span { height: 7px; width: 60%; background: var(--surface-sunk); border-radius: 4px; }
.mx-orders .ghost em { width: 16px; height: 16px; border-radius: 50%; background: var(--surface-sunk); }
.pd, .s-ok { background: color-mix(in srgb, var(--success) 15%, transparent); color: var(--success); }
.pr, .s-wip { background: color-mix(in srgb, var(--warning) 16%, transparent); color: var(--warning); }
.s-due { background: color-mix(in srgb, var(--danger) 13%, transparent); color: var(--danger); }
.mx-upd { position: absolute; right: -14%; top: 64%; width: 62%; background: var(--surface-sunk) !important; padding: 10px; border: 0 !important; border-radius: 12px !important; box-shadow: var(--shadow-2); }
.mx-upd b { display: block; margin: 0 0 8px 2px; font: 500 14px/1 var(--font-display); color: var(--ink); }
.mx-upd p { display: flex; gap: 8px; margin: 0; padding: 10px; background: var(--surface); border-radius: 8px; font: 400 12.5px/1.4 var(--font-sans); color: var(--ink-2); }
.mx-upd .av { flex: none; width: 22px; height: 22px; }
.mx-chat { padding: 10px; display: grid; gap: 8px; }
.mx-chat p { margin: 0; max-width: 88%; padding: 8px 10px; border-radius: 10px; font: 400 12.5px/1.4 var(--font-sans); }
.mx-chat .in { background: var(--surface-sunk); color: var(--ink); }
.mx-chat .out { justify-self: end; background: #dcf3d6; color: #151412; }
.mx-chat .by { display: flex; align-items: center; gap: 6px; font: 500 11px/1 var(--font-sans); color: var(--muted); }
.mx-chat .by img { width: 14px; height: 14px; }

/* ---------- Full control ---------- */
.mx-ctl { margin-top: clamp(-1px, 0px, 0px); padding: clamp(80px, 8vw, 150px) 0; background: var(--surface-sunk); }
.mx-ctl-grid { margin-top: clamp(48px, 5vw, 96px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(36px, 4vw, 64px) clamp(32px, 5vw, 96px); }
.mx-ctl-grid .ico { width: 28px; height: 28px; color: var(--indigo); stroke-width: 1.6; }
.mx-ctl-grid h3 { margin-top: 18px; font: 600 clamp(18px, 1.4vw, 24px)/1.2 var(--font-display); color: var(--ink); }
.mx-ctl-grid p { margin-top: 12px; font: 400 clamp(15px, 1.15vw, 19px)/1.55 var(--font-sans); color: var(--ink-2); max-width: 30em; }

/* ---------- Connect everything ---------- */
.mx-lim { padding: clamp(96px, 9vw, 170px) 0 0; }
.mx-lim-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 72px); align-items: start; }
.mx-logos, .mx-chain { display: flex; align-items: center; }
.mx-logos span, .mx-chain > span { width: 52px; height: 52px; margin-left: -6px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; box-shadow: 0 4px 12px -6px rgba(21, 20, 18, .2); }
.mx-logos span:first-child, .mx-chain > span:first-child { margin-left: 0; }
.mx-logos img, .mx-chain img { width: 24px; height: 24px; object-fit: contain; }
.mx-logos .plus, .mx-chain .plus { background: var(--surface-sunk); font: 400 26px/1 var(--font-sans); color: var(--muted); }
.mx-logos + p { margin-top: 22px; }
.mx-chain .vx { background: #fff; }
.mx-chain .vx svg { width: 24px; height: 24px; }
.mx-chain .ar { width: 40px; margin: 0 14px; color: var(--ink); flex: none; }

.mx-panel { margin-top: clamp(32px, 3vw, 48px); display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 3vw, 48px); padding: clamp(20px, 2vw, 32px); background: var(--surface-sunk); border-radius: 28px; }
.mx-lim-head + .mx-panel { margin-top: clamp(48px, 5vw, 88px); }
.mx-pl { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: clamp(12px, 1.4vw, 24px); }
.mx-pl h3 { font: 400 clamp(32px, 3.3vw, 60px)/1.05 var(--font-display); letter-spacing: -0.02em; color: var(--ink); }
.mx-pl p { margin-top: 18px; font: 400 clamp(16px, 1.25vw, 21px)/1.5 var(--font-sans); color: var(--ink-2); max-width: 30em; }
.mx-pr { min-width: 0; }

.mx-board { position: relative; height: 100%; padding: clamp(20px, 2.4vw, 40px); background: var(--surface); border-radius: 20px; }
.mx-board .bh { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.mx-board .bh b { font: 500 clamp(18px, 1.5vw, 24px)/1 var(--font-display); color: var(--ink); }
.mx-board .tabs { display: flex; gap: 4px; }
.mx-board .tabs i { font: 500 13px/1 var(--font-sans); font-style: normal; padding: 7px 11px; color: var(--muted); border-radius: 6px; }
.mx-board .tabs i.on { color: var(--ink); background: var(--surface-sunk); }
.mx-board .grp { margin: 18px 0 8px; font: 500 15px/1 var(--font-display); color: var(--indigo); }
.mx-board .row { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 12px; align-items: center; padding: 12px 10px; border-left: 3px solid var(--indigo); border-bottom: 1px solid var(--line); font: 400 14px/1.2 var(--font-sans); color: var(--ink); }
.mx-board .src { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); }
.mx-board .src img { width: 16px; height: 16px; object-fit: contain; }
.mx-board .row em { justify-self: start; font: 500 12px/1 var(--font-sans); font-style: normal; padding: 6px 9px; border-radius: 5px; }
.mx-board .t { font: 500 13px/1 var(--font-sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.mx-board .toast { position: absolute; left: clamp(20px, 6%, 60px); bottom: clamp(16px, 2.4vw, 36px); display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; background: var(--surface); border-radius: 999px; box-shadow: var(--shadow-2); font: 500 clamp(14px, 1.1vw, 17px)/1.2 var(--font-sans); color: var(--ink); }
.mx-board .toast .ag { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #e7f8ec; }
.mx-board .toast img { width: 22px; height: 22px; }
.mx-board { padding-bottom: clamp(90px, 8vw, 120px); }

.mx-ai { height: 100%; padding: clamp(20px, 2.4vw, 36px); background: #1d1c1a; color: #ece9e3; border-radius: 20px; }
.mx-ai .ah { display: flex; align-items: center; gap: 10px; }
.mx-ai .ah img { width: 26px; height: 26px; }
.mx-ai .ah b { font: 500 clamp(20px, 1.8vw, 30px)/1 var(--font-display); color: #fff; }
.mx-ai .ask { margin: 22px 0 0 auto; width: fit-content; max-width: 80%; padding: 12px 16px; border-radius: 10px; background: #33312d; font: 400 clamp(14px, 1.05vw, 16px)/1.4 var(--font-sans); }
.mx-ai .ans { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 0; font: 400 clamp(14px, 1.05vw, 16px)/1.5 var(--font-sans); color: #d5d1ca; }
.mx-ai .ans img { width: 18px; height: 18px; margin-top: 2px; }
.mx-ai .tbl { margin-top: 16px; border-top: 1px solid #34322e; }
.mx-ai .tbl > div { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr; gap: 10px; align-items: center; padding: 11px 6px; border-bottom: 1px solid #34322e; font: 400 14px/1.2 var(--font-sans); color: #ece9e3; }
.mx-ai .tbl .th { font-size: 13px; color: #a29d95; }
.mx-ai .tbl em { justify-self: start; font: 500 12px/1 var(--font-sans); font-style: normal; padding: 6px 9px; border-radius: 5px; }
.mx-ai .inp { margin-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid #45433e; border-radius: 12px; font: 400 14px/1.2 var(--font-sans); color: #a29d95; }
.mx-ai .inp b { font: 500 12px/1 var(--font-sans); color: #d5d1ca; }

/* ---------- Let the business run itself ---------- */
.mx-flow { padding: clamp(110px, 10vw, 190px) 0 clamp(40px, 4vw, 80px); text-align: center; }
.mx-kick { font: 400 clamp(18px, 1.5vw, 26px)/1 var(--font-sans); color: var(--ink); }
.mx-flow .mx-giant { margin-top: 24px; font-size: clamp(48px, 7.2vw, 136px); }
.mx-flow-sub { max-width: 900px; margin: 28px auto 36px; font: 400 clamp(26px, 2.8vw, 52px)/1.3 var(--font-display); color: var(--ink); }
.mx-flow-sub .faces, .mx-flow-sub .agents { display: inline-flex; vertical-align: middle; margin: 0 .2em; }
.mx-flow-sub .faces i { width: 1.05em; height: 1.05em; margin-left: -.22em; border-radius: 50%; border: 3px solid var(--paper); background: center / cover; }
.mx-flow-sub .faces i:first-child { margin-left: 0; }
.mx-flow-sub .agents i { width: 1.05em; height: 1.05em; margin-left: .12em; border-radius: .26em; display: grid; place-items: center; }
.mx-flow-sub .agents svg { width: 60%; height: 60%; }

.mx-wf { position: relative; width: min(820px, 100%); margin: clamp(56px, 5vw, 88px) auto 0; aspect-ratio: 800 / 600; }
.wf-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wf-lines path { fill: none; stroke: var(--ink-2); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.wf-lines path.dash { stroke-dasharray: 5 5; stroke: var(--muted); }
.wf-n { position: absolute; left: var(--x); top: var(--y); transform: translateX(-50%); width: 44%; height: 11%; box-sizing: border-box; display: flex; align-items: center; gap: 14px; padding: 0 9px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; text-align: left; box-shadow: 0 6px 18px -12px rgba(21, 20, 18, .3); }
.wf-n b { font: 500 clamp(13px, 1.2vw, 18px)/1.25 var(--font-sans); color: var(--ink); }
.wf-n .ic { flex: none; width: auto; height: 72%; aspect-ratio: 1; border-radius: 8px; display: grid; place-items: center; background: var(--surface-sunk); color: var(--ink-2); }
.wf-n .ic img { width: 24px; height: 24px; object-fit: contain; }
.wf-n .ic .ico { width: 22px; height: 22px; }
.wf-n .ic.av { background-size: cover; border-radius: 8px; }
.wf-trig, .wf-ai { width: 54%; }
.wf-trig .bolt { position: absolute; left: 50%; top: -22px; transform: translateX(-50%); width: 34px; height: 38px; display: grid; place-items: center; background: #1d7a45; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.wf-trig .bolt svg { width: 18px; height: 18px; }
.wf-ai .dia { position: absolute; left: 50%; top: -15px; transform: translateX(-50%) rotate(45deg); width: 26px; height: 26px; border-radius: 4px; background: var(--indigo); display: grid; place-items: center; }
.wf-ai .dia svg { width: 18px; height: 18px; transform: rotate(-45deg); }
.wf-ai, .wf-agent { border: 1.5px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(100deg, #4650d8, #2f7a4c, #f2b705, #e8650f) border-box; }
.wf-ai::before, .wf-agent::before { content: ""; position: absolute; inset: -9px 9px 9px -9px; z-index: -1; border-radius: 12px; background: linear-gradient(100deg, color-mix(in srgb, #4650d8 25%, transparent), color-mix(in srgb, #2f7a4c 20%, transparent), color-mix(in srgb, #e8650f 20%, transparent)); }
.wf-tag { position: absolute; left: var(--x); top: var(--y); transform: translateX(-50%); height: 4.4%; display: grid; place-items: center; box-sizing: border-box; padding: 0 14px; background: var(--surface); border: 1px solid var(--ink-2); font: 500 14px/1 var(--font-sans); color: var(--ink); }
.wf-plus { position: absolute; left: var(--x); top: var(--y); transform: translateX(-50%); width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--muted); background: var(--surface); font: 400 16px/1 var(--font-sans); color: var(--muted); }

/* ---------- Dark theme ---------- */
:root[data-theme="dark"] .mx-hero-img .sk { mix-blend-mode: normal; filter: grayscale(1) invert(1) contrast(1.6) brightness(.9); opacity: .35; }
:root[data-theme="dark"] .mx-chat .out { background: #20462b; color: #e8f7ec; }
:root[data-theme="dark"] .mx-chain .vx { background: #f3f1ed; }
:root[data-theme="dark"] .mx-ai { background: #0b0b0a; border: 1px solid var(--line); }
:root[data-theme="dark"] .mx-flow-sub .faces i { border-color: var(--paper); }


/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .mx-ctx-head, .mx-lim-head { grid-template-columns: 1fr; }
  .mx-ctx-head .mx-giant { text-align: left; }
  .mx-stage { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 40px; }
  .mx-card { position: relative; inset: auto !important; width: auto !important; transform: none !important; }
  .mx-hero-img { position: relative; left: auto; transform: none; grid-column: 1 / -1; width: min(420px, 100%); margin: 0 auto; order: -1; }
  .mx-upd { position: relative; right: auto; top: auto; width: auto; margin-top: 10px; box-shadow: none; }
  .mx-ctl-grid { grid-template-columns: 1fr 1fr; }
  .mx-panel { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .mx-stage { grid-template-columns: 1fr; }
  .mx-ctl-grid { grid-template-columns: 1fr; }
  .mx-board .row { grid-template-columns: 1fr auto; } .mx-board .src, .mx-board .t { display: none; }
  .mx-board .toast { position: relative; left: auto; bottom: auto; margin-top: 16px; }
  .mx-board { padding-bottom: 20px; }
  .mx-chain > span, .mx-logos span { width: 42px; height: 42px; }
  .mx-chain .ar { margin: 0 6px; width: 28px; }
  .wf-n { width: 47%; gap: 8px; padding: 6px; } .wf-trig, .wf-ai { width: 70%; }
  .wf-n .ic img { width: 18px; height: 18px; }
}
@media (prefers-reduced-motion: reduce) { .mx-hero-img .col { clip-path: none; } .mx-hero-img::after { display: none; } }
