/* Home hero with a live shader background and a working sample dashboard. */
.cqf { position: relative; isolation: isolate; overflow: hidden; background: #0a0a0a; color: #fff; padding: 128px clamp(18px, 4vw, 48px) 0; text-align: center; }
.cqf::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(900px 420px at 50% 72%, rgba(200, 75, 31, 0.42), transparent 70%), radial-gradient(600px 300px at 20% 80%, rgba(184, 134, 11, 0.18), transparent 70%); }
#heroFlow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
#heroFlow.on { opacity: 1; }
.cqf-copy { max-width: 900px; margin: 0 auto; }
.cqf h1 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(44px, 6.4vw, 88px); line-height: 0.98; letter-spacing: -0.02em; color: #fff; margin: 0 0 22px; text-wrap: balance; }
.cqf h1 em { display: block; margin-top: 0.18em; font-size: 0.56em; line-height: 1.1; font-style: italic; color: #f08a52; }
.cqf-sub { font-size: clamp(16.5px, 1.5vw, 19px); line-height: 1.55; font-weight: 300; color: rgba(255, 255, 255, 0.8); max-width: 36em; margin: 0 auto 26px; }
.cqf-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cqf-note { margin: 14px 0 0; font-size: 13.5px; color: rgba(255, 255, 255, 0.58); }
.cqf-clip { max-width: 1120px; margin: 44px auto 0; height: clamp(420px, 56vh, 540px); overflow: hidden; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.cqf-dash { text-align: left; display: grid; grid-template-columns: 178px minmax(0, 1fr); border-radius: 18px 18px 0 0; background: rgba(18, 16, 15, 0.86); border: 1px solid rgba(255, 255, 255, 0.12); border-bottom: 0; box-shadow: 0 -30px 120px -40px rgba(224, 105, 47, 0.7); font-family: var(--font-sans); font-size: 14px; min-height: 640px; }
.cqf-side { border-right: 1px solid rgba(255, 255, 255, 0.08); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; }
.cqf-side b { font-family: var(--font-serif); font-weight: 400; font-size: 20px; padding: 0 8px 12px; }
.cqf-side b em { color: #f08a52; }
.cqf-side span { padding: 8px 10px; border-radius: 8px; color: rgba(255, 255, 255, 0.6); }
.cqf-side span.on { background: rgba(255, 255, 255, 0.08); color: #fff; }
.cqf-main { padding: 18px clamp(14px, 2vw, 22px); min-width: 0; }
.cqf-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.cqf-bar b { font-size: 16px; font-weight: 600; }
.cqf-bar i { font-style: normal; font-size: 12.5px; color: rgba(255, 255, 255, 0.6); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.cqf-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.cqf-kpi { border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 12px 14px; background: rgba(255, 255, 255, 0.03); }
.cqf-kpi small { display: block; font-size: 12.5px; color: rgba(255, 255, 255, 0.6); }
.cqf-kpi b { display: block; font-size: clamp(19px, 2vw, 25px); font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; margin-top: 2px; white-space: nowrap; }
.cqf-kpi span { font-size: 12.5px; color: #8fd0ad; }
.cqf-kpi span.warn { color: #f0b35a; }
.cqf-kpi.auto { background: linear-gradient(140deg, rgba(200, 75, 31, 0.5), rgba(184, 134, 11, 0.22)); border-color: rgba(240, 138, 82, 0.5); }
.cqf-kpi.auto span { color: rgba(255, 255, 255, 0.85); }
.cqf-sw { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cqf-sw button { all: unset; cursor: pointer; width: 40px; height: 24px; border-radius: 999px; background: rgba(255, 255, 255, 0.22); position: relative; flex: none; transition: background 0.2s; }
.cqf-sw button::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.cqf-sw button[aria-checked="true"] { background: #f08a52; }
.cqf-sw button[aria-checked="true"]::after { transform: translateX(16px); }
.cqf-sw button:focus-visible, .cqf-tabs button:focus-visible { outline: 2px solid #f5a67a; outline-offset: 2px; }
.cqf-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 10px; }
.cqf-card { border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 14px; background: rgba(255, 255, 255, 0.03); min-width: 0; }
.cqf-chead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.cqf-tabs { display: inline-flex; background: rgba(255, 255, 255, 0.07); border-radius: 9px; padding: 3px; }
.cqf-tabs button { all: unset; cursor: pointer; padding: 6px 11px; border-radius: 7px; font-size: 13px; color: rgba(255, 255, 255, 0.66); min-height: 22px; }
.cqf-tabs button[aria-pressed="true"] { background: #fff; color: #1a1a18; font-weight: 600; }
.cqf-fig { position: relative; height: 210px; }
.cqf-fig svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cqf-fig text { fill: rgba(255, 255, 255, 0.55); font: 12px var(--font-sans); }
.cqf-now { font-size: 13px; color: rgba(255, 255, 255, 0.7); margin: 4px 0 0; }
.cqf-card h3, .cqf-card .cqf-h { font: 600 14px var(--font-sans); margin: 0 0 8px; color: #fff; }
.cqf-list { list-style: none; margin: 0; padding: 0; }
.cqf-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.cqf-list li:first-child { border-top: 0; }
.cqf-list b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cqf-list em { font-style: normal; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cqf-list small { grid-column: 1 / -1; font-size: 12.5px; color: rgba(255, 255, 255, 0.55); }
.cqf-list.paused small { color: #f0b35a; }
/* The try-it demo and trust points, moved below the hero. */
.cqf2 { background: #0a0a0a; color: #fff; padding: 64px clamp(18px, 4vw, 48px) 0; }
.cqf2-in { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.cqf2 h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(32px, 4vw, 52px); line-height: 1.04; margin: 0 0 14px; color: #fff; }
.cqf2 p.lead { font-size: 17px; line-height: 1.55; font-weight: 300; color: rgba(255, 255, 255, 0.75); margin: 0; max-width: 30em; }
.cqf2 .cqh-trust { margin-top: 56px; }
@media (max-width: 900px) {
  .cqf { padding-top: 100px; }
  .cqf-dash { grid-template-columns: minmax(0, 1fr); }
  .cqf-side { display: none; }
  .cqf-kpis { grid-template-columns: 1fr 1fr; }
  .cqf-grid { grid-template-columns: minmax(0, 1fr); }
  .cqf-clip { height: 520px; }
  .cqf2-in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .cqf { padding: 92px 14px 0; }
  .cqf h1 { font-size: clamp(40px, 12vw, 56px); }
  .cqf-cta .cq-btn { flex: 1 1 100%; }
  .cqf-clip { margin-top: 32px; height: 500px; }
  .cqf-fig { height: 180px; }
  .cqf-kpi { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) { #heroFlow { transition: none; } .cqf-sw button, .cqf-sw button::after { transition: none; } }
/* Scene-first opening: the scene reads as a story, the bridge says what the product is. */
.cqf-sub.cqf-scene { font-family: var(--font-serif, Georgia, serif); font-weight: 400; color: rgba(255, 255, 255, 0.92); font-size: clamp(17.5px, 1.6vw, 20.5px); margin-bottom: 14px; }
.cqf-bridge { font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, 0.72); max-width: 36em; margin: 0 auto 26px; }
.cqf2-link { color: var(--accent); font-weight: 600; white-space: nowrap; }
