:root {
  --ink: #152033;
  --muted: #5e6b7b;
  --paper: #f6f8fb;
  --white: #ffffff;
  --line: #dce5ee;
  --navy: #143a5a;
  --blue: #1f6fb2;
  --teal: #008b8b;
  --mint: #1d9f72;
  --amber: #f2a93b;
  --coral: #d95f43;
  --shadow: 0 18px 45px rgba(21, 32, 51, 0.12);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

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

a:hover {
  color: var(--blue);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(242, 169, 59, 0.9);
  outline-offset: 3px;
}

p {
  margin: 0 0 16px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(38px, 6vw, 70px);
  max-width: 920px;
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
}

h3 {
  font-size: 21px;
}

h4 {
  font-size: 16px;
}

ul {
  margin: 0;
  padding: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.topline {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
}

.topline .container {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-size: 18px;
  color: var(--navy);
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  font-size: 14px;
  font-weight: 600;
}

.main-nav a {
  padding: 26px 0;
}

.main-nav a[aria-current="page"] {
  color: var(--teal);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-size: 24px;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  content: "";
}

.nav-toggle span::before {
  transform: translateY(-7px);
}

.nav-toggle span::after {
  transform: translateY(5px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 700;
  color: var(--ink);
  background: var(--white);
  box-shadow: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: var(--white);
  background: var(--teal);
  border-color: var(--teal);
}

.btn-secondary {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.56);
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.btn-light {
  border-color: var(--line);
  background: var(--white);
}

.hero {
  min-height: min(760px, 78vh);
  display: flex;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(14, 33, 54, 0.94) 0%, rgba(14, 33, 54, 0.77) 48%, rgba(14, 33, 54, 0.28) 100%),
    url("../img/qbm-module-map.jpg") center / cover no-repeat;
}

.hero-content {
  max-width: 860px;
  padding: 64px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 18px;
}

.hero p {
  max-width: 740px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.trust-strip {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
}

.trust-item {
  min-height: 108px;
  padding: 22px;
  background: var(--paper);
}

.trust-item strong {
  display: block;
  font-size: 24px;
  color: var(--navy);
}

.trust-item span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 82px 0;
}

.section-muted {
  background: var(--paper);
}

.section-dark {
  background: var(--ink);
  color: var(--white);
}

.section-kicker {
  color: var(--teal);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 10px;
}

.section-head {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: end;
  margin-bottom: 34px;
}

.section-head p {
  color: var(--muted);
  font-size: 18px;
}

.section-dark .section-head p,
.section-dark p {
  color: rgba(255, 255, 255, 0.74);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 10px 24px rgba(21, 32, 51, 0.06);
}

.section-dark .card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.card p {
  color: var(--muted);
}

.module-card {
  min-height: 238px;
}

.module-tag {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--navy);
  background: rgba(31, 111, 178, 0.1);
  font-size: 12px;
  font-weight: 800;
}

.feature-list {
  display: grid;
  gap: 9px;
  margin-top: 18px;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
}

.feature-list li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
}

.visual-band {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 28px;
  align-items: center;
}

