/* QuantumMatch.ai Global Styles */
:root {
  --qm-font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --qm-text-strong: #071b40;
  --qm-text-muted: rgba(7, 27, 64, 0.68);
  --qm-surface: rgba(255, 255, 255, 0.92);
  --qm-surface-strong: rgba(255, 255, 255, 0.98);
  --qm-border-soft: rgba(21, 94, 239, 0.14);
  --qm-border-strong: rgba(7, 27, 64, 0.12);
  --qm-radius-lg: 28px;
  --qm-radius-md: 18px;
  --qm-radius-sm: 12px;
  --qm-shadow-soft: 0 18px 40px rgba(7, 27, 64, 0.12);
  --qm-shadow-hard: 0 30px 60px rgba(7, 27, 64, 0.16);
  --qm-bullet-size: 0.65rem;
  --qm-bullet-gradient: linear-gradient(135deg, rgba(27, 63, 253, 0.92), rgba(90, 199, 255, 0.95));
  --qm-bullet-shadow: 0 10px 18px rgba(21, 74, 194, 0.32);
}

a {
  text-decoration: none;
  color: inherit;
}

a:visited {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid rgba(33, 102, 255, 0.6);
  outline-offset: 3px;
}

* {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

body {
  font-family: var(--qm-font-family);
  background: radial-gradient(circle at 10% -20%, rgba(185, 210, 255, 0.4), transparent 60%),
              radial-gradient(circle at 90% -10%, rgba(125, 192, 255, 0.35), transparent 55%),
              linear-gradient(180deg, #f8fbff 0%, #eef4ff 52%, #dfe9ff 100%);
  color: var(--qm-text-strong);
  margin: 0;
  line-height: 1.6;
  min-height: 100vh;
}

main {
  position: relative;
  z-index: 1;
}

section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4.5rem 2.75rem;
}

img, video, canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

p {
  margin-top: 0;
  margin-bottom: 1.1rem;
  color: var(--qm-text-muted);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--qm-font-family);
  margin-top: 0;
  color: var(--qm-text-strong);
  letter-spacing: -0.01em;
}

strong {
  color: var(--qm-text-strong);
}

ul {
  padding-left: 1.3rem;
  margin-top: 0;
  margin-bottom: 1.1rem;
}

.button,
.btn,
.cta,
.cta-primary,
.cta-secondary,
.primary,
.secondary {
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.table-shell,
.card,
.surface,
.surface-strong,
.surface-soft {
  background: var(--qm-surface);
  border-radius: var(--qm-radius-lg);
  box-shadow: var(--qm-shadow-soft);
  border: 1px solid var(--qm-border-soft);
}

form[data-crm-form] .qm-form-error {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.32);
  color: #991b1b;
  font-size: 0.94rem;
  line-height: 1.45;
}

.qm-form-success {
  margin-top: 1.6rem;
  padding: 2rem;
  border-radius: 28px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(16, 185, 129, 0.1));
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.1);
  color: #0f172a;
}

.qm-form-success strong {
  display: block;
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
  letter-spacing: -0.01em;
}

.qm-form-success p {
  margin: 0;
  color: #1e293b;
  line-height: 1.65;
}

.qm-form-hidden {
  display: none !important;
}

form[data-crm-form][data-crm-state="submitting"] button[type="submit"],
form[data-crm-form][data-crm-state="submitting"] input[type="submit"] {
  opacity: 0.75;
  cursor: wait;
}

/* Executive-grade bullet styling */
.bullet-list,
ul[class*="checklist"],
ul[class*="-list"]:not(.boardroom-list):not(.command-list),
ul[class*="pill"],
ul.lead-benefits {
  list-style: none;
  padding-left: 0;
}

.bullet-list > li,
ul[class*="checklist"] > li,
ul[class*="-list"]:not(.boardroom-list):not(.command-list) > li,
ul[class*="pill"] > li,
ul.lead-benefits > li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.85rem;
  color: var(--qm-text-muted);
}

.bullet-list > li:last-child,
ul[class*="checklist"] > li:last-child,
ul[class*="-list"]:not(.boardroom-list):not(.command-list) > li:last-child,
ul[class*="pill"] > li:last-child,
ul.lead-benefits > li:last-child {
  margin-bottom: 0;
}

.bullet-list > li::before,
ul[class*="checklist"] > li::before,
ul[class*="-list"]:not(.boardroom-list):not(.command-list) > li::before,
ul[class*="pill"] > li::before,
ul.lead-benefits > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: var(--qm-bullet-size);
  height: var(--qm-bullet-size);
  border-radius: 999px;
  background: var(--qm-bullet-gradient);
  box-shadow: var(--qm-bullet-shadow);
}

.bullet-list strong,
ul[class*="checklist"] strong,
ul[class*="-list"]:not(.boardroom-list):not(.command-list) strong,
ul[class*="pill"] strong,
ul.lead-benefits strong {
  color: var(--qm-text-strong);
}

/* Responsive primitives applied across static pages */
@media (max-width: 1180px) {
  section {
    padding: 4rem 2.25rem;
  }
}

@media (max-width: 1040px) {
  .container {
    display: flex;
    flex-direction: column;
  }

  .sidebar {
    position: static;
    width: 100% !important;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    border-right: none !important;
    border-bottom: 1px solid var(--qm-border-soft);
    padding: 1.4rem 1.75rem;
  }

  .sidebar nav {
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 0.75rem !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .main {
    margin-left: 0 !important;
    padding: 2.2rem 1.9rem !important;
  }
}

@media (max-width: 960px) {
  section {
    padding: 3.5rem 1.75rem;
  }

  header .nav,
  .nav {
    flex-wrap: wrap;
    gap: 1rem;
  }

  header .nav .cta-group,
  .nav .cta-group {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 840px) {
  body {
    font-size: 0.98rem;
  }

  section {
    padding: 3rem 1.5rem;
  }

  .stat-grid,
  .module-grid,
  .value-grid,
  .security-grid,
  .boardroom-grid,
  .kpi-grid,
  .card-grid,
  .feature-grid,
  .pillars-grid,
  .trust-grid,
  .insight-grid,
  .personas-grid,
  .reporting-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
  }

  .two-col,
  .layout-two,
  .split,
  .panel-grid,
  .hero,
  .hero-grid,
  .hero-layout,
  .main-grid,
  .canvas-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

@media (max-width: 680px) {
  section {
    padding: 2.75rem 1.25rem;
  }

  .cta-group,
  .button-row,
  .action-row,
  .hero-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .cta-group a,
  .button-row a,
  .action-row a,
  .hero-actions a {
    width: 100%;
    text-align: center;
  }

  table {
    width: 100%;
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 540px) {
  body {
    font-size: 0.95rem;
  }

  section {
    padding: 2.5rem 1.1rem;
  }
}
