/*
Theme Name: Quanta
Theme URI:
Author: Quanta Systems
Author URI:
Description: Quanta is a high-density, data-driven WordPress theme built around a quantum dot-matrix aesthetic. Command-palette navigation, monospace metrics, live tickers, micro-indicator grids and compact article streams deliver an information-rich trading-platform feel.
Version: 1.0.0
Requires at least: 5.6
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: quanta
Tags: blog, news, one-column, two-columns, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   Quanta — design tokens
   ========================================================================== */
:root {
    --qnt-blue: #2563eb;
    --qnt-red: #dc2626;
    --qnt-green: #16a34a;
    --qnt-dark: #0f172a;
    --qnt-bg: #f8fafc;
    --qnt-card: #ffffff;
    --qnt-border: #e2e8f0;

    --qnt-ink: #0f172a;
    --qnt-ink-soft: #475569;
    --qnt-ink-faint: #94a3b8;
    --qnt-line: #e2e8f0;
    --qnt-line-soft: #eef2f6;

    --qnt-blue-soft: #eff4ff;
    --qnt-green-soft: #ecfdf3;
    --qnt-red-soft: #fef2f2;

    --qnt-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --qnt-mono: "SF Mono", "Fira Code", "JetBrains Mono", "Roboto Mono", Menlo, Consolas, monospace;

    --qnt-radius: 8px;
    --qnt-radius-sm: 5px;
    --qnt-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
    --qnt-shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);

    --qnt-max: 1240px;
    --qnt-gutter: 24px;
    --qnt-nav-h: 60px;

    --qnt-dot: radial-gradient(circle, #e2e8f0 1px, transparent 1px);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--qnt-font);
    font-size: .9375rem;
    line-height: 1.65;
    color: var(--qnt-ink);
    background-color: var(--qnt-bg);
    background-image: var(--qnt-dot);
    background-size: 20px 20px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--qnt-blue); text-decoration: none; transition: color .15s ease, opacity .15s ease; }
a:hover { color: #1d4ed8; }

h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.1875rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; }

