/* AcruxCap Shared v2 */
:root{
  --bg:#04060C;
  --bg-2:#080C16;
  --surface:#0D1322;
  --surface-2:#121A2D;
  --surface-3:#172238;
  --line:rgba(255,255,255,0.06);
  --line-2:rgba(255,255,255,0.10);
  --line-strong:rgba(255,255,255,0.16);
  --text:#F6F8FC;
  --text-2:rgba(246,248,252,0.62);
  --text-3:rgba(246,248,252,0.36);
  --text-4:rgba(246,248,252,0.20);
  --teal:#2DD4BF;
  --teal-glow:rgba(45,212,191,0.18);
  --teal-soft:rgba(45,212,191,0.08);
  --mint:#5EEAD4;
  --amber:#FBBF24;
  --amber-glow:rgba(251,191,36,0.18);
  --red:#F87171;
  --red-glow:rgba(248,113,113,0.15);
  --blue:#60A5FA;
  --violet:#A78BFA;

  --font:'Manrope',ui-sans-serif,system-ui,sans-serif;
  --font-serif:'Instrument Serif',Georgia,serif;
  --mono:'JetBrains Mono',ui-monospace,monospace;

  --r-xs:4px; --r-sm:8px; --r-md:12px; --r-lg:18px; --r-xl:24px; --r-pill:999px;
  --ease:cubic-bezier(0.22,1,0.36,1);
  --t:.22s var(--ease);
  --container:1280px;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;font-size:16px;background:var(--bg)}
body{
  font-family:var(--font);
  background:var(--bg);
  color:var(--text);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  font-feature-settings:"ss01","cv11";
}
a{color:inherit;text-decoration:none}
ul{list-style:none}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}
img{display:block;max-width:100%}

.container{width:100%;max-width:var(--container);margin:0 auto;padding:0 clamp(20px,4vw,40px)}
.mono{font-family:var(--mono)}
.serif{font-family:var(--font-serif);font-style:italic;font-weight:400}


/* ─── status bar (Bloomberg-style top) ─── */
.statusbar{
  background:#000;
  border-bottom:1px solid var(--line);
  font-family:var(--mono);
  font-size:10.5px;
  color:var(--text-3);
  letter-spacing:.04em;
}
.statusbar-inner{
  display:flex;
  align-items:center;
  height:28px;
  gap:24px;
  white-space:nowrap;
  overflow:hidden;
}
.statusbar-inner > span{display:inline-flex;align-items:center;gap:8px}
.statusbar-inner b{color:var(--text);font-weight:600;font-variant-numeric:tabular-nums}
.statusbar-inner .up{color:var(--teal)}
.statusbar-inner .dn{color:var(--red)}
.statusbar-inner .live-dot{width:5px;height:5px;border-radius:50%;background:var(--teal);box-shadow:0 0 6px var(--teal);animation:pulse 1.5s infinite ease-in-out}
.statusbar-right{margin-left:auto;display:inline-flex;gap:18px;align-items:center}
@keyframes pulse{50%{opacity:.4}}


/* ─── promo banner ─── */
.promo{
  position:relative;
  background:linear-gradient(90deg,var(--surface) 0%,var(--surface-2) 100%);
  border-bottom:1px solid var(--line);
  overflow:hidden;
}
.promo::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    repeating-linear-gradient(135deg,transparent 0,transparent 8px,rgba(45,212,191,0.025) 8px,rgba(45,212,191,0.025) 9px);
  pointer-events:none;
}
.promo-inner{
  position:relative;
  display:flex;align-items:center;justify-content:center;gap:14px;
  height:40px;
  font-size:12.5px;
  font-weight:500;
  color:var(--text-2);
  flex-wrap:nowrap;
  white-space:nowrap;
  overflow:hidden;
}
.promo-inner > *{flex-shrink:0}
.promo-pill{
  font-family:var(--mono);
  font-size:9.5px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--amber);
  background:var(--amber-glow);
  border:1px solid rgba(251,191,36,0.3);
  padding:3px 8px;
  border-radius:var(--r-pill);
}
.promo-inner strong{color:var(--text);font-weight:600}
.promo-cta{
  color:var(--teal);
  font-weight:600;
  display:inline-flex;
  align-items:center;
  gap:5px;
  position:relative;
  padding-left:14px;
}
.promo-cta::before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);width:3px;height:3px;border-radius:50%;background:var(--text-3)}


