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

/* --- Extracted Internal CSS --- */
:root {
    --qma-accent: #3f9cb9;
    --qma-accent-hover: #32839c;
    --qma-accent-glow: rgba(63, 156, 185, 0.25);
    --qma-navy: #01022e;
    --qma-navy-deep: #00011b;
    --qma-bg-soft: #f4f8fb;
    --qma-border: #dfe8f2;
    --qma-card-bg: #ffffff;
    --qma-pass: #10b981;
    --qma-flag: #f59e0b;
    --qma-fail: #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;
  }

  /* Core Card Layouts */
  .qma-card {
    background: #ffffff;
    border: 1px solid var(--qma-border);
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 4px 15px rgba(1, 2, 46, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
  }
  .qma-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(1, 2, 46, 0.09);
    border-color: rgba(63, 156, 185, 0.45);
  }
  /* Reduce card padding in the pain section on desktop */
  @media (min-width: 1025px) {
    #qma-pain-section .qma-card {
      padding: 0.85rem 0.9rem;
    }
  }

  /* Benefit Vertical Card */
  .qma-benefit-card {
    background: #ffffff;
    border: 1px solid var(--qma-border);
    border-radius: 12px;
    padding: 1.6rem 1.5rem;
    box-shadow: 0 4px 14px rgba(1, 2, 46, 0.035);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.25s ease;
  }
  .qma-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);
  }
  /* Reduce card padding in workflow & benefits sections on desktop */
  @media (min-width: 1025px) {
    #qma-workflow-section .qma-card {
      padding: 0.85rem 0.9rem;
    }
    #qma-benefits-section .qma-benefit-card {
      padding: 0.85rem 0.9rem;
    }
  }

  /* Badge styling */
  .qma-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    background: rgba(63, 156, 185, 0.12);
    color: #0b6885;
    border-radius: 999px;
    font-size: 0.775rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  /* Button Primary */
  .qma-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 0.75rem 1.15rem;
    border-radius: 8px;
    background: var(--qma-accent);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(63, 156, 185, 0.35);
    transition: all 0.25s ease;
    box-sizing: border-box;
    gap: 0.45rem;
  }
  .qma-btn-primary .qma-btn-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
  }
  .qma-btn-primary:hover {
    background: var(--qma-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(63, 156, 185, 0.45);
    color: #ffffff;
  }
  .qma-btn-primary:hover .qma-btn-arrow {
    transform: translateX(3px);
  }

  /* Floating pill buttons */
  .qma-feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--qma-border);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--qma-navy);
    box-shadow: 0 2px 8px rgba(1, 2, 46, 0.04);
  }
  .qma-feature-pill i {
    width: 15px;
    height: 15px;
    color: var(--qma-accent);
  }

  /* Form Lead Card */
  .qma-lead-card {
    background: #ffffff;
    border: 1px solid var(--qma-border);
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(1, 2, 46, 0.07);
    padding: 1.25rem 1.35rem;
    position: relative;
    overflow: hidden;
  }
  .qma-lead-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3f9cb9, #01022e);
  }
  .qma-lead-card h2,
  .qma-lead-card h3 {
    color: var(--qma-navy);
    font-size: 1.18rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
  }
  .qma-lead-card p {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.45;
    margin-bottom: 0.75rem;
  }

  .qma-input-group {
    margin-bottom: 0.75rem;
    text-align: left;
  }
  .qma-input-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.3rem;
  }
  .qma-input-group input,
  .qma-input-group select,
  .qma-input-group textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #1e293b;
    background: #f8fafc;
    transition: all 0.2s ease;
    box-sizing: border-box;    resize: vertical;

  }
  .qma-input-group input:focus,
  .qma-input-group select:focus,
  .qma-input-group textarea:focus {
    outline: none;
    border-color: var(--qma-accent);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(63, 156, 185, 0.15);
  }

  .qma-form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
  .qma-form-row-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  @media (max-width: 820px) {
    .qma-form-row-3,
    .qma-form-row-2 {
      grid-template-columns: 1fr;
    }
  }

  /* Hero Dashboard Mockup */
  .qma-hero-mockup {
    background: #020617;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 1.25rem;
    color: #e2e8f0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
  }
  .qma-mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
  }
  .qma-live-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    color: #10b981;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .qma-live-tag::before {
    content: '';
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    animation: qma-pulse 1.8s infinite;
  }
  @keyframes qma-pulse {
    0% { transform: scale(0.9); opacity: 0.9; }
    50% { transform: scale(1.4); opacity: 0.4; }
    100% { transform: scale(0.9); opacity: 0.9; }
  }

  /* Grid Layouts */
  .qma-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
  .qma-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  .qma-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }

  @media (max-width: 1024px) {
    .qma-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .qma-grid-3 { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 640px) {
    .qma-grid-4 { grid-template-columns: 1fr; }
    .qma-grid-3 { grid-template-columns: 1fr; }
    .qma-grid-2 { grid-template-columns: 1fr; }
  }

  /* Combined FAQ & Consultation Grid */
  #faq-consultation-section,
  #faq-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
  }
  #quality-ripple-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    display: block;
  }
  #faq-consultation-section .measure,
  #faq-section .measure {
    position: relative;
    z-index: 1;
  }
  .qma-faq-consult-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 1rem;
  }
  @media (min-width: 992px) {
    .qma-faq-consult-grid {
      grid-template-columns: minmax(0, 8fr) minmax(0, 4fr) !important;
      align-items: stretch !important;
    }
    .qma-consult-col-8 {
      width: 100% !important;
      min-width: 0 !important;
    }
    .qma-consult-col-4,
    .qma-consult-col {
      display: flex !important;
      flex-direction: column !important;
      justify-content: flex-end !important;
      align-self: stretch !important;
    }
    .qma-consult-col-4 .qma-lead-card,
    .qma-consult-col .qma-lead-card {
      margin-top: auto !important;
      width: 100% !important;
    }
  }
  @media (max-width: 991px) {
    .qm-s-2,
    .qma-hero-grid,
    .qma-faq-consult-grid {
      grid-template-columns: 1fr !important;
      gap: 2.5rem;
    }
    #bottom-lead-form .qma-lead-card {
      margin-top: 1.5rem !important;
    }
  }

  /* Vision Inspection HUD Mockup */
  .vision-hud-box {
    position: relative;
    background: #090d16;
    border-radius: 8px;
    border: 1px solid rgba(63, 156, 185, 0.3);
    padding: 0.85rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8rem;
  }
  .bounding-box-alert {
    border: 2px dashed #f59e0b;
    background: rgba(245, 158, 11, 0.12);
    border-radius: 4px;
    padding: 0.4rem 0.6rem;
    position: relative;
    display: inline-block;
  }
  .bounding-box-alert::after {
    content: '[AI: Surface Porosity 0.41mm | Conf: 98.7%]';
    position: absolute;
    top: -14px;
    left: 0;
    background: #f59e0b;
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 2;
  }

  /* Enhanced Ecosystem Showcase Styling */
  .qma-eco-section {
    padding: 3rem 0 2.25rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-top: 1px solid var(--qma-border);
    border-bottom: 1px solid var(--qma-border);
    position: relative;
  }
  .qma-eco-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.15rem;
    margin-top: 2rem;
  }
  @media (max-width: 1200px) {
    .qma-eco-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  @media (max-width: 768px) {
    .qma-eco-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  @media (max-width: 480px) {
    .qma-eco-grid {
      grid-template-columns: 1fr;
    }
  }
  .qma-eco-card {
    background: #ffffff;
    border: 1px solid var(--qma-border);
    border-radius: 12px;
    padding: 1.25rem 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(1, 2, 46, 0.03);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
  }
  .qma-eco-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(1, 2, 46, 0.08);
    border-color: rgba(63, 156, 185, 0.5);
  }
  .qma-eco-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    transition: background 0.25s ease;
  }
  .qma-eco-card:hover::before {
    background: linear-gradient(90deg, var(--qma-accent), #01022e);
  }
  .qma-eco-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(63, 156, 185, 0.1);
    color: var(--qma-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    transition: all 0.2s ease;
  }
  .qma-eco-card:hover .qma-eco-icon-wrap {
    background: var(--qma-accent);
    color: #ffffff;
  }
  .qma-eco-category {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 0.2rem;
  }
  .qma-eco-name {
    font-size: 1.05rem;
    font-weight: 850;
    color: var(--qma-navy);
    line-height: 1.25;
    margin-bottom: 0.45rem;
  }
  .qma-eco-desc {
    font-size: 0.8125rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 0.85rem;
    flex-grow: 1;
  }
  .qma-eco-protocol {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: #0b6885;
    background: rgba(63, 156, 185, 0.1);
    padding: 0.25rem 0.55rem;
    border-radius: 4px;
    width: fit-content;
  }

/* --- Extracted Inline Utility Classes --- */
.qm-s-1 { padding-top: 3.85rem; padding-bottom: 0.85rem; }
.qm-s-2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.85rem; align-items: flex-start; position: relative; z-index: 1; }