.visual-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.visual-frame img {
  width: 100%;
  height: auto;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.screenshot-card {
  padding: 0;
  overflow: hidden;
}

.screenshot-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.screenshot-card h3,
.screenshot-card p {
  margin-left: 18px;
  margin-right: 18px;
}

.screenshot-card h3 {
  margin-top: 18px;
}

.screenshot-card p {
  margin-bottom: 20px;
}

.screenshot-note {
  color: var(--muted);
  font-size: 14px;
  margin-top: 16px;
}

.proof-list {
  display: grid;
  gap: 16px;
}

.proof-list article {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.proof-list article:last-child {
  border-bottom: 0;
}

.proof-list h3 {
  margin-bottom: 8px;
  color: var(--white);
}

.edition-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.edition-card .btn {
  margin-top: auto;
}

.industry-card {
  min-height: 260px;
}

.testimonial {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial blockquote {
  margin: 0;
  color: var(--muted);
}

.testimonial cite {
  font-style: normal;
  font-weight: 800;
  color: var(--navy);
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.client-mark {
  min-height: 92px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(21, 32, 51, 0.05);
}

.client-mark img {
  max-width: 160px;
  max-height: 58px;
  object-fit: contain;
}

.client-mark.text-only {
  background: #eef4fa;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(21, 32, 51, 0.06);
}

.page-hero {
  padding: 86px 0 66px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(17, 48, 75, 0.94), rgba(17, 48, 75, 0.76)),
    url("../img/product-dashboard.svg") center / cover no-repeat;
}

.page-hero p {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  margin-top: 18px;
}

.breadcrumb {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.content-block {
  max-width: 880px;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: start;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--navy);
  background: #eef4fa;
}

tr:last-child td {
  border-bottom: 0;
}

.cta-band {
  padding: 46px 0;
  color: var(--white);
  background: linear-gradient(90deg, var(--navy), var(--teal));
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-inner p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
}

.contact-list {
  display: grid;
  gap: 16px;
}

.contact-item {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.contact-item:last-child {
  border-bottom: 0;
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
}

textarea {
  min-height: 132px;
  resize: vertical;
}

.form-note {
  color: var(--muted);
  font-size: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.full-span {
  grid-column: 1 / -1;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  min-height: 22px;
  color: var(--muted);
  font-size: 14px;
}

.newsletter-form {
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 16px;
}

.newsletter-form label {
  gap: 0;
}

.newsletter-form input {
  min-height: 48px;
}

.site-footer {
  padding: 54px 0 30px;
  color: rgba(255, 255, 255, 0.76);
  background: #101828;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 32px;
}

.site-footer h3,
.site-footer h4,
.site-footer strong {
  color: var(--white);
}

.footer-links {
  display: grid;
  gap: 9px;
  list-style: none;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 14px;
}

.mobile-cta-bar {
  display: none;
}

.help-count {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: rgba(0, 139, 139, 0.1);
  color: var(--teal);
  font-weight: 800;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.metric {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.metric strong {
  display: block;
  color: var(--navy);
  font-size: 34px;
  line-height: 1;
  margin-bottom: 8px;
}

.metric span {
  color: var(--muted);
  font-size: 14px;
}

.split .metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin-top: 16px;
  list-style: none;
}

.compact-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
}

.compact-list li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.pill-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  font-size: 13px;
}

.report-categories {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.report-categories span {
  padding: 12px;
  border-radius: var(--radius);
  background: #eef4fa;
  color: var(--navy);
  font-weight: 700;
  text-align: center;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 800;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
}

.link-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  list-style: none;
}

.link-list a {
  color: var(--blue);
  font-weight: 700;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.video-card {
  overflow: hidden;
  padding: 0;
}

.video-card iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
  background: var(--ink);
}

.video-card h3,
.video-card p,
.video-card .video-link {
  margin-left: 18px;
  margin-right: 18px;
}

.video-card h3 {
  margin-top: 16px;
}

.video-card .video-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--blue);
  font-weight: 800;
}

@media (max-width: 980px) {
  .main-nav,
  .header-actions {
    display: none;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .main-nav.is-open {
    position: absolute;
    left: 0;
    right: 0;
    top: 74px;
    display: grid;
    gap: 0;
    padding: 0 20px 18px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .topline .container,
  .section-head,
  .visual-band,
  .split,
  .contact-grid,
  .cta-inner,
  .footer-bottom {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .trust-grid,
  .client-grid,
  .gallery-grid,
  .screenshot-grid,
  .video-grid,
  .metric-grid,
  .report-categories,
  .grid-4,
  .grid-3,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .cookie-consent {
    bottom: 92px;
    grid-template-columns: 1fr;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .container {
    width: min(var(--max), calc(100% - 28px));
  }

  .hero {
    min-height: 72vh;
  }

  .hero-content {
    padding: 46px 0;
  }

  .hero-actions,
  .cta-inner {
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    grid-template-columns: 1fr;
  }

  .trust-grid,
  .client-grid,
  .gallery-grid,
  .screenshot-grid,
  .video-grid,
  .metric-grid,
  .compact-list,
  .report-categories,
  .grid-4,
  .grid-3,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 58px 0;
  }

  body {
    padding-bottom: 82px;
  }

  .mobile-cta-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
    box-shadow: 0 -12px 30px rgba(21, 32, 51, 0.12);
  }

  .mobile-cta-bar .btn {
    min-height: 48px;
  }
}

.cookie-consent {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
  padding: 18px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

.cookie-consent p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-actions .btn {
  white-space: nowrap;
}