/* ─── NAV ─── */
.nav{
  position:sticky;top:0;z-index:80;
  background:rgba(4,6,12,0.7);
  backdrop-filter:blur(20px) saturate(160%);
  -webkit-backdrop-filter:blur(20px) saturate(160%);
  border-bottom:1px solid var(--line);
}
.nav-inner{
  display:flex;align-items:center;justify-content:space-between;
  height:64px;
  gap:32px;
}
.nav-logo{display:flex;align-items:center;gap:9px;flex-shrink:0}
.nav-logo svg{width:26px;height:26px}
.nav-logo span{font-size:17px;font-weight:700;letter-spacing:-.02em;color:var(--text)}
.nav-logo b{color:var(--teal);font-weight:700}
.nav-links{display:flex;align-items:center;gap:2px}
.nav-links a{
  font-size:13.5px;
  font-weight:500;
  color:var(--text-2);
  padding:8px 14px;
  border-radius:var(--r-sm);
  transition:var(--t);
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.nav-links a:hover{color:var(--text);background:rgba(255,255,255,0.04)}
.nav-links a.active{color:var(--text)}
.nav-links .new-tag{
  font-family:var(--mono);
  font-size:8.5px;
  font-weight:700;
  letter-spacing:.1em;
  background:var(--teal-glow);
  color:var(--teal);
  padding:2px 5px;
  border-radius:3px;
  text-transform:uppercase;
}
.nav-actions{display:flex;align-items:center;gap:10px;margin-left:auto}
.nav-session{
  display:inline-flex;align-items:center;gap:7px;
  padding:6px 12px;
  background:rgba(45,212,191,0.06);
  border:1px solid rgba(45,212,191,0.15);
  border-radius:var(--r-pill);
  font-family:var(--mono);
  font-size:11px;
  color:var(--teal);
  font-weight:500;
  white-space:nowrap;
  flex-shrink:0;
}
.nav-session .dot{width:5px;height:5px;border-radius:50%;background:var(--teal);box-shadow:0 0 6px var(--teal);animation:pulse 1.5s infinite ease-in-out}


/* ─── buttons ─── */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  font-family:inherit;font-weight:600;font-size:13.5px;
  padding:11px 20px;
  border-radius:var(--r-sm);
  transition:var(--t);
  white-space:nowrap;
  letter-spacing:-.005em;
}
.btn-primary{
  background:var(--teal);
  color:#04141A;
  box-shadow:0 0 0 1px var(--teal),0 8px 24px -8px var(--teal-glow);
}
.btn-primary:hover{background:var(--mint);transform:translateY(-1px);box-shadow:0 0 0 1px var(--mint),0 12px 32px -10px var(--teal-glow)}
.btn-ghost{
  background:rgba(255,255,255,0.04);
  color:var(--text);
  border:1px solid var(--line-2);
}
.btn-ghost:hover{background:rgba(255,255,255,0.08);border-color:var(--line-strong)}
.btn-lg{padding:14px 28px;font-size:14.5px}
.btn-sm{padding:8px 14px;font-size:12px}
.btn-arrow{transition:transform var(--t)}
.btn:hover .btn-arrow{transform:translateX(3px)}


/* ─── FOOTER ─── */
.footer{
  background:#020308;
  border-top:1px solid var(--line);
  padding:60px 0 32px;
}
.footer-top{
  display:grid;
  grid-template-columns:1.6fr 1fr 1fr 1fr 1fr;
  gap:48px;
  padding-bottom:48px;
  border-bottom:1px solid var(--line);
}
.footer-brand{max-width:280px}
.footer-brand .nav-logo{margin-bottom:18px}
.footer-brand p{
  font-size:13px;
  color:var(--text-3);
  line-height:1.65;
  margin-bottom:24px;
}
.footer-tv{
  background:rgba(45,212,191,0.04);
  border:1px solid rgba(45,212,191,0.15);
  border-radius:var(--r-md);
  padding:14px;
}
.footer-tv-row{display:flex;align-items:center;gap:11px;margin-bottom:12px}
.footer-tv-row > div{flex:1}
.footer-tv-row .l{font-size:12px;font-weight:700;color:var(--text)}
.footer-tv-row .s{font-size:11px;color:var(--text-3);font-family:var(--mono)}
.footer-tv-btn{
  display:block;text-align:center;
  font-family:var(--mono);
  font-size:11px;
  color:var(--teal);
  font-weight:600;
  padding:8px;
  border:1px solid rgba(45,212,191,0.25);
  border-radius:var(--r-sm);
  background:rgba(45,212,191,0.05);
  transition:var(--t);
}
.footer-tv-btn:hover{background:rgba(45,212,191,0.1)}

.footer-col h5{
  font-family:var(--mono);
  font-size:10.5px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--text);
  margin-bottom:18px;
}
.footer-col ul{display:flex;flex-direction:column;gap:11px}
.footer-col a{
  font-size:13px;
  color:var(--text-2);
  transition:color var(--t);
}
.footer-col a:hover{color:var(--teal)}

