/* ==========================================================================
   Modernize BI — landing page styles
   All selectors are namespaced under .mbi-page so nothing leaks into the theme.
   ========================================================================== */

.mbi-page {
  --mbi-navy: #10143a;
  --mbi-navy-700: #1b2154;
  --mbi-blue: #0e4065;
  --mbi-orange: #ea4424;
  --mbi-orange-600: #c9351a;
  --mbi-orange-400: #f4714f;
  --mbi-ink: #33333a;
  --mbi-muted: #6b6b73;
  --mbi-grey-050: #f7f7f8;
  --mbi-grey-100: #ededef;
  --mbi-border: #e2e2e6;
  --mbi-accent-soft: #fdeee9;
  --mbi-shadow-lg: 0 12px 32px rgba(16, 20, 58, .14);
  --mbi-shadow-xl: 0 24px 60px rgba(16, 20, 58, .28);
  --mbi-font: "Avenir Next", Avenir, "Nunito Sans", "Segoe UI", Helvetica, Arial, sans-serif;

  font-family: var(--mbi-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--mbi-ink);
  background: #fff;
  overflow-x: clip;
}

.mbi-page *,
.mbi-page *::before,
.mbi-page *::after { box-sizing: border-box; }

.mbi-page p { margin: 0; }
.mbi-page h1, .mbi-page h2, .mbi-page h3 { margin: 0; font-weight: 700; letter-spacing: -0.01em; line-height: 1.18; }
.mbi-page img { max-width: 100%; }
.mbi-page a { color: var(--mbi-orange); text-decoration: none; }
.mbi-page a:hover { color: var(--mbi-orange-600); }