@media (min-width: 992px) {
  .qm-s-2,
  .qma-hero-grid {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr) !important;
    align-items: stretch !important;
  }
  .qma-hero-col-8 {
    width: 100% !important;
    min-width: 0 !important;
  }
  .qma-hero-col-4,
  #hero-lead-form {
    width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-self: stretch !important;
  }
  #hero-lead-form .qma-lead-card,
  .qma-hero-col-4 .qma-lead-card {
    margin-top: auto !important;
    width: 100% !important;
  }
  .qma-hero-col-4 .qm-s-35,
  .qma-consult-col-4 .qm-s-139 {
    font-size: 1.18rem !important;
    font-weight: 700 !important;
    margin-top: 0.35rem !important;
    margin-bottom: 0.25rem !important;
    line-height: 1.25 !important;
  }
  .qma-hero-col-4 .qm-s-36,
  .qma-consult-col-4 .qm-s-140 {
    font-size: 0.85rem !important;
    line-height: 1.45 !important;
    margin-top: 0.25rem !important;
    margin-bottom: 0.75rem !important;
  }
  .qma-hero-col-4 .qm-s-33,
  .qma-consult-col-4 .qm-s-138 {
    margin-bottom: 0.75rem !important;
  }
}
.qm-s-3 { display: flex; flex-direction: column; gap: 0.95rem; }
.qm-s-4 { display: flex; align-items: center; gap: 0.6rem; }
.qm-s-5 { width: 14px; height: 14px; }
.qm-s-6 { font-size: 0.75rem; color: #64748b; font-weight: 600; }
.qm-s-7 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3.15rem); line-height: 1.15; font-weight: 850; color: var(--qma-navy); letter-spacing: -0.02em; }
.qm-s-8 { background: linear-gradient(135deg, #01022e 20%, #3f9cb9 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.qm-s-9 { font-size: 1.05rem; line-height: 1.6; color: #475569; max-width: 58ch; }
.qm-s-10 { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.qm-s-11 { margin-top: 0.25rem; }
.qm-s-12 { display: flex; align-items: center; gap: 0.75rem; }
.qm-s-13 { font-size: 0.72rem; color: #94a3b8; }
.qm-s-14 { font-size: 0.72rem; color: #38bdf8; font-weight: 600; }
.qm-s-15 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1rem; align-items: center; }
.qm-s-16 { color: #94a3b8; margin-bottom: 0.4rem; display: flex; justify-content: space-between; font-size: 0.7rem; }
.qm-s-17 { color: #10b981; }
.qm-s-18 { background: #111827; border: 1px solid #1f2937; border-radius: 6px; padding: 0.75rem; height: 90px; display: flex; align-items: center; justify-content: center; position: relative; }
.qm-s-19 { width: 140px; height: 50px; border: 1px dashed #64748b; border-radius: 4px; display: flex; align-items: center; justify-content: center; position: relative; }
.qm-s-20 { font-size: 0.65rem; color: #64748b; }
.qm-s-21 { width: 52px; height: 30px; position: absolute; right: 8px; top: 8px; }
.qm-s-22 { margin-top: 0.5rem; display: flex; justify-content: space-between; font-size: 0.7rem; }
.qm-s-23 { color: #cbd5e1; }
.qm-s-24 { color: #f59e0b; }
.qm-s-25 { color: #ef4444; font-weight: 700; }
.qm-s-26 { display: flex; flex-direction: column; gap: 0.45rem; font-size: 0.75rem; }
.qm-s-27 { background: rgba(255,255,255,0.04); padding: 0.45rem 0.75rem; border-radius: 6px; border: 1px solid rgba(255,255,255,0.06); }
.qm-s-28 { color: #94a3b8; font-size: 0.68rem; }
.qm-s-29 { color: #10b981; font-size: 1rem; font-weight: 700; }
.qm-s-30 { font-size: 0.65rem; color: #94a3b8; }
.qm-s-31 { color: #38bdf8; font-size: 1rem; font-weight: 700; }
.qm-s-32 { box-shadow: 0 20px 45px rgba(1, 2, 46, 0.1); }
.qm-s-33 { text-align: left; margin-bottom: 1.25rem; }
.qm-s-34 { margin-bottom: 0.5rem; }
.qm-s-35 { font-size: 1.35rem; font-weight: 800; color: var(--qma-navy); margin-top: 0.4rem; line-height: 1.3; }
.qm-s-36 { color: #64748b; font-size: 0.85rem; line-height: 1.5; margin-top: 0.25rem; }
.qm-s-37 { display:none !important; }
.qm-s-38 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.qm-s-39 { margin-top: 0.6rem; font-size: 0.95rem; }
.qm-s-40 { margin-top: 1rem; font-size: 0.8125rem; color: #64748b; text-align: center; }
.qm-s-41 { display:none; margin-top: 1rem; padding: 0.75rem; border-radius: 6px; font-size: 0.875rem; text-align: center; }
.qm-s-42 { padding: 1.6rem 0; background: var(--qma-bg-soft); border-top: 1px solid var(--qma-border); border-bottom: 1px solid var(--qma-border); }
.qm-s-43 { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.25rem; }
.qm-s-44 { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
.qm-s-45 { background: rgba(63, 156, 185, 0.15); color: #0284c7; padding: 0.3rem 0.8rem; border-radius: 999px; font-weight: 700; font-size: 0.75rem; text-transform: uppercase; }
.qm-s-46 { font-size: 0.95rem; font-weight: 600; color: var(--qma-navy); }
.qm-s-47 { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.85rem 1.25rem; width: 100%; }
.qm-s-48 { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.9rem; background: #ffffff; border: 1px solid var(--qma-border); border-radius: 8px; font-weight: 600; font-size: 0.875rem; color: #1e293b; box-shadow: 0 1px 3px rgba(0,0,0,0.03); }
.qma-strip-text-desktop { display: inline; }
.qma-strip-text-mobile { display: none; }
:root[data-theme="dark"] .qm-s-42 { background: rgba(255, 255, 255, 0.02); border-color: rgba(255, 255, 255, 0.08); }
:root[data-theme="dark"] .qm-s-46 { color: #cbd5e1; }
:root[data-theme="dark"] .qm-s-48 { background: #0b1120; border-color: rgba(255, 255, 255, 0.1); color: #f1f5f9; }
.qm-s-49 { height: 18px; width: auto; }
.qm-s-50 { height: 14px; width: auto; }
.qm-s-51 { width: 17px; height: 17px; color: #0284c7; }
.qm-s-52 { width: 17px; height: 17px; color: #0b6885; }
.qm-s-53 { width: 17px; height: 17px; color: #137333; }
.qm-s-54 { width: 17px; height: 17px; color: #7c3aed; }
.qm-s-55 { width: 17px; height: 17px; color: var(--qma-accent); }
.qm-s-56 { padding-top: 0; padding-bottom: 3.5rem; background: var(--qma-bg-soft); }
.qm-s-57 { text-align: center; max-width: 980px; margin: 0 auto 3rem auto; }
.qm-s-58 { margin-bottom: 0.75rem; }
.qm-s-59 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); color: var(--qma-navy); font-weight: 850; line-height: 1.25; }
.qm-s-60 { color: #64748b; font-size: 1.05rem; margin-top: 0.75rem; line-height: 1.6; }
.qm-s-61 { width: 42px; height: 42px; border-radius: 8px; background: rgba(239, 68, 68, 0.1); color: #ef4444; display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem; }
.qm-s-62 { width: 22px; height: 22px; }
.qm-s-63 { font-size: 1.15rem; font-weight: 700; color: var(--qma-navy); margin-bottom: 0.5rem; }
.qm-s-64 { color: #64748b; font-size: 0.875rem; line-height: 1.55; }
.qm-s-65 { width: 42px; height: 42px; border-radius: 8px; background: rgba(245, 158, 11, 0.1); color: #f59e0b; display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem; }
.qm-s-66 { width: 42px; height: 42px; border-radius: 8px; background: rgba(63, 156, 185, 0.1); color: var(--qma-accent); display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem; }
.qm-s-67 { width: 42px; height: 42px; border-radius: 8px; background: rgba(1, 2, 46, 0.08); color: var(--qma-navy); display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem; }
.qm-s-68 { padding: 2.25rem 0; background: #ffffff; }
.qm-s-69 { text-align: center; max-width: 980px; margin: 0 auto 2.25rem auto; }
.qm-s-70 { display: flex; flex-direction: column; gap: 2.25rem; }
.qm-s-71 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; }
.qm-s-72 { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.75rem; }
.qm-s-73 { font-size: 0.8rem; font-weight: 800; color: var(--qma-accent); background: rgba(63, 156, 185, 0.12); padding: 0.2rem 0.6rem; border-radius: 4px; }
.qm-s-74 { font-size: 0.8rem; color: #64748b; }
.qm-s-75 { font-size: 1.45rem; font-weight: 800; color: var(--qma-navy); margin-bottom: 0.85rem; line-height: 1.3; }
.qm-s-76 { color: #475569; font-size: 0.95rem; line-height: 1.65; margin-bottom: 1rem; }
.qm-s-77 { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; color: #334155; }
.qm-s-78 { display: flex; align-items: center; gap: 0.5rem; }
.qm-s-79 { width: 16px; height: 16px; color: var(--qma-accent); }
.qm-s-80 { background: #f8fafc; border: 1px solid var(--qma-border); border-radius: 10px; padding: 1.25rem; }
.qm-s-81 { font-size: 0.75rem; font-weight: 700; color: #64748b; text-transform: uppercase; margin-bottom: 0.75rem; display: flex; justify-content: space-between; }
.qm-s-82 { display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.825rem; }
.qm-s-83 { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 6px; padding: 0.65rem 0.85rem; display: flex; justify-content: space-between; align-items: center; }
.qm-s-84 { font-weight: 700; color: var(--qma-navy); }
.qm-s-85 { color: #64748b; font-size: 0.75rem; }
.qm-s-86 { background: #dcfce7; color: #15803d; font-weight: 700; font-size: 0.7rem; padding: 2px 6px; border-radius: 4px; }
.qm-s-87 { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 6px; padding: 0.65rem 0.85rem; display: flex; justify-content: space-between; align-items: center; }
.qm-s-88 { font-weight: 700; color: #1e40af; }
.qm-s-89 { color: #3b82f6; font-size: 0.75rem; }
.qm-s-90 { background: #dbeafe; color: #1d4ed8; font-weight: 700; font-size: 0.7rem; padding: 2px 6px; border-radius: 4px; }
.qm-s-91 { font-size: 0.8rem; font-weight: 800; color: #0284c7; background: rgba(2, 132, 199, 0.12); padding: 0.2rem 0.6rem; border-radius: 4px; }
.qm-s-92 { background: #020617; border: 1px solid #1e293b; border-radius: 10px; padding: 1.25rem; color: #f8fafc; }
.qm-s-93 { font-size: 0.75rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; margin-bottom: 0.75rem; display: flex; justify-content: space-between; }
.qm-s-94 { color: #38bdf8; }
.qm-s-95 { border: 1px solid #334155; border-radius: 6px; padding: 0.85rem; background: #0f172a; margin-bottom: 0.75rem; }
.qm-s-96 { display: flex; justify-content: space-between; font-size: 0.75rem; margin-bottom: 0.4rem; }
.qm-s-97 { color: #94a3b8; }
.qm-s-98 { font-family: monospace; font-size: 0.75rem; color: #38bdf8; }
.qm-s-99 { font-size: 0.72rem; color: #94a3b8; display: flex; justify-content: space-between; }
.qm-s-100 { font-size: 0.8rem; font-weight: 800; color: #8b5cf6; background: rgba(139, 92, 246, 0.12); padding: 0.2rem 0.6rem; border-radius: 4px; }
.qm-s-101 { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.qm-s-102 { font-size: 0.85rem; font-weight: 700; color: var(--qma-navy); }
.qm-s-103 { font-size: 0.7rem; font-weight: 700; background: #fee2e2; color: #b91c1c; padding: 2px 8px; border-radius: 4px; }
.qm-s-104 { font-size: 0.8rem; color: #475569; margin-bottom: 0.85rem; line-height: 1.5; }
.qm-s-105 { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.75rem; }
.qm-s-106 { display: flex; justify-content: space-between; padding: 0.35rem 0.5rem; background: #ffffff; border-radius: 4px; border: 1px solid #e2e8f0; }
.qm-s-107 { color: #15803d; font-weight: 700; }
.qm-s-108 { color: #0284c7; font-weight: 700; }
.qm-s-109 { color: #64748b; }
.qm-s-110 { font-size: 0.8rem; font-weight: 800; color: #10b981; background: rgba(16, 185, 129, 0.12); padding: 0.2rem 0.6rem; border-radius: 4px; }
.qm-s-111 { font-size: 0.75rem; font-weight: 700; color: #64748b; text-transform: uppercase; margin-bottom: 0.75rem; }
.qm-s-112 { padding: 0.65rem 0.85rem; background: #fff; border-radius: 6px; border-left: 3px solid #f59e0b; border: 1px solid #e2e8f0; }
.qm-s-113 { display: flex; justify-content: space-between; font-weight: 700; color: var(--qma-navy); }
.qm-s-114 { font-size: 0.75rem; color: #64748b; margin-top: 0.2rem; }
.qm-s-115 { padding: 0.65rem 0.85rem; background: #fff; border-radius: 6px; border-left: 3px solid #10b981; border: 1px solid #e2e8f0; }
.qm-s-116 { padding: 2.25rem 0; background: var(--qma-bg-soft); }
.qm-s-117 { border-top: 3px solid var(--qma-accent); }
.qm-s-118 { font-size: 2.2rem; font-weight: 900; color: rgba(63, 156, 185, 0.3); line-height: 1; margin-bottom: 0.75rem; }
.qm-s-119 { font-size: 1.15rem; font-weight: 700; color: var(--qma-navy); margin-bottom: 0.6rem; }
.qm-s-120 { width: 38px; height: 38px; border-radius: 8px; background: rgba(63, 156, 185, 0.12); color: var(--qma-accent); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.qm-s-121 { width: 20px; height: 20px; }
.qm-s-122 { font-size: 1.15rem; font-weight: 700; color: var(--qma-navy); margin-bottom: 0.45rem; }
.qm-s-123 { color: #64748b; font-size: 0.875rem; line-height: 1.6; }
.qm-s-124 { margin-top: 2.75rem; background: linear-gradient(135deg, var(--qma-navy) 0%, #082942 100%); border-radius: 14px; padding: 1.85rem 2.25rem; color: #ffffff; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.qm-s-125 { font-size: 1.35rem; font-weight: 700; color: #ffffff; margin-bottom: 0.35rem; }
.qm-s-126 { color: #cbd5e1; font-size: 0.9rem; margin: 0; max-width: 52ch; }
.qm-s-127 { width: auto; padding: 0.8rem 1.85rem; background: var(--qma-accent); color: #fff; text-decoration: none; border-radius: 8px; }
.qm-s-128 { padding: 3.5rem 0; background: var(--qma-bg-soft); }
.qm-s-129 { margin-bottom: 1.5rem; }
.qm-s-130 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.25rem); color: var(--qma-navy); margin-top: 0.75rem; font-weight: 800; line-height: 1.25; }
.qm-s-131 { color: #64748b; font-size: 0.95rem; line-height: 1.6; margin-top: 0.5rem; }
.qm-s-132 { display: flex; flex-direction: column; gap: 0.85rem; }
.qm-s-133 { padding: 1.15rem 1.35rem; cursor: pointer; }
.qm-s-134 { font-weight: 700; font-size: 1rem; color: var(--qma-navy); display: flex; justify-content: space-between; align-items: center; list-style: none; }
.qm-s-135 { width: 18px; height: 18px; color: var(--qma-accent); flex-shrink: 0; transition: transform 0.2s ease; }
.qm-s-136 { margin-top: 0.85rem; color: #475569; font-size: 0.9rem; line-height: 1.6; border-top: 1px solid var(--qma-border); padding-top: 0.85rem; }
.qm-s-137 { box-shadow: 0 20px 50px rgba(1, 2, 46, 0.08); }
.qm-s-138 { text-align: left; margin-bottom: 1.5rem; }
.qm-s-139 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem); color: var(--qma-navy); margin-top: 0.6rem; font-weight: 800; line-height: 1.25; }
.qm-s-140 { color: #64748b; font-size: 0.925rem; line-height: 1.55; margin-top: 0.4rem; }
.qm-s-141 { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.875rem; color: #64748b; }
.qm-s-142 { display: flex; gap: 1.5rem; }
.qm-s-143 { color: #64748b; text-decoration: none; transition: color 0.2s; }
.qm-s-143:hover { color: #01022e; }

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

@media (min-width: 901px) {
  .qma-client-wall-section {
    padding-bottom: 0 !important;
  }
}

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

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

.qma-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(--qma-navy, var(--fg));
  margin-bottom: 1rem;
}

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

.qma-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"] .qma-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);
}

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

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

.qma-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.06em;
  color: var(--qma-accent, #3f9cb9);
}

.qma-client-wall-badge i {
  width: 14px;
  height: 14px;
}

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

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

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

.qma-logo-tile {
  background: var(--paper, #ffffff);
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.15rem 1rem;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

:root[data-theme="dark"] .qma-logo-tile {
  background: #f0f4f8; /* Crisp light tile so authentic logo colors pop in both themes */
}

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

:root[data-theme="dark"] .qma-logo-tile:hover {
  background: #ffffff;
  z-index: 2;
  box-shadow: inset 0 0 0 1px var(--qma-accent, #3f9cb9), 0 4px 16px rgba(0, 0, 0, 0.15);
}

.qma-logo-tile img {
  height: 2.2rem;
  width: auto;
  max-width: 82%;
  object-fit: contain;
  filter: none;
  opacity: 1;
  transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

:root[data-theme="dark"] .qma-logo-tile img {
  filter: none;
  opacity: 1;
}

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

:root[data-theme="dark"] .qma-logo-tile:hover img {
  filter: none;
  opacity: 1;
  transform: scale(1.06);
}

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

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

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

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

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

.qma-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"] .qma-erp-pill {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--fg-muted, #64748b);
}

/* ============================================================================
   PMDG Technologies — Quality Management Responsive Mobile Styles & Typography
   ========================================================================= */

/* Prevent horizontal overflow on document and containers */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}
main, section, .measure {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 900px) {
  .qm-s-2 {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
  }
  .qma-grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem !important;
  }
  .qma-grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem !important;
  }
  .qma-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
  .qm-s-71 {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .qma-client-logo-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
  .qma-logo-tile {
    padding: 0.95rem 0.75rem !important;
    min-height: 66px !important;
  }
  .qma-logo-tile img {
    height: 1.85rem !important;
  }
  .qma-client-wall-subhead {
    justify-content: center !important;
    text-align: center !important;
  }
}

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

  /* Hide solution workflow section in mobile view */
  #qma-solution-section {
    display: none !important;
  }

  /* Hide the last 4 cards in Section 2 & Section 5 in mobile view (keep top 4 cards) */
  .qma-card-desktop-only,
  #qma-pain-section .qma-grid-4 > .qma-card:nth-child(n+5),
  #qma-benefits-section .qma-grid-4 > .qma-benefit-card:nth-child(n+5) {
    display: none !important;
  }

  /* Hide mid-page CTA banner in mobile view (consultation form is directly beneath) */
  .qm-s-124,
  .qma-mid-cta {
    display: none !important;
  }

  /* Hide FAQ accordion column in mobile view, keep consultation form visible */
  .qma-faq-col,
  #faq-section {
    display: none !important;
  }
  .qma-consult-col,
  #consultation-section {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  /* Hero Section Spacing */
  .hero-section,
  .qm-s-1 {
    padding-top: 4.85rem !important;
    padding-bottom: 0.4rem !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  .qm-s-2 {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 0.5rem !important;
    box-sizing: border-box !important;
  }

  .qm-s-2 > div {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .qm-s-3 {
    gap: 0.35rem !important;
  }

  /* Hero Typography & Badges */
  .qm-s-7 {
    font-size: clamp(1.28rem, 1.05rem + 1.25vw, 1.65rem) !important;
    line-height: 1.22 !important;
    margin-top: 0.15rem !important;
    margin-bottom: 0.35rem !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }
  .qm-s-9 {
    font-size: 0.85rem !important;
    line-height: 1.48 !important;
    margin-bottom: 0.45rem !important;
    max-width: 100% !important;
  }
  .qma-badge {
    font-size: 0.68rem !important;
    padding: 0.25rem 0.6rem !important;
    max-width: 100% !important;
    white-space: normal !important;
    text-align: left !important;
  }
  .qm-s-4 {
    flex-wrap: wrap !important;
    gap: 0.35rem !important;
  }
  .qm-s-6 {
    font-size: 0.7rem !important;
  }
  .qm-s-10 {
    gap: 0.25rem !important;
    margin: 0.25rem 0 0.35rem !important;
  }
  .qma-feature-pill {
    font-size: 0.68rem !important;
    padding: 0.2rem 0.45rem !important;
  }
  .qma-feature-pill i {
    width: 12px !important;
    height: 12px !important;
  }

  /* Simplified HUD Mockup for Mobile View */
  .qma-hero-mockup {
    border-radius: 8px !important;
    margin-top: 0.25rem !important;
    padding: 0.45rem 0.55rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .qma-mockup-header {
    padding: 0 0 0.3rem 0 !important;
    margin-bottom: 0.35rem !important;
    font-size: 0.65rem !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.2rem 0.4rem !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
  .qm-s-12 {
    gap: 0.25rem !important;
    flex-wrap: nowrap !important;
  }
  .qma-live-tag {
    font-size: 0.62rem !important;
    white-space: nowrap !important;
  }
  .qm-s-13 {
    display: none !important; /* Hide long serial number in mobile header */
  }
  .qm-s-14 {
    font-size: 0.6rem !important;
    white-space: nowrap !important;
    color: #38bdf8 !important;
    flex-shrink: 0 !important;
  }

  .qm-s-15 {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.35rem !important;
  }

  .vision-hud-box {
    padding: 0.35rem 0.5rem !important;
    background: rgba(15, 23, 42, 0.75) !important;
    border-radius: 6px !important;
    border: 1px solid rgba(63, 156, 185, 0.25) !important;
  }
  .qm-s-16 {
    font-size: 0.62rem !important;
    margin-bottom: 0.2rem !important;
    display: flex !important;
    justify-content: space-between !important;
  }
  .qm-s-18 {
    display: none !important; /* Hide desktop camera dashed box and overlapping pseudo-elements on mobile */
  }
  .qm-s-22 {
    margin-top: 0 !important;
    padding: 0.25rem 0.45rem !important;
    background: rgba(239, 68, 68, 0.12) !important;
    border: 1px solid rgba(239, 68, 68, 0.28) !important;
    border-radius: 4px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.15rem !important;
    align-items: flex-start !important;
  }
  .qm-s-23 {
    color: #fca5a5 !important;
    font-size: 0.68rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
  }
  .qm-s-24 {
    color: #ffffff !important;
  }
  .qm-s-25 {
    display: inline-block !important;
    font-size: 0.56rem !important;
    font-weight: 700 !important;
    color: #ef4444 !important;
    letter-spacing: 0.04em !important;
    background: rgba(239, 68, 68, 0.18) !important;
    padding: 0.1rem 0.35rem !important;
    border-radius: 4px !important;
  }

  /* Compact 3-Column Metrics Strip on Mobile */
  .qm-s-26 {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.25rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .qm-s-27 {
    padding: 0.3rem 0.2rem !important;
    text-align: center !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border-radius: 4px !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
  }
  .qm-s-28 {
    font-size: 0.54rem !important;
    line-height: 1.15 !important;
    color: #94a3b8 !important;
    margin-bottom: 0.1rem !important;
    text-align: center !important;
  }
  .qm-s-29 {
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    color: #10b981 !important;
  }
  .qm-s-30 {
    font-size: 0.55rem !important;
  }
  .qm-s-31 {
    font-size: 0.74rem !important;
  }

  /* Section Spacing & Reduced Padding */
  .section-divider,
  .qm-s-56,
  .qm-s-68,
  .qm-s-116,
  .qm-s-128,
  #faq-consultation-section,
  .qma-client-wall-section {
    padding: 1.25rem 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  /* Metrology / Integration Strip - Simplified Mobile Layout */
  .qma-strip-text-desktop {
    display: none !important;
  }
  .qma-strip-text-mobile {
    display: inline !important;
  }
  .qm-s-42 {
    padding: 0.85rem 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .qm-s-43 {
    gap: 0.5rem !important;
    text-align: center !important;
  }
  .qm-s-44 {
    gap: 0.25rem !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  .qm-s-45 {
    font-size: 0.65rem !important;
    padding: 0.15rem 0.5rem !important;
    letter-spacing: 0.03em !important;
  }
  .qm-s-46 {
    font-size: 0.74rem !important;
    line-height: 1.3 !important;
    max-width: 34ch !important;
    margin: 0 auto !important;
  }
  .qm-s-47 {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.35rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .qm-s-48 {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.35rem !important;
    font-size: 0.68rem !important;
    line-height: 1.15 !important;
    font-weight: 600 !important;
    padding: 0.32rem 0.45rem !important;
    border-radius: 6px !important;
    min-height: 32px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
  }
  .qm-s-48:last-child {
    grid-column: span 2 !important;
  }
  .qm-s-49 { height: 13px !important; width: auto !important; }
  .qm-s-50 { height: 10px !important; width: auto !important; }
  .qm-s-51, .qm-s-52, .qm-s-53, .qm-s-54, .qm-s-55 {
    width: 13px !important;
    height: 13px !important;
    flex-shrink: 0 !important;
  }

  /* Section Headings Typography & Margin */
  .qm-s-59,
  .qm-s-130,
  .qm-s-139,
  .qma-client-wall-title {
    font-size: clamp(1.2rem, 0.98rem + 1.2vw, 1.55rem) !important;
    line-height: 1.22 !important;
    margin-top: 0.35rem !important;
    margin-bottom: 0.35rem !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    max-width: 100% !important;
  }
  .qm-s-60,
  .qm-s-131,
  .qm-s-140,
  .qma-client-wall-desc {
    font-size: 0.82rem !important;
    line-height: 1.45 !important;
    margin-top: 0.35rem !important;
    max-width: 100% !important;
  }
  .qm-s-57,
  .qm-s-69,
  .qm-s-129,
  .qma-client-wall-head {
    margin: 0 auto 0.95rem auto !important;
  }

  /* Card Grids Gap & Stacking in Mobile View */
  .qma-grid-4,
  .qma-grid-3,
  .qma-grid-2,
  .qm-s-70,
  .qma-faq-consult-grid {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 0.65rem !important;
    margin-top: 0.95rem !important;
    box-sizing: border-box !important;
  }

  /* General Cards Spacing & Reduced Padding */
  .qma-card,
  .qma-benefit-card {
    padding: 0.55rem 0.7rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    border-radius: 10px !important;
  }
  .qm-s-61,
  .qm-s-65,
  .qm-s-66,
  .qm-s-67,
  .qm-s-120 {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    margin-bottom: 0.35rem !important;
  }
  .qm-s-62,
  .qm-s-121 {
    width: 16px !important;
    height: 16px !important;
  }
  .qm-s-63,
  .qm-s-75,
  .qm-s-119,
  .qm-s-122 {
    font-size: 0.95rem !important;
    line-height: 1.22 !important;
    margin-bottom: 0.18rem !important;
  }
  .qm-s-64,
  .qm-s-76,
  .qm-s-123 {
    font-size: 0.8rem !important;
    line-height: 1.42 !important;
    margin: 0 !important;
  }

  /* Solution Capabilities Feature Blocks */
  .qm-s-71 {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    padding: 0.65rem 0.7rem !important;
  }
  .qm-s-72 {
    margin-bottom: 0.35rem !important;
  }
  .qm-s-73,
  .qm-s-91,
  .qm-s-100,
  .qm-s-110 {
    font-size: 0.68rem !important;
    padding: 0.18rem 0.45rem !important;
  }
  .qm-s-77 {
    gap: 0.3rem !important;
    margin-top: 0.45rem !important;
  }
  .qm-s-78 {
    font-size: 0.76rem !important;
    gap: 0.3rem !important;
    line-height: 1.35 !important;
  }
  .qm-s-79 {
    width: 13px !important;
    height: 13px !important;
  }
  .qm-s-80,
  .qm-s-92 {
    padding: 0.75rem !important;
    border-radius: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Workflow Steps */
  .qm-s-117 {
    padding: 0.55rem 0.7rem !important;
  }
  .qm-s-118 {
    font-size: 1.35rem !important;
    margin-bottom: 0.2rem !important;
  }

  /* Bottom Consultation Form in Mobile View */
  .qma-lead-card.qm-s-137 {
    padding: 1.15rem 1rem !important;
    border-radius: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 0 !important;
  }
  .qm-s-138 {
    margin-bottom: 0.85rem !important;
  }
  .qm-s-38 {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.65rem !important;
  }
  .qma-input-group {
    margin-bottom: 0.65rem !important;
  }
  .qma-input-group label {
    font-size: 0.75rem !important;
    margin-bottom: 0.25rem !important;
  }
  .qma-input-group input,
  .qma-input-group select,
  .qma-input-group textarea {
    font-size: 0.82rem !important;
    padding: 0.55rem 0.75rem !important;
    border-radius: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .qma-btn-primary.qm-s-39 {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.88rem !important;
    box-sizing: border-box !important;
  }
  .qm-s-40 {
    font-size: 0.7rem !important;
    margin-top: 0.5rem !important;
  }
}

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

@media (max-width: 380px) {
  .hero-section,
  .qm-s-1 {
    padding-top: 4.65rem !important;
    padding-bottom: 0.35rem !important;
  }
  .qm-s-2 {
    gap: 0.4rem !important;
  }
  .qm-s-3 {
    gap: 0.25rem !important;
  }
  .qma-badge {
    font-size: 0.6rem !important;
    padding: 0.15rem 0.4rem !important;
    letter-spacing: 0.02em !important;
    max-width: 100% !important;
  }
  .qm-s-7 {
    font-size: clamp(1.05rem, 0.9rem + 1vw, 1.25rem) !important;
    line-height: 1.15 !important;
    margin-top: 0.05rem !important;
    margin-bottom: 0.15rem !important;
  }
  .qm-s-9 {
    font-size: 0.76rem !important;
    line-height: 1.35 !important;
    margin-bottom: 0.2rem !important;
  }
  .qm-s-10 {
    margin: 0.15rem 0 0.25rem !important;
    gap: 0.2rem !important;
  }
  .qma-feature-pill {
    padding: 0.15rem 0.35rem !important;
    font-size: 0.62rem !important;
    gap: 0.2rem !important;
  }
  .qma-feature-pill i {
    width: 10px !important;
    height: 10px !important;
  }
  .qma-hero-mockup {
    margin-top: 0.2rem !important;
    padding: 0.35rem 0.45rem !important;
    border-radius: 6px !important;
  }
  .qma-mockup-header {
    padding-bottom: 0.2rem !important;
    margin-bottom: 0.25rem !important;
  }
  .vision-hud-box {
    padding: 0.25rem 0.35rem !important;
  }
  .qm-s-22 {
    padding: 0.2rem 0.35rem !important;
    gap: 0.1rem !important;
  }
  .qm-s-27 {
    padding: 0.22rem 0.15rem !important;
  }
  .qm-s-28 {
    font-size: 0.5rem !important;
  }
  .qm-s-29,
  .qm-s-31 {
    font-size: 0.68rem !important;
  }
  .qma-client-logo-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
  .qma-logo-tile {
    min-height: 46px !important;
    padding: 0.5rem 0.25rem !important;
  }
  .qma-logo-tile img {
    height: 1.25rem !important;
  }
  .qm-s-42 {
    padding: 0.65rem 0 !important;
  }
  .qm-s-43 {
    gap: 0.35rem !important;
  }
  .qm-s-44 {
    gap: 0.2rem !important;
  }
  .qm-s-45 {
    font-size: 0.6rem !important;
    padding: 0.12rem 0.45rem !important;
  }
  .qm-s-46 {
    font-size: 0.68rem !important;
    line-height: 1.25 !important;
    max-width: 28ch !important;
  }
  .qm-s-47 {
    gap: 0.25rem !important;
  }
  .qm-s-48 {
    font-size: 0.63rem !important;
    padding: 0.25rem 0.35rem !important;
    min-height: 28px !important;
    gap: 0.25rem !important;
  }
  .qm-s-49 { height: 11px !important; }
  .qm-s-50 { height: 9px !important; }
  .qm-s-51, .qm-s-52, .qm-s-53, .qm-s-54, .qm-s-55 {
    width: 11px !important;
    height: 11px !important;
  }
}


