/* ==========================================================================
   AetherQuant — Astroid SaaS preset stylesheet  (v1.0.0)
   Replaces the Tailwind CDN build used by aetherquant_landing_page.html.
   Everything is namespaced with .aq-* so it cannot clash with Bootstrap 5.
   Light mode = <html class="aq-light">  (toggled by aetherquant.js)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --aq-bg: #06090F;  --aq-bg2: #080C14;  --aq-bg3: #090D16;  --aq-bar: rgba(4,7,12,.95);
  --aq-nav: rgba(6,9,15,.86);  --aq-inset: #06090F;  --aq-obsidian: #0D131F;  --aq-deep: #0B111D;
  --aq-text: #F8FAFC;  --aq-title: #FFFFFF;
  --aq-s200: #E2E8F0;  --aq-s300: #CBD5E1;  --aq-s400: #94A3B8;  --aq-s500: #64748B;
  --aq-line: rgba(255,255,255,.08);  --aq-line2: rgba(255,255,255,.06);  --aq-line3: rgba(255,255,255,.12);
  --aq-fill: rgba(255,255,255,.04);  --aq-fill2: rgba(255,255,255,.07);  --aq-fill3: rgba(255,255,255,.12);
  --aq-grid: rgba(255,255,255,.03);
  --aq-em: #34D399;  --aq-em3: #6EE7B7;  --aq-cy: #22D3EE;  --aq-cy3: #67E8F9;
  --aq-rose: #FB7185;  --aq-amber: #FCD34D;
  --aq-card: linear-gradient(180deg, rgba(17,24,39,.78) 0%, rgba(13,19,31,.94) 100%);
  --aq-shadow: 0 20px 40px -15px rgba(0,0,0,.7);
  --aq-btn-ink: #020617;
  --aq-grad: linear-gradient(90deg, #34D399, #22D3EE);
  --aq-grad-hover: linear-gradient(90deg, #6EE7B7, #67E8F9);
  --aq-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --aq-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
html.aq-light {
  --aq-bg: #F8FAFC;  --aq-bg2: #F8FAFC;  --aq-bg3: #F8FAFC;  --aq-bar: #F8FAFC;
  --aq-nav: rgba(255,255,255,.92);  --aq-inset: #F1F5F9;  --aq-obsidian: #FFFFFF;  --aq-deep: #FFFFFF;
  --aq-text: #0F172A;  --aq-title: #0F172A;
  --aq-s200: #334155;  --aq-s300: #334155;  --aq-s400: #475569;  --aq-s500: #64748B;
  --aq-line: rgba(15,23,42,.12);  --aq-line2: rgba(15,23,42,.10);  --aq-line3: rgba(15,23,42,.18);
  --aq-fill: rgba(15,23,42,.04);  --aq-fill2: rgba(15,23,42,.07);  --aq-fill3: rgba(15,23,42,.12);
  --aq-grid: rgba(15,23,42,.05);
  --aq-em: #059669;  --aq-em3: #047857;  --aq-cy: #0891B2;  --aq-cy3: #0E7490;
  --aq-rose: #E11D48;  --aq-amber: #B45309;
  --aq-card: linear-gradient(180deg, rgba(255,255,255,.97) 0%, rgba(241,245,249,.99) 100%);
  --aq-shadow: 0 18px 36px -16px rgba(15,23,42,.14);
}

/* ---- page background (only on pages that actually contain an AetherQuant module) ---- */
body:has(.aq-sec), body.aq-body { background: var(--aq-bg) !important; color: var(--aq-text); overflow-x: hidden; transition: background-color .25s ease, color .25s ease; }
body:has(.aq-sec) .astroid-layout, body:has(.aq-sec) .astroid-wrapper, body:has(.aq-sec) .astroid-container, body:has(.aq-sec) .astroid-content { background: transparent !important; }
/* Astroid renders <section class="aq-section"> wrappers: neutralise Bootstrap row/col gutters inside them */
.aq-section { padding: 0 !important; margin: 0 !important; background: transparent; }
.aq-section > .row, .aq-section .row { margin-left: 0 !important; margin-right: 0 !important; --bs-gutter-x: 0; }
.aq-section .row > [class*="col"] { padding-left: 0 !important; padding-right: 0 !important; }
.aq-sticky { position: sticky; top: 0; z-index: 1030; }

/* ---- scope reset ---- */
.aq-sec { position: relative; font-family: var(--aq-font); color: var(--aq-text); line-height: 1.5; -webkit-font-smoothing: antialiased; text-align: left; }
.aq-sec *, .aq-sec *::before, .aq-sec *::after { box-sizing: border-box; }
.aq-sec h1, .aq-sec h2, .aq-sec h3, .aq-sec h4, .aq-sec p, .aq-sec ul, .aq-sec pre { margin: 0; padding: 0; }
.aq-sec ul { list-style: none; }
.aq-sec h1, .aq-sec h2, .aq-sec h3, .aq-sec h4 { color: var(--aq-title); font-family: var(--aq-font); letter-spacing: -.02em; }
.aq-sec a { color: inherit; text-decoration: none; }
.aq-sec button { font-family: inherit; cursor: pointer; }
.aq-sec svg { display: block; flex-shrink: 0; }
.aq-sec [hidden], .aq-hidden { display: none !important; }
.aq-sec.aq-grid-bg { background-size: 44px 44px; background-image: linear-gradient(to right, var(--aq-grid) 1px, transparent 1px), linear-gradient(to bottom, var(--aq-grid) 1px, transparent 1px); }

