:root {
  --qs-red: #ed2e26;
  --qs-red-dark: #c7221e;
  --qs-ink: #14171f;
  --qs-muted: #5b6270;
  --qs-soft: #f5f6f8;
}

.qs-page h2 { font-size: 1.65rem; font-weight: 700; line-height: 1.3; color: var(--qs-ink); }
.qs-page h3 { font-size: 1.1rem; font-weight: 700; line-height: 1.35; color: var(--qs-ink); }
.qs-page p { font-size: 1rem; color: var(--qs-muted); }
.qs-page .qs-lead { max-width: 740px; margin: .75rem auto 2.25rem; text-align: center; }
.qs-page h2.qs-title { text-align: center; }

/* Hero */
.qs-hero {
  position: relative; min-height: 460px; display: flex; align-items: center; overflow: hidden;
  background: radial-gradient(900px 400px at 85% 20%, rgba(237,46,38,.35), transparent 60%), linear-gradient(135deg, #10131a, #1c2030);
}
.qs-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--qs-red), transparent 80%); }
.qs-hero .container { position: relative; z-index: 1; }
.qs-logo { display: inline-block; background: #fff; border-radius: 12px; padding: .6rem 1.1rem; margin-bottom: 1.5rem; }
.qs-logo img { height: 38px; width: auto; display: block; }
.qs-eyebrow { color: #ff6b64; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; margin: 0 0 .5rem; }
.qs-page .qs-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.2vw, 2.9rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; max-width: 760px; margin: 0 0 1rem; }
.qs-page .qs-hero p { color: #d6d9e2; max-width: 600px; margin-bottom: 1.5rem; }
.qs-hero-btns { display: flex; flex-wrap: wrap; gap: .75rem; }
.qs-scroll {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 2;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5);
  background: rgba(255,255,255,.12); color: #fff; display: flex; align-items: center; justify-content: center;
  text-decoration: none; animation: qs-bob 2s ease-in-out infinite;
}
.qs-scroll:hover { background: rgba(255,255,255,.25); color: #fff; }
@keyframes qs-bob { 50% { transform: translate(-50%, 5px); } }

/* Buttons */
.qs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.5rem; border-radius: 999px; border: 2px solid var(--qs-ink);
  background: var(--qs-ink); color: #fff; font-weight: 600; font-size: 1rem; line-height: 1.3; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.qs-btn:hover { background: #000; border-color: #000; color: #fff; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(20,23,31,.25); }
.qs-btn i { font-size: .8em; transition: transform .2s ease; }
.qs-btn:hover i { transform: translateX(3px); }
.qs-btn-red { background: var(--qs-red); border-color: var(--qs-red); }
.qs-btn-red:hover { background: var(--qs-red-dark); border-color: var(--qs-red-dark); }
.qs-btn-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.qs-btn-light:hover { background: rgba(255,255,255,.15); border-color: #fff; color: #fff; box-shadow: none; }

.qs-hero-img { width: 100%; height: auto; display: block; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .45)); }

/* Stats */
.qs-stats { background: var(--qs-red); }
.qs-stat { text-align: center; color: #fff; padding: .5rem 0; }
.qs-stat strong { display: block; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; line-height: 1.1; }
.qs-page .qs-stat span { color: rgba(255,255,255,.9); font-size: .88rem; }

/* Measure / communicate / eliminate */
.qs-step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-bottom: .75rem;
  border-radius: 50%; background: rgba(237,46,38,.12); color: var(--qs-red-dark); font-weight: 800;
}
.qs-shot { border-radius: 14px; box-shadow: 0 14px 40px rgba(20,23,31,.18); width: 100%; height: auto; display: block; background: #fff; }

.qs-step-card {
  display: flex; flex-direction: column; height: 100%; overflow: hidden; background: #fff; border-radius: 16px;
  box-shadow: 0 6px 24px rgba(20,23,31,.1); transition: transform .25s ease, box-shadow .25s ease;
}
.qs-step-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(20,23,31,.16); }
.qs-step-img { aspect-ratio: 16 / 10; overflow: hidden; background: #f4f5f8; border-bottom: 1px solid #eceef3; }
.qs-step-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.qs-step-body { flex: 1; padding: 1.5rem; }
.qs-page .qs-step-body p { margin: 0; font-size: .95rem; line-height: 1.65; }

/* Apps */
.qs-group-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 1rem;
  border-radius: 14px; background: rgba(237,46,38,.12); color: var(--qs-red-dark); font-size: 1.35rem;
}
.qs-page h3.qs-group-title { font-size: 1.4rem; }

.qs-card {
  position: relative; height: 100%; display: flex; flex-direction: column; padding: 1.5rem; background: #fff; border-radius: 16px;
  box-shadow: 0 6px 24px rgba(20,23,31,.08); transition: transform .25s ease, box-shadow .25s ease;
}
.qs-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(20,23,31,.14); }
.qs-card p { font-size: .93rem; margin: .5rem 0 1.25rem; }
.qs-card .qs-btn { margin-top: auto; align-self: flex-start; }
.qs-badge {
  align-self: flex-start; margin-bottom: .6rem; padding: .15rem .65rem; border-radius: 999px;
  background: var(--qs-red); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}

.qs-cta { background: var(--qs-ink); text-align: center; }
.qs-page .qs-cta h2 { color: #fff; }
.qs-page .qs-cta p { color: #c9ccd6; }
.qs-cta .qs-hero-btns { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  .qs-scroll { animation: none; }
  .qs-btn, .qs-card, .qs-step-card { transition: none; }
}
