/* ============================================================================
   PMDG Technologies — Management Intelligence Automation Styles
   ========================================================================= */

/* --- Extracted Internal CSS --- */
:root {
    --mi-accent: #3f9cb9;
    --mi-accent-hover: #32839c;
    --mi-accent-glow: rgba(63, 156, 185, 0.25);
    --mi-navy: #01022e;
    --mi-navy-deep: #00011b;
    --mi-bg-soft: #f4f8fb;
    --mi-border: #dfe8f2;
    --mi-card-bg: #ffffff;
    --mi-success: #10b981;
    --mi-warning: #f59e0b;
    --mi-danger: #ef4444;
  }

  .mrp-animated-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
  }
  .mrp-section-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    display: block;
  }
  .mrp-animated-section > .measure {
    position: relative;
    z-index: 1;
  }

  /* Hero Badge */
  .mi-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    background: rgba(63, 156, 185, 0.12);
    border: 1px solid rgba(63, 156, 185, 0.35);
    color: #0b6885;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.6rem;
  }
  .mi-hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3f9cb9;
    box-shadow: 0 0 0 0 rgba(63, 156, 185, 0.7);
    animation: miPulse 2s infinite;
  }
  @keyframes miPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(63, 156, 185, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(63, 156, 185, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(63, 156, 185, 0); }
  }

  /* Feature Pills */
  .mi-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
  }
  .mi-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid var(--mi-border);
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--mi-navy);
    box-shadow: 0 2px 6px rgba(1, 2, 46, 0.04);
  }
  .mi-pill i {
    width: 15px;
    height: 15px;
    color: var(--mi-accent);
  }

  /* Lead Form Card (Above the fold & bottom) */
  .mi-lead-card {
    background: #ffffff;
    border: 1px solid var(--mi-border);
    border-radius: 14px;
    padding: 1.75rem 1.85rem;
    box-shadow: 0 16px 36px rgba(1, 2, 46, 0.09);
    position: relative;
    overflow: hidden;
  }
  .mi-lead-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3f9cb9, #01022e);
  }
  .mi-lead-card h3 {
    color: var(--mi-navy);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
  }
  .mi-lead-card p {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.45;
    margin-bottom: 1rem;
  }

  .mi-input-group {
    margin-bottom: 0.75rem;
    text-align: left;
  }
  .mi-input-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.25rem;
  }
  .mi-input-group input,
  .mi-input-group select,
  .mi-input-group textarea {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border-radius: 7px;
    border: 1.5px solid #cbd5e1;
    font-size: 0.875rem;
    color: #0f172a;
    background: #f8fafc;
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;    resize: vertical;

  }
  .mi-input-group input:focus,
  .mi-input-group select:focus,
  .mi-input-group textarea:focus {
    border-color: var(--mi-accent);
    background: #ffffff;
    box-shadow: 0 0 0 3px var(--mi-accent-glow);
  }

  .mi-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.85rem 1.5rem;
    border-radius: 8px;
    background: var(--mi-accent);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(63, 156, 185, 0.25);
  }
  .mi-btn-primary:hover {
    background: var(--mi-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(63, 156, 185, 0.35);
  }

  /* Management Intelligence Executive Console Frame */
  .mi-console-frame {
    background: #01022e;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 40px rgba(1, 2, 46, 0.25);
    overflow: hidden;
    margin-top: 1rem;
    color: #f8fafc;
  }
  .mi-console-header {
    background: #00011b;
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .mi-console-dots {
    display: flex;
    gap: 0.35rem;
  }
  .mi-console-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
  }
  .mi-console-body {
    padding: 1.15rem;
  }

  /* KPI Summary Grid */
  .mi-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.85rem;
  }
  .mi-kpi-card {
    background: rgba(30, 41, 59, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 8px;
    padding: 0.65rem 0.8rem;
  }
  .mi-kpi-label {
    color: #94a3b8;
    font-size: 0.675rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.2rem;
  }
  .mi-kpi-val {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
  }

  /* AI Copilot Query Box */
  .mi-copilot-box {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(63, 156, 185, 0.35);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.85rem;
    font-size: 0.8rem;
    line-height: 1.5;
  }
  .mi-copilot-prompt {
    color: #38bdf8;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.4rem;
    font-size: 0.75rem;
  }
  .mi-copilot-response {
    color: #cbd5e1;
    font-size: 0.785rem;
    line-height: 1.55;
  }

  /* Threshold Alert Banner */
  .mi-alert-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    padding: 0.55rem 0.85rem;
    font-size: 0.725rem;
    color: #fef3c7;
  }

  /* Problem Cards Grid */
  .mi-problem-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
  .mi-problem-card {
    background: #ffffff;
    border: 1px solid var(--mi-border);
    border-radius: 12px;
    padding: 1.05rem 1.15rem;
    box-shadow: 0 4px 15px rgba(1, 2, 46, 0.035);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  .mi-problem-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(1, 2, 46, 0.08);
    border-color: rgba(63, 156, 185, 0.45);
  }
  .mi-problem-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.09);
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.65rem;
  }

  /* Solution Feature Blocks */
  .mi-solution-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
  .mi-solution-card {
    background: #ffffff;
    border: 1px solid var(--mi-border);
    border-radius: 14px;
    padding: 1.05rem 1.15rem;
    box-shadow: 0 4px 16px rgba(1, 2, 46, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .mi-solution-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(1, 2, 46, 0.09);
    border-color: rgba(63, 156, 185, 0.5);
  }
  .mi-solution-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
  }
  .mi-solution-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(63, 156, 185, 0.12);
    color: var(--mi-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .mi-solution-card .mi-s-41 {
    font-size: 1.05rem;
    line-height: 1.3;
  }
  .mi-solution-card .mi-s-42 {
    font-size: 0.86rem;
    line-height: 1.5;
    margin-bottom: 0.55rem;
  }
  .mi-solution-card .mi-s-43 {
    font-size: 0.8rem;
    line-height: 1.45;
    padding-left: 1.1rem;
    margin: 0;
  }
  .mi-solution-card .mi-s-43 li {
    margin-bottom: 0.25rem;
  }
  .mi-benefit-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: 0.725rem;
    font-weight: 700;
    margin-top: 0.65rem;
    align-self: flex-start;
    line-height: 1.35;
  }

  /* Process Steps Grid */
  .mi-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    position: relative;
  }
  .mi-step-card {
    background: #ffffff;
    border: 1px solid var(--mi-border);
    border-radius: 12px;
    padding: 1.05rem 1.15rem;
    box-shadow: 0 4px 14px rgba(1, 2, 46, 0.035);
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  .mi-step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(1, 2, 46, 0.08);
  }
  .mi-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--ima-navy, var(--mi-navy));
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 0.65rem;
  }

  /* Benefits Grid */
  .mi-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
  .mi-benefit-card {
    background: #ffffff;
    border: 1px solid var(--mi-border);
    border-radius: 12px;
    padding: 1.05rem 1.15rem;
    box-shadow: 0 4px 14px rgba(1, 2, 46, 0.035);
    transition: all 0.25s ease;
  }
  .mi-benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(1, 2, 46, 0.08);
    border-color: rgba(63, 156, 185, 0.45);
  }

  /* FAQ Accordion */
  .mi-faq-item {
    background: #ffffff;
    border: 1px solid var(--mi-border);
    border-radius: 10px;
    margin-bottom: 0.85rem;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  .mi-faq-item:hover {
    border-color: rgba(63, 156, 185, 0.45);
  }
  .mi-faq-question {
    padding: 1.2rem 1.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    color: var(--mi-navy);
    font-size: 1rem;
    user-select: none;
  }
  .mi-faq-icon {
    transition: transform 0.25s ease;
    color: var(--mi-accent);
  }
  .mi-faq-answer {
    padding: 0 1.4rem 1.2rem 1.4rem;
    color: #475569;
    font-size: 0.925rem;
    line-height: 1.65;
    display: none;
  }
  .mi-faq-item.active .mi-faq-answer {
    display: block;
  }
  .mi-faq-item.active .mi-faq-icon {
    transform: rotate(180deg);
  }

  /* Responsive Breakpoints */
  @media (max-width: 992px) {
    /* Hide hero contact form in mobile & tablet view */
    #hero-lead-form {
      display: none !important;
    }
    /* Hide FAQ accordion column in mobile & tablet view, keep consultation form visible */
    .mi-faq-col,
    #faq-section {
      display: none !important;
    }
    .mi-hero-grid {
      grid-template-columns: 1fr !important;
      gap: 2.5rem !important;
    }
    .mi-problem-grid,
    .mi-solution-grid,
    .mi-steps-grid,
    .mi-benefits-grid {
      grid-template-columns: 1fr !important;
    }
    .mi-bottom-consult-grid {
      grid-template-columns: 1fr !important;
      gap: 2.5rem !important;
    }
    .mi-kpi-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
  }

