/* =============================================================================
   QUANTOVA — Corporate / Government design layer
   Restrained, institutional, structured. Dual theme: black (default) + light grey.
   Scoped to body.q-corp so legacy pages are untouched. Theme via [data-qc-theme].
   ============================================================================= */

:root {
  --qc-font-head: "Inter Tight", system-ui, sans-serif;
  --qc-font-body: "Inter Tight", system-ui, sans-serif; /* match original site fonts */
  --qc-font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --qc-maxw: 1200px;
  --qc-r: 8px;
  --qc-ease: cubic-bezier(.22,.61,.36,1);
}

/* DARK (default) — black */
body.q-corp,
body.q-corp[data-qc-theme="dark"] {
  --qc-bg: #0a0b0d;
  --qc-bg-2: #0d0e11;
  /* Cards: faint white panels over black (clearly white-tinted, not grey) */
  --qc-surface: rgba(255,255,255,.10);
  --qc-surface-2: rgba(255,255,255,.14);
  --qc-line: rgba(255,255,255,.16);
  --qc-line-2: rgba(255,255,255,.26);
  --qc-text: #f3f4f6;
  --qc-text-2: #b6bcc6;
  --qc-text-3: #868d98;
  --qc-ink: #ffffff;          /* primary action */
  --qc-on-ink: #0a0b0d;
  --qc-hover: rgba(255,255,255,.10);
  --qc-shadow: 0 1px 0 rgba(255,255,255,.02);
  color-scheme: dark;
}

/* Black theme only (no light mode, per brand direction). */

/* ---- base ---- */
body.q-corp { background: var(--qc-bg); color: var(--qc-text); font-family: var(--qc-font-body); -webkit-font-smoothing: antialiased; transition: background-color .3s, color .3s; }
body.q-corp .page-shell, body.q-corp .page-shell__inner { max-width: none !important; width: 100% !important; padding: 0 !important; margin: 0 !important; }
.qc img { pointer-events: none; }
.qc ::selection { background: var(--qc-text); color: var(--qc-bg); }

.qc-wrap { max-width: var(--qc-maxw); margin-inline: auto; padding-inline: 24px; }
.qc-sec { padding-block: clamp(52px, 6.5vw, 92px); position: relative; }
.qc-sec--sm { padding-block: clamp(34px, 4vw, 56px); }
.qc-band { background: var(--qc-bg-2); border-block: 1px solid var(--qc-line); }
.qc-divider { height: 1px; background: var(--qc-line); border: 0; margin: 0; }

/* ---- type ---- */
.qc h1, .qc h2, .qc h3, .qc h4 { font-family: var(--qc-font-head); color: var(--qc-text); margin: 0; letter-spacing: -.02em; font-weight: 700; }
.qc-display { font-size: clamp(2rem, 3.8vw, 3.1rem); line-height: 1.06; letter-spacing: -.03em; font-weight: 700; }
.qc-h2 { font-size: clamp(1.7rem, 2.9vw, 2.4rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; }
.qc-h3 { font-size: 1.12rem; line-height: 1.25; font-weight: 600; }
.qc-lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); line-height: 1.62; color: var(--qc-text-2); font-weight: 400; max-width: 60ch; }
.qc-body { font-size: .98rem; line-height: 1.65; color: var(--qc-text-2); max-width: 64ch; }
.qc-body + .qc-body { margin-top: 14px; }
.qc-mono { font-family: var(--qc-font-mono); }

/* eyebrow / section index */
.qc-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--qc-font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--qc-text-3); }
.qc-eyebrow .ix { color: var(--qc-text); border: 1px solid var(--qc-line-2); border-radius: 4px; padding: 2px 6px; font-size: .68rem; }
.qc-eyebrow .bar { width: 22px; height: 1px; background: var(--qc-line-2); }

/* section header */
.qc-shead { max-width: 720px; }
.qc-shead--center { margin-inline: auto; text-align: center; }
.qc-shead--center .qc-lead { margin-inline: auto; }
.qc-shead .qc-h2 { margin-top: 16px; }
.qc-shead .qc-lead { margin-top: 14px; }

/* ---- buttons (sharp, corporate) ---- */
.qc-btn { display: inline-flex; align-items: center; gap: 9px; font-family: var(--qc-font-head); font-weight: 600; font-size: .94rem; line-height: 1; padding: 12px 20px; border-radius: var(--qc-r); border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.qc-btn:hover { text-decoration: none; }
.qc-btn--primary { background: var(--qc-ink); color: var(--qc-on-ink); border-color: var(--qc-ink); }
.qc-btn--primary:hover { color: var(--qc-on-ink); opacity: .9; }
.qc-btn--ghost { background: transparent; color: var(--qc-text); border-color: var(--qc-line-2); }
.qc-btn--ghost:hover { background: var(--qc-hover); color: var(--qc-text); border-color: var(--qc-text-3); }
.qc-btn .ar { width: 16px; height: 16px; transition: transform .2s var(--qc-ease); }
.qc-btn:hover .ar { transform: translateX(3px); }
.qc-cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- hero ---- */
.qc-hero { position: relative; border-bottom: 1px solid var(--qc-line); overflow: hidden; }
.qc-hero__media { position: absolute; inset: 0; z-index: 0; }
.qc-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.qc-hero__media::after { content: ""; position: absolute; inset: 0; }
body.q-corp[data-qc-theme="dark"] .qc-hero__media::after { background: linear-gradient(90deg, rgba(10,11,13,.94) 0%, rgba(10,11,13,.82) 42%, rgba(10,11,13,.5) 100%); }
body.q-corp[data-qc-theme="light"] .qc-hero__media img { opacity: .9; }
body.q-corp[data-qc-theme="light"] .qc-hero__media::after { background: linear-gradient(90deg, rgba(245,246,248,.96) 0%, rgba(245,246,248,.86) 44%, rgba(245,246,248,.55) 100%); }
.qc-hero__inner { position: relative; z-index: 2; padding-block: clamp(64px, 9vw, 120px); max-width: 760px; }
.qc-hero h1 { margin-top: 20px; }
.qc-hero .qc-lead { margin-top: 20px; }
.qc-hero .qc-cta-row { margin-top: 30px; }

/* ---- key stat bar ---- */
.qc-statbar { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--qc-line); border-radius: var(--qc-r); background: var(--qc-surface); overflow: hidden; }
.qc-statbar > div { padding: 22px; border-right: 1px solid var(--qc-line); }
.qc-statbar > div:last-child { border-right: 0; }
.qc-statbar .k { font-family: var(--qc-font-head); font-weight: 600; font-size: 1.7rem; letter-spacing: -.03em; color: var(--qc-text); }
.qc-statbar .l { color: var(--qc-text-3); font-size: .82rem; margin-top: 8px; line-height: 1.45; }

