:root {
  --mg-bg: #090b0f;
  --mg-panel: #10141a;
  --mg-panel-2: #151a21;
  --mg-line: rgba(255,255,255,.09);
  --mg-text: #f6f7f8;
  --mg-muted: #929aa5;
  --mg-lime: #c8ff64;
  --mg-lime-2: #a3e635;
  --mg-blue: #65bfff;
  --mg-orange: #ffb45e;
}

.mg-page, .mg-page * { box-sizing: border-box; }
.mg-page {
  min-height: 100vh;
  overflow: hidden;
  color: var(--mg-text);
  background:
    radial-gradient(circle at 77% 12%, rgba(101,191,255,.08), transparent 24rem),
    radial-gradient(circle at 16% 4%, rgba(200,255,100,.07), transparent 25rem),
    var(--mg-bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.mg-page a { color: inherit; }
.mg-container { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.mg-header { height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--mg-line); }
.mg-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--mg-text); text-decoration: none; font: 600 14px/1 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .06em; }
.mg-brand-mark { width: 24px; height: 24px; position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; transform: rotate(45deg); }
.mg-brand-mark span { display: block; border-radius: 2px; background: var(--mg-lime); }
.mg-brand-mark span:nth-child(2), .mg-brand-mark span:nth-child(3) { opacity: .42; }
.mg-nav { display: flex; align-items: center; gap: 30px; }
.mg-nav a { color: var(--mg-muted); text-decoration: none; font: 500 12px/1 ui-monospace, "SFMono-Regular", Menlo, monospace; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.mg-nav a:hover { color: var(--mg-text); }
.mg-nav .mg-nav-cta { padding: 10px 16px; border: 1px solid rgba(200,255,100,.28); border-radius: 7px; color: var(--mg-lime); background: rgba(200,255,100,.06); }

.mg-hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(480px, 1.05fr); gap: 70px; align-items: center; min-height: 690px; padding-block: 72px 84px; }
.mg-eyebrow, .mg-section-kicker { color: var(--mg-lime); font: 600 11px/1.2 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; }
.mg-eyebrow { display: flex; align-items: center; gap: 10px; }
.mg-eyebrow span { width: 6px; height: 6px; border-radius: 50%; background: var(--mg-lime); box-shadow: 0 0 16px var(--mg-lime); }
.mg-hero h1 { max-width: 650px; margin: 22px 0 24px; font-size: clamp(48px, 5.2vw, 76px); font-weight: 600; line-height: .98; letter-spacing: -.055em; text-wrap: balance; }
.mg-hero h1 em { color: var(--mg-lime); font-style: normal; }
.mg-hero-lead { max-width: 590px; margin: 0; color: #b0b6be; font-size: 18px; line-height: 1.62; text-wrap: pretty; }
.mg-actions { display: flex; align-items: center; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.mg-button { min-height: 50px; padding: 0 19px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 650; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.mg-button:hover { transform: translateY(-2px); }
.mg-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mg-button span { padding: 3px 6px; border-radius: 4px; background: rgba(0,0,0,.14); font: 600 10px/1 ui-monospace, "SFMono-Regular", Menlo, monospace; }
.mg-button-primary { background: var(--mg-lime); color: #0b0d10; }
.mg-button-secondary { border-color: var(--mg-line); background: rgba(255,255,255,.035); color: #d6dae0; }
.mg-proofline { display: flex; gap: 20px; flex-wrap: wrap; padding: 0; margin: 20px 0 0; list-style: none; color: #737c87; font: 500 10px/1.4 ui-monospace, "SFMono-Regular", Menlo, monospace; }
.mg-proofline span { color: var(--mg-lime); }

.mg-hero-visual { min-width: 0; border: 1px solid var(--mg-line); border-radius: 14px; overflow: hidden; background: rgba(15,19,25,.88); box-shadow: 0 35px 100px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.04); }
.mg-visual-toolbar, .mg-window-bar, .mg-terminal-bar { min-height: 41px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 14px; border-bottom: 1px solid var(--mg-line); color: #777f8a; font: 500 9px/1 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .06em; }
.mg-window-dots { display: flex; gap: 6px; justify-self: start; }
.mg-window-dots i { width: 8px; height: 8px; border-radius: 50%; background: #ff665c; }
.mg-window-dots i:nth-child(2) { background: #ffc04f; }
.mg-window-dots i:nth-child(3) { background: #39cf65; }
.mg-live { justify-self: end; display: flex; align-items: center; gap: 6px; color: var(--mg-lime); }
.mg-live i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 9px currentColor; }
.mg-atlas { display: block; width: 100%; height: auto; }
.mg-grid-lines path { fill: none; stroke: rgba(255,255,255,.035); stroke-width: 1; }
.mg-links path { fill: none; stroke: rgba(200,255,100,.24); stroke-width: 1.2; stroke-dasharray: 4 5; }
.mg-node circle { fill: #121820; stroke: rgba(255,255,255,.14); stroke-width: 1; }
.mg-node text { fill: #e8ebee; text-anchor: middle; font: 600 10px ui-monospace, "SFMono-Regular", Menlo, monospace; }
.mg-node .mg-node-sub { fill: #9aa2ac; font-size: 9px; font-weight: 400; }
.mg-node .mg-node-score { fill: var(--mg-lime); font-size: 8px; }
.mg-node-seed circle:first-child { fill: rgba(200,255,100,.08); stroke: rgba(200,255,100,.22); }
.mg-node-seed circle:nth-child(2) { fill: #182019; stroke: var(--mg-lime); }
.mg-node-good circle { stroke: rgba(200,255,100,.45); }
.mg-node-mid circle { stroke: rgba(255,180,94,.45); }
.mg-node-mid .mg-node-score { fill: var(--mg-orange); }
.mg-node-low { opacity: .52; }
.mg-node-low .mg-node-score { fill: #7e8792; }
.mg-mini-dot circle { fill: #53606e; opacity: .5; }
.mg-visual-result { min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--mg-line); background: #0d1116; color: #7f8791; font: 500 9px/1 ui-monospace, "SFMono-Regular", Menlo, monospace; }
.mg-visual-result strong { color: #e8ebee; font-size: 10px; }
.mg-visual-result b { padding: 5px 7px; border-radius: 4px; background: rgba(200,255,100,.1); color: var(--mg-lime); }

.mg-case-strip { border-block: 1px solid var(--mg-line); background: #0d1015; }
.mg-case-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; padding-block: 52px; }
.mg-case-copy h2 { max-width: 570px; margin: 12px 0 12px; font-size: 30px; line-height: 1.12; letter-spacing: -.03em; }
.mg-case-copy p { max-width: 570px; margin: 0; color: var(--mg-muted); font-size: 14px; line-height: 1.6; }
.mg-case-metrics { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--mg-line); border-radius: 10px; overflow: hidden; }
.mg-case-metrics div { min-width: 0; padding: 19px 17px; background: #10141a; }
.mg-case-metrics div + div { border-left: 1px solid var(--mg-line); }
.mg-case-metrics span { color: #777f88; font: 600 9px/1 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .12em; }
.mg-case-metrics strong { display: block; margin-top: 9px; color: #ff8a7f; font: 500 25px/1 ui-monospace, "SFMono-Regular", Menlo, monospace; }
.mg-case-metrics small { display: block; margin-top: 7px; color: #68717c; font-size: 10px; line-height: 1.35; }

.mg-section { padding-block: 112px; }
.mg-section-heading { max-width: 760px; margin-bottom: 54px; }
.mg-section-heading h2, .mg-agent-copy h2, .mg-truth-card h2 { margin: 14px 0 16px; font-size: clamp(36px, 4vw, 54px); font-weight: 600; line-height: 1.04; letter-spacing: -.045em; text-wrap: balance; }
.mg-section-heading > p, .mg-section-heading-split > p, .mg-agent-copy > p { margin: 0; color: var(--mg-muted); font-size: 16px; line-height: 1.65; }
.mg-flow { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; margin: 0; border: 1px solid var(--mg-line); border-radius: 12px; overflow: hidden; list-style: none; }
.mg-flow li { position: relative; min-width: 0; padding: 22px 22px 26px; background: #0d1116; }
.mg-flow li + li { border-left: 1px solid var(--mg-line); }
.mg-flow li:not(:last-child)::after { content: "→"; position: absolute; z-index: 2; right: -13px; top: 82px; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--mg-line); border-radius: 50%; background: var(--mg-bg); color: var(--mg-lime); font: 500 12px/1 ui-monospace, "SFMono-Regular", Menlo, monospace; }
.mg-step-no { color: #68717c; font: 600 9px/1 ui-monospace, "SFMono-Regular", Menlo, monospace; }
.mg-flow h3 { margin: 20px 0 9px; font-size: 16px; letter-spacing: -.015em; }
.mg-flow p { margin: 0; color: #7f8791; font-size: 12.5px; line-height: 1.55; }
.mg-flow-icon { height: 80px; margin-top: 18px; position: relative; border: 1px solid rgba(255,255,255,.07); border-radius: 8px; background: #11161d; overflow: hidden; }
.mg-flow-post { padding: 14px; }
.mg-flow-post i { display: block; width: 74%; height: 4px; margin-bottom: 8px; border-radius: 2px; background: #48515d; }
.mg-flow-post i:nth-child(2) { width: 91%; }.mg-flow-post i:nth-child(3) { width: 56%; }
.mg-flow-post b { position: absolute; right: 11px; bottom: 10px; color: var(--mg-lime); font: 600 9px/1 ui-monospace, "SFMono-Regular", Menlo, monospace; }
.mg-flow-vector i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--mg-blue); box-shadow: 0 0 12px rgba(101,191,255,.55); }
.mg-flow-vector i:nth-child(1){left:20%;top:26%}.mg-flow-vector i:nth-child(2){left:41%;top:58%}.mg-flow-vector i:nth-child(3){left:63%;top:20%}.mg-flow-vector i:nth-child(4){left:79%;top:62%}.mg-flow-vector i:nth-child(5){left:53%;top:39%}.mg-flow-vector i:nth-child(6){left:24%;top:67%}
.mg-flow-vector b { position: absolute; right: 10px; top: 9px; color: #69727e; font: 500 8px/1 ui-monospace, "SFMono-Regular", Menlo, monospace; }
.mg-flow-score { display: grid; place-content: center; text-align: center; }
.mg-flow-score span { color: var(--mg-lime); font: 500 31px/1 ui-monospace, "SFMono-Regular", Menlo, monospace; }
.mg-flow-score small { margin-top: 5px; color: #68717c; font: 600 8px/1 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .12em; }
.mg-flow-plan { padding: 17px 12px; color: #dbe0e5; font: 600 9px/1 ui-monospace, "SFMono-Regular", Menlo, monospace; }
.mg-flow-plan span, .mg-flow-plan b { display: block; padding: 7px; border-radius: 4px; background: rgba(255,255,255,.05); }
.mg-flow-plan i { position: absolute; right: 16px; top: 31px; color: var(--mg-lime); font-style: normal; }
.mg-flow-plan b { margin-top: 6px; color: var(--mg-lime); font-weight: 600; }
.mg-formula { display: grid; grid-template-columns: 1fr 36px 1fr 36px 1.2fr; align-items: stretch; margin-top: 22px; }
.mg-formula > div { padding: 20px; border: 1px solid var(--mg-line); border-radius: 8px; background: #0d1116; }
.mg-formula > b { display: grid; place-items: center; color: #59626d; font: 500 16px/1 ui-monospace, "SFMono-Regular", Menlo, monospace; }
.mg-formula span { color: #68717c; font: 600 8px/1 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .1em; }
.mg-formula strong { display: block; margin-top: 8px; font: 500 14px/1.2 ui-monospace, "SFMono-Regular", Menlo, monospace; }
.mg-formula small { display: block; margin-top: 7px; color: #7c8590; font-size: 10px; }
.mg-formula .mg-formula-result { border-color: rgba(200,255,100,.3); background: rgba(200,255,100,.055); }
.mg-formula-result strong { color: var(--mg-lime); }

.mg-product-section { border-block: 1px solid var(--mg-line); background: #0d1015; }
.mg-section-heading-split { max-width: none; display: grid; grid-template-columns: 1.05fr .65fr; gap: 80px; align-items: end; }
.mg-section-heading-split h2 { max-width: 680px; }
.mg-product-window { overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: #15191e; box-shadow: 0 45px 120px rgba(0,0,0,.5); }
.mg-window-bar { grid-template-columns: 1fr auto 1fr; }
.mg-window-bar > span:last-child { justify-self: end; }
.mg-product-window img { display: block; width: 100%; height: auto; }
.mg-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 26px; border: 1px solid var(--mg-line); border-radius: 12px; overflow: hidden; }
.mg-feature-grid article { min-height: 205px; padding: 24px; background: #10141a; }
.mg-feature-grid article:nth-child(3n+2), .mg-feature-grid article:nth-child(3n+3) { border-left: 1px solid var(--mg-line); }
.mg-feature-grid article:nth-child(n+4) { border-top: 1px solid var(--mg-line); }
.mg-feature-grid article > span { color: var(--mg-lime); font: 600 8px/1 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .12em; }
.mg-feature-grid h3 { margin: 24px 0 9px; font-size: 18px; letter-spacing: -.02em; }
.mg-feature-grid p { margin: 0; color: var(--mg-muted); font-size: 13px; line-height: 1.55; }

.mg-truth-section { padding-block: 86px; }
.mg-truth-card { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; padding: 48px; border: 1px solid rgba(255,180,94,.22); border-radius: 14px; background: linear-gradient(135deg, rgba(255,180,94,.06), rgba(255,255,255,.015)); }
.mg-truth-card h2 { max-width: 690px; font-size: clamp(32px, 3.7vw, 49px); }
.mg-truth-copy p { margin: 4px 0 24px; color: var(--mg-muted); font-size: 14px; line-height: 1.65; }
.mg-truth-copy ol { padding: 0; margin: 0; list-style: none; }
.mg-truth-copy li { display: flex; align-items: center; gap: 12px; padding-block: 11px; border-top: 1px solid var(--mg-line); color: #c7ccd2; font-size: 13px; }
.mg-truth-copy li span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,180,94,.09); color: var(--mg-orange); font: 600 9px/1 ui-monospace, "SFMono-Regular", Menlo, monospace; }

.mg-agent-section { border-block: 1px solid var(--mg-line); background: radial-gradient(circle at 75% 50%, rgba(101,191,255,.07), transparent 26rem), #0d1015; }
.mg-agent-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: center; }
.mg-agent-copy ul { padding: 0; margin: 32px 0 0; list-style: none; }
.mg-agent-copy li { padding: 11px 0; border-top: 1px solid var(--mg-line); color: #aab1ba; font-size: 13px; }
.mg-agent-copy li span { display: inline-block; min-width: 138px; color: var(--mg-blue); font: 500 11px/1 ui-monospace, "SFMono-Regular", Menlo, monospace; }
.mg-terminal { overflow: hidden; border: 1px solid rgba(101,191,255,.22); border-radius: 13px; background: #0a0e13; box-shadow: 0 35px 90px rgba(0,0,0,.5); }
.mg-terminal-bar { grid-template-columns: 1fr auto 1fr; }
.mg-terminal-body { padding: 27px; font: 500 11px/1.65 ui-monospace, "SFMono-Regular", Menlo, monospace; }
.mg-terminal-body > p { margin: 0; color: #c6ccd2; }
.mg-prompt { color: var(--mg-lime); }
.mg-terminal-status { margin: 24px 0 13px; display: flex; align-items: center; gap: 8px; color: var(--mg-blue); }
.mg-terminal-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 9px currentColor; }
.mg-terminal pre { margin: 0; padding: 17px; overflow: auto; border: 1px solid var(--mg-line); border-radius: 8px; background: #0d1218; color: #b6bec8; }
.mg-terminal code { font: inherit; }
.mg-terminal-done { margin-top: 13px; color: #747e89; }

.mg-local-section { background: var(--mg-bg); }
.mg-local-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--mg-line); border-radius: 12px; overflow: hidden; }
.mg-local-grid > div { padding: 27px; background: #0d1116; }
.mg-local-grid > div + div { border-left: 1px solid var(--mg-line); }
.mg-local-grid span { color: var(--mg-lime); font: 600 9px/1 ui-monospace, "SFMono-Regular", Menlo, monospace; }
.mg-local-grid h3 { margin: 34px 0 10px; font-size: 18px; }
.mg-local-grid p { margin: 0; color: var(--mg-muted); font-size: 13px; line-height: 1.55; }

.mg-final { padding-block: 0 112px; }
.mg-final-card { display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: center; padding: 54px; border: 1px solid rgba(200,255,100,.25); border-radius: 15px; background: radial-gradient(circle at 80% 10%, rgba(200,255,100,.11), transparent 25rem), #10151a; }
.mg-final h2 { max-width: 760px; margin: 14px 0 13px; font-size: clamp(36px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -.05em; }
.mg-final p { max-width: 680px; margin: 0; color: var(--mg-muted); font-size: 15px; line-height: 1.6; }
.mg-final-actions { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
.mg-final-actions > a:last-child { color: #9fa7b0; text-align: center; font-size: 12px; text-decoration: none; }
.mg-footer { min-height: 90px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--mg-line); color: #68717c; font: 500 10px/1.4 ui-monospace, "SFMono-Regular", Menlo, monospace; }
.mg-footer p { margin: 0; }

@media (max-width: 1050px) {
  .mg-hero { grid-template-columns: 1fr; gap: 52px; }
  .mg-hero-copy { max-width: 760px; }
  .mg-hero-visual { max-width: 720px; width: 100%; }
  .mg-case-grid, .mg-agent-grid { grid-template-columns: 1fr; }
  .mg-section-heading-split, .mg-truth-card, .mg-final-card { grid-template-columns: 1fr; gap: 32px; }
  .mg-flow { grid-template-columns: repeat(2, 1fr); }
  .mg-flow li:nth-child(3) { border-left: 0; border-top: 1px solid var(--mg-line); }
  .mg-flow li:nth-child(4) { border-top: 1px solid var(--mg-line); }
  .mg-flow li:nth-child(2)::after { display: none; }
}

@media (max-width: 760px) {
  .mg-container { width: min(100% - 36px, 1180px); }
  .mg-header { height: 66px; }
  .mg-nav a:not(.mg-nav-cta) { display: none; }
  .mg-hero { min-height: auto; padding-block: 62px; grid-template-columns: minmax(0,1fr); }
  .mg-hero h1 { font-size: clamp(43px, 13vw, 60px); }
  .mg-hero-lead { font-size: 16px; }
  .mg-actions { align-items: stretch; flex-direction: column; }
  .mg-button { width: 100%; }
  .mg-proofline { gap: 10px 16px; }
  .mg-hero-visual { overflow: hidden; }
  .mg-atlas { width: 125%; margin-left: -12%; }
  .mg-visual-result { justify-content: flex-start; overflow-x: auto; }
  .mg-case-grid { gap: 28px; }
  .mg-case-metrics { grid-template-columns: 1fr; }
  .mg-case-metrics div + div { border-left: 0; border-top: 1px solid var(--mg-line); }
  .mg-section { padding-block: 78px; }
  .mg-section-heading { margin-bottom: 36px; }
  .mg-flow { grid-template-columns: 1fr; }
  .mg-flow li + li, .mg-flow li:nth-child(3) { border-left: 0; border-top: 1px solid var(--mg-line); }
  .mg-flow li::after { display: none !important; }
  .mg-formula { grid-template-columns: 1fr; gap: 8px; }
  .mg-formula > b { min-height: 20px; }
  .mg-feature-grid { grid-template-columns: 1fr; }
  .mg-feature-grid article:nth-child(n) { border-left: 0; }
  .mg-feature-grid article + article { border-top: 1px solid var(--mg-line); }
  .mg-truth-card { padding: 28px; }
  .mg-agent-grid { gap: 40px; }
  .mg-agent-copy li span { min-width: 118px; }
  .mg-terminal-body { padding: 18px; }
  .mg-local-grid { grid-template-columns: 1fr; }
  .mg-local-grid > div + div { border-left: 0; border-top: 1px solid var(--mg-line); }
  .mg-final { padding-bottom: 78px; }
  .mg-final-card { padding: 30px; }
  .mg-footer { padding-block: 26px; flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .mg-page *, .mg-page *::before, .mg-page *::after { scroll-behavior: auto !important; transition: none !important; }
}