/* ---- layout helpers ---- */
.aq-container { width: 100%; max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
.aq-narrow { max-width: 56rem; }
.aq-center { text-align: center; margin-left: auto; margin-right: auto; }
@media (min-width: 640px) { .aq-container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .aq-container { padding: 0 2rem; } }
.aq-grid { display: grid; gap: 1.5rem; }
.aq-g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.aq-g3 { grid-template-columns: minmax(0,1fr); }
.aq-g4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.aq-g12 { grid-template-columns: minmax(0,1fr); }
.aq-gap-sm { gap: .75rem; }  .aq-gap-md { gap: 1.25rem; }  .aq-gap-lg { gap: 1.75rem; }
@media (min-width: 768px) {
  .aq-g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .aq-bento { grid-template-columns: repeat(12, minmax(0,1fr)); }
  .aq-bento .aq-s6 { grid-column: span 6; }  .aq-bento .aq-s4 { grid-column: span 4; }
}
@media (min-width: 1024px) {
  .aq-g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .aq-g12 { grid-template-columns: repeat(12, minmax(0,1fr)); }
  .aq-g12 .aq-s4 { grid-column: span 4; } .aq-g12 .aq-s5 { grid-column: span 5; }
  .aq-g12 .aq-s7 { grid-column: span 7; } .aq-g12 .aq-s8 { grid-column: span 8; }
  .aq-g3-lg { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
.aq-flex { display: flex; } .aq-wrap { flex-wrap: wrap; } .aq-between { justify-content: space-between; }
.aq-items-c { align-items: center; } .aq-items-b { align-items: baseline; } .aq-col { flex-direction: column; }
.aq-gap1 { gap: .5rem; } .aq-gap2 { gap: .75rem; } .aq-gap3 { gap: 1rem; }
.aq-mb1 { margin-bottom: .5rem; } .aq-mb2 { margin-bottom: .75rem; } .aq-mb3 { margin-bottom: 1rem; }
.aq-mb4 { margin-bottom: 1.5rem; } .aq-mb5 { margin-bottom: 2.5rem; } .aq-mt1 { margin-top: .25rem; } .aq-mt3 { margin-top: 1rem; }
.aq-py { padding-top: 5rem; padding-bottom: 5rem; }
@media (min-width: 1024px) { .aq-py { padding-top: 6rem; padding-bottom: 6rem; } }
.aq-band { background: var(--aq-bg2); border-top: 1px solid var(--aq-line2); border-bottom: 1px solid var(--aq-line2); }

/* ---- typography ---- */
.aq-eyebrow { font-family: var(--aq-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .5rem; }
.aq-h1 { font-size: 2.25rem; font-weight: 800; line-height: 1.12; margin-bottom: 1.25rem; }
.aq-h2 { font-size: 1.875rem; font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
.aq-h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: .5rem; }
.aq-h3-lg { font-size: 1.25rem; font-weight: 700; margin-bottom: .5rem; }
@media (min-width: 640px) { .aq-h1 { font-size: 3rem; } .aq-h2 { font-size: 2.25rem; } }
@media (min-width: 1024px) { .aq-h1 { font-size: 3.75rem; } }
.aq-lead { font-size: 1.0625rem; color: var(--aq-s400); line-height: 1.7; }
.aq-p { font-size: .875rem; color: var(--aq-s400); line-height: 1.65; }
.aq-xs { font-size: .75rem; } .aq-sm { font-size: .875rem; }
.aq-mono { font-family: var(--aq-mono); }
.aq-muted { color: var(--aq-s400); } .aq-dim { color: var(--aq-s500); }
.aq-em { color: var(--aq-em); } .aq-cy { color: var(--aq-cy); } .aq-rose { color: var(--aq-rose); } .aq-amber { color: var(--aq-amber); }
.aq-title { color: var(--aq-title); } .aq-s200 { color: var(--aq-s200); } .aq-s300 { color: var(--aq-s300); }
.aq-grad-text { background: linear-gradient(90deg, #34D399, #5EEAD4, #22D3EE); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
html.aq-light .aq-grad-text { background: linear-gradient(90deg, #059669, #0891B2); -webkit-background-clip: text; background-clip: text; }

/* ---- surfaces ---- */
.aq-card { background: var(--aq-card); border: 1px solid var(--aq-line); box-shadow: var(--aq-shadow); border-radius: 1rem; padding: 1.5rem; }
.aq-card-hover { transition: all .25s cubic-bezier(.16,1,.3,1); }
.aq-card-hover:hover { border-color: rgba(16,185,129,.35); box-shadow: 0 20px 45px -12px rgba(16,185,129,.12); transform: translateY(-2px); }
.aq-inset { background: var(--aq-inset); border: 1px solid var(--aq-line); border-radius: .75rem; }
.aq-tile { background: var(--aq-obsidian); border: 1px solid var(--aq-line2); border-radius: .75rem; padding: 1rem; }

/* ---- buttons & pills ---- */
.aq-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: .75rem; font-weight: 600; font-size: .875rem; padding: .875rem 1.75rem; border: 1px solid transparent; transition: all .2s ease; white-space: nowrap; line-height: 1.2; }
.aq-btn:active { transform: scale(.97); }
.aq-btn-primary { background: var(--aq-grad); color: var(--aq-btn-ink) !important; box-shadow: 0 0 30px rgba(16,185,129,.35); }
.aq-btn-primary:hover { background: var(--aq-grad-hover); }
.aq-btn-ghost { background: var(--aq-fill); border-color: var(--aq-line3); color: var(--aq-title) !important; }
.aq-btn-ghost:hover { background: var(--aq-fill2); }
.aq-btn-soft { background: var(--aq-fill2); border-color: var(--aq-line3); color: var(--aq-title) !important; padding: .75rem 1rem; width: 100%; }
.aq-btn-soft:hover { background: var(--aq-fill3); }
.aq-btn-full { width: 100%; }
.aq-btn-pill { border-radius: 999px; padding: .625rem 1.25rem; box-shadow: 0 0 25px rgba(16,185,129,.35); }
.aq-btn-sm { padding: .5rem .875rem; font-size: .75rem; border-radius: .75rem; }
.aq-btn-copy { font-family: var(--aq-mono); font-size: .75rem; padding: .25rem .625rem; border-radius: .5rem; background: var(--aq-fill2); border: 1px solid var(--aq-line3); color: var(--aq-em3); }
.aq-btn-copy:hover { background: var(--aq-fill3); }
.aq-pill { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--aq-mono); font-size: .75rem; padding: .375rem .875rem; border-radius: 999px; border: 1px solid; }
.aq-pill-em { background: rgba(16,185,129,.1); border-color: rgba(16,185,129,.25); color: var(--aq-em3); }
.aq-pill-cy { background: rgba(6,182,212,.1); border-color: rgba(6,182,212,.25); color: var(--aq-cy); }
.aq-chip { font-family: var(--aq-mono); font-size: .75rem; font-weight: 700; padding: .25rem .75rem; border-radius: 999px; border: 1px solid; display: inline-block; }
.aq-chip-em { background: rgba(16,185,129,.15); color: var(--aq-em); border-color: rgba(16,185,129,.3); }
.aq-chip-cy { background: rgba(6,182,212,.15); color: var(--aq-cy); border-color: rgba(6,182,212,.3); }
.aq-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--aq-em); display: inline-block; flex-shrink: 0; }
.aq-dot-cy { background: var(--aq-cy); }
.aq-ping { position: relative; display: inline-flex; width: .5rem; height: .5rem; }
.aq-ping::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--aq-em); opacity: .75; animation: aq-ping 1.4s cubic-bezier(0,0,.2,1) infinite; }
.aq-ping::after { content: ""; position: relative; width: .5rem; height: .5rem; border-radius: 50%; background: var(--aq-em); }
@keyframes aq-ping { 75%, 100% { transform: scale(2.4); opacity: 0; } }
.aq-pulse { animation: aq-pulse 2s cubic-bezier(.4,0,.6,1) infinite; }
@keyframes aq-pulse { 50% { opacity: .4; } }

/* ---- segmented tabs (strategy / risk / horizon / billing / faq categories) ---- */
.aq-seg { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .375rem; padding: .375rem; background: var(--aq-inset); border: 1px solid var(--aq-line3); border-radius: .75rem; }
.aq-seg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; padding: .375rem; background: var(--aq-inset); border: 1px solid var(--aq-line3); border-radius: .75rem; }
.aq-tab { padding: .375rem .875rem; border-radius: .5rem; font-size: .75rem; font-weight: 600; color: var(--aq-s400); background: transparent; border: 1px solid transparent; transition: all .2s ease; }
.aq-seg-grid .aq-tab { padding: .5rem .75rem; }
.aq-tab:hover { color: var(--aq-title); }
.aq-tab.is-active { background: linear-gradient(90deg, rgba(16,185,129,.2), rgba(6,182,212,.2)); color: var(--aq-em3); border-color: rgba(16,185,129,.3); }
.aq-tab.is-cy.is-active { background: rgba(6,182,212,.2); color: var(--aq-cy3); border-color: rgba(6,182,212,.3); }
.aq-save { font-family: var(--aq-mono); font-size: .625rem; font-weight: 700; padding: .125rem .375rem; border-radius: .25rem; background: #34D399; color: #020617; margin-left: .5rem; }
.aq-faq-cats { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; margin-bottom: 2rem; }
.aq-faq-cats .aq-tab { padding: .5rem .875rem; border-radius: .75rem; background: var(--aq-inset); border-color: var(--aq-line3); }
.aq-faq-cats .aq-tab.is-active { background: linear-gradient(90deg, rgba(16,185,129,.2), rgba(6,182,212,.2)); border-color: rgba(16,185,129,.3); }

/* ---- header ---- */
.aq-header { position: relative; z-index: 1030; background: var(--aq-nav); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--aq-line); }
.aq-topbar { border-bottom: 1px solid var(--aq-line); background: var(--aq-bar); }
.aq-topbar-in { max-width: 80rem; margin: 0 auto; padding: .75rem 1rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; }
@media (min-width: 640px) { .aq-topbar-in { padding: .75rem 1.5rem; } }
@media (min-width: 1024px) { .aq-topbar-in { padding: .75rem 2rem; } }
@media (min-width: 1280px) { .aq-topbar-in { flex-wrap: nowrap; } }
.aq-brand { display: inline-flex; align-items: center; gap: .75rem; text-align: left; background: none; border: 0; padding: 0; color: inherit; }
.aq-logo { width: 2.5rem; height: 2.5rem; border-radius: .75rem; background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 20px rgba(16,185,129,.2); color: var(--aq-em); }
.aq-logo svg { width: 1.25rem; height: 1.25rem; transition: transform .2s ease; }
.aq-brand:hover .aq-logo svg { transform: scale(1.1); }
.aq-logo-solid { width: 2.25rem; height: 2.25rem; border-radius: .75rem; background: linear-gradient(135deg, #34D399, #0D9488); display: flex; align-items: center; justify-content: center; color: #020617; box-shadow: 0 8px 18px -6px rgba(16,185,129,.4); }
.aq-logo-solid svg { width: 1.25rem; height: 1.25rem; }
.aq-brand-name { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; color: var(--aq-title); line-height: 1; }
.aq-brand-name b { font-weight: 700; background: var(--aq-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.aq-brand-name--plain b { background: none; -webkit-text-fill-color: currentColor; color: var(--aq-em); }
.aq-brand-tag { font-family: var(--aq-mono); font-size: .6875rem; color: var(--aq-s400); letter-spacing: .02em; margin-top: .25rem; }
.aq-pages { display: none; order: 3; width: 100%; padding-top: .625rem; border-top: 1px solid var(--aq-line2); align-items: center; justify-content: center; }
@media (min-width: 640px) { .aq-pages { display: flex; } }
@media (min-width: 1280px) { .aq-pages { order: 2; width: auto; flex: 1; padding-top: 0; border-top: 0; } }
.aq-pages nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; }
.aq-page-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .875rem; border-radius: .75rem; font-size: .8125rem; font-weight: 600; color: var(--aq-s300) !important; border: 1px solid transparent; white-space: nowrap; transition: all .2s ease; }
.aq-page-btn svg { width: 1rem; height: 1rem; }
.aq-page-btn:hover { color: var(--aq-title) !important; background: var(--aq-fill); border-color: var(--aq-line3); }
.aq-page-btn.is-active { background: linear-gradient(90deg, rgba(16,185,129,.2), rgba(6,182,212,.2)); color: var(--aq-em3) !important; border-color: rgba(16,185,129,.35); box-shadow: 0 0 20px rgba(16,185,129,.14); }
.aq-actions { order: 2; display: flex; align-items: center; justify-content: flex-end; gap: .625rem; flex-shrink: 0; }
@media (min-width: 1280px) { .aq-actions { order: 3; } }
.aq-theme { display: inline-flex; align-items: center; padding: .125rem; border-radius: .75rem; background: var(--aq-fill); border: 1px solid var(--aq-line3); gap: .125rem; }
.aq-theme button { display: inline-flex; align-items: center; gap: .375rem; padding: .375rem .625rem; border-radius: 10px; font-family: var(--aq-mono); font-size: .75rem; font-weight: 600; color: var(--aq-s300); background: transparent; border: 1px solid transparent; transition: all .2s ease; white-space: nowrap; }
.aq-theme button svg { width: .875rem; height: .875rem; }
.aq-theme button.is-active[data-aq-theme="dark"] { background: rgba(16,185,129,.2); color: var(--aq-em3); border-color: rgba(16,185,129,.35); }
.aq-theme button.is-active[data-aq-theme="light"] { background: rgba(245,158,11,.2); color: #B45309; border-color: rgba(245,158,11,.4); }
.aq-signin { font-size: .875rem; font-weight: 500; color: var(--aq-s300); padding: .5rem 1rem; border-radius: .75rem; border: 1px solid var(--aq-line3); background: var(--aq-fill); }
.aq-signin:hover { color: var(--aq-title); background: var(--aq-fill2); }
.aq-burger { display: inline-flex; padding: .5rem; border-radius: .5rem; color: var(--aq-s300); background: none; border: 0; }
.aq-burger svg { width: 1.5rem; height: 1.5rem; }
@media (min-width: 768px) { .aq-burger { display: none; } }
.aq-mainbar { max-width: 80rem; margin: 0 auto; padding: 0 1rem; height: 4rem; display: flex; align-items: center; justify-content: space-between; }
@media (min-width: 640px) { .aq-mainbar { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .aq-mainbar { padding: 0 2rem; } }
.aq-links { display: none; align-items: center; gap: 1.75rem; font-size: .875rem; font-weight: 500; color: var(--aq-s400); }
.aq-links a:hover { color: var(--aq-title); }
.aq-mainbar-cta { display: none; }
.aq-mainbar-note { font-family: var(--aq-mono); font-size: .75rem; color: var(--aq-s400); }
@media (min-width: 768px) { .aq-links { display: flex; } .aq-mainbar-cta { display: flex; } .aq-mainbar-note { display: none; } }
.aq-drawer { display: none; border-top: 1px solid var(--aq-line3); background: var(--aq-bar); padding: .75rem 1rem 1.25rem; }
.aq-drawer.is-open { display: block; }
@media (min-width: 768px) { .aq-drawer, .aq-drawer.is-open { display: none; } }
.aq-drawer a.aq-dl { display: block; padding: .5rem 0; font-size: .875rem; color: var(--aq-s300); }
.aq-drawer .aq-d2 { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding-bottom: .5rem; margin-bottom: .5rem; border-bottom: 1px solid var(--aq-line3); }
.aq-drawer .aq-d2 a, .aq-drawer .aq-d2 button { padding: .625rem .75rem; border-radius: .75rem; font-size: .875rem; font-weight: 600; color: var(--aq-s300); background: var(--aq-fill); border: 1px solid var(--aq-line3); text-align: left; }
.aq-drawer .aq-d2 a.is-active { background: rgba(16,185,129,.15); color: var(--aq-em3); border-color: rgba(16,185,129,.3); }
.aq-drawer .aq-d2 button.is-active[data-aq-theme="dark"] { background: rgba(16,185,129,.2); color: var(--aq-em3); border-color: rgba(16,185,129,.35); }
.aq-drawer .aq-d2 button.is-active[data-aq-theme="light"] { background: rgba(245,158,11,.2); color: #B45309; border-color: rgba(245,158,11,.4); }
.aq-drawer .aq-dstack { display: flex; flex-direction: column; gap: .625rem; padding-top: .75rem; margin-top: .5rem; border-top: 1px solid var(--aq-line3); }

/* ---- ambient glow ---- */
.aq-glow { pointer-events: none; position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.aq-glow::before { content: ""; position: absolute; top: -10rem; left: 50%; transform: translateX(-50%); width: 900px; max-width: 120%; height: 500px; border-radius: 50%; background: linear-gradient(90deg, rgba(16,185,129,.12), rgba(6,182,212,.10), transparent); filter: blur(130px); }

/* ---- hero + dashboard ---- */
.aq-hero { padding: 3rem 0 4rem; }
@media (min-width: 1024px) { .aq-hero { padding: 4rem 0 6rem; } }
.aq-hero .aq-in { position: relative; z-index: 1; }
.aq-hero-copy { max-width: 56rem; margin: 0 auto 3rem; text-align: center; }
.aq-hero-copy .aq-pill { margin-bottom: 1.5rem; }
.aq-hero-copy .aq-lead { max-width: 42rem; margin: 0 auto 2rem; }
.aq-cta-row { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; }
@media (min-width: 640px) { .aq-cta-row { flex-direction: row; } }
.aq-cta-row .aq-btn { width: 100%; }
@media (min-width: 640px) { .aq-cta-row .aq-btn { width: auto; } }
.aq-dash { position: relative; overflow: hidden; padding: 1rem; scroll-margin-top: 7rem; }
@media (min-width: 640px) { .aq-dash { padding: 1.5rem; } }
@media (min-width: 1024px) { .aq-dash { padding: 1.75rem; } }
.aq-dash-head { display: flex; flex-direction: column; gap: 1rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--aq-line3); }
@media (min-width: 1024px) { .aq-dash-head { flex-direction: row; align-items: center; justify-content: space-between; } }
.aq-lights { display: flex; gap: .375rem; }
.aq-lights i { width: .75rem; height: .75rem; border-radius: 50%; display: block; }
.aq-lights i:nth-child(1) { background: rgba(244,63,94,.8); } .aq-lights i:nth-child(2) { background: rgba(245,158,11,.8); } .aq-lights i:nth-child(3) { background: rgba(16,185,129,.8); }
.aq-cluster { font-family: var(--aq-mono); font-size: .75rem; color: var(--aq-s400); border-left: 1px solid var(--aq-line3); padding-left: .75rem; }
.aq-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin: 1.25rem 0; }
@media (min-width: 640px) { .aq-stats { gap: 1rem; } }
@media (min-width: 1024px) { .aq-stats { grid-template-columns: repeat(4, 1fr); } }
.aq-stat { background: var(--aq-inset); border: 1px solid var(--aq-line2); border-radius: .75rem; padding: .875rem; }
.aq-stat .aq-lbl { font-size: .75rem; color: var(--aq-s400); margin-bottom: .25rem; }
.aq-stat .aq-val { font-family: var(--aq-mono); font-size: 1.375rem; font-weight: 700; }
@media (min-width: 640px) { .aq-stat .aq-val { font-size: 1.5rem; } }
.aq-stat .aq-sub { font-family: var(--aq-mono); font-size: .6875rem; }
.aq-badge { background: rgba(16,185,129,.1); padding: .125rem .375rem; border-radius: .25rem; color: var(--aq-em); }
.aq-chartwrap { display: grid; gap: 1.25rem; }
@media (min-width: 1024px) { .aq-chartwrap { grid-template-columns: repeat(12, minmax(0,1fr)); } .aq-chartwrap .aq-c8 { grid-column: span 8; } .aq-chartwrap .aq-c4 { grid-column: span 4; } }
.aq-panel { background: var(--aq-inset); border: 1px solid var(--aq-line2); border-radius: .75rem; padding: 1rem; }
.aq-canvasbox { position: relative; width: 100%; height: 250px; }
@media (min-width: 640px) { .aq-canvasbox { height: 290px; } }
.aq-canvasbox canvas { width: 100%; height: 100%; display: block; }
html.aq-light #equityCanvas { background: #fff; border-radius: .75rem; }
.aq-legend { display: flex; align-items: center; gap: 1rem; font-family: var(--aq-mono); font-size: .75rem; }
.aq-legend span { display: inline-flex; align-items: center; gap: .375rem; }
.aq-legend i { width: .625rem; height: .625rem; border-radius: 50%; display: block; }
.aq-feedhead { display: flex; align-items: center; justify-content: space-between; padding-bottom: .75rem; margin-bottom: .75rem; border-bottom: 1px solid var(--aq-line2); }
.aq-feedcols, .aq-order { display: grid; grid-template-columns: repeat(4, 1fr); }
.aq-feedcols { font-family: var(--aq-mono); font-size: .625rem; text-transform: uppercase; color: var(--aq-s500); padding-bottom: .5rem; }
.aq-feedcols span:nth-child(n+3), .aq-order span:nth-child(n+3) { text-align: right; }
#order-feed { display: flex; flex-direction: column; gap: .5rem; overflow: hidden; flex: 1; max-height: 245px; font-family: var(--aq-mono); font-size: .75rem; }
.aq-order { align-items: center; padding: .375rem .5rem; border-radius: .5rem; background: var(--aq-fill); border: 1px solid var(--aq-line2); font-size: .6875rem; }
.aq-order span:first-child { font-weight: 600; color: var(--aq-s200); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aq-order .aq-long { color: var(--aq-em); font-weight: 600; } .aq-order .aq-short { color: var(--aq-rose); font-weight: 600; }
.aq-order .aq-px { color: var(--aq-s300); } .aq-order .aq-al { color: var(--aq-cy); }

/* ---- metrics strip ---- */
.aq-metrics { background: var(--aq-bg3); border-top: 1px solid var(--aq-line2); border-bottom: 1px solid var(--aq-line2); padding: 2.5rem 0; }
.aq-metric { text-align: center; }
.aq-metric b { display: block; font-family: var(--aq-mono); font-size: 1.5rem; font-weight: 700; }
@media (min-width: 640px) { .aq-metric b { font-size: 1.875rem; } }
.aq-metric span { display: block; font-size: .8125rem; color: var(--aq-s400); margin-top: .25rem; }

/* ---- performance simulator ---- */
.aq-sim { padding: 1.5rem; align-items: center; gap: 2rem; }
@media (min-width: 640px) { .aq-sim { padding: 2rem; } }
@media (min-width: 1024px) { .aq-sim { padding: 2.5rem; gap: 2.5rem; } }
.aq-field + .aq-field { margin-top: 1.75rem; }
.aq-label { display: block; font-size: .875rem; font-weight: 500; color: var(--aq-s300); margin-bottom: .625rem; }
.aq-capital { font-family: var(--aq-mono); font-size: 1.125rem; font-weight: 700; color: var(--aq-em); }
.aq-range { width: 100%; -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; height: 20px; }
.aq-range::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: rgba(148,163,184,.28); }
.aq-range::-moz-range-track { height: 6px; border-radius: 999px; background: rgba(148,163,184,.28); }
.aq-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; height: 18px; width: 18px; border-radius: 50%; background: linear-gradient(135deg, #10B981, #06B6D4); border: 2px solid var(--aq-bg); margin-top: -6px; box-shadow: 0 0 12px rgba(16,185,129,.6); transition: transform .15s ease; }
.aq-range::-moz-range-thumb { height: 14px; width: 14px; border-radius: 50%; background: linear-gradient(135deg, #10B981, #06B6D4); border: 2px solid var(--aq-bg); box-shadow: 0 0 12px rgba(16,185,129,.6); }
.aq-range::-webkit-slider-thumb:hover { transform: scale(1.15); }
.aq-scale { display: flex; justify-content: space-between; font-family: var(--aq-mono); font-size: .6875rem; color: var(--aq-s500); margin-top: .375rem; }
.aq-note { padding: .875rem; border-radius: .75rem; background: var(--aq-fill); border: 1px solid var(--aq-line2); font-size: .75rem; color: var(--aq-s400); line-height: 1.65; margin-top: 1.75rem; }
.aq-results { background: var(--aq-inset); border: 1px solid var(--aq-line3); border-radius: 1rem; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 640px) { .aq-results { padding: 1.75rem; } }
.aq-kpis { display: grid; gap: 1rem; grid-template-columns: minmax(0,1fr); }
@media (min-width: 640px) { .aq-kpis { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.aq-kpi .aq-lbl { font-size: .75rem; color: var(--aq-s400); margin-bottom: .25rem; }
.aq-kpi .aq-big { font-family: var(--aq-mono); font-size: 1.5rem; font-weight: 700; color: var(--aq-title); }
.aq-kpi .aq-small { font-family: var(--aq-mono); font-size: .75rem; margin-top: .25rem; }
.aq-bars { display: flex; flex-direction: column; gap: 1rem; }
.aq-barrow .aq-barlab { display: flex; justify-content: space-between; font-family: var(--aq-mono); font-size: .75rem; margin-bottom: .375rem; }
.aq-track { width: 100%; height: .75rem; background: var(--aq-fill); border-radius: 999px; overflow: hidden; padding: 2px; }
.aq-track.aq-lg { height: .875rem; }
.aq-fillbar { height: 100%; border-radius: 999px; transition: all .5s ease; }
.aq-fb-aq { background: linear-gradient(90deg, #10B981, #22D3EE); } .aq-fb-btc { background: rgba(8,145,178,.75); } .aq-fb-sp { background: #475569; }

/* ---- onboarding steps / code ---- */
.aq-code { background: var(--aq-inset); border: 1px solid var(--aq-line); border-radius: .75rem; padding: 1rem; font-family: var(--aq-mono); font-size: .75rem; color: var(--aq-s300); overflow-x: auto; line-height: 1.65; margin: 0; white-space: pre; }
.aq-code code { font-family: inherit; color: inherit; background: none; padding: 0; font-size: inherit; }
.aq-code--em { color: var(--aq-em3); }
.aq-kw { color: var(--aq-cy); } .aq-str { color: var(--aq-amber); }
.aq-ep { list-style: none; display: flex; flex-direction: column; gap: .75rem; font-family: var(--aq-mono); font-size: .75rem; color: var(--aq-s300); }
.aq-ep li { padding: .75rem; border-radius: .75rem; background: var(--aq-inset); border: 1px solid var(--aq-line2); word-break: break-all; }
.aq-stepno { margin-top: 0; }
.aq-card .aq-h3.aq-after-chip { margin-top: 1rem; }

/* ---- pricing ---- */
.aq-billing { margin-top: 2rem; }
.aq-plan { display: flex; flex-direction: column; justify-content: space-between; padding: 1.75rem; }
.aq-plan ul { border-top: 1px solid var(--aq-line3); padding-top: 1.5rem; margin-bottom: 2rem; display: flex; flex-direction: column; gap: .75rem; font-size: .875rem; color: var(--aq-s300); }
.aq-price { display: flex; align-items: baseline; gap: .375rem; margin-bottom: 1.5rem; }
.aq-price b { font-family: var(--aq-mono); font-size: 2.25rem; font-weight: 700; color: var(--aq-title); }
.aq-price span { font-family: var(--aq-mono); font-size: .75rem; color: var(--aq-s400); }
.aq-pro { position: relative; border-radius: 1rem; padding: 1px; background: linear-gradient(180deg, #34D399, rgba(6,182,212,.5), var(--aq-line3)); display: flex; flex-direction: column; }
.aq-pro-in { background: var(--aq-deep); border-radius: 15px; padding: 1.75rem; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.aq-pro ul { border-top: 1px solid var(--aq-line3); padding-top: 1.5rem; margin-bottom: 2rem; display: flex; flex-direction: column; gap: .75rem; font-size: .875rem; color: var(--aq-s200); }
.aq-popular { padding: .125rem .625rem; border-radius: 999px; font-family: var(--aq-mono); font-size: .6875rem; font-weight: 700; background: var(--aq-grad); color: #020617; }
.aq-plan-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.aq-plan-head h3 { font-size: 1.125rem; font-weight: 700; }

/* ---- FAQ ---- */
.aq-faq-list { display: flex; flex-direction: column; gap: .875rem; }
.aq-faq-item { overflow: hidden; padding: 0; }
.aq-faq-trigger { width: 100%; padding: 1rem 1.5rem; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: none; border: 0; color: var(--aq-title); transition: background .2s ease; }
.aq-faq-trigger:hover { background: var(--aq-fill); }
.aq-faq-trigger span { font-weight: 600; font-size: .9375rem; }
.aq-faq-trigger svg { width: 1.25rem; height: 1.25rem; color: var(--aq-em); transition: transform .2s ease; }
.aq-faq-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.aq-faq-body { padding: .75rem 1.5rem 1.25rem; font-size: .875rem; color: var(--aq-s400); line-height: 1.7; border-top: 1px solid var(--aq-line2); }

/* ---- security strip & footer ---- */
.aq-secure { border-color: rgba(16,185,129,.2); display: flex; flex-direction: column; gap: 1.25rem; padding: 1.5rem; }
@media (min-width: 1024px) { .aq-secure { flex-direction: row; align-items: center; justify-content: space-between; } }
.aq-badges { display: flex; flex-wrap: wrap; gap: .625rem; font-family: var(--aq-mono); font-size: .75rem; flex-shrink: 0; }
.aq-badges span { padding: .375rem .75rem; border-radius: .75rem; background: var(--aq-fill); border: 1px solid var(--aq-line3); }
.aq-footer { background: #06090E; border-top: 1px solid var(--aq-line2); padding: 4rem 0 3rem; position: relative; z-index: 1; }
html.aq-light .aq-footer { background: #F8FAFC; }
.aq-fgrid { display: grid; gap: 2.5rem; padding-bottom: 3rem; grid-template-columns: minmax(0,1fr); }
@media (min-width: 768px) { .aq-fgrid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .aq-fgrid { grid-template-columns: repeat(5, minmax(0,1fr)); gap: 2rem; } .aq-fgrid .aq-f2 { grid-column: span 2; } }
.aq-fcol h4 { font-family: var(--aq-mono); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--aq-s200); margin-bottom: 1rem; }
.aq-fcol ul { display: flex; flex-direction: column; gap: .75rem; font-size: .875rem; color: var(--aq-s400); }
.aq-fcol a:hover { color: var(--aq-title); }
.aq-fbottom { padding-top: 2rem; border-top: 1px solid var(--aq-line2); display: flex; flex-direction: column; gap: 1rem; font-size: .75rem; color: var(--aq-s500); }
@media (min-width: 768px) { .aq-fbottom { flex-direction: row; align-items: center; justify-content: space-between; } .aq-fbottom p + p { text-align: right; max-width: 42rem; } }
.aq-status { display: flex; align-items: center; gap: .625rem; font-family: var(--aq-mono); font-size: .75rem; color: var(--aq-em); padding-top: .25rem; }
.aq-status i { width: .5rem; height: .5rem; border-radius: 50%; background: #34D399; box-shadow: 0 0 8px rgba(16,185,129,.75); display: block; }

/* ---- modal ---- */
.aq-modal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.75); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); padding: 1rem; }
.aq-modal.is-open { display: flex; }
.aq-modal .aq-card { max-width: 28rem; width: 100%; position: relative; padding: 1.75rem; border-color: var(--aq-line3); }
.aq-modal-x { position: absolute; top: 1rem; right: 1rem; padding: .5rem; border-radius: .5rem; color: var(--aq-s400); background: none; border: 0; }
.aq-modal-x:hover { color: var(--aq-title); background: var(--aq-fill); }
.aq-modal-x svg { width: 1.25rem; height: 1.25rem; }
.aq-input { width: 100%; padding: .625rem .875rem; border-radius: .75rem; background: var(--aq-inset); border: 1px solid var(--aq-line3); font-size: .875rem; color: var(--aq-title); font-family: var(--aq-font); }
.aq-input:focus { outline: none; border-color: var(--aq-em); }
.aq-form { display: flex; flex-direction: column; gap: 1rem; margin: 0; }
.aq-form label { display: block; font-size: .75rem; font-weight: 500; color: var(--aq-s300); margin-bottom: .375rem; }
.aq-okring { width: 3rem; height: 3rem; border-radius: 50%; background: rgba(16,185,129,.15); border: 1px solid rgba(16,185,129,.3); color: var(--aq-em); display: flex; align-items: center; justify-content: center; margin: 0 auto .75rem; }
.aq-okring svg { width: 1.5rem; height: 1.5rem; }

/* ---- secondary pages (Platform / Developers / Company) ---- */
.aq-page { padding: 3.5rem 0 5rem; min-height: 70vh; }
@media (min-width: 1024px) { .aq-page { padding: 5rem 0; } }
.aq-page-badge { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--aq-mono); font-size: .75rem; color: var(--aq-cy); background: rgba(6,182,212,.1); border: 1px solid rgba(6,182,212,.25); padding: .375rem .75rem; border-radius: 999px; }
.aq-page-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.aq-back { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; border-radius: .75rem; font-size: .875rem; font-weight: 600; color: var(--aq-s200) !important; background: var(--aq-fill); border: 1px solid var(--aq-line3); transition: all .2s ease; }
.aq-back:hover { background: var(--aq-fill3); }
.aq-back svg { width: 1rem; height: 1rem; color: var(--aq-em); }
.aq-page .aq-intro { max-width: 48rem; margin-bottom: 2rem; }
.aq-page .aq-intro h1 { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
@media (min-width: 640px) { .aq-page .aq-intro h1 { font-size: 3rem; } }
.aq-page .aq-grid { margin-top: 2rem; }
.aq-page .aq-card h2 { font-size: 1.125rem; font-weight: 700; margin-bottom: .5rem; }

/* ---- Joomla page chrome we do not want on the landing/secondary pages ---- */
body:has(.aq-sec) .com-content-article > .page-header, body:has(.aq-sec) .com-content-article__body { margin: 0; padding: 0; }

/* ---- smooth anchor scrolling that clears the sticky header ---- */
html:has(.aq-sec) { scroll-behavior: smooth; }
.aq-sec[id] { scroll-margin-top: 7rem; }
@media (prefers-reduced-motion: reduce) { html:has(.aq-sec) { scroll-behavior: auto; } .aq-ping::before, .aq-pulse { animation: none; } }

/* ---- Astroid container neutralising (Layout Builder sections that carry the .aq-section class) ---- */
.aq-section > div[class*="container"] { max-width: none !important; width: 100%; padding-left: 0 !important; padding-right: 0 !important; }
.aq-section .row { --bs-gutter-x: 0; --bs-gutter-y: 0; }
/* flex columns default to min-width:auto and would be stretched by long unwrapped lines (CLI snippet, code blocks) */
.aq-section .row > * { min-width: 0; max-width: 100%; }
.aq-sec .aq-grid > *, .aq-sec .aq-chartwrap > *, .aq-sec .aq-flex > * { min-width: 0; }
.aq-sec .aq-code { max-width: 100%; }
/* tablet: keep the section nav + CTA on one line */
@media (min-width: 768px) and (max-width: 1023px) { .aq-links { gap: .875rem; font-size: .8125rem; } .aq-mainbar-cta .aq-btn { padding: .5rem .875rem; font-size: .8125rem; } }
