/* MassiveLive public landing page.
   Control-room graphite + warm off-white + one signal colour. */

:root {
    --ml-bg: #0B0D0F;
    --ml-bg-2: #0F1215;
    --ml-surface: #13171B;
    --ml-surface-2: #181D22;
    --ml-line: rgba(244, 244, 241, 0.08);
    --ml-line-strong: rgba(244, 244, 241, 0.16);
    --ml-text: #F4F4F1;
    --ml-text-2: #B4B5B0;
    --ml-muted: #7C7F7B;
    --ml-signal: #FF5A1F;
    --ml-signal-soft: rgba(255, 90, 31, 0.14);
    --ml-ok: #3DDC84;
    --ml-info: #4AA8FF;
    --ml-radius: 10px;
    --ml-radius-lg: 14px;
    --ml-max: 1240px;
    --ml-font: "Inter", -apple-system, "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --ml-mono: ui-monospace, "Cascadia Mono", "SF Mono", "JetBrains Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.ml {
    margin: 0;
    background: var(--ml-bg);
    color: var(--ml-text);
    font-family: var(--ml-font);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

:where(.ml) a { color: inherit; text-decoration: none; }
.ml img { max-width: 100%; display: block; }
.ml h1, .ml h2, .ml h3, .ml h4, .ml p { margin: 0; }

.ml-wrap { max-width: var(--ml-max); margin: 0 auto; padding: 0 32px; }

.ml-section { padding: 96px 0; border-top: 1px solid var(--ml-line); position: relative; }
.ml-section--tight { padding: 72px 0; }
.ml-section--alt { background: var(--ml-bg-2); }

/* Thin coordinate grid behind sections */
.ml-grid-bg {
    background-image:
        linear-gradient(var(--ml-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--ml-line) 1px, transparent 1px);
    background-size: 80px 80px;
    background-position: -1px -1px;
}

.ml-eyebrow {
    font-family: var(--ml-mono);
    font-size: 11.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ml-text-2);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.ml-eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--ml-signal); }
.ml-eyebrow--signal { color: var(--ml-signal); }

.ml-h1 {
    font-size: clamp(44px, 6.2vw, 84px);
    line-height: 0.98;
    letter-spacing: -0.035em;
    font-weight: 700;
}
.ml-h2 {
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.04;
    letter-spacing: -0.03em;
    font-weight: 700;
}
.ml-h2 .dim, .ml-h1 .dim { color: var(--ml-muted); }
.ml-lead { font-size: 18px; color: var(--ml-text-2); max-width: 520px; }
.ml-mono { font-family: var(--ml-mono); }

.ml-head-row {
    display: flex; justify-content: space-between; align-items: flex-end; gap: 48px;
    margin-bottom: 56px;
}
.ml-head-row .ml-lead { max-width: 420px; font-size: 16px; }