.qnt-mono, .qnt-num { font-family: var(--qnt-mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

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

/* ==========================================================================
   Layout primitives
   ========================================================================== */
.qnt-container { width: 100%; max-width: var(--qnt-max); margin: 0 auto; padding: 0 var(--qnt-gutter); }
.qnt-section { padding: 48px 0; position: relative; }
.qnt-section--tight { padding: 32px 0; }

.qnt-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.qnt-sec-title { font-size: 1.375rem; margin: 0; }
.qnt-sec-kicker { display: block; font-family: var(--qnt-mono); font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--qnt-blue); margin-bottom: 8px; }
.qnt-sec-desc { color: var(--qnt-ink-soft); margin: 0; max-width: 46ch; font-size: .875rem; }

.qnt-dot-panel { background-image: var(--qnt-dot); background-size: 20px 20px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.qnt-btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .8125rem; font-weight: 600; line-height: 1;
    padding: 11px 18px; border-radius: var(--qnt-radius-sm);
    border: 1px solid transparent; white-space: nowrap;
    transition: transform .12s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.qnt-btn:active { transform: translateY(1px); }
.qnt-btn svg { width: 15px; height: 15px; }
.qnt-btn--primary { background: var(--qnt-blue); color: #fff; box-shadow: 0 1px 2px rgba(37, 99, 235, .4); }
.qnt-btn--primary:hover { background: #1d4ed8; color: #fff; }
.qnt-btn--ghost { background: var(--qnt-card); color: var(--qnt-ink); border-color: var(--qnt-border); }
.qnt-btn--ghost:hover { border-color: var(--qnt-blue); color: var(--qnt-blue); }
.qnt-btn--dark { background: var(--qnt-dark); color: #fff; }
.qnt-btn--dark:hover { background: #1e293b; color: #fff; }
.qnt-btn--onblue { background: #fff; color: var(--qnt-blue); }
.qnt-btn--onblue:hover { background: #eff4ff; color: #1d4ed8; }
.qnt-btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.qnt-btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .1); color: #fff; }

/* ==========================================================================
   Command-palette navigation
   ========================================================================== */
.qnt-cmdnav {
    position: sticky; top: 0; z-index: 900;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--qnt-border);
}
.qnt-cmdnav__inner { display: flex; align-items: center; gap: 20px; height: var(--qnt-nav-h); }

.qnt-logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.0625rem; letter-spacing: -.03em; color: var(--qnt-ink); flex: 0 0 auto; }
.qnt-logo:hover { color: var(--qnt-ink); }
.qnt-logo__mark { width: 26px; height: 26px; border-radius: 6px; background: var(--qnt-blue); display: grid; place-items: center; color: #fff; position: relative; overflow: hidden; }
.qnt-logo__mark::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255, 255, 255, .55) 1px, transparent 1px); background-size: 6px 6px; }
.qnt-logo__mark svg { width: 15px; height: 15px; position: relative; z-index: 1; }
.qnt-logo__sub { font-family: var(--qnt-mono); font-size: .625rem; font-weight: 500; color: var(--qnt-ink-faint); letter-spacing: .1em; }

/* search */
.qnt-cmdsearch { flex: 1 1 auto; max-width: 460px; position: relative; }
.qnt-cmdsearch__field {
    display: flex; align-items: center; gap: 9px; width: 100%;
    background: var(--qnt-bg); border: 1px solid var(--qnt-border);
    border-radius: 999px; padding: 0 8px 0 14px; height: 38px;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.qnt-cmdsearch__field:focus-within { border-color: var(--qnt-blue); background: #fff; box-shadow: 0 0 0 3px var(--qnt-blue-soft); }
.qnt-cmdsearch__field svg { width: 15px; height: 15px; color: var(--qnt-ink-faint); flex: 0 0 auto; }
.qnt-cmdsearch__input { flex: 1 1 auto; border: 0; background: transparent; outline: none; font-size: .8125rem; color: var(--qnt-ink); min-width: 0; }
.qnt-cmdsearch__input::placeholder { color: var(--qnt-ink-faint); }
.qnt-kbd {
    font-family: var(--qnt-mono); font-size: .625rem; line-height: 1;
    color: var(--qnt-ink-soft); background: #fff; border: 1px solid var(--qnt-border);
    border-bottom-width: 2px; border-radius: 4px; padding: 4px 6px; flex: 0 0 auto; white-space: nowrap;
}

/* menu */
.qnt-cmdnav__menu { flex: 0 0 auto; margin-left: auto; }
.qnt-nav { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.qnt-nav a { display: block; padding: 8px 12px; font-size: .8125rem; font-weight: 500; color: var(--qnt-ink-soft); border-radius: var(--qnt-radius-sm); }
.qnt-nav a:hover { color: var(--qnt-blue); background: var(--qnt-blue-soft); }
.qnt-nav .current-menu-item > a, .qnt-nav .current_page_item > a { color: var(--qnt-blue); }
.qnt-cmdnav__cta { flex: 0 0 auto; }

.qnt-nav-toggle { display: none; width: 38px; height: 38px; border: 1px solid var(--qnt-border); border-radius: var(--qnt-radius-sm); background: #fff; align-items: center; justify-content: center; color: var(--qnt-ink); }
.qnt-nav-toggle svg { width: 18px; height: 18px; }

.qnt-langswitch { display: flex; align-items: center; gap: 2px; border: 1px solid var(--qnt-border); border-radius: 999px; padding: 2px; background: var(--qnt-bg); }
.qnt-langswitch a { font-family: var(--qnt-mono); font-size: .6875rem; padding: 3px 9px; border-radius: 999px; color: var(--qnt-ink-soft); }
.qnt-langswitch a.is-active { background: var(--qnt-dark); color: #fff; }

/* ==========================================================================
   Hero
   ========================================================================== */
.qnt-hero { padding: 56px 0 48px; position: relative; overflow: hidden; }
.qnt-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.qnt-hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--qnt-mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--qnt-blue); background: var(--qnt-blue-soft); border: 1px solid #dbe6ff; border-radius: 999px; padding: 5px 12px; margin-bottom: 20px; }
.qnt-hero__eyebrow .qnt-pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--qnt-green); box-shadow: 0 0 0 0 rgba(22, 163, 74, .6); animation: qnt-pulse 2s infinite; }
.qnt-hero__title { font-size: clamp(2rem, 4.4vw, 3.125rem); line-height: 1.06; letter-spacing: -.035em; margin: 0 0 18px; }
.qnt-hero__title .qnt-accent { color: var(--qnt-blue); position: relative; }
.qnt-hero__sub { font-size: 1.0625rem; color: var(--qnt-ink-soft); max-width: 52ch; margin: 0 0 28px; }
.qnt-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.qnt-hero__stats { display: flex; gap: 32px; flex-wrap: wrap; border-top: 1px solid var(--qnt-border); padding-top: 20px; }
.qnt-hero__stat-num { font-family: var(--qnt-mono); font-size: 1.5rem; font-weight: 700; color: var(--qnt-ink); letter-spacing: -.02em; }
.qnt-hero__stat-lbl { font-size: .75rem; color: var(--qnt-ink-faint); text-transform: uppercase; letter-spacing: .08em; }

/* hero dashboard */
.qnt-dash { background: var(--qnt-card); border: 1px solid var(--qnt-border); border-radius: 12px; box-shadow: var(--qnt-shadow); overflow: hidden; }
.qnt-dash__bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--qnt-border); background: #fcfdfe; }
.qnt-dash__dots { display: flex; gap: 5px; }
.qnt-dash__dots i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.qnt-dash__dots i:nth-child(1) { background: #fca5a5; }
.qnt-dash__dots i:nth-child(2) { background: #fcd34d; }
.qnt-dash__dots i:nth-child(3) { background: #86efac; }
.qnt-dash__title { font-family: var(--qnt-mono); font-size: .6875rem; color: var(--qnt-ink-faint); margin-left: 4px; }
.qnt-dash__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--qnt-border); }
.qnt-minichart { background: var(--qnt-card); padding: 12px; min-height: 78px; display: flex; flex-direction: column; justify-content: space-between; }
.qnt-minichart__lbl { font-family: var(--qnt-mono); font-size: .5625rem; color: var(--qnt-ink-faint); letter-spacing: .04em; text-transform: uppercase; }
.qnt-minichart__val { font-family: var(--qnt-mono); font-size: .9375rem; font-weight: 700; color: var(--qnt-ink); }
.qnt-spark { display: flex; align-items: flex-end; gap: 2px; height: 24px; }
.qnt-spark i { flex: 1; background: var(--qnt-blue); border-radius: 1px; opacity: .8; animation: qnt-bar 1.6s ease-in-out infinite alternate; }
.qnt-spark--green i { background: var(--qnt-green); }
.qnt-spark--red i { background: var(--qnt-red); }
.qnt-minichart__trend { font-family: var(--qnt-mono); font-size: .625rem; font-weight: 600; }
.qnt-up { color: var(--qnt-green); }
.qnt-down { color: var(--qnt-red); }

/* ==========================================================================
   Ticker
   ========================================================================== */
.qnt-ticker { background: var(--qnt-dark); border-top: 1px solid #1e293b; border-bottom: 1px solid #1e293b; overflow: hidden; position: relative; }
.qnt-ticker::before, .qnt-ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none; }
.qnt-ticker::before { left: 0; background: linear-gradient(90deg, var(--qnt-dark), transparent); }
.qnt-ticker::after { right: 0; background: linear-gradient(270deg, var(--qnt-dark), transparent); }
.qnt-ticker__track { display: flex; width: max-content; animation: qnt-ticker 40s linear infinite; }
.qnt-ticker:hover .qnt-ticker__track { animation-play-state: paused; }
.qnt-ticker__group { display: flex; }
.qnt-tick { display: flex; align-items: center; gap: 10px; padding: 12px 26px; border-right: 1px solid #1e293b; white-space: nowrap; }
.qnt-tick__sym { font-family: var(--qnt-mono); font-size: .75rem; font-weight: 600; color: #e2e8f0; letter-spacing: .04em; }
.qnt-tick__px { font-family: var(--qnt-mono); font-size: .8125rem; font-weight: 700; color: #fff; }
.qnt-tick__chg { font-family: var(--qnt-mono); font-size: .75rem; font-weight: 600; padding: 2px 7px; border-radius: 4px; }
.qnt-tick__chg.qnt-up { color: #4ade80; background: rgba(22, 163, 74, .16); }
.qnt-tick__chg.qnt-down { color: #f87171; background: rgba(220, 38, 38, .16); }

/* ==========================================================================
   Micro-metric grid
   ========================================================================== */
.qnt-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.qnt-metric { background: var(--qnt-card); border: 1px solid var(--qnt-border); border-radius: var(--qnt-radius); padding: 14px 16px; transition: border-color .15s ease, box-shadow .15s ease, transform .12s ease; }
.qnt-metric:hover { border-color: #cbd5e1; box-shadow: var(--qnt-shadow-sm); transform: translateY(-2px); }
.qnt-metric__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.qnt-metric__icon { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; background: var(--qnt-blue-soft); color: var(--qnt-blue); }
.qnt-metric__icon svg { width: 15px; height: 15px; }
.qnt-metric__icon--green { background: var(--qnt-green-soft); color: var(--qnt-green); }
.qnt-metric__icon--red { background: var(--qnt-red-soft); color: var(--qnt-red); }
.qnt-metric__arrow { font-family: var(--qnt-mono); font-size: .75rem; font-weight: 700; }
.qnt-metric__val { font-family: var(--qnt-mono); font-size: 1.375rem; font-weight: 700; color: var(--qnt-ink); letter-spacing: -.02em; line-height: 1.1; }
.qnt-metric__lbl { font-size: .75rem; color: var(--qnt-ink-faint); margin-top: 2px; }

/* ==========================================================================
   Features (2-col)
   ========================================================================== */
.qnt-features { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.qnt-features__lead h2 { font-size: 1.75rem; }
.qnt-features__lead p { color: var(--qnt-ink-soft); }
.qnt-featlist { display: flex; flex-direction: column; gap: 2px; }
.qnt-featrow { display: flex; gap: 16px; padding: 18px; border-radius: var(--qnt-radius); border: 1px solid transparent; transition: background .15s ease, border-color .15s ease; }
.qnt-featrow:hover { background: var(--qnt-card); border-color: var(--qnt-border); }
.qnt-featrow__icon { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 9px; display: grid; place-items: center; background: var(--qnt-dark); color: #fff; }
.qnt-featrow__icon svg { width: 19px; height: 19px; }
.qnt-featrow h3 { font-size: 1rem; margin: 0 0 4px; }
.qnt-featrow p { margin: 0; font-size: .8125rem; color: var(--qnt-ink-soft); }

/* ==========================================================================
   Product panels
   ========================================================================== */
.qnt-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.qnt-prod { background: var(--qnt-card); border: 1px solid var(--qnt-border); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .18s ease, transform .18s ease; }
.qnt-prod:hover { box-shadow: var(--qnt-shadow); transform: translateY(-3px); }
.qnt-prod__head { display: flex; align-items: center; gap: 9px; padding: 12px 14px; border-bottom: 1px solid var(--qnt-border); background: var(--qnt-dark); }
.qnt-prod__head svg { width: 16px; height: 16px; color: #60a5fa; }
.qnt-prod__name { font-family: var(--qnt-mono); font-size: .75rem; font-weight: 600; color: #fff; letter-spacing: .04em; }
.qnt-prod__badge { margin-left: auto; font-family: var(--qnt-mono); font-size: .5625rem; color: #4ade80; background: rgba(22, 163, 74, .16); border-radius: 4px; padding: 2px 6px; }
.qnt-prod__rows { padding: 6px 0; }
.qnt-prod__row { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; font-size: .8125rem; border-bottom: 1px solid var(--qnt-line-soft); }
.qnt-prod__row:last-child { border-bottom: 0; }
.qnt-prod__row span:first-child { color: var(--qnt-ink-soft); }
.qnt-prod__row span:last-child { font-family: var(--qnt-mono); font-weight: 600; color: var(--qnt-ink); }
.qnt-prod__chart { height: 62px; margin: 8px 14px 14px; border-radius: 6px; background: linear-gradient(180deg, var(--qnt-blue-soft), transparent); border: 1px dashed var(--qnt-border); display: flex; align-items: flex-end; gap: 3px; padding: 8px; }
.qnt-prod__chart i { flex: 1; background: var(--qnt-blue); opacity: .55; border-radius: 2px 2px 0 0; }
.qnt-prod__foot { margin-top: auto; padding: 12px 14px; border-top: 1px solid var(--qnt-border); }
.qnt-prod__link { font-size: .8125rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.qnt-prod__link svg { width: 14px; height: 14px; }

/* ==========================================================================
   Article data-stream (dense rows)
   ========================================================================== */
.qnt-stream { border-top: 1px solid var(--qnt-border); }
.qnt-stream__row { display: grid; grid-template-columns: 96px 108px 1fr auto; align-items: center; gap: 18px; padding: 16px 8px; border-bottom: 1px solid var(--qnt-border); transition: background .14s ease; }
.qnt-stream__row:hover { background: var(--qnt-card); }
.qnt-stream__date { font-family: var(--qnt-mono); font-size: .75rem; color: var(--qnt-ink-faint); }
.qnt-stream__cat { font-family: var(--qnt-mono); font-size: .625rem; text-transform: uppercase; letter-spacing: .06em; color: var(--qnt-blue); background: var(--qnt-blue-soft); border-radius: 4px; padding: 3px 8px; justify-self: start; }
.qnt-stream__title { font-size: 1rem; font-weight: 600; margin: 0; letter-spacing: -.01em; }
.qnt-stream__title a { color: var(--qnt-ink); }
.qnt-stream__title a:hover { color: var(--qnt-blue); }
.qnt-stream__time { font-family: var(--qnt-mono); font-size: .6875rem; color: var(--qnt-ink-faint); display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.qnt-stream__time svg { width: 12px; height: 12px; }

/* ==========================================================================
   Live status board (dark)
   ========================================================================== */
.qnt-status { background: var(--qnt-dark); color: #e2e8f0; position: relative; overflow: hidden; }
.qnt-status::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 22px 22px; }
.qnt-status .qnt-container { position: relative; }
.qnt-status .qnt-sec-title { color: #fff; }
.qnt-status .qnt-sec-desc { color: #94a3b8; }
.qnt-status__list { border: 1px solid #1e293b; border-radius: 10px; overflow: hidden; background: rgba(15, 23, 42, .6); }
.qnt-status__row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 20px; padding: 15px 18px; border-bottom: 1px solid #1e293b; }
.qnt-status__row:last-child { border-bottom: 0; }
.qnt-status__svc { display: flex; align-items: center; gap: 11px; font-size: .875rem; font-weight: 500; color: #f1f5f9; }
.qnt-status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--qnt-green); box-shadow: 0 0 0 3px rgba(22, 163, 74, .2); flex: 0 0 auto; }
.qnt-status__dot--warn { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .2); }
.qnt-status__state { font-family: var(--qnt-mono); font-size: .6875rem; text-transform: uppercase; letter-spacing: .08em; color: #4ade80; }
.qnt-status__up { font-family: var(--qnt-mono); font-size: .8125rem; font-weight: 600; color: #94a3b8; }

/* ==========================================================================
   FAQ (numbered, expanded)
   ========================================================================== */
.qnt-faq { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 32px; }
.qnt-faq__item { display: flex; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--qnt-border); }
.qnt-faq__num { font-family: var(--qnt-mono); font-size: .8125rem; font-weight: 700; color: var(--qnt-blue); flex: 0 0 auto; padding-top: 2px; }
.qnt-faq__q { font-size: .9375rem; font-weight: 600; margin: 0 0 5px; }
.qnt-faq__a { font-size: .8125rem; color: var(--qnt-ink-soft); margin: 0; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.qnt-cta { background: var(--qnt-blue); color: #fff; position: relative; overflow: hidden; }
.qnt-cta::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255, 255, 255, .14) 1px, transparent 1px); background-size: 20px 20px; }
.qnt-cta__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 44px 0; }
.qnt-cta h2 { color: #fff; font-size: 1.75rem; margin: 0 0 8px; }
.qnt-cta p { color: rgba(255, 255, 255, .85); margin: 0; max-width: 50ch; }
.qnt-cta__actions { display: flex; gap: 12px; flex: 0 0 auto; }

/* ==========================================================================
   Footer
   ========================================================================== */
.qnt-footer { background: var(--qnt-dark); color: #94a3b8; padding: 48px 0 0; }
.qnt-footer__grid { display: grid; grid-template-columns: 1.6fr .8fr; gap: 48px; padding-bottom: 40px; }
.qnt-footer__brand { display: flex; align-items: center; gap: 9px; color: #fff; font-weight: 800; font-size: 1.0625rem; margin-bottom: 14px; }
.qnt-footer__about { font-size: .8125rem; max-width: 44ch; margin-bottom: 22px; }
.qnt-sitemap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.qnt-sitemap__col h4 { font-family: var(--qnt-mono); font-size: .6875rem; text-transform: uppercase; letter-spacing: .1em; color: #64748b; margin: 0 0 12px; }
.qnt-sitemap__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.qnt-sitemap__col a { font-size: .8125rem; color: #94a3b8; }
.qnt-sitemap__col a:hover { color: #fff; }

.qnt-footer__side h4 { font-family: var(--qnt-mono); font-size: .6875rem; text-transform: uppercase; letter-spacing: .1em; color: #64748b; margin: 0 0 12px; }
.qnt-footstatus { display: flex; flex-direction: column; gap: 9px; margin-bottom: 24px; }
.qnt-footstatus__row { display: flex; align-items: center; gap: 9px; font-size: .8125rem; }
.qnt-footstatus__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--qnt-green); box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); }
.qnt-footstatus__dot--warn { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .18); }
.qnt-social { display: flex; gap: 8px; }
.qnt-social a { width: 34px; height: 34px; border-radius: var(--qnt-radius-sm); border: 1px solid #1e293b; display: grid; place-items: center; color: #94a3b8; transition: all .15s ease; }
.qnt-social a:hover { border-color: var(--qnt-blue); color: #fff; background: rgba(37, 99, 235, .15); }
.qnt-social svg { width: 16px; height: 16px; }
.qnt-footer__bottom { border-top: 1px solid #1e293b; padding: 18px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: .75rem; }
.qnt-footer__bottom .qnt-mono { color: #64748b; }

/* ==========================================================================
   Breadcrumb + page head
   ========================================================================== */
.qnt-crumb-bar { background: var(--qnt-card); border-bottom: 1px solid var(--qnt-border); }
.qnt-crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 13px 0; font-size: .75rem; color: inherit; opacity: .8; }
.qnt-crumb a { color: inherit; opacity: .85; }
.qnt-crumb a:hover { opacity: 1; color: var(--qnt-blue); }
.qnt-crumb__sep { font-family: var(--qnt-mono); opacity: .5; }
.qnt-crumb__current { font-family: var(--qnt-mono); opacity: .6; }

.qnt-pagehead { background: var(--qnt-card); border-bottom: 1px solid var(--qnt-border); padding: 40px 0; position: relative; overflow: hidden; }
.qnt-pagehead::after { content: ""; position: absolute; right: -40px; top: -40px; width: 260px; height: 260px; background-image: var(--qnt-dot); background-size: 18px 18px; opacity: .7; mask-image: radial-gradient(circle, #000, transparent 70%); }
.qnt-pagehead__inner { position: relative; }
.qnt-pagehead h1 { font-size: 2rem; margin: 0 0 8px; }
.qnt-pagehead__meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-family: var(--qnt-mono); font-size: .75rem; color: var(--qnt-ink-faint); }
.qnt-pagehead__meta span { display: inline-flex; align-items: center; gap: 6px; }
.qnt-pagehead__meta svg { width: 14px; height: 14px; opacity: .7; }

/* ==========================================================================
   Content shell (sidebar + body)
   ========================================================================== */
.qnt-shell { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; padding: 40px 0 56px; }
.qnt-sidebar { position: sticky; top: calc(var(--qnt-nav-h) + 20px); display: flex; flex-direction: column; gap: 16px; }
.qnt-sidecard { background: var(--qnt-card); border: 1px solid var(--qnt-border); border-radius: var(--qnt-radius); overflow: hidden; }
.qnt-sidecard__head { font-family: var(--qnt-mono); font-size: .625rem; text-transform: uppercase; letter-spacing: .1em; color: var(--qnt-ink-faint); padding: 10px 14px; border-bottom: 1px solid var(--qnt-border); background: #fcfdfe; }
.qnt-sidecard__body { padding: 12px 14px; }
.qnt-statline { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--qnt-line-soft); font-size: .8125rem; }
.qnt-statline:last-child { border-bottom: 0; }
.qnt-statline span:first-child { color: var(--qnt-ink-soft); }
.qnt-statline span:last-child { font-family: var(--qnt-mono); font-weight: 600; color: var(--qnt-ink); }
.qnt-tagcloud { display: flex; flex-wrap: wrap; gap: 6px; }
.qnt-tagcloud a { font-family: var(--qnt-mono); font-size: .6875rem; color: var(--qnt-ink-soft); background: var(--qnt-bg); border: 1px solid var(--qnt-border); border-radius: 4px; padding: 3px 8px; }
.qnt-tagcloud a:hover { border-color: var(--qnt-blue); color: var(--qnt-blue); background: var(--qnt-blue-soft); }
.qnt-toc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.qnt-toc a { display: block; font-size: .8125rem; color: var(--qnt-ink-soft); padding: 5px 10px; border-left: 2px solid var(--qnt-border); border-radius: 0 4px 4px 0; }
.qnt-toc a:hover, .qnt-toc a.is-active { color: var(--qnt-blue); border-left-color: var(--qnt-blue); background: var(--qnt-blue-soft); }
.qnt-toc .qnt-toc-h3 { padding-left: 22px; font-size: .75rem; }

/* article body */
.qnt-article { background: var(--qnt-card); border: 1px solid var(--qnt-border); border-radius: 10px; padding: 36px 40px; min-width: 0; }
.qnt-article__head { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--qnt-border); }
.qnt-article__title { font-size: 2rem; line-height: 1.15; margin: 0 0 14px; }
.qnt-article__byline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: .8125rem; color: var(--qnt-ink-soft); }
.qnt-avatar { width: 34px; height: 34px; border-radius: 8px; background: var(--qnt-dark); color: #fff; display: grid; place-items: center; font-family: var(--qnt-mono); font-size: .75rem; font-weight: 700; flex: 0 0 auto; }
.qnt-article__feat { margin: 0 0 24px; border-radius: var(--qnt-radius); overflow: hidden; border: 1px solid var(--qnt-border); }
.qnt-entry { font-size: 1rem; line-height: 1.8; color: #1e293b; }
.qnt-entry h2 { font-size: 1.375rem; margin: 1.8em 0 .6em; scroll-margin-top: 90px; }
.qnt-entry h3 { font-size: 1.125rem; margin: 1.5em 0 .5em; scroll-margin-top: 90px; }
.qnt-entry p { margin: 0 0 1.15em; }
.qnt-entry ul, .qnt-entry ol { margin: 0 0 1.15em; }
.qnt-entry li { margin-bottom: .4em; }
.qnt-entry blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--qnt-blue); color: var(--qnt-ink-soft); font-style: italic; }
.qnt-entry a { text-decoration: underline; text-underline-offset: 2px; }
.qnt-entry img { border-radius: var(--qnt-radius); }
.qnt-entry code { font-family: var(--qnt-mono); font-size: .85em; background: var(--qnt-bg); border: 1px solid var(--qnt-border); border-radius: 4px; padding: 1px 5px; }
.qnt-entry pre { background: var(--qnt-dark); color: #e2e8f0; padding: 16px; border-radius: var(--qnt-radius); overflow-x: auto; font-family: var(--qnt-mono); font-size: .8125rem; }
.qnt-entry pre code { background: none; border: 0; color: inherit; padding: 0; }
.qnt-entry table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .875rem; }
.qnt-entry th, .qnt-entry td { border: 1px solid var(--qnt-border); padding: 9px 12px; text-align: left; }
.qnt-entry th { background: var(--qnt-bg); font-family: var(--qnt-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }

/* superscript annotations */
.qnt-note-ref { font-family: var(--qnt-mono); font-size: .62em; vertical-align: super; line-height: 0; color: var(--qnt-blue); padding: 0 1px; }
.qnt-note-ref:hover { text-decoration: underline; }
.qnt-notes { margin-top: 32px; padding-top: 20px; border-top: 1px dashed var(--qnt-border); }
.qnt-notes__title { font-family: var(--qnt-mono); font-size: .6875rem; text-transform: uppercase; letter-spacing: .1em; color: var(--qnt-ink-faint); margin: 0 0 12px; }
.qnt-notes ol { list-style: none; counter-reset: qntnote; margin: 0; padding: 0; }
.qnt-notes li { counter-increment: qntnote; position: relative; padding-left: 30px; font-size: .8125rem; color: var(--qnt-ink-soft); margin-bottom: 8px; }
.qnt-notes li::before { content: counter(qntnote); position: absolute; left: 0; top: 1px; font-family: var(--qnt-mono); font-size: .6875rem; font-weight: 700; color: var(--qnt-blue); background: var(--qnt-blue-soft); border-radius: 4px; width: 20px; height: 20px; display: grid; place-items: center; }

.qnt-article__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--qnt-border); }
.qnt-article__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.qnt-postnav { background: var(--qnt-card); border: 1px solid var(--qnt-border); border-radius: var(--qnt-radius); padding: 16px 18px; }
.qnt-postnav:hover { border-color: var(--qnt-blue); }
.qnt-postnav__lbl { font-family: var(--qnt-mono); font-size: .625rem; text-transform: uppercase; letter-spacing: .1em; color: var(--qnt-ink-faint); margin-bottom: 6px; }
.qnt-postnav__title { font-size: .9375rem; font-weight: 600; color: var(--qnt-ink); }
.qnt-postnav--next { text-align: right; }

/* ==========================================================================
   Archive / listing grid
   ========================================================================== */
.qnt-listing { padding: 40px 0 56px; }
.qnt-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.qnt-card { background: var(--qnt-card); border: 1px solid var(--qnt-border); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease; }
.qnt-card:hover { box-shadow: var(--qnt-shadow); transform: translateY(-3px); border-color: #cbd5e1; }
.qnt-card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--qnt-bg); position: relative; }
.qnt-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.qnt-card:hover .qnt-card__media img { transform: scale(1.04); }
.qnt-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.qnt-card__meta { display: flex; align-items: center; gap: 10px; font-family: var(--qnt-mono); font-size: .6875rem; color: var(--qnt-ink-faint); margin-bottom: 9px; }
.qnt-card__cat { color: var(--qnt-blue); text-transform: uppercase; letter-spacing: .05em; }
.qnt-card__title { font-size: 1.0625rem; line-height: 1.3; margin: 0 0 8px; }
.qnt-card__title a { color: var(--qnt-ink); }
.qnt-card__title a:hover { color: var(--qnt-blue); }
.qnt-card__excerpt { font-size: .8125rem; color: var(--qnt-ink-soft); margin: 0 0 14px; }
.qnt-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-family: var(--qnt-mono); font-size: .6875rem; color: var(--qnt-ink-faint); padding-top: 12px; border-top: 1px solid var(--qnt-line-soft); }

.qnt-pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 40px; }
.qnt-pagination .page-numbers { font-family: var(--qnt-mono); font-size: .8125rem; min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--qnt-border); border-radius: var(--qnt-radius-sm); color: var(--qnt-ink-soft); background: var(--qnt-card); padding: 0 10px; }
.qnt-pagination .page-numbers.current { background: var(--qnt-blue); border-color: var(--qnt-blue); color: #fff; }
.qnt-pagination .page-numbers:hover:not(.current) { border-color: var(--qnt-blue); color: var(--qnt-blue); }

.qnt-empty { text-align: center; padding: 60px 20px; background: var(--qnt-card); border: 1px dashed var(--qnt-border); border-radius: 10px; }
.qnt-empty h3 { color: var(--qnt-ink-soft); }

/* ==========================================================================
   Search
   ========================================================================== */
.qnt-searchform { display: flex; gap: 8px; max-width: 520px; }
.qnt-searchform__input { flex: 1; height: 42px; padding: 0 14px; border: 1px solid var(--qnt-border); border-radius: var(--qnt-radius-sm); background: var(--qnt-card); font-size: .875rem; outline: none; }
.qnt-searchform__input:focus { border-color: var(--qnt-blue); box-shadow: 0 0 0 3px var(--qnt-blue-soft); }
.qnt-searchform__submit { height: 42px; }

/* ==========================================================================
   404
   ========================================================================== */
.qnt-404 { text-align: center; padding: 80px 20px; }
.qnt-404__code { font-family: var(--qnt-mono); font-size: clamp(4rem, 16vw, 9rem); font-weight: 800; line-height: 1; color: var(--qnt-border); letter-spacing: -.04em; }
.qnt-404 h1 { font-size: 1.75rem; margin: 8px 0 12px; }
.qnt-404 p { color: var(--qnt-ink-soft); max-width: 46ch; margin: 0 auto 24px; }

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes qnt-pulse { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .6); } 70% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }
@keyframes qnt-ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes qnt-bar { from { transform: scaleY(.4); } to { transform: scaleY(1); } }
.qnt-spark i { transform-origin: bottom; }
@keyframes qnt-fadeup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.qnt-reveal { opacity: 0; }
.qnt-reveal.is-in { animation: qnt-fadeup .5s cubic-bezier(.22, 1, .36, 1) forwards; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .qnt-ticker__track { animation: none; }
}

/* ==========================================================================
   Responsive — kept last per convention
   ========================================================================== */
@media (max-width: 1080px) {
    .qnt-hero__grid { grid-template-columns: 1fr; gap: 36px; }
    .qnt-features { grid-template-columns: 1fr; gap: 28px; }
    .qnt-metrics { grid-template-columns: repeat(3, 1fr); }
    .qnt-products { grid-template-columns: 1fr 1fr; }
    .qnt-shell { grid-template-columns: 1fr; gap: 24px; }
    .qnt-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
    .qnt-sidecard { flex: 1 1 240px; }
    .qnt-footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 860px) {
    .qnt-cmdnav__menu, .qnt-cmdnav__cta { display: none; }
    .qnt-nav-toggle { display: flex; }
    .qnt-cmdsearch { max-width: none; }
    .qnt-cards { grid-template-columns: 1fr 1fr; }
    .qnt-faq { grid-template-columns: 1fr; }
    .qnt-stream__row { grid-template-columns: 84px 1fr; gap: 10px 14px; }
    .qnt-stream__cat { grid-column: 2; justify-self: start; }
    .qnt-stream__title { grid-column: 2; }
    .qnt-stream__time { grid-column: 2; }
    .qnt-cta__inner { flex-direction: column; align-items: flex-start; }
    .qnt-cmdnav__menu.is-open { display: block; position: absolute; top: var(--qnt-nav-h); left: 0; right: 0; background: var(--qnt-card); border-bottom: 1px solid var(--qnt-border); box-shadow: var(--qnt-shadow); padding: 8px var(--qnt-gutter) 16px; }
    .qnt-cmdnav__menu.is-open .qnt-nav { flex-direction: column; align-items: stretch; gap: 0; }
    .qnt-cmdnav__menu.is-open .qnt-nav a { padding: 12px; border-bottom: 1px solid var(--qnt-line-soft); }
    .qnt-cmdnav__menu.is-open .qnt-cmdnav__cta-mobile { display: block; margin-top: 14px; }
}

@media (max-width: 640px) {
    :root { --qnt-gutter: 16px; }
    .qnt-metrics { grid-template-columns: 1fr 1fr; }
    .qnt-products { grid-template-columns: 1fr; }
    .qnt-cards { grid-template-columns: 1fr; }
    .qnt-article { padding: 24px 20px; }
    .qnt-article__nav { grid-template-columns: 1fr; }
    .qnt-sitemap { grid-template-columns: 1fr 1fr; }
    .qnt-hero__stats { gap: 20px; }
    .qnt-logo__sub { display: none; }
    .qnt-dash__grid { grid-template-columns: repeat(2, 1fr); }
}

/* QODER page banner strip */
.qnt-page-banner{width:100%;margin:0 0 24px;overflow:hidden;border-radius:12px;}
.qnt-page-banner img{display:block;width:100%;height:clamp(180px,30vw,360px);object-fit:cover;}
