:root {
  --ma-navy: var(--navy, #0B1829);
  --ma-navy-mid: var(--navy-mid, #132338);
  --ma-surface: #243447;
  --ma-electric: var(--electric, #2A8EFF);
  --ma-orange: var(--orange, #F26419);
  --ma-white: #FFFFFF;
  --ma-text: #C3D2E4;
  --ma-muted: #8CA3BE;
  --ma-border: rgba(255, 255, 255, 0.1);
  --ma-success: #22C55E;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ma-navy);
  color: var(--ma-text);
  font-family: 'Barlow', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--ma-electric); text-decoration: none; }
a:hover { color: var(--ma-white); }
img { max-width: 100%; }

.ma-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 10px 5%;
  background: rgba(11, 24, 41, 0.95);
  border-bottom: 1px solid rgba(42, 142, 255, 0.2);
  backdrop-filter: blur(14px);
}
.ma-nav .logo img { display: block; height: 44px; width: auto; }
.ma-nav .nav-links { display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; list-style: none; }
.ma-nav .nav-links a { color: var(--ma-text); font-size: 15px; font-weight: 500; }
.ma-nav .nav-links a:hover, .ma-nav .nav-links a[aria-current="page"] { color: var(--ma-white); }
.ma-nav .nav-links .cta-button { padding: 10px 17px; border-radius: 7px; background: #1F63D6; color: var(--ma-white); font-weight: 700; }
.ma-nav .nav-links .cta-button:hover { background: #1A6FD0; }

.ma-wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.ma-eyebrow {
  margin: 0 0 14px;
  color: var(--ma-electric);
  font: 800 13px/1 'Barlow Condensed', sans-serif;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.ma-hero { padding: clamp(76px, 10vw, 130px) 0 72px; }
.ma-hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr); gap: clamp(42px, 7vw, 96px); align-items: end; }
.ma-hero h1 {
  max-width: 820px;
  margin: 0;
  color: var(--ma-white);
  font: 800 clamp(58px, 7.2vw, 108px)/0.88 'Barlow Condensed', sans-serif;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.ma-hero h1 span { display: block; color: var(--ma-electric); }
.ma-hero-copy { margin: 26px 0 0; max-width: 660px; color: #D8E4F1; font-size: clamp(18px, 2vw, 22px); line-height: 1.48; }
.ma-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.ma-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--ma-electric);
  color: var(--ma-white);
  font-weight: 700;
  transition: transform 150ms ease-out, background 150ms ease-out, border-color 150ms ease-out;
}
.ma-btn:hover { background: #1A6FD0; color: var(--ma-white); transform: translateY(-1px); }
.ma-btn:active { transform: translateY(0); }
.ma-btn:focus-visible { outline: 3px solid var(--ma-white); outline-offset: 3px; }
.ma-btn-secondary { background: transparent; border-color: rgba(255,255,255,.2); }
.ma-btn-secondary:hover { background: rgba(255,255,255,.05); border-color: var(--ma-electric); }
.ma-hero-aside { padding: 24px; border: 1px solid var(--ma-border); border-radius: 10px; background: rgba(255,255,255,.025); }
.ma-hero-aside strong { display: block; margin-bottom: 14px; color: var(--ma-white); font: 700 25px/1.1 'Barlow Condensed', sans-serif; text-transform: uppercase; }
.ma-hero-aside ul { margin: 0; padding: 0; list-style: none; }
.ma-hero-aside li { position: relative; padding: 10px 0 10px 22px; border-top: 1px solid var(--ma-border); }
.ma-hero-aside li::before { content: ''; position: absolute; left: 0; top: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--ma-success); }

.ma-demo-section { padding: 54px 0 88px; }
.ma-demo-head { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 50px; align-items: end; margin-bottom: 26px; }
.ma-demo-head h2, .ma-section-title {
  margin: 0;
  color: var(--ma-white);
  font: 800 clamp(40px, 5vw, 68px)/0.95 'Barlow Condensed', sans-serif;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}
.ma-demo-head p { margin: 0; color: var(--ma-muted); font-size: 18px; }
.ma-scroll-note { display: inline-flex; align-items: center; gap: 9px; margin-top: 12px; color: #AFC1D6; font-size: 14px; }
.ma-scroll-note::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ma-orange); box-shadow: 0 0 0 5px rgba(242,100,25,.12); }

.ma-product {
  overflow: visible;
  border: 1px solid #3B4E65;
  border-radius: 10px;
  background: #1B2838;
  box-shadow: 0 28px 80px rgba(0,0,0,.36);
}
.ma-product-top { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border-bottom: 1px solid #3B4E65; color: #94A3B8; font-size: 11px; letter-spacing: .035em; }
.ma-product-top i { width: 8px; height: 8px; border-radius: 50%; background: var(--ma-electric); }
.ma-product-body { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); min-height: 560px; overflow: hidden; }
.ma-tools { display: grid; align-content: start; gap: 6px; padding: 10px 7px; border-right: 1px solid #3B4E65; background: #0D1B2A; }
.ma-tool { display: grid; place-items: center; height: 34px; border: 1px solid transparent; border-radius: 5px; color: #89A0BA; font-size: 13px; font-weight: 800; }
.ma-tool.is-active { color: var(--ma-white); background: rgba(47,95,229,.24); border-color: #2F5FE5; }
.ma-map { position: relative; overflow: hidden; background: #F7F7F5; }
.ma-map-sheet { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .58; transform: scale(1.2); transform-origin: 38% 58%; }
.ma-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transform: scale(1.2); transform-origin: 38% 58%; }
.ma-overlay text { font-family: Arial, sans-serif; }
.ma-route { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 6; stroke-dasharray: 720; stroke-dashoffset: 720; will-change: stroke-dashoffset; }
.ma-route-cap { fill: none; stroke: var(--ma-orange); stroke-width: 3; stroke-linecap: round; }
.ma-callout { opacity: 0; transform-box: fill-box; transform-origin: center; }
.ma-code-leader { fill: none; stroke-width: 2.5; stroke-linecap: round; }
.ma-leader-dark { fill: none; stroke: var(--ma-orange); stroke-width: 3; stroke-linecap: round; }
.ma-code-box { fill: var(--ma-surface); stroke-width: 2.5; }
.ma-code-text, .ma-code-qty { fill: var(--ma-white); font-size: 14px; dominant-baseline: middle; }
.ma-code-text { font-weight: 700; }
.ma-code-qty { font-weight: 800; text-anchor: end; }
.ma-group-title { fill: #8FB3FF; font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.ma-event-box { fill: #0D1B2A; stroke: var(--ma-orange); stroke-width: 3; }
.ma-event-text { fill: var(--ma-white); font-size: 14px; font-weight: 800; letter-spacing: .06em; text-anchor: middle; dominant-baseline: middle; }
.ma-point { transform-box: fill-box; transform-origin: center; }
.ma-tally { position: absolute; z-index: 3; top: 14px; right: 14px; width: 172px; padding: 13px 12px; border: 1px solid #4A6079; border-radius: 8px; background: rgba(27,40,56,.95); box-shadow: 0 16px 32px rgba(13,27,42,.28); backdrop-filter: blur(8px); }
.ma-tally h3 { margin: 0 0 10px; color: #89A0BA; font: 800 10px/1 'Barlow', sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.ma-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--ma-border); color: var(--ma-text); font-size: 11px; opacity: 0; transform: translateX(10px); }
.ma-row-label { display: inline-flex; align-items: center; gap: 8px; }
.ma-code-dot { width: 8px; height: 8px; border-radius: 50%; }
.ma-row strong { color: var(--ma-white); }
.ma-submit { position: relative; width: 100%; min-height: 40px; margin-top: 14px; overflow: hidden; border: 1px solid #5F83EB; border-radius: 6px; background: #2F5FE5; color: var(--ma-white); font: 800 11px 'Barlow', sans-serif; letter-spacing: .04em; text-transform: uppercase; opacity: 0; transform: translateY(8px); }
.ma-submit span { display: grid; place-items: center; }
.ma-submitted-label { position: absolute; inset: 0; opacity: 0; }
.ma-invoice { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 76px; padding: 15px 24px; border-top: 1px solid rgba(244,100,25,.55); border-radius: 0 0 9px 9px; background: var(--ma-orange); color: #0D1B2A; font-size: 13px; text-align: center; opacity: 0; transform: translateY(8px); box-shadow: 0 -5px 30px rgba(244,100,25,.34), 0 18px 38px rgba(244,100,25,.26); }
.ma-invoice small { display: block; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ma-invoice strong { display: block; padding-left: 14px; border-left: 1px solid rgba(13,27,42,.28); font-size: 18px; line-height: 1.2; letter-spacing: .025em; }

.ma-benefits { padding: 90px 0; border-top: 1px solid var(--ma-border); }
.ma-section-lead { max-width: 740px; margin: 22px 0 42px; color: #B8C9DB; font-size: 19px; }
.ma-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ma-card { padding: 28px; border: 1px solid var(--ma-border); border-radius: 10px; background: rgba(255,255,255,.025); }
.ma-card .ma-card-n { color: var(--ma-electric); font: 800 13px/1 'Barlow Condensed', sans-serif; letter-spacing: .12em; }
.ma-card h3 { margin: 20px 0 10px; color: var(--ma-white); font: 700 28px/1.05 'Barlow Condensed', sans-serif; text-transform: uppercase; }
.ma-card p { margin: 0; color: #AEC0D3; }

.ma-boundary { padding: 88px 0; background: #0E1D30; border-block: 1px solid var(--ma-border); }
.ma-boundary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 38px; }
.ma-plan { padding: 30px; border: 1px solid var(--ma-border); border-radius: 10px; background: #132338; }
.ma-plan.is-primary { border-color: rgba(42,142,255,.45); box-shadow: inset 0 3px 0 var(--ma-electric); }
.ma-plan-label { color: var(--ma-electric); font: 800 12px/1 'Barlow Condensed', sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.ma-plan h3 { margin: 14px 0 10px; color: var(--ma-white); font: 800 34px/1 'Barlow Condensed', sans-serif; text-transform: uppercase; }
.ma-plan p { margin: 0 0 18px; color: #B7C7D8; }
.ma-plan ul { margin: 0; padding: 0; list-style: none; }
.ma-plan li { padding: 10px 0; border-top: 1px solid var(--ma-border); color: #D2DEEA; }
.ma-plan li::before { content: '✓'; margin-right: 10px; color: var(--ma-success); font-weight: 800; }

.ma-faq { padding: 90px 0; }
.ma-faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 38px; }
.ma-faq article { padding: 25px; border: 1px solid var(--ma-border); border-radius: 9px; }
.ma-faq h3 { margin: 0 0 10px; color: var(--ma-white); font: 700 24px/1.15 'Barlow Condensed', sans-serif; }
.ma-faq p { margin: 0; color: #AEC0D3; }

.ma-final { padding: 84px 0; text-align: center; background: linear-gradient(180deg, rgba(42,142,255,.08), transparent); border-top: 1px solid rgba(42,142,255,.18); }
.ma-final h2 { max-width: 800px; margin: 0 auto 18px; color: var(--ma-white); font: 800 clamp(44px, 6vw, 78px)/.96 'Barlow Condensed', sans-serif; text-transform: uppercase; }
.ma-final p { max-width: 680px; margin: 0 auto 28px; color: #B9C9DA; font-size: 19px; }

body.ma-final-state .ma-map-sheet { opacity: 1; }
body.ma-final-state .ma-route { stroke-dashoffset: 0; }
body.ma-final-state .ma-callout, body.ma-final-state .ma-row, body.ma-final-state .ma-submit, body.ma-final-state .ma-invoice { opacity: 1; transform: none; }
body.ma-final-state .ma-submit { background: var(--ma-success); border-color: var(--ma-success); }
body.ma-final-state .ma-submit-label { opacity: 0; }
body.ma-final-state .ma-submitted-label { opacity: 1; }

@media (max-width: 980px) {
  .ma-hero-grid, .ma-demo-head { grid-template-columns: 1fr; }
  .ma-hero-aside { max-width: 680px; }
  .ma-product-body { grid-template-columns: 48px minmax(0,1fr); }
  .ma-card-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .ma-wrap { width: min(100% - 28px, 1180px); }
  .ma-hero { padding-top: 62px; }
  .ma-hero h1 { font-size: clamp(52px, 15vw, 78px); }
  .ma-demo-section { padding-top: 30px; }
  .ma-product-body { grid-template-columns: 1fr; min-height: 0; }
  .ma-tools { display: none; }
  .ma-map { min-height: 0; aspect-ratio: 1.45 / 1; }
  .ma-overlay, .ma-map-sheet { transform: none; }
  .ma-tally { top: 10px; right: 10px; width: 132px; padding: 10px; }
  .ma-tally h3 { margin-bottom: 6px; font-size: 9px; }
  .ma-row { padding: 7px 0; }
  .ma-submit { min-height: 34px; margin-top: 10px; padding: 0 6px; font-size: 9px; }
  .ma-invoice { min-height: 72px; }
  .ma-boundary-grid, .ma-faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ma-actions { flex-direction: column; }
  .ma-btn { width: 100%; }
  .ma-card-grid { grid-template-columns: 1fr; }
  .ma-code-text, .ma-code-qty, .ma-event-text { font-size: 24px; }
  .ma-start .ma-event-box { x: 700px; width: 108px; }
  .ma-end .ma-event-box { x: 704px; width: 76px; }
  .ma-group-title { font-size: 16px; }
  .ma-invoice { flex-direction: column; gap: 3px; padding: 13px 18px; }
  .ma-invoice strong { padding-left: 0; border-left: 0; font-size: 17px; }
  .ma-product-top { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ma-map-sheet { opacity: 1; }
  .ma-route { stroke-dashoffset: 0; }
  .ma-callout, .ma-row, .ma-submit, .ma-invoice { opacity: 1; transform: none; }
  .ma-submit { background: var(--ma-success); border-color: var(--ma-success); }
  .ma-submit-label { opacity: 0; }
  .ma-submitted-label { opacity: 1; }
}