.ml-link-signal {
    font-size: 14px; color: var(--ml-signal); font-weight: 600; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 8px;
}
.ml-link-signal:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Icons: 1.5px line, currentColor */
.ic { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ic--sm { width: 16px; height: 16px; }
.ic--lg { width: 28px; height: 28px; }

/* Buttons */
.ml-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 52px; padding: 0 26px; border-radius: 999px;
    font-size: 15px; font-weight: 600; letter-spacing: -0.005em;
    border: 1px solid transparent; transition: background .15s, border-color .15s, transform .15s;
    white-space: nowrap;
}
.ml-btn:hover { transform: translateY(-1px); }
.ml-btn--signal { background: var(--ml-signal); color: #0B0D0F; }
.ml-btn--signal:hover { background: #FF7140; }
.ml-btn--ghost { border-color: var(--ml-line-strong); color: var(--ml-text); }
.ml-btn--ghost:hover { border-color: var(--ml-text); }
.ml-btn--light { background: var(--ml-text); color: var(--ml-bg); height: 40px; padding: 0 18px; font-size: 13.5px; }
.ml-btn--light:hover { background: #fff; }
.ml-btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Nav ---------- */
.ml-nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(11, 13, 15, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--ml-line);
}
.ml-nav__in { display: flex; align-items: center; height: 68px; gap: 40px; }
.ml-logo { font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.ml-logo span { color: var(--ml-signal); }
.ml-nav__links { display: flex; gap: 30px; font-size: 14px; color: var(--ml-text-2); }
.ml-nav__links a:hover { color: var(--ml-text); }
.ml-nav__right { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 14px; }
.ml-nav__right > a:not(.ml-btn) { color: var(--ml-text-2); }
.ml-nav__right > a:not(.ml-btn):hover { color: var(--ml-text); }
.ml-lang { font-family: var(--ml-mono); font-size: 11.5px; letter-spacing: .08em; color: var(--ml-muted); display: flex; gap: 8px; }
.ml-lang a:hover { color: var(--ml-text); }
.ml-lang strong { color: var(--ml-text); font-weight: 500; }

/* ---------- Hero ---------- */
.ml-hero { padding: 88px 0 96px; position: relative; overflow: hidden; }
.ml-hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(60% 60% at 75% 40%, rgba(255, 90, 31, 0.07), transparent 70%);
}
.ml-hero__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.ml-hero .ml-lead { margin-top: 28px; }
.ml-phases {
    margin: 28px 0 40px; display: flex; flex-wrap: wrap; gap: 10px 14px;
    font-family: var(--ml-mono); font-size: 12px; letter-spacing: .16em; color: var(--ml-text-2);
}
.ml-phases i { color: var(--ml-signal); font-style: normal; }

.ml-stage { position: relative; min-height: 470px; }

/* Desktop product mock */
.ml-desk {
    position: absolute; left: 0; top: 24px; right: 70px;
    background: #0E1114; border: 1px solid var(--ml-line-strong); border-radius: var(--ml-radius-lg);
    box-shadow: 0 40px 80px -20px rgba(0,0,0,.7), 0 0 0 6px rgba(244,244,241,.02);
    display: grid; grid-template-columns: 44px 168px 1fr; overflow: hidden; height: 400px;
}
.ml-desk__rail { border-right: 1px solid var(--ml-line); display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 16px 0; color: var(--ml-muted); }
.ml-desk__rail .on { color: var(--ml-signal); }
.ml-desk__side { border-right: 1px solid var(--ml-line); padding: 16px 14px; font-size: 11.5px; }
.ml-desk__side .t { font-size: 10px; color: var(--ml-muted); }
.ml-desk__side .n { font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.ml-pill { font-family: var(--ml-mono); font-size: 9.5px; letter-spacing: .08em; padding: 2px 7px; border-radius: 999px; background: rgba(61,220,132,.12); color: var(--ml-ok); text-transform: uppercase; }
.ml-pill--signal { background: var(--ml-signal-soft); color: var(--ml-signal); }
.ml-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; color: var(--ml-text-2); border-bottom: 1px solid var(--ml-line); }
.ml-row b { margin-left: auto; color: var(--ml-text); font-weight: 600; font-family: var(--ml-mono); font-size: 11px; }
.ml-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--ml-ok); }
.ml-desk__map { position: relative; }
.ml-desk__map svg { width: 100%; height: 100%; display: block; }