/* ---- trust strip ---- */
.qc-trust { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: clamp(22px, 4vw, 56px); }
.qc-trust__label { font-family: var(--qc-font-mono); text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; color: var(--qc-text-3); }
.qc-trust__logos { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(20px, 4vw, 44px); }
.qc-trust__logos span { font-family: var(--qc-font-head); font-weight: 700; font-size: clamp(1.05rem, 1.7vw, 1.35rem); letter-spacing: -.02em; color: var(--qc-text-3); transition: color .2s; }
.qc-trust__logos span:hover { color: #ffffff; }

/* ---- split ---- */
.qc-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.qc-split--rev .qc-media { order: -1; }
.qc-media { border: 1px solid var(--qc-line); border-radius: var(--qc-r); overflow: hidden; background: var(--qc-surface-2); align-self: start; }
.qc-media img { width: 100%; height: auto; display: block; }
.qc-media--contain { display: grid; place-items: center; padding: 16px; }
.qc-media--contain img { max-height: 300px; width: auto; max-width: 100%; }

/* feature list */
.qc-flist { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 0; }
.qc-flist li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 13px 0; border-top: 1px solid var(--qc-line); color: var(--qc-text-2); font-size: .96rem; line-height: 1.5; }
.qc-flist li:last-child { border-bottom: 1px solid var(--qc-line); }
.qc-flist .ic { color: var(--qc-text); margin-top: 2px; }

/* ---- capability grid (compact, hairline) ---- */
.qc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--qc-line); border-radius: var(--qc-r); overflow: hidden; background: var(--qc-surface); }
.qc-cell { padding: 26px; border-right: 1px solid var(--qc-line); border-bottom: 1px solid var(--qc-line); transition: background-color .2s; display: flex; flex-direction: column; }
.qc-cell h3 { order: 1; }
.qc-cell__n { order: 0; }
.qc-cell p { order: 2; }
.qc-cell .qc-media { order: 2; margin-top: 14px; }
.qc-cell__tags { order: 3; margin-top: auto; padding-top: 14px; }
.qc-cell:hover { background: var(--qc-hover); }
.qc-grid--3 .qc-cell:nth-child(3n) { border-right: 0; }
.qc-grid--3 .qc-cell:nth-last-child(-n+3) { border-bottom: 0; }
.qc-cell__n { font-family: var(--qc-font-mono); font-size: .74rem; color: var(--qc-text-3); letter-spacing: .1em; }
.qc-cell h3 { margin: 14px 0 8px; }
.qc-cell p { color: var(--qc-text-2); font-size: .92rem; line-height: 1.55; margin: 0; }
.qc-cell__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 14px; }
.qc-tag { font-family: var(--qc-font-mono); font-size: .68rem; letter-spacing: .03em; color: var(--qc-text-3); border: 1px solid var(--qc-line-2); border-radius: 4px; padding: 4px 8px; }

/* ---- spec table (institutional) ---- */
.qc-spec { width: 100%; border-collapse: collapse; border: 1px solid var(--qc-line); border-radius: var(--qc-r); overflow: hidden; background: var(--qc-surface); }
.qc-spec th { text-align: left; padding: 12px 18px; font-family: var(--qc-font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--qc-text-3); background: var(--qc-surface-2); border-bottom: 1px solid var(--qc-line); }
.qc-spec td { padding: 13px 18px; border-bottom: 1px solid var(--qc-line); font-size: .92rem; color: var(--qc-text-2); }
.qc-spec td:first-child { color: var(--qc-text); font-weight: 500; width: 42%; }
.qc-spec tr:last-child td { border-bottom: 0; }
.qc-spec .qc-mono { color: var(--qc-text); }

/* ---- metric row ---- */
.qc-metrics { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--qc-line); border-radius: var(--qc-r); overflow: hidden; background: var(--qc-surface); }
.qc-metrics > div { padding: 22px; border-right: 1px solid var(--qc-line); }
.qc-metrics > div:last-child { border-right: 0; }
.qc-metrics .k { font-family: var(--qc-font-head); font-weight: 600; font-size: 1.55rem; letter-spacing: -.02em; color: var(--qc-text); }
.qc-metrics .l { color: var(--qc-text-3); font-size: .8rem; margin-top: 6px; line-height: 1.4; }

/* ---- apps ---- */
.qc-apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.qc-app { border: 1px solid var(--qc-line); border-radius: var(--qc-r); overflow: hidden; background: var(--qc-surface); text-decoration: none; transition: border-color .2s, transform .2s; display: block; }
.qc-app:hover { border-color: var(--qc-line-2); transform: translateY(-2px); }
.qc-app__img { aspect-ratio: 16/9; overflow: hidden; background: var(--qc-bg-2); border-bottom: 1px solid var(--qc-line); }
.qc-app__img img { width: 100%; height: 100%; object-fit: cover; }
.qc-app__b { padding: 18px; }
.qc-app__b h4 { font-family: var(--qc-font-head); font-weight: 600; color: var(--qc-text); margin: 0 0 6px; font-size: 1.02rem; }
.qc-app__b p { color: var(--qc-text-2); font-size: .88rem; line-height: 1.5; margin: 0; }