.footer-bottom{
  margin-top:32px;
  display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;
}
.footer-bottom p{font-size:12px;color:var(--text-3);max-width:640px;line-height:1.55}
.footer-social{display:flex;gap:8px}
.footer-social a{
  width:32px;height:32px;border-radius:7px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,0.03);
  border:1px solid var(--line);
  color:var(--text-3);
  transition:var(--t);
}
.footer-social a:hover{color:var(--teal);border-color:rgba(45,212,191,0.3);background:rgba(45,212,191,0.05)}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media(max-width:1100px){
  .hero-bento{grid-template-columns:1fr 1fr;grid-template-rows:auto auto auto}
  .feed-panel{grid-column:span 2;grid-row:auto}
  .nav-links{display:none}
  .dash-bento{grid-template-columns:repeat(4,1fr)}
  .tile-hero{grid-column:span 4}
  .tile-md{grid-column:span 2}
  .tile-sm{grid-column:span 2}
  .tile-wide{grid-column:span 4}
}
@media(max-width:760px){
  .hero h1{font-size:clamp(40px,11vw,64px)}
  .hero-bento{grid-template-columns:1fr;grid-auto-rows:auto}
  .feed-panel,.regime-panel,.play-panel,.rsi-panel,.alert-panel{grid-column:span 1;grid-row:auto}
  .stats-grid{grid-template-columns:1fr 1fr}
  .pricing-grid{grid-template-columns:1fr}
  .timeline::before{display:none}
  .timeline-row{grid-template-columns:1fr;gap:20px}
  .timeline-time{padding-left:0}
  .timeline-time::before{display:none}
  .dash-bento{grid-template-columns:1fr;grid-auto-rows:auto}
  .tile-hero,.tile-md,.tile-sm,.tile-wide{grid-column:span 1}
  .footer-top{grid-template-columns:1fr 1fr;gap:32px}
}

/* ══════════════════════════════════════════════════════════════════
   USABILITY LAYER — added 2026-06-01
   Skip-to-content · Back-to-top · Breadcrumbs · scroll-margin-top ·
   aria-current[="page"] · "On this page" jump-nav · prefers-reduced-motion
   ══════════════════════════════════════════════════════════════════ */

/* Skip link — visually hidden until focused */
.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 1000;
  padding: 12px 18px;
  background: var(--teal); color: #051114;
  font-size: .9rem; font-weight: 700; letter-spacing: -.005em;
  border-radius: var(--r-sm); text-decoration: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; outline: 2px solid var(--text); outline-offset: 2px; }

/* aria-current — semantic only. The existing .nav-links a.active rule
   already brightens the active link (color:var(--text)); no extra
   visual treatment needed. Kept as a no-op style hook in case future
   work wants to attach to the attribute. */
.nav-links a[aria-current="page"] { color: var(--text); }