.ml-callout {
    position: absolute; background: rgba(17, 20, 23, 0.94); border: 1px solid var(--ml-line-strong);
    border-radius: 10px; padding: 10px 12px; font-size: 11px; display: flex; gap: 10px; align-items: flex-start;
    box-shadow: 0 12px 30px rgba(0,0,0,.5);
}
.ml-callout--alert { border-color: rgba(255,90,31,.6); }
.ml-callout .ico { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.ml-callout--alert .ico { background: var(--ml-signal); color: #0B0D0F; }
.ml-callout--info .ico { background: var(--ml-info); color: #0B0D0F; }
.ml-callout strong { display: block; font-size: 12px; }
.ml-callout span { color: var(--ml-text-2); display: block; line-height: 1.4; }

/* Status readout */
.ml-status {
    position: absolute; right: 0; top: 0; width: 196px;
    background: rgba(14, 17, 20, .96); border: 1px solid var(--ml-line-strong); border-radius: 12px;
    padding: 14px 16px; font-family: var(--ml-mono); z-index: 3;
    box-shadow: 0 20px 40px rgba(0,0,0,.55);
}
.ml-status__time { font-size: 26px; letter-spacing: .02em; font-weight: 500; font-variant-numeric: tabular-nums; }
.ml-status dl { margin: 10px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: 10.5px; letter-spacing: .1em; }
.ml-status dt { color: var(--ml-muted); }
.ml-status dd { margin: 0; text-align: right; }
.ml-status .ok { color: var(--ml-ok); display: inline-flex; align-items: center; gap: 6px; }
.ml-pulse { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: ml-pulse 2s infinite; }
@keyframes ml-pulse { 0% { box-shadow: 0 0 0 0 rgba(61,220,132,.6); } 70% { box-shadow: 0 0 0 8px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }

/* Phone mock */
.ml-phone {
    position: absolute; right: 0; bottom: 0; width: 176px; height: 340px; z-index: 2;
    background: #090B0D; border: 1px solid var(--ml-line-strong); border-radius: 30px; padding: 10px;
    box-shadow: 0 30px 60px rgba(0,0,0,.7), inset 0 0 0 4px #15191d;
}
.ml-phone__screen { height: 100%; border-radius: 22px; background: #0E1114; overflow: hidden; display: flex; flex-direction: column; padding: 14px 10px 10px; font-size: 10px; }
.ml-phone__screen .hd { font-weight: 700; font-size: 13px; margin: 6px 2px 8px; }
.ml-tabs { display: flex; gap: 4px; margin-bottom: 8px; }
.ml-tabs span { flex: 1; text-align: center; padding: 3px 0; border-radius: 6px; color: var(--ml-muted); font-size: 9px; }
.ml-tabs span.on { background: var(--ml-surface-2); color: var(--ml-text); }
.ml-phone__map { flex: 1; border-radius: 12px; overflow: hidden; background: #111519; }
.ml-phone__map svg { width: 100%; height: 100%; display: block; }
.ml-phone__bar { display: flex; justify-content: space-around; align-items: center; padding-top: 10px; color: var(--ml-text-2); }
.ml-sos { width: 44px; height: 44px; border-radius: 50%; background: var(--ml-signal); color: #0B0D0F; font-weight: 800; font-size: 11px; display: grid; place-items: center; box-shadow: 0 0 0 5px rgba(255,90,31,.18); }

.ml-coords {
    position: absolute; left: 6px; bottom: -6px; font-family: var(--ml-mono); font-size: 10.5px;
    letter-spacing: .1em; color: var(--ml-muted);
}

/* ---------- Problem ---------- */
.ml-problem { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ml-problem .ml-lead { margin-top: 24px; }
.ml-flow { display: grid; grid-template-columns: 1fr auto 0.72fr; gap: 20px; align-items: stretch; }
.ml-box { border: 1px solid var(--ml-line-strong); border-radius: var(--ml-radius-lg); padding: 20px; background: var(--ml-surface); }
.ml-box__label { font-family: var(--ml-mono); font-size: 11px; letter-spacing: .16em; color: var(--ml-muted); margin-bottom: 16px; }
.ml-frag { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ml-frag div {
    border: 1px solid var(--ml-line); border-radius: 10px; padding: 14px 10px; background: var(--ml-bg);
    display: flex; flex-direction: column; gap: 10px; font-size: 12px; color: var(--ml-text-2);
}
.ml-frag div:nth-child(2) { transform: rotate(-2deg); }
.ml-frag div:nth-child(4) { transform: rotate(1.5deg); }
.ml-frag div:nth-child(6) { transform: rotate(-1deg); }
.ml-flow__arrow { display: grid; place-items: center; color: var(--ml-text-2); }
.ml-box--signal { border-color: rgba(255,90,31,.45); background: linear-gradient(180deg, rgba(255,90,31,.08), var(--ml-surface) 60%); display: flex; flex-direction: column; }
.ml-box--signal .ml-box__label { color: var(--ml-signal); }
.ml-mini-map { border: 1px solid var(--ml-line); border-radius: 8px; overflow: hidden; height: 96px; margin-bottom: 16px; }
.ml-mini-map svg { width: 100%; height: 100%; display: block; }
.ml-box--signal p { font-size: 20px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; margin-top: auto; }

/* ---------- Lifecycle ---------- */
.ml-life { display: grid; grid-template-columns: 4fr 4fr 3fr; gap: 0; margin-top: 8px; }
.ml-life__phase { position: relative; padding-top: 4px; }
.ml-life__phase h4 { font-family: var(--ml-mono); font-size: 11.5px; letter-spacing: .16em; color: var(--ml-text-2); font-weight: 500; margin-bottom: 18px; }
.ml-life__phase--live h4 { color: var(--ml-signal); }
.ml-life__track { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.ml-life__track::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--ml-line-strong); }
.ml-life__phase--live .ml-life__track::before { background: var(--ml-signal); height: 2px; top: 5.5px; }
.ml-step { position: relative; padding-right: 12px; }
.ml-step::before {
    content: ""; display: block; width: 13px; height: 13px; border-radius: 50%;
    background: var(--ml-bg); border: 1.5px solid var(--ml-muted); margin-bottom: 18px; position: relative;
}
.ml-life__phase--live .ml-step::before { background: var(--ml-signal); border-color: var(--ml-signal); box-shadow: 0 0 0 4px var(--ml-signal-soft); }
.ml-step b { display: block; font-size: 15px; font-weight: 600; }
.ml-step span { display: block; font-size: 13px; color: var(--ml-muted); }

/* ---------- Platform cards ---------- */
.ml-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ml-card {
    border: 1px solid var(--ml-line-strong); border-radius: var(--ml-radius-lg); background: var(--ml-surface);
    padding: 22px; display: flex; flex-direction: column; transition: border-color .2s;
}
.ml-card:hover { border-color: rgba(255,90,31,.45); }
.ml-card__k { font-family: var(--ml-mono); font-size: 12px; letter-spacing: .16em; font-weight: 600; }
.ml-card h3 { font-size: 19px; font-weight: 500; line-height: 1.3; color: var(--ml-text-2); margin: 8px 0 20px; min-height: 50px; }
.ml-card__vis { height: 150px; border-radius: 10px; border: 1px solid var(--ml-line); background: #0E1114; overflow: hidden; margin-bottom: 22px; position: relative; }
.ml-card__vis svg { width: 100%; height: 100%; display: block; }
.ml-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; font-size: 13.5px; color: var(--ml-text-2); }
.ml-list li { display: flex; gap: 10px; align-items: center; }
.ml-list .ic { color: var(--ml-text); }

/* Small UI fragments drawn in HTML inside visuals */
.ml-ui { position: absolute; inset: 14px; display: flex; flex-direction: column; gap: 6px; font-size: 10.5px; }
.ml-ui__line { height: 8px; border-radius: 3px; background: var(--ml-surface-2); }
.ml-ui__row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; background: var(--ml-surface); border: 1px solid var(--ml-line); color: var(--ml-text-2); }
.ml-ui__row .ml-ui__line { flex: 1; }
.ml-check { width: 12px; height: 12px; border-radius: 3px; border: 1.5px solid var(--ml-muted); flex: none; }
.ml-check.on { background: var(--ml-ok); border-color: var(--ml-ok); }
.ml-notif { margin: auto 6px; background: var(--ml-surface-2); border: 1px solid var(--ml-line-strong); border-radius: 10px; padding: 10px; display: flex; gap: 10px; align-items: center; }
.ml-notif .ico { width: 28px; height: 28px; border-radius: 50%; background: var(--ml-info); color: #0B0D0F; display: grid; place-items: center; flex: none; }
.ml-notif strong { display: block; font-size: 11.5px; color: var(--ml-text); }
.ml-notif span { color: var(--ml-muted); font-size: 10px; }
.ml-notif__btn { margin: 8px 6px 0; text-align: center; background: var(--ml-info); color: #0B0D0F; border-radius: 6px; padding: 5px; font-weight: 600; }
.ml-tl { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 1px solid var(--ml-line-strong); display: grid; gap: 8px; }
.ml-tl li { position: relative; color: var(--ml-text-2); }
.ml-tl li::before { content: ""; position: absolute; left: -18px; top: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--ml-muted); }
.ml-tl li.s::before { background: var(--ml-signal); }
.ml-tl li.o::before { background: var(--ml-ok); }

/* ---------- Roles ---------- */
.ml-roles { display: grid; grid-template-columns: 1fr 1fr 1.2fr 1.2fr; gap: 16px; }
.ml-role { border: 1px solid var(--ml-line-strong); border-radius: var(--ml-radius-lg); background: var(--ml-surface); padding: 20px; display: flex; flex-direction: column; }
.ml-role__hd { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.ml-role h3 { font-size: 17px; font-weight: 600; }
.ml-role__dev { font-family: var(--ml-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ml-muted); }
.ml-role p { font-size: 13px; color: var(--ml-text-2); margin-bottom: 18px; }
.ml-role__vis { margin-top: auto; height: 190px; border-radius: 10px; background: #0E1114; border: 1px solid var(--ml-line); position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.ml-role__vis svg { width: 100%; height: 100%; display: block; }
.ml-mphone { width: 104px; height: 176px; margin-bottom: -16px; border-radius: 18px; border: 1px solid var(--ml-line-strong); background: #090B0D; padding: 6px; }
.ml-mphone > div { height: 100%; border-radius: 13px; background: #111519; overflow: hidden; position: relative; }
.ml-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 8px; }
.ml-kpis div { background: var(--ml-surface); border: 1px solid var(--ml-line); border-radius: 6px; padding: 6px; }
.ml-kpis b { display: block; font-family: var(--ml-mono); font-size: 13px; }
.ml-kpis span { color: var(--ml-muted); font-size: 8.5px; }

/* ---------- Venue mapping ---------- */
.ml-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ml-split .ml-lead { margin-top: 22px; }
.ml-split__vis { border: 1px solid var(--ml-line-strong); border-radius: var(--ml-radius-lg); background: #0E1114; aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.ml-split__vis svg { width: 100%; height: 100%; display: block; }
.ml-specs { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
.ml-specs div { border-top: 1px solid var(--ml-line-strong); padding-top: 12px; }
.ml-specs b { display: block; font-size: 14px; font-weight: 600; }
.ml-specs span { font-size: 13px; color: var(--ml-muted); }

/* ---------- Real world ---------- */
.ml-real { position: relative; padding: 140px 0; overflow: hidden; border-top: 1px solid var(--ml-line); }
.ml-real__bg { position: absolute; inset: 0; background-size: cover; background-position: center 40%; filter: grayscale(.85) contrast(1.1) brightness(.55); }
.ml-real::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,13,15,.96) 0%, rgba(11,13,15,.82) 40%, rgba(11,13,15,.35) 100%); }
.ml-real .ml-wrap { position: relative; z-index: 1; }
.ml-real .ml-lead { margin-top: 22px; max-width: 520px; }
.ml-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; max-width: 560px; }
.ml-tags span { border: 1px solid var(--ml-line-strong); background: rgba(11,13,15,.6); border-radius: 999px; padding: 7px 14px; font-size: 13px; color: var(--ml-text-2); }

/* ---------- Proof ---------- */
.ml-proof { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: center; }
.ml-proof--solo { grid-template-columns: 1fr; }
.ml-stats { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.ml-stat { padding: 4px 24px; border-left: 1px solid var(--ml-line-strong); }
.ml-stat:first-child { border-left: 0; padding-left: 0; }
.ml-stat b { display: block; font-size: clamp(32px, 3.4vw, 44px); font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ml-stat span { font-size: 13px; color: var(--ml-muted); }
.ml-quote { border: 1px solid var(--ml-line-strong); border-radius: var(--ml-radius-lg); padding: 22px; background: var(--ml-surface); }
.ml-quote p { font-size: 15px; line-height: 1.5; }
.ml-quote footer { margin-top: 14px; font-size: 12px; color: var(--ml-muted); }

/* ---------- Trust ---------- */
.ml-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.ml-trust div { display: flex; gap: 14px; align-items: flex-start; }
.ml-trust .ic { color: var(--ml-text); margin-top: 2px; }
.ml-trust b { display: block; font-size: 14.5px; font-weight: 600; }
.ml-trust span { font-size: 13px; color: var(--ml-muted); }

/* ---------- Final CTA ---------- */
.ml-cta { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.ml-cta .ml-btn-row { margin-top: 32px; }
.ml-chain { font-family: var(--ml-mono); font-size: 11.5px; letter-spacing: .2em; color: var(--ml-muted); display: grid; gap: 10px; padding-left: 28px; border-left: 1px solid var(--ml-line-strong); position: relative; }
.ml-chain::before { content: ""; position: absolute; left: -5px; top: -2px; width: 9px; height: 9px; border-radius: 50%; background: var(--ml-signal); box-shadow: 0 0 18px var(--ml-signal); }
.ml-chain span:last-child { color: var(--ml-signal); }

/* ---------- Footer ---------- */
.ml-foot { border-top: 1px solid var(--ml-line); padding: 32px 0 40px; font-size: 13px; color: var(--ml-muted); }
.ml-foot .ml-wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ml-foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.ml-foot a:hover { color: var(--ml-text); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .ml-nav__links { display: none; }
    .ml-hero__grid, .ml-problem, .ml-split, .ml-proof { grid-template-columns: 1fr; }
    .ml-cards, .ml-roles, .ml-trust { grid-template-columns: 1fr 1fr; }
    .ml-life { grid-template-columns: 1fr; gap: 36px; }
    .ml-stage { max-width: 760px; }
}
@media (max-width: 720px) {
    .ml-wrap { padding: 0 16px; }
    .ml-section { padding: 72px 0; }
    .ml-hero { padding: 56px 0 64px; }
    .ml-nav__right { gap: 14px; }
    .ml-nav__right .ml-lang { display: none; }
    .ml-nav__right .ml-nav__login { display: inline-flex; align-items: center; min-height: 44px; color: var(--ml-text); font-weight: 600; }
    .ml-head-row { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 36px; }
    .ml-cards, .ml-roles, .ml-trust, .ml-specs { grid-template-columns: 1fr; }
    .ml-flow { grid-template-columns: 1fr; }
    .ml-flow__arrow { transform: rotate(90deg); }
    .ml-stage { min-height: 380px; }
    .ml-desk { right: 0; grid-template-columns: 1fr; height: 300px; }
    .ml-desk__rail, .ml-desk__side { display: none; }
    .ml-phone { width: 132px; height: 250px; border-radius: 24px; bottom: -10px; }
    .ml-status { width: 168px; }
    .ml-status__time { font-size: 21px; }
    .ml-callout { display: none; }
    .ml-life__track { grid-auto-flow: row; grid-auto-columns: auto; gap: 18px; padding-left: 26px; }
    .ml-life__track::before { left: 6px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
    .ml-life__phase--live .ml-life__track::before { width: 2px; height: auto; left: 5.5px; }
    .ml-step::before { position: absolute; left: -26px; top: 3px; margin: 0; }
    .ml-stats { grid-auto-flow: row; grid-template-columns: 1fr 1fr; gap: 24px 0; }
    .ml-stat:nth-child(odd) { border-left: 0; padding-left: 0; }
    .ml-cta { grid-template-columns: 1fr; }
    .ml-real { padding: 96px 0; }
    .ml-btn { height: 48px; padding: 0 20px; }
    .ml-nav .ml-btn--light { padding: 0 14px; }
}
@media (max-width: 480px) {
    .ml-nav .ml-btn--light { display: none; }
}

/* ---------- On the floor: People Counter + Club Mode ---------- */
.ml-floor { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ml-floor__card { border: 1px solid var(--ml-line-strong); border-radius: var(--ml-radius-lg); background: var(--ml-surface); padding: 24px; display: flex; flex-direction: column; }
.ml-floor__card h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin: 10px 0; }
.ml-floor__card > p { font-size: 15px; color: var(--ml-text-2); margin-bottom: 22px; }
.ml-floor__vis { border: 1px solid var(--ml-line); border-radius: 12px; background: #0E1114; padding: 20px; margin-bottom: 24px; min-height: 230px; display: flex; }
.ml-floor__vis > * { flex: 1; }
.ml-floor .ml-list { grid-template-columns: 1fr 1fr; gap: 12px 20px; }

.ml-count { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: center; }
.ml-count__k { font-family: var(--ml-mono); font-size: 10.5px; letter-spacing: .16em; color: var(--ml-muted); }
.ml-count__n { font-size: clamp(48px, 5vw, 68px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin: 6px 0 14px; font-variant-numeric: tabular-nums; }
.ml-count__bar { height: 6px; border-radius: 999px; background: var(--ml-surface-2); overflow: hidden; }
.ml-count__bar i { display: block; height: 100%; width: 80%; background: linear-gradient(90deg, var(--ml-ok), #E8C547 85%); border-radius: inherit; }
.ml-count__cap { display: flex; justify-content: space-between; font-family: var(--ml-mono); font-size: 10px; letter-spacing: .1em; color: var(--ml-muted); margin-top: 8px; }
.ml-count__io { display: flex; gap: 10px; margin-top: 18px; }
.ml-count__io span { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ml-line-strong); display: grid; place-items: center; font-size: 22px; font-weight: 500; color: var(--ml-text-2); }
.ml-count__io span.in { background: var(--ml-text); color: var(--ml-bg); border-color: var(--ml-text); }
.ml-gates { display: grid; gap: 8px; }
.ml-gate { border: 1px solid var(--ml-line); background: var(--ml-surface); border-radius: 8px; padding: 9px 11px; font-size: 12px; }
.ml-gate__top { display: flex; justify-content: space-between; align-items: center; }
.ml-gate__top b { font-family: var(--ml-mono); font-size: 13px; font-weight: 600; }
.ml-gate__sub { display: flex; justify-content: space-between; font-family: var(--ml-mono); font-size: 9.5px; letter-spacing: .08em; color: var(--ml-muted); margin-top: 3px; }
.ml-gate__sub .ok { color: var(--ml-ok); }

.ml-relay { display: grid; grid-template-columns: 1fr auto 0.9fr auto 0.9fr; gap: 10px; align-items: center; }
.ml-relay__arrow { color: var(--ml-muted); }
.ml-board { border: 1px solid var(--ml-line-strong); border-radius: 16px; background: #090B0D; padding: 10px; display: grid; gap: 6px; }
.ml-board__hd { font-family: var(--ml-mono); font-size: 9px; letter-spacing: .14em; color: var(--ml-muted); padding: 2px 2px 4px; }
.ml-spot { display: flex; align-items: center; justify-content: space-between; gap: 6px; border-radius: 7px; padding: 7px 8px; font-size: 11px; background: var(--ml-surface); border: 1px solid var(--ml-line); }
.ml-spot em { font-style: normal; font-family: var(--ml-mono); font-size: 8.5px; letter-spacing: .1em; padding: 2px 6px; border-radius: 999px; }
.ml-spot--red { border-color: rgba(255, 59, 48, .6); background: rgba(255, 59, 48, .1); }
.ml-spot--red em { background: #FF3B30; color: #fff; }
.ml-spot--yellow em { background: #E8C547; color: #0B0D0F; }
.ml-spot--ok em { background: rgba(61, 220, 132, .14); color: var(--ml-ok); }
.ml-node { border: 1px solid var(--ml-line-strong); border-radius: 12px; background: var(--ml-surface); padding: 12px 10px; text-align: center; display: grid; justify-items: center; gap: 8px; }
.ml-node .ic { color: var(--ml-text); }
.ml-node b { font-family: var(--ml-mono); font-size: 9.5px; letter-spacing: .14em; font-weight: 500; }
.ml-node span { font-size: 10.5px; color: var(--ml-muted); line-height: 1.35; }
.ml-node--signal { border-color: rgba(255, 90, 31, .5); }
.ml-node--signal .ic { color: var(--ml-signal); }
.ml-radios { display: flex; gap: 4px; }

@media (max-width: 1100px) {
    .ml-floor { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .ml-floor .ml-list { grid-template-columns: 1fr; }
    .ml-count { grid-template-columns: 1fr; }
    .ml-relay { grid-template-columns: 1fr; }
    .ml-relay__arrow { transform: rotate(90deg); justify-self: center; }
}

/* ---------- Auth (login / register) ---------- */
.ml-auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.ml-auth__aside {
    position: relative; overflow: hidden; border-right: 1px solid var(--ml-line);
    padding: 40px 56px; display: flex; flex-direction: column; background: var(--ml-bg-2);
}
.ml-auth__aside::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 50% at 30% 70%, rgba(255, 90, 31, .08), transparent 70%); }
.ml-auth__aside > * { position: relative; z-index: 1; }
.ml-auth__pitch { margin: auto 0; max-width: 460px; }
.ml-auth__pitch .ml-h2 { margin-bottom: 20px; }
.ml-auth__readout { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 36px; font-family: var(--ml-mono); font-size: 11px; letter-spacing: .14em; }
.ml-auth__readout dt { color: var(--ml-muted); }
.ml-auth__readout dd { margin: 0; color: var(--ml-text); }
.ml-auth__readout .ok { color: var(--ml-ok); display: inline-flex; align-items: center; gap: 6px; }

.ml-auth__main { display: flex; flex-direction: column; padding: 40px 56px; }
.ml-auth__top { display: flex; justify-content: flex-end; gap: 22px; align-items: center; font-size: 14px; color: var(--ml-text-2); }
.ml-auth__top a:hover { color: var(--ml-text); }
.ml-auth__mlogo { margin-right: auto; visibility: hidden; }
.ml-auth__form { width: 100%; max-width: 420px; margin: auto; padding: 48px 0; }
.ml-auth__form--wide { max-width: 520px; }
.ml-auth__form h1 { font-size: 36px; letter-spacing: -0.03em; font-weight: 700; line-height: 1.05; }
.ml-auth__form > p { color: var(--ml-text-2); margin: 10px 0 32px; }
.ml-auth__alt { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--ml-line); font-size: 14px; color: var(--ml-text-2); }
.ml-auth__alt a { color: var(--ml-signal); font-weight: 600; }
.ml-auth__alt a:hover { text-decoration: underline; text-underline-offset: 4px; }

.ml-field { display: grid; gap: 7px; margin-bottom: 18px; }
.ml-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ml-label { font-family: var(--ml-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ml-text-2); }
.ml-input {
    height: 50px; width: 100%; padding: 0 16px; border-radius: 10px;
    background: var(--ml-surface); border: 1px solid var(--ml-line-strong); color: var(--ml-text);
    font: inherit; font-size: 15px; transition: border-color .15s, box-shadow .15s;
}
.ml-input::placeholder { color: var(--ml-muted); }
.ml-input:focus { outline: none; border-color: var(--ml-signal); box-shadow: 0 0 0 3px var(--ml-signal-soft); }
.ml-input.input-validation-error { border-color: #FF3B30; }
.ml-field-error { font-size: 12.5px; color: #FF6B5E; }
.ml-field-error:empty { display: none; }
.ml-check-row { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ml-text-2); margin: 4px 0 24px; cursor: pointer; }
.ml-check-row input { width: 18px; height: 18px; accent-color: var(--ml-signal); margin: 0; }
.ml-btn--block { width: 100%; }
.ml-btn:is(button) { cursor: pointer; font-family: inherit; }

.ml-alert { border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-bottom: 20px; border: 1px solid; display: grid; gap: 4px; }
.ml-alert--danger { border-color: rgba(255, 59, 48, .45); background: rgba(255, 59, 48, .08); color: #FFB3AC; }
.ml-alert--warning { border-color: rgba(232, 197, 71, .45); background: rgba(232, 197, 71, .08); color: #F0DC92; }
.ml-alert--info { border-color: rgba(74, 168, 255, .45); background: rgba(74, 168, 255, .08); color: #B5DBFF; }
.ml-alert--success { border-color: rgba(61, 220, 132, .45); background: rgba(61, 220, 132, .08); color: #A9F0C8; }

@media (max-width: 960px) {
    .ml-auth { grid-template-columns: 1fr; }
    .ml-auth__aside { display: none; }
    .ml-auth__mlogo { visibility: visible; }
}
@media (max-width: 720px) {
    .ml-auth__main { padding: 20px 16px; }
    .ml-auth__top { justify-content: space-between; }
    .ml-auth__form { padding: 40px 0; }
    .ml-field-row { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .ml-pulse { animation: none; }
    .ml-btn:hover { transform: none; }
}