/* --- Extracted Inline Utility Classes --- */
.mi-s-1 { padding-top: 4.85rem; padding-bottom: 1.25rem; }
.mi-s-2 { display: grid; grid-template-columns: 1.22fr 1fr; gap: 2.25rem; align-items: flex-start; position: relative; z-index: 1; }
.mi-s-3 { margin-top: 0.35rem !important; margin-bottom: 0.75rem; font-size: clamp(1.85rem, 1.1rem + 2.8vw, 3.4rem); line-height: 1.15; color: var(--mi-navy); font-weight: 800; }
.mi-s-4 { background: linear-gradient(135deg, #01022e 20%, #3f9cb9 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.mi-s-5 { margin-top: 0.5rem; font-size: 1.05rem; line-height: 1.6; color: #475569; max-width: 58ch; margin-bottom: 1rem; }
.mi-s-6 { background: #ef4444; }
.mi-s-7 { background: #f59e0b; }
.mi-s-8 { background: #10b981; }
.mi-s-9 { font-size: 0.75rem; color: #94a3b8; font-family: monospace; display: flex; align-items: center; gap: 0.45rem; }
.mi-s-10 { width: 14px; height: 14px; color: #3f9cb9; }
.mi-s-11 { font-size: 0.7rem; background: rgba(16, 185, 129, 0.2); color: #6ee7b7; padding: 2px 8px; border-radius: 4px; font-weight: 600; }
.mi-s-12 { color: #38bdf8; }
.mi-s-13 { font-size: 0.675rem; color: #10b981; margin-top: 0.2rem; }
.mi-s-14 { color: #4ade80; }
.mi-s-15 { color: #facc15; }
.mi-s-16 { font-size: 0.675rem; color: #94a3b8; margin-top: 0.2rem; }
.mi-s-17 { width: 14px; height: 14px; color: #38bdf8; }
.mi-s-18 { display: flex; align-items: center; gap: 0.5rem; }
.mi-s-19 { width: 15px; height: 15px; color: #fbbf24; flex-shrink: 0; }
.mi-s-20 { background: #f59e0b; color: #01022e; font-size: 0.675rem; font-weight: 700; padding: 2px 7px; border-radius: 4px; flex-shrink: 0; }
.mi-s-21 { display:none !important; }
.mi-s-22 { margin-top: 0.5rem; }
.mi-s-23 { font-size: 0.72rem; color: #94a3b8; text-align: center; margin-top: 0.6rem; }
.mi-s-24 { padding: 1.5rem 0; background: var(--mi-bg-soft); border-top: 1px solid var(--mi-border); border-bottom: 1px solid var(--mi-border); }
.mi-s-25 { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.mi-s-26 { font-size: 0.85rem; font-weight: 700; color: #475569; text-transform: uppercase; letter-spacing: 0.05em; display: flex; align-items: center; gap: 0.5rem; }
.mi-s-27 { width: 16px; height: 16px; color: var(--mi-accent); }
.mi-s-28 { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.mi-s-29 { font-size: 0.775rem; background: #ffffff; }
.mi-s-30 { padding: 2.25rem 0; background: #ffffff; }
.mi-s-31 { max-width: 820px; margin: 0 auto 2.25rem auto; text-align: center; }
.mi-s-32 { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.25); color: #dc2626; }
.mi-s-33 { width: 14px; height: 14px; }
.mi-s-34 { font-size: clamp(1.75rem, 1rem + 2vw, 2.5rem); color: var(--mi-navy); font-weight: 800; line-height: 1.25; margin-top: 0.5rem; margin-bottom: 0.85rem; }
.mi-s-35 { color: #64748b; font-size: 1.05rem; line-height: 1.6; }
.mi-s-36 { width: 22px; height: 22px; }
.mi-s-37 { color: var(--mi-navy); font-size: 1.15rem; font-weight: 700; margin-bottom: 0.35rem; }
.mi-s-38 { color: #475569; font-size: 0.9rem; line-height: 1.55; margin: 0; }
.mi-s-39 { padding: 2.25rem 0; background: var(--mi-bg-soft); }
.mi-s-40 { width: 24px; height: 24px; }
.mi-s-41 { color: var(--mi-navy); font-size: 1.25rem; font-weight: 700; margin: 0; }
.mi-s-42 { color: #475569; font-size: 0.925rem; line-height: 1.6; margin-bottom: 0.75rem; }
.mi-s-43 { color: #64748b; font-size: 0.85rem; line-height: 1.6; padding-left: 1.2rem; margin: 0; }
.mi-s-44 { color: var(--mi-navy); font-size: 1.15rem; font-weight: 700; margin-bottom: 0.35rem; }
.mi-s-45 { color: #475569; font-size: 0.875rem; line-height: 1.6; margin: 0; }
.mi-s-46 { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.55rem; }
.mi-s-47 { width: 22px; height: 22px; color: var(--mi-accent); }
.mi-s-48 { color: var(--mi-navy); font-size: 1.15rem; font-weight: 700; margin: 0; }
.mi-s-49 { color: #475569; font-size: 0.9rem; line-height: 1.6; margin: 0; }
.mi-s-50 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.mi-s-51 { border-left: 4px solid var(--mi-accent); }
.mi-s-52 { font-size: 0.75rem; text-transform: uppercase; font-weight: 700; color: var(--mi-accent); margin-bottom: 0.35rem; }
.mi-s-53 { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2.75rem; align-items: flex-start; position: relative; z-index: 1; }
.mi-s-54 { font-size: clamp(1.6rem, 1rem + 1.8vw, 2.2rem); color: var(--mi-navy); font-weight: 800; line-height: 1.25; margin-top: 0.5rem; margin-bottom: 1.5rem; }
.mi-s-55 { width: 18px; height: 18px; }
.mi-s-56 { box-shadow: 0 20px 45px rgba(1, 2, 46, 0.1); }
.mi-s-57 { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.875rem; color: #64748b; }
.mi-s-58 { display: flex; gap: 1.5rem; }
.mi-s-59 { color: #64748b; text-decoration: none; transition: color 0.2s; }
.mi-s-59:hover { color: #01022e; }

/* ==========================================================================
   ENTERPRISE TRUST & CLIENT LOGO WALL
   ========================================================================== */
.mi-client-wall-section {
  padding: 4.5rem 0;
  position: relative;
  scroll-margin-top: 5rem;
  background: linear-gradient(180deg, var(--paper, #ffffff) 0%, var(--paper-sunken, #f8fafc) 100%);
}

.mi-client-wall-head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 2.5rem;
}

.mi-badge-center {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.mi-client-wall-title {
  font-size: clamp(1.65rem, 1.25rem + 1.2vw, 2.35rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--mi-navy, var(--fg));
  margin-bottom: 1rem;
}

.mi-client-wall-desc {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--fg-muted, #64748b);
  max-width: 720px;
  margin: 0 auto;
}

.mi-client-wall-card {
  background: var(--paper, #ffffff);
  border: 1px solid var(--rule, #e2e8f0);
  border-radius: var(--radius-lg, 14px);
  box-shadow: 0 12px 36px -12px rgba(1, 2, 46, 0.08);
  overflow: hidden;
  position: relative;
}

:root[data-theme="dark"] .mi-client-wall-card {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.45);
}

.mi-client-wall-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.15rem 1.75rem;
  border-bottom: 1px solid var(--rule, #e2e8f0);
  background: var(--paper-sunken, #f8fafc);
}

:root[data-theme="dark"] .mi-client-wall-subhead {
  background: rgba(255, 255, 255, 0.03);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.mi-client-wall-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mi-accent, #3f9cb9);
}

.mi-client-wall-badge i {
  width: 15px;
  height: 15px;
}

.mi-client-wall-subtext {
  font-size: 0.84rem;
  color: var(--fg-muted, #64748b);
  font-weight: 500;
}

.mi-client-logo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background-color: var(--rule, #e2e8f0);
}

:root[data-theme="dark"] .mi-client-logo-grid {
  background-color: rgba(255, 255, 255, 0.08);
}

.mi-logo-tile {
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.6rem 1.25rem;
  min-height: 86px;
  transition: transform 0.25s ease, background-color 0.2s ease, box-shadow 0.25s ease;
  position: relative;
}

:root[data-theme="dark"] .mi-logo-tile {
  background: #f0f4f8;
}

.mi-logo-tile:hover {
  background: #ffffff;
  z-index: 2;
  box-shadow: inset 0 0 0 1px var(--mi-accent, #3f9cb9), 0 4px 16px rgba(1, 2, 46, 0.08);
}

.mi-logo-tile img {
  height: 2.1rem;
  max-width: 82%;
  width: auto;
  object-fit: contain;
  filter: none;
  opacity: 1;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease, opacity 0.25s ease;
}

.mi-logo-tile:hover img {
  transform: scale(1.08);
  filter: none;
  opacity: 1;
}

.mi-client-erp-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding: 1rem 1.5rem;
  background: var(--paper-sunken, #f8fafc);
  border-top: 1px solid var(--rule, #e2e8f0);
}

:root[data-theme="dark"] .mi-client-erp-strip {
  background: rgba(255, 255, 255, 0.03);
  border-top-color: rgba(255, 255, 255, 0.08);
}

.mi-client-erp-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--mi-navy, var(--fg));
}

.mi-client-erp-label i {
  width: 14px;
  height: 14px;
  color: var(--mi-accent, #3f9cb9);
}

.mi-client-erp-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.mi-erp-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 600;
  border-radius: 9999px;
  background: var(--paper, #ffffff);
  border: 1px solid var(--rule, #e2e8f0);
  color: var(--fg-muted, #64748b);
  letter-spacing: 0.01em;
}

:root[data-theme="dark"] .mi-erp-pill {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--fg-muted, #64748b);
}

@media (max-width: 900px) {
  .mi-client-logo-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .mi-logo-tile {
    padding: 1.25rem 0.9rem;
    min-height: 74px;
  }
  .mi-logo-tile img {
    height: 1.85rem;
  }
  .mi-client-wall-subhead {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .mi-client-wall-section {
    padding: 2.25rem 0 !important;
  }
  .mi-client-wall-head {
    margin-bottom: 1.4rem !important;
  }
  .mi-client-wall-title {
    font-size: 1.22rem !important;
    line-height: 1.28 !important;
    margin-bottom: 0.5rem !important;
  }
  .mi-client-wall-desc {
    font-size: 0.78rem !important;
    line-height: 1.45 !important;
  }
  .mi-client-wall-subhead {
    padding: 0.85rem 1rem !important;
    flex-direction: column;
    gap: 0.35rem;
  }
  .mi-client-wall-badge {
    font-size: 0.7rem !important;
  }
  .mi-client-wall-subtext {
    font-size: 0.72rem !important;
  }
  .mi-client-logo-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
  .mi-logo-tile {
    padding: 0.85rem 0.45rem !important;
    min-height: 58px !important;
  }
  .mi-logo-tile img {
    height: 1.45rem !important;
    max-width: 86% !important;
  }
  .mi-client-erp-strip {
    padding: 0.75rem 0.85rem !important;
    flex-direction: column;
    gap: 0.45rem;
  }
  .mi-client-erp-label {
    font-size: 0.74rem !important;
  }
  .mi-client-erp-tags {
    justify-content: center;
    gap: 0.35rem;
  }
  .mi-erp-pill {
    font-size: 0.65rem !important;
    padding: 0.15rem 0.45rem !important;
  }
}

/* ============================================================================
   PMDG Technologies — Management Intelligence Hero Section Mobile Typography
   ========================================================================= */

@media (max-width: 768px) {
  /* Hide hero contact form in mobile view */
  #hero-lead-form {
    display: none !important;
  }

  /* Hide FAQ accordion column in mobile view, keep consultation form visible */
  .mi-faq-col,
  #faq-section {
    display: none !important;
  }

  /* Hide business benefits section in mobile view */
  #business-benefits {
    display: none !important;
  }

  /* Hero Section Spacing */
  .hero-section,
  .mi-s-1 {
    padding-top: 4.35rem !important;
    padding-bottom: 0.95rem !important;
  }

  .mi-hero-grid,
  .mi-s-2 {
    grid-template-columns: 1fr !important;
    gap: 1.15rem !important;
  }

  /* Section Spacing & Reduced Padding */
  .section-divider,
  .mi-s-30,
  .mi-s-39 {
    padding: 1.25rem 0 !important;
  }
  .mi-s-24 {
    padding: 0.75rem 0 !important;
  }
  .mi-s-31 {
    margin: 0 auto 0.95rem auto !important;
  }

  /* Section Headings Typography & Margin in Mobile View */
  .mi-s-34 {
    font-size: clamp(1.25rem, 1.02rem + 1.2vw, 1.65rem) !important;
    line-height: 1.22 !important;
    margin-top: 0.25rem !important;
    margin-bottom: 0.35rem !important;
  }
  .mi-s-35 {
    font-size: 0.84rem !important;
    line-height: 1.48 !important;
  }

  /* Card Grids Gap & Card Padding in Mobile View */
  .mi-problem-grid,
  .mi-solution-grid,
  .mi-steps-grid,
  .mi-benefits-grid {
    gap: 0.85rem !important;
  }
  .mi-problem-card {
    padding: 0.75rem 0.85rem !important;
  }
  .mi-problem-icon {
    width: 34px !important;
    height: 34px !important;
    margin-bottom: 0.45rem !important;
  }
  .mi-s-36 {
    width: 18px !important;
    height: 18px !important;
  }
  .mi-s-37 {
    font-size: 0.98rem !important;
    margin-bottom: 0.2rem !important;
  }
  .mi-s-38 {
    font-size: 0.82rem !important;
    line-height: 1.45 !important;
  }

  /* How It Works Step Cards Spacing in Mobile View */
  .mi-step-card {
    padding: 0.75rem 0.85rem !important;
  }
  .mi-step-num {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.76rem !important;
    margin-bottom: 0.45rem !important;
  }
  .mi-s-44 {
    font-size: 0.98rem !important;
    margin-bottom: 0.2rem !important;
  }
  .mi-s-45 {
    font-size: 0.82rem !important;
    line-height: 1.45 !important;
  }

  /* Solution & Benefit Cards Spacing in Mobile View */
  .mi-solution-card {
    padding: 0.85rem 0.85rem !important;
  }
  .mi-benefit-card {
    padding: 0.75rem 0.85rem !important;
  }
  .mi-s-46 {
    margin-bottom: 0.35rem !important;
  }
  .mi-s-47 {
    width: 18px !important;
    height: 18px !important;
  }
  .mi-s-48 {
    font-size: 0.98rem !important;
  }
  .mi-s-49 {
    font-size: 0.82rem !important;
    line-height: 1.45 !important;
  }

  /* Hero Badge */
  .mi-hero-badge {
    font-size: 0.72rem !important;
    padding: 0.25rem 0.65rem !important;
    letter-spacing: 0.035em !important;
    gap: 0.35rem !important;
    max-width: 100% !important;
    margin-bottom: 0.32rem !important;
  }
  .mi-hero-badge .pulse-dot {
    width: 6px !important;
    height: 6px !important;
    flex-shrink: 0 !important;
  }

  /* Hero Title & Paragraph */
  .hero-title,
  .mi-s-3 {
    font-size: clamp(1.3rem, 1.05rem + 1.4vw, 1.8rem) !important;
    line-height: 1.2 !important;
    margin-top: 0.15rem !important;
    margin-bottom: 0.35rem !important;
  }

  .hero-copy,
  .mi-s-5 {
    font-size: 0.88rem !important;
    line-height: 1.48 !important;
    margin-top: 0.15rem !important;
    margin-bottom: 0.55rem !important;
  }

  /* Feature Pills */
  .mi-pills {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.4rem !important;
    margin-bottom: 0.75rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .mi-pill {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0.32rem 0.55rem !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    gap: 0.35rem !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    border-radius: 6px !important;
  }
  .mi-pill i {
    width: 13px !important;
    height: 13px !important;
    flex-shrink: 0 !important;
  }

  /* Hero Executive Console Frame Typography */
  .mi-console-frame {
    margin-top: 0.45rem !important;
  }
  .mi-s-9 {
    font-size: 0.68rem !important;
    gap: 0.35rem !important;
  }
  .mi-s-10 {
    width: 12px !important;
    height: 12px !important;
  }
  .mi-s-11 {
    font-size: 0.62rem !important;
    padding: 2px 6px !important;
  }
  .mi-kpi-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.35rem !important;
    margin-bottom: 0.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .mi-kpi-card {
    padding: 0.4rem 0.3rem !important;
    text-align: center !important;
    min-width: 0 !important;
    overflow: hidden !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
  }
  .mi-kpi-label {
    font-size: 0.52rem !important;
    margin-bottom: 0.12rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    letter-spacing: 0.02em !important;
  }
  .mi-kpi-val {
    font-size: 0.85rem !important;
    justify-content: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.15 !important;
  }
  .mi-s-13,
  .mi-s-16 {
    font-size: 0.52rem !important;
    margin-top: 0.12rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
  }
  .mi-copilot-box {
    padding: 0.65rem 0.75rem !important;
    margin-top: 0.5rem !important;
  }
  .mi-copilot-prompt {
    font-size: 0.72rem !important;
    gap: 0.35rem !important;
  }
  .mi-copilot-prompt i {
    width: 13px !important;
    height: 13px !important;
  }
  .mi-copilot-response {
    font-size: 0.74rem !important;
    line-height: 1.45 !important;
  }
  .mi-alert-banner {
    padding: 0.55rem 0.75rem !important;
    font-size: 0.72rem !important;
  }
  .mi-s-18 {
    font-size: 0.72rem !important;
  }
  .mi-s-19 {
    width: 13px !important;
    height: 13px !important;
  }
  .mi-s-20 {
    font-size: 0.62rem !important;
    padding: 2px 6px !important;
  }

  /* Solution Cards: Hide ul list in mobile view */
  .mi-solution-card ul,
  .mi-s-43 {
    display: none !important;
  }
}

@media (max-width: 380px) {
  .mi-hero-badge {
    font-size: 0.65rem !important;
    padding: 0.2rem 0.5rem !important;
    letter-spacing: 0.025em !important;
    white-space: nowrap !important;
  }
  .hero-title,
  .mi-s-3 {
    font-size: clamp(1.15rem, 0.95rem + 1.2vw, 1.4rem) !important;
    line-height: 1.18 !important;
  }
  .hero-copy,
  .mi-s-5 {
    font-size: 0.82rem !important;
    line-height: 1.45 !important;
  }
  .mi-pills {
    gap: 0.35rem !important;
  }
  .mi-pill {
    padding: 0.28rem 0.35rem !important;
    font-size: 0.62rem !important;
    gap: 0.25rem !important;
  }
  .mi-pill i {
    width: 11px !important;
    height: 11px !important;
  }
  .mi-client-logo-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .mi-logo-tile {
    min-height: 52px !important;
  }
  .mi-logo-tile img {
    height: 1.35rem !important;
  }
}


