/* Shared header and footer for every page of the site.
   Everything is prefixed with qc- so page styles (including the QA Platform page) cannot change it. */
.ql-chrome {
  --qc-ink: #0d1017; --qc-ink-2: #2a303c; --qc-muted: #5a6272; --qc-faint: #8a92a2;
  --qc-line: #e3e6ec; --qc-soft: #f6f8fb; --qc-blue: #2457e6;
  font-family: Geist, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  -webkit-font-smoothing: antialiased; box-sizing: border-box; line-height: 1.5;
}
.ql-chrome *, .ql-chrome *::before, .ql-chrome *::after { box-sizing: border-box; }
.ql-chrome a { text-decoration: none; }
.ql-chrome img { display: block; max-width: none; }
.ql-chrome :focus-visible { outline: 3px solid var(--qc-blue); outline-offset: 3px; border-radius: 6px; }
.qc-in { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* Header */
.ql-chrome.qc-header { position: sticky; top: 0; z-index: 50; height: 64px; background: #ffffffeb; color: var(--qc-ink); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--qc-line); }
.qc-header .qc-in { height: 100%; display: flex; align-items: center; gap: 24px; }
.qc-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 600; letter-spacing: -0.03em; color: var(--qc-ink); }
.qc-brand img { width: 28px; height: 28px; border-radius: 6px; }
.qc-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; margin-right: 8px; font-size: 15px; }
.qc-nav > a { color: var(--qc-muted); }
.qc-nav > a:hover, .qc-nav > a[aria-current="page"] { color: var(--qc-ink); }
.qc-nav > a.qc-platform { color: var(--qc-ink); font-weight: 500; padding-left: 22px; border-left: 1px solid var(--qc-line); }
.qc-nav > a.qc-mobile { display: none; }
.qc-actions { display: flex; align-items: center; gap: 18px; }
.qc-login { font-size: 15px; color: var(--qc-muted); }
.qc-login:hover { color: var(--qc-ink); }
.qc-btn { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 10px; background: var(--qc-ink); color: #fff; font-size: 14px; font-weight: 500; white-space: nowrap; }
.qc-btn:hover { background: #262c38; color: #fff; }
.qc-menu { display: none; position: relative; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; padding: 0; }
.qc-menu span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--qc-ink); border-radius: 2px; transition: transform .2s, top .2s; }
.qc-menu span:first-child { top: 15px; }
.qc-menu span:last-child { top: 23px; }
.qc-menu[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.qc-menu[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* Features dropdown */
.qc-dd { position: relative; display: flex; align-items: center; }
.qc-dd-btn { border: 0; background: none; padding: 0; margin: 0; cursor: pointer; font: inherit; font-size: 15px; color: var(--qc-muted); display: inline-flex; align-items: center; gap: 5px; }
.qc-dd-btn span { font-size: 11px; transition: transform .15s; }
.qc-dd-btn:hover, .qc-dd.open .qc-dd-btn { color: var(--qc-ink); }
.qc-dd.open .qc-dd-btn span { transform: rotate(180deg); }
.qc-dd-menu { display: none; position: absolute; top: calc(100% + 20px); left: -24px; width: 560px; padding: 10px; background: #fff; border: 1px solid var(--qc-line); border-radius: 14px; box-shadow: 0 24px 48px -24px #1b2a5455; grid-template-columns: 1fr 1fr; gap: 2px; z-index: 60; }
.qc-dd-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -22px; height: 22px; }
.qc-dd.open .qc-dd-menu { display: grid; }
@media (hover: hover) and (min-width: 941px) { .qc-dd:hover .qc-dd-menu { display: grid; } }
.qc-dd-menu a { display: grid; gap: 1px; padding: 10px 12px; border-radius: 9px; color: var(--qc-ink); }
.qc-dd-menu a:hover { background: var(--qc-soft); }
.qc-dd-menu b { font-size: 14.5px; font-weight: 600; }
.qc-dd-menu span { font-size: 13px; color: var(--qc-muted); }
.qc-dd-menu .qc-dd-all { grid-column: 1 / -1; border-top: 1px solid var(--qc-line); border-radius: 0 0 9px 9px; margin-top: 4px; padding-top: 12px; font-size: 14px; font-weight: 500; color: var(--qc-blue); }

@media (max-width: 940px) {
  .qc-menu { display: block; }
  .qc-actions { margin-left: auto; }
  .qc-login { display: none; }
  .qc-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; margin: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 28px 20px; background: #fff; border-bottom: 1px solid var(--qc-line); font-size: 17px; box-shadow: 0 20px 30px -20px #0b0d1230; max-height: calc(100vh - 64px); overflow-y: auto; }
  .qc-nav.open { display: flex; }
  .qc-nav > a { padding: 10px 0; }
  .qc-nav > a.qc-platform { padding-left: 0; border-left: 0; border-top: 1px solid var(--qc-line); padding-top: 14px; margin-top: 4px; }
  .qc-nav > a.qc-mobile { display: block; }
  .qc-dd { flex-direction: column; align-items: stretch; }
  .qc-dd-btn { padding: 10px 0; font-size: 17px; justify-content: space-between; }
  .qc-dd-menu { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 6px 12px; grid-template-columns: 1fr; }
  .qc-dd-menu::before { display: none; }
  .qc-dd-menu a { padding: 8px 0; }
  .qc-dd-menu span { display: none; }
}
@media (max-width: 600px) { .qc-in { padding: 0 20px; } .qc-nav { padding: 8px 20px 20px; } }

/* Footer */
.ql-chrome.qc-footer { background: #0b0e14; color: #8d97a8; padding: 56px 0 28px; }
.qc-foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.qc-foot-brand .qc-brand { color: #fff; }
.qc-foot-brand .qc-brand img { box-shadow: 0 0 0 1px #ffffff2e; }
.qc-foot-brand p { margin: 14px 0 0; font-size: 14.5px; line-height: 1.55; max-width: 240px; }
.qc-col { display: grid; gap: 9px; align-content: start; font-size: 14px; }
.qc-col b { color: #e3e7ef; font-weight: 600; margin-bottom: 4px; }
.qc-col a { color: #8d97a8; }
.qc-col a:hover { color: #fff; }
.qc-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 44px; padding-top: 20px; border-top: 1px solid #202733; font-size: 13px; color: #6e788b; }
@media (max-width: 900px) { .qc-foot-grid { grid-template-columns: 1fr 1fr; } .qc-foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .ql-chrome.qc-footer { padding-top: 44px; } .qc-foot-grid { gap: 28px 20px; } }