/* ---- quick links (hero cards) ---- */
.qc-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.qc-quick a { display: block; padding: 18px; border: 1px solid var(--qc-line); border-radius: var(--qc-r); background: var(--qc-surface); text-decoration: none; transition: border-color .2s, background-color .2s; }
.qc-quick a:hover { border-color: var(--qc-line-2); background: var(--qc-surface-2); }
.qc-quick .t { font-family: var(--qc-font-head); font-weight: 600; color: var(--qc-text); font-size: .98rem; }
.qc-quick .d { color: var(--qc-text-3); font-size: .82rem; margin-top: 5px; line-height: 1.45; }

/* ---- code snippet card (the quantum build) ---- */
.qc-code { border: 1px solid var(--qc-line); border-radius: var(--qc-r); overflow: hidden; background: rgba(0,0,0,.4); }
.qc-code__bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--qc-line); background: var(--qc-surface); }
.qc-code__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--qc-line-2); }
.qc-code__file { margin-left: 10px; font-family: var(--qc-font-mono); font-size: .74rem; color: var(--qc-text-3); letter-spacing: .04em; }
.qc-code pre { margin: 0; padding: 18px 20px; overflow-x: auto; font-family: var(--qc-font-mono); font-size: .82rem; line-height: 1.75; color: var(--qc-text-2); white-space: pre; }
.qc-code .k { color: var(--qc-text); font-weight: 600; }
.qc-code .c { color: var(--qc-text-3); }
.qc-code .s { color: #d7dbe2; }

/* ---- form fields on q-corp pages (visible on the black theme) ---- */
body.q-corp .qc input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
body.q-corp .qc textarea,
body.q-corp .qc select {
  background: rgba(255,255,255,.08) !important;
  color: #ffffff !important;
  border: 1px solid var(--qc-line-2) !important;
  border-radius: 8px !important;
  padding: 12px 14px !important;
  font-family: var(--qc-font-body) !important;
  font-size: .95rem !important;
}
body.q-corp .qc input::placeholder, body.q-corp .qc textarea::placeholder { color: var(--qc-text-3) !important; opacity: 1; }
body.q-corp .qc input:focus, body.q-corp .qc textarea:focus, body.q-corp .qc select:focus { outline: none !important; border-color: #ffffff !important; background: rgba(255,255,255,.12) !important; }
body.q-corp .qc label { color: var(--qc-text-2); }
body.q-corp .qc select, body.q-corp .qc select option { background-color: #14161a !important; color: #ffffff !important; }

/* ---- event tabs + social cards ---- */
.qc-evtabs { display: inline-flex; gap: 6px; padding: 5px; border: 1px solid var(--qc-line); border-radius: 999px; background: var(--qc-surface); }
.qc-evtab { padding: 8px 20px; border-radius: 999px; border: 0; background: transparent; color: var(--qc-text-2); font-family: var(--qc-font-head); font-weight: 600; font-size: .88rem; cursor: pointer; transition: .15s; }
.qc-evtab.active { background: #ffffff; color: #0a0b0d; }
.qc-social { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.qc-social a { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 26px 18px; border: 1px solid var(--qc-line); border-radius: var(--qc-r); background: var(--qc-surface); text-decoration: none; color: var(--qc-text); transition: transform .2s, border-color .2s; }
.qc-social a:hover { border-color: var(--qc-line-2); transform: translateY(-2px); }
.qc-social img { width: 34px; height: 34px; object-fit: contain; }
.qc-social span { font-family: var(--qc-font-head); font-weight: 600; font-size: .92rem; }
.qc-social small { color: var(--qc-text-3); font-size: .76rem; }
@media (max-width: 640px){ .qc-social { grid-template-columns: repeat(2, 1fr); } }

/* ---- comparison bars (quantum threat) ---- */
.qc-bars { display: grid; gap: 14px; }
.qc-bar { display: grid; grid-template-columns: 170px 1fr 110px; align-items: center; gap: 18px; }
.qc-bar__l { font-size: .92rem; color: var(--qc-text-2); }
.qc-bar__track { height: 12px; border-radius: 7px; background: rgba(255,255,255,.07); overflow: hidden; }
.qc-bar__fill { height: 100%; border-radius: 7px; background: var(--qc-text-3); }
.qc-bar__v { font-family: var(--qc-font-mono); font-size: .76rem; color: var(--qc-text-3); text-align: right; letter-spacing: .04em; }
.qc-bar--q .qc-bar__l { color: var(--qc-text); font-weight: 700; }
.qc-bar--q .qc-bar__fill { background: #ffffff; }
.qc-bar--q .qc-bar__v { color: var(--qc-text); }
@media (max-width: 640px){ .qc-bar { grid-template-columns: 96px 1fr 62px; gap: 10px; } }

/* ---- navbar corporate polish (q-corp = all pages) ---- */
body.q-corp .nav_bar { background: rgba(10,11,13,.82) !important; backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--qc-line); }
body.q-corp .nav_btn { font-family: var(--qc-font-head) !important; font-weight: 500 !important; border-radius: 8px; transition: background-color .18s, color .18s; }
body.q-corp .nav_btn:hover, body.q-corp .nav_btn.nav_btn--dropdown-open, body.q-corp .nav_btn.active { background: var(--qc-hover) !important; color: #fff !important; }
body.q-corp .nav_dropdown_menu { background: #0d0e11 !important; border: 1px solid var(--qc-line) !important; border-radius: 14px !important; box-shadow: 0 30px 60px rgba(0,0,0,.55) !important; overflow: hidden; }
body.q-corp .main_side_btn, body.q-corp .main_side a { border-radius: 10px; transition: background-color .18s; }
body.q-corp .main_side_btn:hover, body.q-corp .main_side a:hover, body.q-corp .main_side_btn.main_side_btn--active { background: var(--qc-hover) !important; }
body.q-corp .nav_dropdown_title { font-family: var(--qc-font-head) !important; }
body.q-corp .nav_search { border-radius: 8px !important; }
body.q-corp .lang-selector-btn { border-radius: 8px !important; }

/* ================= AI ASSISTANT WIDGET (global, all pages) ================= */
.qai-launch { position: fixed; right: 20px; bottom: 72px; z-index: 1300; display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: #ffffff; color: #0a0b0d; font-family: var(--qc-font-head); font-weight: 600; font-size: .9rem; cursor: pointer; box-shadow: 0 16px 40px rgba(0,0,0,.5); transition: transform .2s, box-shadow .2s; }
.qai-launch:hover { transform: translateY(-2px); box-shadow: 0 22px 50px rgba(0,0,0,.6); }
.qai-launch svg { width: 18px; height: 18px; }
.qai-launch.qai-hidden { display: none; }

.qai-panel { position: fixed; right: 20px; bottom: 72px; z-index: 1301; width: 392px; max-width: calc(100vw - 28px); height: 600px; max-height: calc(100vh - 110px); background: #0c0d11; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; box-shadow: 0 40px 90px rgba(0,0,0,.65); display: none; flex-direction: column; overflow: hidden; font-family: var(--qc-font-body); }
.qai-panel.open { display: flex; }
.qai-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
.qai-head__mark { width: 30px; height: 30px; border-radius: 8px; background: #fff; color: #0a0b0d; display: grid; place-items: center; flex: 0 0 auto; }
.qai-head__mark svg { width: 17px; height: 17px; }
.qai-head__t { font-family: var(--qc-font-head); font-weight: 700; color: #f3f4f6; font-size: .98rem; line-height: 1.1; }
.qai-head__s { font-size: .72rem; color: #868d98; }
.qai-head__close { margin-left: auto; width: 32px; height: 32px; border-radius: 8px; border: 1px solid rgba(255,255,255,.14); background: transparent; color: #c8cdd6; cursor: pointer; display: grid; place-items: center; }
.qai-head__close:hover { background: rgba(255,255,255,.08); color: #fff; }
.qai-model { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.qai-model label { font-family: var(--qc-font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: #868d98; }
.qai-model select { flex: 1; background: rgba(255,255,255,.07); color: #fff; border: 1px solid rgba(255,255,255,.16); border-radius: 7px; padding: 7px 10px; font-size: .82rem; font-family: var(--qc-font-body); }
.qai-model select option { background: #14161a; color: #fff; }
.qai-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.qai-msg { max-width: 86%; padding: 11px 14px; border-radius: 14px; font-size: .9rem; line-height: 1.5; }
.qai-msg--bot { align-self: flex-start; background: rgba(255,255,255,.07); color: #e7eaef; border: 1px solid rgba(255,255,255,.08); border-bottom-left-radius: 5px; }
.qai-msg--user { align-self: flex-end; background: #ffffff; color: #0a0b0d; border-bottom-right-radius: 5px; }
.qai-msg a { color: #fff; text-decoration: underline; }
.qai-msg--bot a { color: #fff; }
.qai-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 16px 12px; }
.qai-chip { font-size: .78rem; padding: 7px 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: transparent; color: #c8cdd6; cursor: pointer; transition: .15s; font-family: var(--qc-font-body); }
.qai-chip:hover { background: rgba(255,255,255,.1); color: #fff; }
.qai-form { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid rgba(255,255,255,.1); }
.qai-form input { flex: 1; background: rgba(255,255,255,.07); color: #fff; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; padding: 11px 13px; font-size: .9rem; font-family: var(--qc-font-body); outline: none; }
.qai-form input::placeholder { color: #868d98; }
.qai-form input:focus { border-color: #fff; }
.qai-form button { width: 42px; border-radius: 10px; border: 0; background: #fff; color: #0a0b0d; cursor: pointer; display: grid; place-items: center; }
.qai-form button svg { width: 18px; height: 18px; }
.qai-typing { align-self: flex-start; color: #868d98; font-size: .82rem; padding: 4px 2px; }
.qai-foot { text-align: center; font-size: .66rem; color: #6b7280; padding: 0 16px 10px; }
@media (max-width: 480px){ .qai-panel { right: 8px; left: 8px; width: auto; bottom: 8px; height: calc(100vh - 16px); max-height: none; } }

/* ---- theme toggle ---- */
.qc-toggle { width: 36px; height: 36px; border-radius: var(--qc-r); border: 1px solid var(--qc-line-2); background: var(--qc-surface); color: var(--qc-text); display: grid; place-items: center; cursor: pointer; }
.qc-toggle:hover { background: var(--qc-hover); }
.qc-toggle svg { width: 17px; height: 17px; }
.qc-toggle .moon { display: none; }
body.q-corp[data-qc-theme="dark"] .qc-toggle .moon { display: block; }
body.q-corp[data-qc-theme="dark"] .qc-toggle .sun { display: none; }

/* ---- reveal (subtle) ---- */
.qc-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--qc-ease), transform .6s var(--qc-ease); }
.qc-reveal.in { opacity: 1; transform: none; }
.qc-reveal[data-d="1"] { transition-delay: .06s; } .qc-reveal[data-d="2"] { transition-delay: .12s; } .qc-reveal[data-d="3"] { transition-delay: .18s; }
@media (prefers-reduced-motion: reduce) { .qc-reveal { opacity: 1; transform: none; transition: none; } }

/* ---- Homepage hero: contained, smaller, darker (less white), framed ---- */
body.q-corp .header_section { padding-top: 20px; }
body.q-corp .background_overlay { max-width: 1060px; margin: 0 auto 44px; border-radius: 14px; overflow: hidden; border: 1px solid var(--qc-line); box-shadow: 0 30px 60px rgba(0,0,0,.45); }
body.q-corp .background_overlay img { width: 100%; height: clamp(240px, 30vw, 380px); object-fit: cover; object-position: center 40%; filter: brightness(1) contrast(1.04); display: block; }
body.q-corp .background_overlay_mobile img { filter: brightness(1) contrast(1.03); }
body.q-corp .header_content { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: 8px; }
body.q-corp .header_content .qc-eyebrow { margin-bottom: 18px; }
body.q-corp .home_page_header_heading { font-family: var(--qc-font-head) !important; font-weight: 700 !important; font-size: clamp(2.1rem, 4.4vw, 3.5rem) !important; line-height: 1.03; letter-spacing: -.035em; text-align: center; max-width: none; color: var(--qc-text); }
body.q-corp .header_section .after_heading { color: var(--qc-text-2); max-width: 600px; margin: 18px auto 0; font-size: clamp(1rem, 1.4vw, 1.16rem); line-height: 1.6; text-shadow: none; }

/* ============================================================
   CORPORATE NAVBAR (.qn) — replaces legacy mega-menu, mobile + desktop
   ============================================================ */
.qn { position: sticky; top: 0; z-index: 1000; background: rgba(10,11,13,.85); border-bottom: 1px solid var(--qc-line); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .qn { -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); background: rgba(10,11,13,.7); }
}
.qn__bar { max-width: var(--qc-maxw); margin-inline: auto; height: 66px; padding: 0 22px; display: flex; align-items: center; gap: 16px; }
.qn__logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.qn__logo img { height: 28px; width: auto; display: block; }
.qn__menu { display: flex; align-items: center; gap: 0; margin: 0 auto 0 8px; padding: 0; list-style: none; height: 100%; min-width: 0; }
.qn__actions { flex: 0 0 auto; }
.qn__item { position: static; display: flex; align-items: center; height: 100%; }
.qn__link { display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 8px; border-radius: 8px; font-family: var(--qc-font-head); font-weight: 500; font-size: .85rem; color: #d7dbe2; background: transparent; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color .18s, color .18s; }
.qn__link svg { margin-left: -1px; }
.qn__link:hover, .qn__item.open .qn__link { background: rgba(255,255,255,.08); color: #fff; }
.qn__link svg { width: 13px; height: 13px; opacity: .6; transition: transform .2s; }
.qn__item.open .qn__link svg { transform: rotate(180deg); }
.qn__panel { position: absolute; left: 0; right: 0; top: 66px; background: #0d0e12; border-bottom: 1px solid var(--qc-line); box-shadow: 0 30px 60px rgba(0,0,0,.5); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s var(--qc-ease), transform .2s var(--qc-ease), visibility .2s; }
.qn__item.open .qn__panel { opacity: 1; visibility: visible; transform: none; }
.qn__panel-in { max-width: var(--qc-maxw); margin-inline: auto; padding: 24px 22px 28px; display: grid; grid-template-columns: 230px 1fr; gap: 28px; }
.qn__panel-lead .qn__panel-h { display: block; font-family: var(--qc-font-head); font-weight: 700; color: #fff; font-size: 1.05rem; margin: 0 0 8px; }
.qn__panel-lead p { color: var(--qc-text-3); font-size: .86rem; line-height: 1.5; margin: 0; }
.qn__links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 14px; align-content: start; }
.qn__plink { display: block; padding: 9px 11px; border-radius: 8px; color: #c2c8d2; text-decoration: none; font-size: .9rem; transition: background-color .15s, color .15s; }
.qn__plink:hover { background: rgba(255,255,255,.07); color: #fff; }
.qn__plink b { display: block; color: #fff; font-weight: 600; font-family: var(--qc-font-head); font-size: .9rem; }
.qn__plink span { font-size: .76rem; color: var(--qc-text-3); }
.qn__actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.qn__ico { width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--qc-line); background: transparent; color: #d7dbe2; display: grid; place-items: center; cursor: pointer; transition: .18s; }
.qn__ico:hover { background: rgba(255,255,255,.08); color: #fff; border-color: var(--qc-line-2); }
.qn__ico svg { width: 18px; height: 18px; }
.qn__burger { display: none; }
.qn__drawer { display: none; }
.qn__live { display: none; }
@media (min-width: 1500px) { .qn__live { display: inline-flex; } }
.lang-selector-wrapper { position: relative; }
@media (max-width: 1024px) {
  .qn__menu { display: none; }
  .qn__burger { display: grid; }
  .qn__live { display: none; }
  .qn__drawer { display: block; position: fixed; inset: 66px 0 0 0; background: #0a0b0d; z-index: 999; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s var(--qc-ease), transform .25s var(--qc-ease), visibility .25s; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 10px 16px 80px; }
  .qn__drawer.open { opacity: 1; visibility: visible; transform: none; }
  .qn-acc { border-bottom: 1px solid var(--qc-line); }
  .qn-acc__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 16px 4px; background: none; border: 0; color: #fff; font-family: var(--qc-font-head); font-weight: 600; font-size: 1.04rem; cursor: pointer; }
  .qn-acc__btn svg { width: 18px; height: 18px; transition: transform .25s; }
  .qn-acc.open .qn-acc__btn svg { transform: rotate(180deg); }
  .qn-acc__body { display: none; padding: 0 4px 14px; }
  .qn-acc.open .qn-acc__body { display: block; }
  .qn-acc__body a { display: block; padding: 11px 8px; color: #c2c8d2; text-decoration: none; border-radius: 8px; font-size: .96rem; }
  .qn-acc__body a:active, .qn-acc__body a:hover { background: rgba(255,255,255,.07); color: #fff; }
  .qn__drawer .qn-acc__link { display:block; padding:16px 4px; color:#fff; font-family:var(--qc-font-head); font-weight:600; font-size:1.04rem; text-decoration:none; border-bottom:1px solid var(--qc-line); }
}
/* global search modal (corporate) */
.qn-search { position: fixed; inset: 0; z-index: 1200; display: none; align-items: flex-start; justify-content: center; padding: 12vh 18px 18px; background: rgba(0,0,0,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.qn-search.open { display: flex; }
.qn-search__box { width: 100%; max-width: 620px; background: #14161a; border: 1px solid var(--qc-line-2); border-radius: 16px; overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,.6); }
.qn-search__head { display: flex; align-items: center; gap: 10px; padding: 15px 18px; border-bottom: 1px solid var(--qc-line); color: #fff; }
.qn-search__head input { flex: 1; background: transparent; border: 0; outline: 0; color: #fff; font-size: 1.05rem; font-family: var(--qc-font-body); }
.qn-search__results { max-height: 52vh; overflow-y: auto; padding: 8px; }
.qn-search__results a { display: block; padding: 12px 14px; border-radius: 9px; text-decoration: none; color: #e7eaef; }
.qn-search__results a:hover { background: rgba(255,255,255,.07); }
.qn-search__results b { display: block; font-family: var(--qc-font-head); font-weight: 600; color: #fff; }
.qn-search__results span { font-size: .8rem; color: var(--qc-text-3); }
.qn-search__empty { padding: 24px; text-align: center; color: var(--qc-text-3); font-size: .9rem; }

/* ============================================================
   PREMIUM POLISH — depth, motion, micro-interactions, mobile
   (restrained, monochrome; lifts every q-corp page)
   ============================================================ */

/* Subtle depth texture on alternating bands */
.qc-band { position: relative; isolation: isolate; }
.qc-band::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 90% at 50% -10%, rgba(255,255,255,.035), transparent 72%),
    linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,0) 30%); }

/* Surfaces get a faint top-light gradient for depth */
.qc-cell, .qc-card, .qc-app, .qc-spec, .qc-metrics, .qc-statbar, .qc-media, .qc-social a, .qc-glass {
  background-image: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0) 42%);
}

/* Interactive cards: premium hover (lift + brighter edge + faint top accent) */
.qc-cell, .qc-app, .qc-social a { position: relative; }
.qc-app, .qc-social a { transition: transform .3s var(--qc-ease), border-color .3s, box-shadow .3s; }
.qc-app:hover, .qc-social a:hover { box-shadow: 0 24px 50px rgba(0,0,0,.5); }
.qc-app::before, .qc-social a::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent); opacity: 0; transition: opacity .3s; }
.qc-app:hover::before, .qc-social a:hover::before { opacity: 1; }

/* Smoother reveal with a touch of scale */
.qc-reveal { transform: translateY(20px) scale(.992); transition: opacity .75s cubic-bezier(.16,1,.3,1), transform .75s cubic-bezier(.16,1,.3,1); }
.qc-reveal.in { transform: none; }

/* Primary button: subtle sheen sweep on hover */
.qc-btn--primary { position: relative; overflow: hidden; }
.qc-btn--primary > * { position: relative; z-index: 1; }
.qc-btn--primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%); transform: translateX(-130%); transition: transform .7s var(--qc-ease); }
.qc-btn--primary:hover::after { transform: translateX(130%); }
.qc-btn { transition: transform .2s var(--qc-ease), background-color .2s, color .2s, border-color .2s, box-shadow .2s; }
.qc-btn--primary:hover, .qc-btn--ghost:hover { transform: translateY(-2px); }

/* Stat / metric numbers: refined metallic monochrome */
.qc-statbar .k, .qc-metrics .k { background: linear-gradient(180deg, #ffffff, #aab2c0); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Eyebrow: a touch more presence */
.qc-eyebrow { padding: 5px 0; }
.qc-eyebrow .ix { background: rgba(255,255,255,.06); }

/* Section heading underline accent on shead */
.qc-shead .qc-h2 { position: relative; }

/* Hairline section separators between stacked sections (depth/rhythm) */
.qc-sec + .qc-sec:not(.qc-band):not(.qc-sec--sm) { border-top: 1px solid rgba(255,255,255,.05); }

/* Spec table polish: zebra + hover */
.qc-spec tbody tr { transition: background-color .15s; }
.qc-spec tbody tr:hover td { background: rgba(255,255,255,.03); }

@media (prefers-reduced-motion: reduce) {
  .qc-btn--primary::after { display: none; }
  .qc-reveal { transform: none; }
}

/* ---- MOBILE refinement ---- */
@media (max-width: 760px) {
  .qc-sec { padding-block: clamp(40px, 9vw, 64px); }
  .qc-sec--sm { padding-block: clamp(28px, 6vw, 44px); }
  .qc-wrap { padding-inline: 18px; }
  .qc-display { font-size: clamp(1.85rem, 7.5vw, 2.5rem); line-height: 1.08; }
  .qc-h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
  .qc-lead { font-size: 1.02rem; }
  .qc-spec th, .qc-spec td { padding: 11px 14px; font-size: .88rem; }
  .qc-spec td:first-child { width: 46%; }
  .qc-statbar .k, .qc-metrics .k { font-size: 1.5rem; }
  body.q-corp .home_page_header_heading { font-size: clamp(1.85rem, 8vw, 2.5rem) !important; }
  body.q-corp .background_overlay { margin-bottom: 32px; border-radius: 12px; }
  body.q-corp .background_overlay img { height: clamp(180px, 46vw, 280px); }
  .qai-launch span { display: none; }
  .qai-launch { padding: 13px; }
}

/* ---- responsive ---- */
@media (max-width: 920px) {
  .qc-split { grid-template-columns: 1fr; }
  .qc-split--rev .qc-media { order: 0; }
  .qc-statbar, .qc-metrics { grid-template-columns: repeat(2,1fr); }
  .qc-statbar > div:nth-child(2), .qc-metrics > div:nth-child(2) { border-right: 0; }
  .qc-statbar > div:nth-child(-n+2), .qc-metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--qc-line); }
  .qc-grid { grid-template-columns: 1fr 1fr; }
  .qc-grid--3 .qc-cell:nth-child(3n) { border-right: 1px solid var(--qc-line); }
  .qc-grid--3 .qc-cell:nth-child(2n) { border-right: 0; }
  .qc-apps { grid-template-columns: 1fr 1fr; }
  .qc-quick { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .qc-statbar, .qc-metrics, .qc-grid, .qc-apps, .qc-quick { grid-template-columns: 1fr; }
  .qc-statbar > div, .qc-metrics > div, .qc-cell { border-right: 0 !important; }
  .qc-cta-row .qc-btn { width: 100%; justify-content: center; }
}

/* ============================================================
   FLUID SCALING — phone to 100 inch TV; no overflow anywhere
   ============================================================ */
html, body { max-width: 100%; overflow-x: hidden; }
body.q-corp .qc { overflow-x: clip; }
.qc img, .qc table, .qc pre { max-width: 100%; }
.qc-display, .qc-h2, .qc-h3, .home_page_header_heading { overflow-wrap: anywhere; }

/* Large displays: grow the container so content fills big screens */
@media (min-width: 1500px) { :root { --qc-maxw: 1320px; } }
@media (min-width: 1800px) { :root { --qc-maxw: 1480px; } }
@media (min-width: 2200px) { :root { --qc-maxw: 1680px; } }
@media (min-width: 2800px) { :root { --qc-maxw: 2000px; } html { font-size: 18px; } }
@media (min-width: 3600px) { :root { --qc-maxw: 2440px; } html { font-size: 21px; } }
@media (min-width: 5000px) { :root { --qc-maxw: 3200px; } html { font-size: 26px; } }

/* Performance: skip rendering of off-screen sections on long pages (Chrome/Edge/Safari 18+) */
.qc-sec { content-visibility: auto; contain-intrinsic-size: auto 600px; }
.qc-hero, .header_section { content-visibility: visible; }

/* Mobile hero: force the heading to wrap and fit the viewport */
@media (max-width: 760px) {
  html, body { overflow-x: hidden !important; }
  body.q-corp .header_section,
  body.q-corp .header_section .container,
  body.q-corp .qc .header_content { max-width: 100vw !important; width: 100% !important; box-sizing: border-box !important; overflow-wrap: anywhere; display: block !important; }
  body.q-corp .qc .header_content { padding-left: 16px !important; padding-right: 16px !important; text-align: center !important; }
  body.q-corp .qc .home_page_header_heading { width: 100% !important; max-width: 100% !important; white-space: normal !important; word-break: normal; overflow-wrap: break-word !important; text-align: center !important; font-size: clamp(1.3rem, 5.6vw, 1.9rem) !important; line-height: 1.12 !important; }
  body.q-corp .qc .header_section .after_heading { width: 100% !important; max-width: 100% !important; white-space: normal !important; text-align: center !important; }
}

/* Hard overflow guards: code blocks, tables, grid/flex children */
.qc-code { max-width: 100%; overflow: hidden; }
.qc-code pre { width: 100%; max-width: 100%; box-sizing: border-box; overflow-x: auto; }
.qc-wrap, .qc-split > *, .qc-grid > *, .qc-cell, .qc-app, .qc-media, .qc-metrics > *, .qc-statbar > * { min-width: 0; }
.qc-spec { table-layout: fixed; width: 100%; }
.qc-spec td, .qc-spec th { overflow-wrap: anywhere; word-break: break-word; }

/* ============================================================
   WALLET DEVICES — animated 3D phone (QMask) + 3D Ledger
   ============================================================ */
.qph-stage { display:flex; justify-content:center; align-items:center; padding:24px 10px; perspective:1500px; }
.qph { width:236px; max-width:72%; aspect-ratio:9/19; border-radius:34px; padding:9px;
  background:linear-gradient(150deg,#33363d,#101116 58%,#070809);
  box-shadow:0 50px 90px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.18), 0 0 0 2px rgba(255,255,255,.05);
  transform-style:preserve-3d; position:relative; animation:qph-sway 7s ease-in-out infinite; }
@keyframes qph-sway { 0%,100%{ transform:perspective(1500px) rotateY(-17deg) rotateX(7deg) translateY(0); } 50%{ transform:perspective(1500px) rotateY(-7deg) rotateX(3deg) translateY(-12px); } }
.qph__screen { width:100%; height:100%; border-radius:26px; overflow:hidden; display:flex; flex-direction:column; padding:18px 14px; color:#f3f4f6;
  background:radial-gradient(120% 75% at 50% 0%, #1c1f29, #0a0b0e); position:relative; }
.qph__notch { position:absolute; top:9px; left:50%; transform:translateX(-50%); width:42%; height:18px; background:#050607; border-radius:0 0 12px 12px; }
.qph__top { margin-top:30px; font-family:var(--qc-font-mono); font-size:.6rem; letter-spacing:.1em; color:#868d98; text-transform:uppercase; }
.qph__bal { font-family:var(--qc-font-head); font-weight:700; font-size:1.6rem; margin-top:4px; }
.qph__row { display:flex; align-items:center; justify-content:space-between; padding:9px 0; border-bottom:1px solid rgba(255,255,255,.08); font-size:.78rem; }
.qph__row span:last-child { color:#aeb4be; }
.qph__chip { margin-top:auto; align-self:flex-start; font-family:var(--qc-font-mono); font-size:.6rem; padding:5px 9px; border-radius:999px; border:1px solid rgba(255,255,255,.2); display:inline-flex; align-items:center; gap:6px; }
.qph__chip .d { width:6px; height:6px; border-radius:50%; background:#fff; box-shadow:0 0 8px #fff; animation:qph-pulse 1.6s ease-in-out infinite; }
@keyframes qph-pulse { 0%,100%{opacity:1} 50%{opacity:.25} }

.qled-stage { display:flex; justify-content:center; align-items:center; padding:28px 10px; perspective:1300px; }
.qled { width:300px; max-width:84%; height:92px; border-radius:18px; display:flex; align-items:center; padding:0 16px; position:relative;
  background:linear-gradient(135deg,#d2d5db 0%,#9a9ea7 30%,#54575e 65%,#2a2c31 100%);
  box-shadow:0 34px 64px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 6px rgba(0,0,0,.4);
  transform-style:preserve-3d; animation:qled-sway 8s ease-in-out infinite; }
@keyframes qled-sway { 0%,100%{ transform:perspective(1300px) rotateY(-23deg) rotateX(11deg) translateY(0);} 50%{ transform:perspective(1300px) rotateY(-12deg) rotateX(6deg) translateY(-8px);} }
.qled__screen { width:128px; height:50px; border-radius:8px; background:#040405; border:2px solid #16181c; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
  box-shadow:inset 0 0 16px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.04); }
.qled__screen b { font-family:var(--qc-font-head); font-weight:700; font-size:.74rem; color:#f3f4f6; letter-spacing:.02em; }
.qled__screen span { font-family:var(--qc-font-mono); font-size:.54rem; color:#7e8590; letter-spacing:.14em; }
.qled__btns { margin-left:auto; display:flex; gap:9px; }
.qled__btn { width:13px; height:13px; border-radius:50%; background:radial-gradient(circle at 35% 30%, #f3f4f6, #82868e); box-shadow:0 2px 5px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.7); }

/* Nav live status pill (sparks the top menu to life) */
.qn__live { display:inline-flex; align-items:center; gap:7px; padding:7px 12px; border-radius:999px; border:1px solid var(--qc-line); background:rgba(255,255,255,.04); color:#d7dbe2; font-family:var(--qc-font-mono); font-size:.68rem; letter-spacing:.1em; text-transform:uppercase; text-decoration:none; transition:background-color .2s,color .2s,border-color .2s; }
.qn__live:hover { background:rgba(255,255,255,.1); color:#fff; border-color:var(--qc-line-2); }
.qn__live-dot { width:7px; height:7px; border-radius:50%; background:#fff; box-shadow:0 0 9px rgba(255,255,255,.9); animation:qn-pulse 1.8s ease-in-out infinite; }
@keyframes qn-pulse { 0%,100%{ opacity:1; transform:scale(1); } 50%{ opacity:.35; transform:scale(.7); } }
@media (max-width:1200px){ .qn__live .txt { display:none; } .qn__live { padding:8px; } }

/* ===== interaction polish: scroll progress + pointer-aware cards ===== */
.qc-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, rgba(255,255,255,.25), #ffffff); z-index: 2000; pointer-events: none; will-change: transform; }
@media (hover: hover) and (pointer: fine) {
  .qc-cell, .qc-card { position: relative; }
  .qc-cell::after, .qc-card::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
    background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.07), transparent 62%);
    opacity: 0; transition: opacity .35s var(--qc-ease);
  }
  .qc-cell:hover::after, .qc-card:hover::after { opacity: 1; }
  .qc-cell > *, .qc-card > * { position: relative; z-index: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .qc-progress { display: none; }
  .qc-reveal { opacity: 1 !important; transform: none !important; }
}


/* ============ WALLET DEVICES — iframe fills the card; content self-scales to fit (JS) ============ */
.qmask-stage, .qmask-laptop { position: relative; width: 100%; margin-inline: auto; overflow: hidden;
  border: 1px solid rgba(255,255,255,.30); border-radius: 18px;
  background: radial-gradient(120% 120% at 50% 0%, rgba(255,255,255,.07), rgba(255,255,255,.02) 62%); }
.qmask-stage { max-width: 420px; aspect-ratio: 1 / 1; }
.qmask-laptop { max-width: 400px; aspect-ratio: 820 / 560; }
.qmask-stage iframe, .qmask-laptop iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; display: block; }
.qmask-ledger { display: grid; place-items: center; padding: 18px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.30); border-radius: 16px;
  background: radial-gradient(135% 120% at 50% 12%, rgba(255,255,255,.10), rgba(255,255,255,.03) 60%); }
.qmask-ledger img { width: 100%; max-width: 300px; height: auto; max-height: 200px; object-fit: contain; display: block; filter: drop-shadow(0 16px 34px rgba(0,0,0,.55)); }
/* Wallet page: tighter rhythm (less chunky) */
body.q-corp .qc-wallet .qc-sec { padding-block: clamp(36px, 4.4vw, 60px); }
body.q-corp .qc-wallet .qc-split { gap: clamp(24px, 3.5vw, 44px); align-items: center; }
body.q-corp .qc-wallet .qc-spec td, body.q-corp .qc-wallet .qc-spec th { padding-top: 9px; padding-bottom: 9px; }

/* Mobile overflow guard: let social grid items shrink and their labels wrap */
.qc-social a { min-width: 0; }
.qc-social a > * { max-width: 100%; overflow-wrap: anywhere; text-align: center; }
.qc-bars, .qc-bars > * { min-width: 0; }

/* Code blocks must be allowed to shrink so the <pre> scrolls instead of forcing page width */
.qc-code, .qc-code pre, .qc-code code { min-width: 0 !important; }

/* On mobile, wrap code lines instead of horizontal scroll so nothing expands the page */
@media (max-width: 760px) {
  .qc-code pre, .qc-code code { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
}