.mbi-section { padding: 96px 0; }
.mbi-section--light { background: #fff; overflow-x: clip; }
.mbi-section--navy { background: var(--mbi-blue); overflow-x: clip; }
.mbi-center { display: flex; justify-content: center; margin-top: 56px; }

/* --- buttons ------------------------------------------------------------- */
.mbi-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 24px; border: 1px solid transparent; border-radius: 999px;
  font: 500 15px/1 var(--mbi-font); cursor: pointer;
  transition: background .14s cubic-bezier(.2,0,.2,1), color .14s cubic-bezier(.2,0,.2,1), border-color .14s cubic-bezier(.2,0,.2,1);
}
.mbi-btn--lg { padding: 16px 30px; font-size: 16px; }
.mbi-page .mbi-btn--primary { background: var(--mbi-orange); color: #fff; }
.mbi-page .mbi-btn--primary:hover { background: var(--mbi-orange-600); color: #fff; }
.mbi-page .mbi-btn--outline { background: transparent; color: var(--mbi-navy); border-color: var(--mbi-border); }
.mbi-page .mbi-btn--outline:hover { background: var(--mbi-accent-soft); border-color: var(--mbi-orange); color: var(--mbi-navy); }
.mbi-btn:focus-visible { outline: 2px solid var(--mbi-orange); outline-offset: 2px; }

.mbi-arrow {
  width: 16px; height: 16px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14'/><path d='m12 5 7 7-7 7'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14'/><path d='m12 5 7 7-7 7'/></svg>") center / contain no-repeat;
}

.mbi-chip {
  display: inline-block; padding: 7px 14px; margin-bottom: 20px;
  background: var(--mbi-orange); border-radius: 999px;
  font: 500 12px/1.2 var(--mbi-font); letter-spacing: .14em; text-transform: uppercase; color: #fff;
}
.mbi-rule { display: block; width: 32px; height: 3px; background: var(--mbi-orange); }

/* --- floating header ----------------------------------------------------- */
.mbi-header {
  position: sticky; top: 0; z-index: 40;
  max-width: 1240px; margin: 0 auto -100px; padding: 20px 24px 0; width: 100%;
}
.mbi-header-pill {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 14px 40px; background: #fff; border-radius: 999px; box-shadow: var(--mbi-shadow-lg);
}
.mbi-brand { display: flex; align-items: center; flex: none; }
.mbi-brand img { display: block; height: 52px; width: auto; }
.mbi-nav { display: flex; align-items: center; gap: 44px; }
.mbi-page .mbi-navlink {
  display: flex; align-items: center; gap: 7px;
  font: 500 15px/1 var(--mbi-font); color: var(--mbi-navy);
  transition: color .14s cubic-bezier(.2,0,.2,1);
}
.mbi-page .mbi-navlink:hover { color: var(--mbi-orange); }
.mbi-navitem { position: relative; display: flex; align-items: center; }

.mbi-chev {
  width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") center / contain no-repeat;
}

.mbi-dropdown {
  position: absolute; top: 100%; left: -16px; width: 288px; padding-top: 14px;
  opacity: 0; visibility: hidden; transition: opacity .14s cubic-bezier(.2,0,.2,1);
}
.mbi-navitem:hover .mbi-dropdown,
.mbi-navitem:focus-within .mbi-dropdown,
.mbi-navitem.is-open .mbi-dropdown { opacity: 1; visibility: visible; }
.mbi-menu {
  list-style: none; margin: 0; padding: 10px;
  background: #fff; border-radius: 14px; box-shadow: var(--mbi-shadow-lg);
  display: flex; flex-direction: column;
}
.mbi-menu li { margin: 0; }
.mbi-page .mbi-menu-link {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 4px;
  font: 500 14px/1.2 var(--mbi-font); color: var(--mbi-navy);
  transition: background .14s cubic-bezier(.2,0,.2,1), color .14s cubic-bezier(.2,0,.2,1);
}
.mbi-page .mbi-menu-link:hover { background: var(--mbi-accent-soft); color: var(--mbi-orange); }
.mbi-menu-logo { display: flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 24px; }
.mbi-menu-logo img { max-height: 100%; width: auto; object-fit: contain; }

/* --- hero ---------------------------------------------------------------- */
.mbi-hero {
  position: relative; overflow: hidden; background: #cfe4f7;
  display: grid; grid-template-areas: "hero";
}
.mbi-hero-img { grid-area: hero; align-self: start; display: block; width: 100%; height: auto; transform-origin: 78% 68%; }
.mbi-hero-inner {
  grid-area: hero; position: relative; z-index: 1;
  width: 100%; padding: 124px 24px 40px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; align-items: start;
}
.mbi-hero-text { display: flex; flex-direction: column; gap: clamp(12px, 1.6vw, 24px); min-width: 0; padding-right: 24px; }
.mbi-hero-title { font-size: clamp(36px, 5vw, 64px); line-height: 1.08; color: var(--mbi-navy); text-wrap: pretty; }
.mbi-hero-title span { color: var(--mbi-orange); }
.mbi-hero-lead { max-width: 560px; font-weight: 300; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.7; color: var(--mbi-navy); text-wrap: pretty; }
.mbi-hero-text .mbi-btn { align-self: flex-start; }

.mbi-scrim { position: absolute; inset: 0; z-index: 4; background: rgba(16, 20, 58, .35); border: 0; padding: 0; cursor: pointer; }
.mbi-drawer {
  position: absolute; top: 112px; right: 0; bottom: 0; z-index: 5;
  width: min(460px, 86%); background: var(--mbi-navy); color: #fff;
  box-shadow: var(--mbi-shadow-xl); display: flex; flex-direction: column; overflow-y: auto;
}
.mbi-drawer[hidden], .mbi-scrim[hidden] { display: none; }
.mbi-drawer-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  padding: 24px 28px 16px; border-bottom: 1px solid rgba(255, 255, 255, .22);
}
.mbi-drawer-head h2 { font-size: 24px; color: #fff; text-wrap: pretty; }
.mbi-drawer-close {
  flex: none; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid rgba(255, 255, 255, .22); border-radius: 4px; cursor: pointer;
}
.mbi-drawer-close::before {
  content: ""; width: 20px; height: 20px; background: #fff;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><path d='M18 6 6 18'/><path d='m6 6 12 12'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><path d='M18 6 6 18'/><path d='m6 6 12 12'/></svg>") center / contain no-repeat;
}
.mbi-drawer-close:hover { background: var(--mbi-navy-700); }
.mbi-drawer-body { padding: 20px 28px 28px; display: flex; flex-direction: column; gap: 16px; }
.mbi-drawer-body p { color: rgba(255, 255, 255, .78); text-wrap: pretty; }
.mbi-drawer-body strong { color: #fff; font-weight: 500; }

/* --- section intros ------------------------------------------------------ */
.mbi-intro { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; align-items: start; }
.mbi-h2 { font-size: clamp(28px, 3.4vw, 40px); color: var(--mbi-navy); text-wrap: pretty; }
.mbi-h2--inverse { color: #fff; }
.mbi-intro-copy { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.mbi-intro-copy p { text-wrap: pretty; }
.mbi-intro-copy--inverse p { color: rgba(255, 255, 255, .78); }
.mbi-lead-inverse { font-weight: 500; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.35; color: #fff !important; }
.mbi-lede { display: flex; flex-direction: column; gap: 20px; max-width: 760px; }
.mbi-lede .mbi-chip { margin-bottom: 0; align-self: flex-start; }
.mbi-lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.6; color: var(--mbi-ink); text-wrap: pretty; }

/* --- evolution models ---------------------------------------------------- */
.mbi-models { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 32px; align-items: start; }
.mbi-model { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; min-width: 0; }
.mbi-model-title { font-size: 20px; letter-spacing: .14em; text-transform: uppercase; color: var(--mbi-navy); }
.mbi-model-note { font-size: 14px; color: var(--mbi-muted); }
.mbi-model-img { display: block; width: 100%; height: clamp(200px, 24vw, 300px); object-fit: contain; object-position: bottom center; }
.mbi-callout { margin-top: 32px; display: flex; justify-content: center; padding: 24px 28px; background: var(--mbi-accent-soft); }
.mbi-callout p { max-width: 900px; text-align: center; color: var(--mbi-navy); text-wrap: pretty; }

/* --- platforms ----------------------------------------------------------- */
.mbi-platforms { margin-top: 56px; display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr); gap: 32px; align-items: stretch; }
.mbi-rail { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mbi-tab {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 12px 16px 12px 12px; background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 8px;
  cursor: pointer; text-align: left; font-family: var(--mbi-font);
  transition: background .14s cubic-bezier(.2,0,.2,1), border-color .14s cubic-bezier(.2,0,.2,1);
}
.mbi-tab:hover { border-color: rgba(255, 255, 255, .55); }
.mbi-tab.is-active { background: #fff; border-color: #fff; }
.mbi-tab-bar { width: 3px; align-self: stretch; border-radius: 2px; background: transparent; }
.mbi-tab.is-active .mbi-tab-bar { background: var(--mbi-orange); }
.mbi-tab-logo { display: flex; align-items: center; justify-content: center; flex: none; width: 76px; height: 40px; padding: 4px; background: #fff; border-radius: 4px; }
.mbi-tab-logo img { max-width: 100%; max-height: 100%; width: auto; object-fit: contain; }
.mbi-tab-name { font: 500 16px/1.25 var(--mbi-font); color: #fff; }
.mbi-tab.is-active .mbi-tab-name { color: var(--mbi-navy); }

.mbi-panels { min-width: 0; position: sticky; top: 108px; align-self: start; }
.mbi-panel {
  display: flex; flex-direction: column; gap: 16px;
  padding: 44px 40px; background: #fff; border: 1px solid var(--mbi-border); border-radius: 8px;
}
.mbi-panel[hidden] { display: none; }
.mbi-eyebrow-muted { font: 500 11px/1.2 var(--mbi-font); letter-spacing: .14em; text-transform: uppercase; color: var(--mbi-muted); }
.mbi-panel-logo { display: flex; align-items: center; height: 64px; }
.mbi-panel-logo img { max-height: 100%; max-width: 280px; width: auto; object-fit: contain; }
.mbi-panel-scope { font: 500 clamp(17px, 1.4vw, 21px)/1.35 var(--mbi-font); color: var(--mbi-orange); }
.mbi-panel-body { max-width: 720px; text-wrap: pretty; }
.mbi-panel-cta { margin-top: auto; padding-top: 8px; }

/* --- conversation -------------------------------------------------------- */
.mbi-groups { margin-top: 56px; display: flex; flex-direction: column; gap: 48px; }
.mbi-group { display: flex; flex-direction: column; gap: 24px; padding-top: 40px; border-top: 1px solid var(--mbi-border); }
.mbi-group-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px 32px; align-items: center; }
.mbi-group-title { font-size: 24px; color: var(--mbi-navy); }
.mbi-group-desc { font-size: 14px; color: var(--mbi-muted); text-wrap: pretty; }
.mbi-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; align-items: stretch; }
.mbi-page .mbi-card {
  display: flex; flex-direction: column; gap: 12px; height: 100%; color: inherit;
  background: #fff; border: 1px solid var(--mbi-border); border-radius: 8px; overflow: hidden;
  transition: background .14s cubic-bezier(.2,0,.2,1);
}
.mbi-page .mbi-card:hover { background: var(--mbi-grey-050); color: inherit; }
.mbi-card-thumb { display: block; aspect-ratio: 16 / 9; max-height: 170px; background: var(--mbi-grey-100); }
.mbi-card-text { display: flex; flex-direction: column; gap: 8px; padding: 4px 20px 20px; }
.mbi-card-tag { font: 500 11px/1.2 var(--mbi-font); letter-spacing: .14em; text-transform: uppercase; color: var(--mbi-orange); }
.mbi-card-title { font: 700 16px/1.35 var(--mbi-font); color: var(--mbi-navy); text-wrap: pretty; }
.mbi-card-meta { font-size: 14px; color: var(--mbi-muted); }

/* --- footer -------------------------------------------------------------- */
.mbi-footer { background: var(--mbi-navy); color: rgba(255, 255, 255, .78); padding: 44px 24px; display: flex; justify-content: center; text-align: center; }
.mbi-footer span { font-size: 14px; }

/* --- scroll reveal ------------------------------------------------------- */
.mbi-page [data-anim] { will-change: transform, opacity; }

/* --- responsive ---------------------------------------------------------- */
@media (max-width: 1000px) {
  .mbi-header-pill { padding: 12px 20px; gap: 16px; }
  .mbi-nav { gap: 24px; }
  .mbi-brand img { height: 42px; }
  .mbi-hero-inner { padding: 104px 24px 32px; }
  .mbi-platforms { grid-template-columns: 1fr; }
  .mbi-panels { position: static; }
}
@media (max-width: 720px) {
  .mbi-section { padding: 64px 0; }
  .mbi-nav { display: none; }
  .mbi-hero-inner { padding: 96px 20px 28px; }
  .mbi-drawer { top: 92px; width: 100%; }
  .mbi-panel { padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .mbi-page [data-anim] { opacity: 1 !important; transform: none !important; }
  .mbi-hero-img { transform: none !important; }
}