/* Anchored heading offset — keeps targets clear of the sticky nav */
:where(section[id], h2[id], h3[id], h4[id], [id^="section-"]) {
  scroll-margin-top: 96px;
}
/* "On this page" — sticky jump navigation for long pages */
.on-page-nav {
  position: sticky; top: calc(var(--nav-h, 64px) + 12px);
  align-self: start;
  padding: 18px 0;
  font-size: .82rem;
}
.on-page-nav h6 {
  font-size: .65rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-3);
  margin: 0 0 12px;
}
.on-page-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.on-page-nav a {
  display: block;
  padding: 7px 12px;
  color: var(--text-2); text-decoration: none;
  border-left: 2px solid transparent;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.on-page-nav a:hover { color: var(--text); background: var(--surface); }
.on-page-nav a.is-active {
  color: var(--teal);
  border-left-color: var(--teal);
  background: var(--teal-soft);
}

/* Horizontal variant — sticky chip strip below the main nav for long
   product pages. Different rhythm to the vertical TOC above; uses the
   same .is-active hook so the IntersectionObserver in main.js works for
   both. Horizontal-scrolls on narrow viewports. */
.on-page-nav.is-horizontal {
  position: sticky; top: var(--nav-h, 64px);
  z-index: 20;
  padding: 0;
  background: rgba(4, 6, 12, .82);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.on-page-nav.is-horizontal ul {
  flex-direction: row; gap: 4px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: none;
}
.on-page-nav.is-horizontal ul::-webkit-scrollbar { display: none; }
.on-page-nav.is-horizontal a {
  flex: 0 0 auto;
  display: inline-flex; align-items: center;
  padding: 7px 14px;
  font-size: .82rem; font-weight: 500;
  border-left: 0;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.on-page-nav.is-horizontal a:hover { background: var(--surface); color: var(--text); }
.on-page-nav.is-horizontal a.is-active {
  color: var(--teal);
  background: rgba(45,212,191,.08);
  border-color: rgba(45,212,191,.35);
  border-left-color: rgba(45,212,191,.35);
}

/* Prev/Next post links (blog) */
.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin: 56px 0 24px;
}
.post-nav a {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 22px;
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.post-nav a:hover {
  border-color: rgba(45,212,191,.45);
  background: var(--surface-2);
  transform: translateY(-2px);
}
.post-nav .post-nav-eyebrow {
  font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
  display: inline-flex; align-items: center; gap: 6px;
}
.post-nav .post-nav-title {
  font-size: .95rem; font-weight: 700; color: var(--text);
  line-height: 1.35;
}
.post-nav .next { text-align: right; }
.post-nav .next .post-nav-eyebrow { justify-content: flex-end; }
@media (max-width: 600px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { text-align: left; }
  .post-nav .next .post-nav-eyebrow { justify-content: flex-start; }
}

/* Reduced motion — respect the user setting site-wide */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Breadcrumb (transparent — inherits page bg, no separation band) ── */
.bc { background: transparent; border: 0; font-size: .78rem; }
.bc .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 18px;
  padding-bottom: 0;
  color: var(--text-3);
}
.bc a { color: var(--text-2); text-decoration: none; transition: color .15s ease; }
.bc a:hover { color: var(--teal); }
.bc-sep {
  color: var(--text-4);
  font-family: var(--mono);
  font-size: .95em;
  user-select: none;
}
.bc [aria-current="page"] { color: var(--text); font-weight: 500; }

/* ── Back-to-top: ^ glyph, fixed bottom-right, visible only on scroll ──
   z-index sits ABOVE the cookie banner (which is z-index 9999). JS adds
   .has-cookie while the banner is open so the button slides up clear. */
.btn-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10001;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(13, 19, 34, 0.92);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid var(--line-2);
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, bottom .25s ease,
              color .15s ease, border-color .15s ease;
}
.btn-top.is-shown { opacity: 1; pointer-events: auto; transform: translateY(0); }
.btn-top.has-cookie { bottom: 110px; }
.btn-top:hover { color: var(--teal); border-color: var(--teal); }
.btn-top:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.btn-top svg { width: 16px; height: 16px; display: block; }
@media (max-width: 600px) {
  .btn-top { right: 14px; bottom: 14px; width: 36px; height: 36px; }
  .btn-top.has-cookie { bottom: 130px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-top { transition: opacity .001ms !important; transform: none !important; }
}

/* ══════════════════════════════════════════════════════════════════
   INDICATOR CROSS-NAV — Pairs well with + Previous/Next
   Sits between the page's final CTA and the footer. Same dark surface
   as the rest of the v2 system; no decorative chrome that fights with
   the page above it.
   ══════════════════════════════════════════════════════════════════ */
.ind-xnav {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 64px 0 56px;
}
.ind-xnav-eyebrow {
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 18px;
}
.ind-xnav-title {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--text);
  margin: 0 0 24px;
}

/* Pairs grid — 3 cards on desktop, stacked on mobile */
.ind-pairs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 56px;
}
@media (max-width: 760px) { .ind-pairs { grid-template-columns: 1fr; gap: 12px; } }
.ind-pair-card {
  display: block;
  padding: 22px 22px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: inherit;
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.ind-pair-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  background: var(--surface-2, var(--surface));
}
.ind-pair-tag {
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}
.ind-pair-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
  margin: 0 0 6px;
}
.ind-pair-sub {
  font-size: .85rem;
  color: var(--text-2);
  line-height: 1.5;
  margin: 0;
}
.ind-pair-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--teal);
}

/* Prev / All / Next strip */
.ind-prevnext {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
@media (max-width: 760px) {
  .ind-prevnext { grid-template-columns: 1fr; }
  .ind-prevnext .ind-pn-mid { order: -1; }
}
.ind-pn-link {
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: transparent;
  color: inherit;
  text-decoration: none;
  transition: border-color .15s ease, color .15s ease;
}
.ind-pn-link:hover { border-color: var(--teal); }
.ind-pn-link.next { text-align: right; align-items: flex-end; }
.ind-pn-eyebrow {
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 4px;
}
.ind-pn-name {
  font-size: .98rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
}
.ind-pn-mid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: color .15s ease, border-color .15s ease;
}
.ind-pn-mid:hover { color: var(--teal); border-color: var(--teal); }
