/* ApexTicker Homepage Design System — Editorial Command Hybrid
 * Strictly scoped under .apex-home so other site templates remain untouched.
 */

.apex-home {
  --navy-950: #070e1b;
  --navy-900: #0b1424;
  --navy-850: #0f1b30;
  --navy-800: #14233d;
  --navy-700: #1d3154;

  --surface-white: #ffffff;
  --surface-canvas: #f6f9fc;
  --surface-tint: #edf3f8;

  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-500: #64748b;

  --text-light-100: #f8fafc;
  --text-light-200: #e2e8f0;
  --text-light-300: #cbd5e1;
  --text-light-400: #94a3b8;

  --border-dark: rgba(148, 163, 184, 0.16);
  --border-dark-strong: rgba(148, 163, 184, 0.3);
  --border-light: #d9e3ee;
  --border-light-strong: #bfcde0;

  --brand-blue: #3b82f6;
  --brand-blue-dark: #2563eb;
  --brand-blue-ink: #1d4ed8;
  --brand-cyan: #38bdf8;
  --brand-cyan-vivid: #06b6d4;
  --brand-teal: #087c79;
  --brand-gold: #d99b26;

  --bull-dark: #34d399;
  --bull-dark-bg: rgba(16, 185, 129, 0.14);
  --bull-dark-bd: rgba(52, 211, 153, 0.32);
  --bull-light: #047857;
  --bull-light-bg: #ecfdf5;

  --neutral-dark: #fbbf24;
  --neutral-dark-bg: rgba(245, 158, 11, 0.14);
  --neutral-dark-bd: rgba(251, 191, 36, 0.32);
  --neutral-light: #b45309;
  --neutral-light-bg: #fffbeb;

  --bear-dark: #f87171;
  --bear-dark-bg: rgba(239, 68, 68, 0.14);
  --bear-dark-bd: rgba(248, 113, 113, 0.34);
  --bear-light: #b91c1c;
  --bear-light-bg: #fef2f2;

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --container-max: 1240px;

  margin: 0;
  padding: 0;
  background-color: var(--navy-900);
  color: var(--ink-900);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

:where(.apex-home) *,
:where(.apex-home) *::before,
:where(.apex-home) *::after {
  box-sizing: border-box;
}

:where(.apex-home) img {
  display: block;
  max-width: 100%;
}

:where(.apex-home) h1,
:where(.apex-home) h2,
:where(.apex-home) h3,
:where(.apex-home) h4,
:where(.apex-home) p,
:where(.apex-home) ul,
:where(.apex-home) ol {
  margin-top: 0;
}

:where(.apex-home) a {
  color: inherit;
}

:where(.apex-home) button,
:where(.apex-home) select {
  font-family: inherit;
}

.apex-home :focus-visible {
  outline: 2px solid var(--brand-cyan);
  outline-offset: 3px;
}

.apex-band--light :focus-visible,
.apex-band--white :focus-visible,
.apex-band--tint :focus-visible {
  outline-color: var(--brand-blue-dark);
}

.apex-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

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

/* Skip Link */
.apex-skip {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 2000;
  background: var(--surface-white);
  color: var(--navy-900);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  padding: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.apex-skip:focus {
  width: auto;
  height: auto;
  padding: 12px 18px;
  clip-path: none;
}

/* Layout Container */
.apex-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 28px;
}

/* Header & Navigation */
.apex-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  isolation: isolate;
  transform: translateZ(0);
  background: rgba(11, 20, 36, 0.96);
  color: var(--text-light-100);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-dark);
}

.apex-home main {
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.apex-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.apex-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.apex-brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.apex-brand__name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-light-100);
}

.apex-brand__name span {
  color: var(--brand-cyan);
}

.apex-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.apex-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-light-300);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.apex-nav__link:hover {
  color: var(--text-light-100);
  background: rgba(255, 255, 255, 0.06);
}

.apex-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.apex-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  background: var(--brand-blue-dark);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(96, 165, 250, 0.35);
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.apex-header__cta:hover {
  background: var(--brand-blue);
  transform: translateY(-1px);
}

.apex-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark-strong);
  border-radius: var(--radius-sm);
  color: var(--text-light-100);
  cursor: pointer;
}

.apex-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile Drawer */
.apex-drawer {
  background: var(--navy-950);
  border-bottom: 1px solid var(--border-dark-strong);
  padding: 16px 24px 24px;
}

.apex-drawer[hidden] {
  display: none;
}

.apex-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.apex-drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-light-200);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
}

.apex-drawer__link:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-dark);
}

.apex-drawer__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 12px;
  border-radius: var(--radius-sm);
  background: var(--brand-blue-dark);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

/* Shared Buttons */
.apex-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.apex-btn:hover {
  transform: translateY(-1px);
}

.apex-btn--primary {
  background: var(--brand-blue-dark);
  color: #ffffff;
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

.apex-btn--primary:hover {
  background: var(--brand-blue);
}

.apex-btn--ghost-dark {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-light-100);
  border-color: var(--border-dark-strong);
}

.apex-btn--ghost-dark:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(56, 189, 248, 0.45);
}

.apex-btn--teal {
  background: var(--brand-teal);
  color: #ffffff;
  border-color: var(--brand-teal);
}

.apex-btn--teal:hover {
  background: #066361;
}

.apex-btn--outline-light {
  background: var(--surface-white);
  color: var(--ink-900);
  border-color: var(--border-light-strong);
}

.apex-btn--outline-light:hover {
  border-color: var(--brand-blue-dark);
  color: var(--brand-blue-ink);
  background: #f8fbff;
}

/* Section Bands */
.apex-band {
  padding: 84px 0;
  scroll-margin-top: 72px;
}

#market-movers {
  display: block;
  position: relative;
  top: -88px;
  visibility: hidden;
  pointer-events: none;
}

#contact {
  scroll-margin-top: 72px;
}

.apex-band--navy {
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
  color: var(--text-light-100);
}

.apex-band--light {
  background: var(--surface-canvas);
  color: var(--ink-900);
}

.apex-band--white {
  background: var(--surface-white);
  color: var(--ink-900);
}

.apex-band--tint {
  background: var(--surface-tint);
  color: var(--ink-900);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.apex-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.apex-section-head--center {
  flex-direction: column;
  align-items: flex-start;
  max-width: 720px;
}

.apex-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.apex-eyebrow--dark {
  color: var(--brand-cyan);
}

.apex-eyebrow--light {
  color: var(--brand-teal);
}

.apex-h2 {
  font-size: clamp(1.75rem, 2.7vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.apex-subhead {
  font-size: 1.03rem;
  line-height: 1.65;
  max-width: 64ch;
  margin-bottom: 0;
}

.apex-band--navy .apex-subhead {
  color: var(--text-light-300);
}

.apex-band--light .apex-subhead,
.apex-band--white .apex-subhead,
.apex-band--tint .apex-subhead {
  color: var(--ink-600);
}

/* =========================================================
   SECTION 1: COMMAND HERO
   ========================================================= */
.apex-hero {
  position: relative;
  background:
    radial-gradient(ellipse 68% 58% at 88% 8%, rgba(37, 99, 235, 0.18) 0%, transparent 65%),
    radial-gradient(ellipse 52% 48% at 8% 92%, rgba(6, 182, 212, 0.1) 0%, transparent 60%),
    linear-gradient(180deg, var(--navy-900) 0%, #091120 100%);
  color: var(--text-light-100);
  padding: 58px 0 68px;
  border-bottom: 1px solid var(--border-dark);
}

.apex-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
  pointer-events: none;
}

.apex-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 44px;
  align-items: center;
}

.apex-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.24);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-cyan);
  margin-bottom: 20px;
}

.apex-hero__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-cyan-vivid);
}

.apex-hero__title {
  font-size: clamp(2.15rem, 3.65vw, 3.3rem);
  font-weight: 800;
  line-height: 1.09;
  letter-spacing: -0.035em;
  color: var(--text-light-100);
  margin-bottom: 20px;
}

.apex-hero__title span {
  color: var(--brand-cyan);
}

.apex-hero__lead {
  font-size: 1.075rem;
  line-height: 1.7;
  color: var(--text-light-300);
  max-width: 55ch;
  margin-bottom: 28px;
}

.apex-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

/* Quick-jump ticker strip */
.apex-ticker-jump {
  margin-bottom: 28px;
}

.apex-ticker-jump__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light-400);
  margin-bottom: 10px;
}

.apex-ticker-jump__list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.apex-chip-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  color: var(--text-light-200);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.apex-chip-link:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.45);
  color: #ffffff;
}

/* Fact Strip */
.apex-hero__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--border-dark);
}

.apex-fact__val {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-light-100);
  margin-bottom: 2px;
}

.apex-fact__lbl {
  font-size: 0.78rem;
  color: var(--text-light-400);
  line-height: 1.35;
}

/* Hero Workbench Card */
.apex-wb {
  background: linear-gradient(180deg, rgba(18, 32, 56, 0.96) 0%, rgba(12, 22, 40, 0.98) 100%);
  border: 1px solid var(--border-dark-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(3, 8, 18, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.apex-wb__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 20px;
  background: rgba(7, 14, 27, 0.55);
  border-bottom: 1px solid var(--border-dark);
}

.apex-wb__kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-cyan);
}

.apex-wb__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.apex-wb__tab {
  min-height: 32px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-light-400);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.apex-wb__tab:hover {
  color: var(--text-light-100);
  background: rgba(255, 255, 255, 0.06);
}

.apex-wb__tab.is-active {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.38);
  color: var(--brand-cyan);
}

.apex-wb__body {
  padding: 22px;
}

.apex-wb__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-dark);
}

.apex-wb__symbol-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.apex-wb__symbol {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-light-100);
}

.apex-wb__sector {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-light-300);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-dark);
  padding: 2px 8px;
  border-radius: 999px;
}

.apex-wb__company {
  font-size: 0.875rem;
  color: var(--text-light-400);
  margin: 0;
}

.apex-wb__price-col {
  text-align: right;
  flex-shrink: 0;
}

.apex-wb__price {
  font-family: var(--font-mono);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--text-light-100);
  margin-bottom: 6px;
}

/* Verdict Badges */
.apex-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  white-space: nowrap;
}

.apex-badge--bull {
  color: var(--bull-dark);
  background: var(--bull-dark-bg);
  border-color: var(--bull-dark-bd);
}

.apex-badge--neutral {
  color: var(--neutral-dark);
  background: var(--neutral-dark-bg);
  border-color: var(--neutral-dark-bd);
}

.apex-badge--bear {
  color: var(--bear-dark);
  background: var(--bear-dark-bg);
  border-color: var(--bear-dark-bd);
}

/* Dual Horizon Split inside Workbench */
.apex-wb__lenses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 18px;
}

.apex-lens-box {
  padding: 11px 13px;
  border-radius: 10px;
  background: rgba(7, 14, 27, 0.55);
  border: 1px solid var(--border-dark);
}

.apex-lens-box__lbl {
  font-size: 0.72rem;
  color: var(--text-light-400);
  margin-bottom: 6px;
}

.apex-lens-box__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.apex-lens-box__score {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light-200);
}

/* 4-Pillar Bars */
.apex-pillars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.apex-pillar__row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
}

.apex-pillar__name {
  font-size: 0.8rem;
  color: var(--text-light-300);
  display: flex;
  justify-content: space-between;
  gap: 4px;
}

.apex-pillar__name span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-light-400);
}

.apex-pillar__track {
  height: 7px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  overflow: hidden;
}

.apex-pillar__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width 0.35s ease;
}

.apex-pillar__fill.is-bull {
  background: var(--bull-dark);
}

.apex-pillar__fill.is-neutral {
  background: var(--neutral-dark);
}

.apex-pillar__fill.is-bear {
  background: var(--bear-dark);
}

.apex-pillar__val {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: right;
  color: var(--text-light-100);
}

/* Metrics trio */
.apex-wb__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.apex-wb__metric {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
}

.apex-wb__metric-lbl {
  font-size: 0.7rem;
  color: var(--text-light-400);
  margin-bottom: 3px;
}

.apex-wb__metric-val {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light-100);
}

.apex-wb__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-dark);
}

.apex-wb__stamp {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-light-400);
  line-height: 1.4;
}

.apex-wb__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--brand-cyan);
  text-decoration: none;
  padding: 6px 2px;
}

.apex-wb__cta:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* =========================================================
   SECTION 2: CORE TOOLS (DAYLIGHT CANVAS)
   ========================================================= */
.apex-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.apex-tool-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--brand-blue-dark);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.04);
}

.apex-tool-card--teal {
  border-top-color: var(--brand-teal);
}

.apex-tool-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.apex-tool-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: var(--brand-blue-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.apex-tool-card--teal .apex-tool-card__icon {
  background: #effaf8;
  border-color: #ccebe6;
  color: var(--brand-teal);
}

.apex-tool-card__tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-600);
  background: var(--surface-canvas);
  border: 1px solid var(--border-light);
  padding: 4px 10px;
  border-radius: 999px;
}

.apex-tool-card__title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink-900);
  margin-bottom: 10px;
}

.apex-tool-card__desc {
  font-size: 0.975rem;
  color: var(--ink-600);
  line-height: 1.65;
  margin-bottom: 22px;
}

.apex-spec-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  border-top: 1px solid var(--border-light);
}

.apex-spec-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.875rem;
}

.apex-spec-list strong {
  color: var(--ink-900);
  font-weight: 700;
}

.apex-spec-list span {
  color: var(--ink-600);
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.apex-tool-card__note {
  font-size: 0.82rem;
  color: var(--ink-500);
  margin-bottom: 22px;
  line-height: 1.55;
}

.apex-tool-card__actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.apex-text-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-teal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 0;
}

.apex-text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.apex-companion-strip {
  margin-top: 20px;
  padding: 16px 22px;
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.apex-companion-strip__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.apex-companion-strip__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.apex-companion-strip__links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-blue-ink);
  text-decoration: none;
}

.apex-companion-strip__links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* =========================================================
   SECTION 3: LIVE DATA TERMINAL (COVERAGE + MOVERS)
   ========================================================= */
.apex-terminal-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.apex-tablist {
  display: inline-flex;
  padding: 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
  gap: 4px;
}

.apex-tab-btn {
  min-height: 40px;
  padding: 8px 18px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--text-light-300);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.apex-tab-btn:hover {
  color: #ffffff;
}

.apex-tab-btn[aria-selected="true"] {
  background: var(--brand-blue-dark);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}

.apex-terminal-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.apex-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.apex-filter-btn {
  min-height: 36px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  color: var(--text-light-300);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.apex-filter-btn:hover {
  border-color: var(--border-dark-strong);
  color: #ffffff;
}

.apex-filter-btn.is-active {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.42);
  color: var(--brand-cyan);
}

.apex-terminal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.apex-stamp-pill {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-light-400);
}

.apex-sort-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-light-400);
}

.apex-sort-select {
  min-height: 36px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--navy-850);
  border: 1px solid var(--border-dark-strong);
  color: var(--text-light-100);
  font-size: 0.82rem;
  font-weight: 600;
}

/* Coverage Table */
.apex-table-frame {
  background: rgba(15, 27, 48, 0.85);
  border: 1px solid var(--border-dark-strong);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.apex-matrix {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.apex-matrix thead th {
  padding: 12px 10px;
  background: rgba(7, 14, 27, 0.75);
  border-bottom: 1px solid var(--border-dark-strong);
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-light-400);
  white-space: nowrap;
}

.apex-matrix thead th:first-child,
.apex-matrix td:first-child {
  padding-left: 18px;
}

.apex-matrix thead th:last-child,
.apex-matrix td:last-child {
  padding-right: 18px;
  text-align: right;
}

.apex-matrix tbody tr {
  border-bottom: 1px solid var(--border-dark);
  transition: background-color 0.15s ease;
}

.apex-matrix tbody tr:last-child {
  border-bottom: 0;
}

.apex-matrix tbody tr:hover {
  background: rgba(56, 189, 248, 0.05);
}

.apex-matrix tbody tr[hidden] {
  display: none;
}

.apex-matrix td {
  padding: 12px 10px;
  vertical-align: middle;
  font-size: 0.875rem;
  color: var(--text-light-200);
}

.apex-stock-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.apex-stock-cell__top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.apex-stock-cell__sym {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--brand-cyan);
  text-decoration: none;
}

.apex-stock-cell__sym:hover {
  text-decoration: underline;
}

.apex-stock-cell__sec {
  font-size: 0.7rem;
  color: var(--text-light-400);
}

.apex-stock-cell__name {
  font-size: 0.8rem;
  color: var(--text-light-300);
}

.apex-mini-meter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.apex-mini-meter__bar {
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
  flex-shrink: 0;
}

.apex-mini-meter__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.apex-mini-meter__fill.is-bull { background: var(--bull-dark); }
.apex-mini-meter__fill.is-neutral { background: var(--neutral-dark); }
.apex-mini-meter__fill.is-bear { background: var(--bear-dark); }

.apex-lens-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.apex-lens-chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
  color: var(--text-light-300);
  white-space: nowrap;
}

.apex-lens-chip.is-bull { color: var(--bull-dark); border-color: var(--bull-dark-bd); }
.apex-lens-chip.is-neutral { color: var(--neutral-dark); border-color: var(--neutral-dark-bd); }
.apex-lens-chip.is-bear { color: var(--bear-dark); border-color: var(--bear-dark-bd); }

.apex-health-tag {
  font-size: 0.78rem;
  font-weight: 600;
}

.apex-health-tag.is-good { color: var(--bull-dark); }
.apex-health-tag.is-warn { color: var(--neutral-dark); }

.apex-row-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-cyan);
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
}

.apex-row-link:hover {
  background: rgba(56, 189, 248, 0.16);
  color: #ffffff;
}

/* Movers Grid */
.apex-movers-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.apex-mover-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(15, 27, 48, 0.9);
  border: 1px solid var(--border-dark);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

a.apex-mover-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-2px);
}

.apex-mover-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.apex-mover-card__sym {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light-100);
}

.apex-mover-card__price {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text-light-100);
}

.apex-mover-card__name {
  font-size: 0.82rem;
  color: var(--text-light-400);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.apex-mover-card__linkhint {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--brand-cyan);
}

.apex-mover-state {
  grid-column: 1 / -1;
  padding: 28px;
  border-radius: var(--radius-md);
  background: rgba(15, 27, 48, 0.75);
  border: 1px solid var(--border-dark);
  text-align: center;
  color: var(--text-light-300);
}

.apex-mover-state p {
  margin-bottom: 14px;
}

.apex-terminal-footnote {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-light-400);
}

.apex-terminal-footnote a {
  color: var(--brand-cyan);
  text-decoration: none;
}

.apex-terminal-footnote a:hover {
  text-decoration: underline;
}

/* =========================================================
   SECTION 4: METHODOLOGY & EDITORIAL TRUST (WHITE BAND)
   ========================================================= */
.apex-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 40px;
}

.apex-step-card {
  padding: 26px;
  background: var(--surface-canvas);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.apex-step-card__num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-teal);
  background: #e6f4f3;
  border: 1px solid #cce6e4;
  padding: 3px 9px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.apex-step-card h3 {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin-bottom: 8px;
}

.apex-step-card p {
  font-size: 0.925rem;
  color: var(--ink-600);
  line-height: 1.65;
  margin: 0;
}

.apex-trust-split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: 24px;
  align-items: stretch;
}

.apex-boundary-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.apex-boundary-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin: 0;
}

.apex-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.apex-compare-col {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface-canvas);
  border: 1px solid var(--border-light);
}

.apex-compare-col h4 {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-blue-ink);
  margin-bottom: 10px;
}

.apex-compare-col--editorial h4 {
  color: var(--brand-teal);
}

.apex-compare-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.86rem;
  color: var(--ink-700);
}

.apex-notice-bar {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--neutral-light-bg);
  border: 1px solid #fde68a;
  border-left: 4px solid var(--brand-gold);
  font-size: 0.86rem;
  color: #78350f;
  line-height: 1.6;
}

.apex-notice-bar a {
  color: #92400e;
  font-weight: 700;
}

.apex-founder-card {
  background: var(--navy-900);
  color: var(--text-light-100);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--border-dark-strong);
}

.apex-founder-card__top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.apex-founder-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 2px solid rgba(56, 189, 248, 0.45);
  flex-shrink: 0;
}

.apex-founder-card__role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--brand-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.apex-founder-card__name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-light-100);
  margin: 0;
}

.apex-founder-card__bio {
  font-size: 0.92rem;
  line-height: 1.68;
  color: var(--text-light-300);
  margin: 0;
}

.apex-founder-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* =========================================================
   SECTION 5: ON-DEMAND TECHNICAL INDICATORS (TINT BAND)
   ========================================================= */
.apex-tv-split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
  gap: 28px;
  align-items: stretch;
}

.apex-tv-rail {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.apex-tv-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.apex-tv-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  color: var(--ink-900);
  text-align: left;
  cursor: pointer;
  transition: all 0.16s ease;
}

.apex-tv-tab:hover {
  border-color: var(--brand-blue);
}

.apex-tv-tab.is-active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.apex-tv-tab__name {
  font-weight: 700;
  font-size: 0.93rem;
}

.apex-tv-tab__sym {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-500);
}

.apex-tv-tab.is-active .apex-tv-tab__sym {
  color: var(--brand-cyan);
}

.apex-tv-context {
  padding: 16px 18px;
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  font-size: 0.86rem;
  color: var(--ink-600);
}

.apex-tv-context a {
  display: inline-block;
  margin-top: 6px;
  font-weight: 700;
  color: var(--brand-blue-ink);
  text-decoration: none;
}

.apex-tv-context a:hover {
  text-decoration: underline;
}

.apex-tv-stage {
  background: var(--navy-900);
  border: 1px solid var(--border-dark-strong);
  border-radius: var(--radius-md);
  height: 452px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.apex-tv-stage__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(7, 14, 27, 0.72);
  border-bottom: 1px solid var(--border-dark);
  flex-shrink: 0;
}

.apex-tv-stage__sym {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--brand-cyan);
}

.apex-tv-stage__source {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-light-400);
}

.apex-tv-host {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  padding: 10px 12px;
}

.apex-tv-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: var(--text-light-300);
}

.apex-tv-placeholder p {
  max-width: 42ch;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

/* =========================================================
   SECTION 6: CURATED RESEARCH DESK (WHITE BAND)
   ========================================================= */
.apex-flagship {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--surface-white);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
  margin-bottom: 26px;
}

.apex-flagship__aside {
  background: linear-gradient(155deg, var(--navy-900) 0%, #142847 100%);
  color: var(--text-light-100);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.apex-flagship__badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 11px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--brand-cyan);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.apex-flagship__quote {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text-light-100);
  margin: 0;
}

.apex-flagship__meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-dark);
}

.apex-flagship__meta-val {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
}

.apex-flagship__meta-lbl {
  font-size: 0.74rem;
  color: var(--text-light-400);
}

.apex-flagship__body {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.apex-flagship__date {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--brand-teal);
  font-weight: 600;
  margin-bottom: 10px;
}

.apex-flagship__title {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--ink-900);
  margin-bottom: 12px;
}

.apex-flagship__desc {
  font-size: 0.98rem;
  color: var(--ink-600);
  line-height: 1.68;
  margin-bottom: 22px;
}

/* 6 Curated Research Cards */
.apex-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 34px;
}

.apex-article-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--surface-canvas);
  border: 1px solid var(--border-light);
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.apex-article-card:hover {
  border-color: var(--brand-blue);
  background: var(--surface-white);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  transform: translateY(-2px);
}

.apex-article-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--brand-teal);
  font-weight: 600;
  margin-bottom: 10px;
}

.apex-article-card__title {
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink-900);
  margin-bottom: 10px;
}

.apex-article-card__desc {
  font-size: 0.89rem;
  color: var(--ink-600);
  line-height: 1.6;
  margin-bottom: 18px;
}

.apex-article-card__more {
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-blue-ink);
}

/* 4 Topic Pathways */
.apex-pathways {
  padding-top: 30px;
  border-top: 1px solid var(--border-light);
}

.apex-pathways__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink-900);
  margin-bottom: 18px;
}

.apex-pathways-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.apex-pathway-col {
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--surface-canvas);
  border: 1px solid var(--border-light);
}

.apex-pathway-col h3 {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-teal);
  margin-bottom: 12px;
}

.apex-pathway-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.apex-pathway-col a {
  font-size: 0.855rem;
  font-weight: 600;
  color: var(--ink-700);
  text-decoration: none;
  line-height: 1.4;
}

.apex-pathway-col a:hover {
  color: var(--brand-blue-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================================
   SECTION 7: FAQ (LIGHT CANVAS BAND)
   ========================================================= */
.apex-faq-split {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 44px;
  align-items: start;
}

.apex-faq-aside {
  position: sticky;
  top: 96px;
}

.apex-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.apex-faq-item {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.16s ease;
}

.apex-faq-item[open] {
  border-color: var(--brand-blue);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

.apex-faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-900);
  cursor: pointer;
}

.apex-faq-item summary::-webkit-details-marker {
  display: none;
}

.apex-faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-canvas);
  border: 1px solid var(--border-light);
  color: var(--brand-blue-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

.apex-faq-item[open] .apex-faq-icon {
  transform: rotate(45deg);
  background: var(--brand-blue-dark);
  border-color: var(--brand-blue-dark);
  color: #ffffff;
}

.apex-faq-item__body {
  padding: 0 22px 20px;
  font-size: 0.94rem;
  color: var(--ink-600);
  line-height: 1.7;
}

.apex-faq-item__body a {
  color: var(--brand-blue-ink);
  font-weight: 600;
}

/* =========================================================
   SECTION 8: FOOTER & CONTACT BAR (DEEP NAVY)
   ========================================================= */
.apex-footer {
  background: var(--navy-950);
  color: var(--text-light-300);
  border-top: 1px solid var(--border-dark);
}

.apex-cta-strip {
  padding: 46px 0;
  border-bottom: 1px solid var(--border-dark);
  background: linear-gradient(90deg, rgba(15, 27, 48, 0.8) 0%, rgba(11, 20, 36, 0.95) 100%);
}

.apex-cta-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.apex-cta-strip h2 {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-light-100);
  margin-bottom: 6px;
}

.apex-cta-strip p {
  font-size: 0.95rem;
  color: var(--text-light-300);
  margin: 0;
}

.apex-cta-strip__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.apex-footer__main {
  padding: 52px 0 40px;
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1fr;
  gap: 36px;
}

.apex-footer__desc {
  font-size: 0.88rem;
  color: var(--text-light-400);
  line-height: 1.65;
  margin: 14px 0 20px;
  max-width: 34ch;
}

.apex-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.apex-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  color: var(--text-light-300);
  text-decoration: none;
  transition: all 0.16s ease;
}

.apex-social-btn:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.45);
  color: #ffffff;
}

.apex-directory-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.78rem;
  color: var(--text-light-400);
}

.apex-directory-links a {
  color: var(--text-light-300);
  text-decoration: none;
}

.apex-directory-links a:hover {
  color: var(--brand-cyan);
  text-decoration: underline;
}

.apex-footer__col h3 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-cyan);
  margin-bottom: 14px;
}

.apex-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.apex-footer__col a {
  font-size: 0.875rem;
  color: var(--text-light-300);
  text-decoration: none;
  transition: color 0.15s ease;
}

.apex-footer__col a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.apex-footer__disclaimer {
  padding: 20px 0;
  border-top: 1px solid var(--border-dark);
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--text-light-400);
}

.apex-footer__disclaimer strong {
  color: var(--text-light-200);
}

.apex-footer__disclaimer a {
  color: var(--brand-cyan);
  text-decoration: none;
  font-weight: 600;
}

.apex-footer__disclaimer a:hover {
  text-decoration: underline;
}

.apex-footer__bottom {
  padding: 18px 0 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-light-400);
}

.apex-footer__bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.apex-footer__bottom-links a {
  color: var(--text-light-400);
  text-decoration: none;
}

.apex-footer__bottom-links a:hover {
  color: var(--text-light-200);
}

/* =========================================================
   RESPONSIVE BREAKPOINTS (1024 / 860 / 768 / 640 / 390 / 360)
   ========================================================= */
@media (max-width: 1080px) {
  .apex-hero__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .apex-hero__facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .apex-movers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .apex-articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .apex-pathways-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .apex-footer__main {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .apex-nav,
  .apex-header__cta {
    display: none;
  }

  .apex-menu-btn {
    display: inline-flex;
  }

  .apex-tools-grid,
  .apex-steps-grid,
  .apex-trust-split,
  .apex-tv-split,
  .apex-flagship,
  .apex-faq-split {
    grid-template-columns: 1fr;
  }

  .apex-faq-aside {
    position: static;
  }

  .apex-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .apex-container {
    padding: 0 18px;
  }

  .apex-band {
    padding: 58px 0;
  }

  .apex-hero {
    padding: 40px 0 48px;
  }

  .apex-hero__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .apex-hero__ctas {
    flex-direction: column;
  }

  .apex-hero__ctas .apex-btn {
    width: 100%;
  }

  .apex-wb__body {
    padding: 16px;
  }

  .apex-wb__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .apex-wb__price-col {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  .apex-wb__price {
    margin-bottom: 0;
  }

  .apex-wb__lenses,
  .apex-wb__metrics,
  .apex-compare-grid,
  .apex-articles-grid,
  .apex-pathways-grid,
  .apex-movers-grid,
  .apex-matrix tbody,
  .apex-footer__main {
    grid-template-columns: 1fr;
  }

  .apex-pillar__row {
    grid-template-columns: 104px minmax(0, 1fr) 38px;
    gap: 8px;
  }

  .apex-tool-card,
  .apex-flagship__aside,
  .apex-flagship__body,
  .apex-boundary-card,
  .apex-founder-card {
    padding: 22px;
  }

  .apex-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .apex-tablist {
    width: 100%;
  }

  .apex-tab-btn {
    flex: 1;
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  .apex-tv-stage {
    height: 410px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .apex-home *,
  .apex-home *::before,
  .apex-home *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Homepage refinement: compact hierarchy, real data provenance, responsive table. */
.apex-home .apex-band { padding: 64px 0; }
.apex-home .apex-section-head { margin-bottom: 26px; }
.apex-home .apex-section-head--center { gap: 8px; }
.apex-home .apex-hero__grid { column-gap: 44px; row-gap: 20px; align-items: center; }
.apex-home .apex-hero__copy { grid-column: 1; grid-row: 1; align-self: end; }
.apex-home .apex-hero__support { grid-column: 1; grid-row: 2; align-self: start; }
.apex-home .apex-wb { grid-column: 2; grid-row: 1 / 3; }
.apex-home .apex-hero__title { font-size: clamp(2.2rem,4.3vw,3.8rem); line-height: 1.08; max-width: 20ch; }
.apex-home .apex-hero__lead { max-width: 51ch; }
.apex-home .apex-hero__ctas { margin-bottom: 0; }
.apex-home .apex-hero__facts { margin-top: 18px; padding-top: 18px; }
.apex-home .apex-table-hint { display: none; color: var(--text-light-300); font-size: .84rem; margin: 0 0 10px; }
.apex-home .apex-stock-cell__date { display:block; color: var(--text-light-400); font-size: .68rem; font-variant-numeric: tabular-nums; line-height: 1.35; }
.apex-home .apex-matrix td { padding-top: 9px; padding-bottom: 9px; }
.apex-home .apex-matrix td:first-child { min-width: 142px; }
.apex-home .apex-matrix td:nth-child(2), .apex-home .apex-matrix td:nth-child(3) { white-space: nowrap; }
.apex-home .apex-anchor-alias { display:block; scroll-margin-top: 90px; }
.apex-home .apex-tool-card__desc, .apex-home .apex-article-card__desc { line-height: 1.55; }
.apex-home .apex-tool-card { padding: 24px; }
.apex-home .apex-article-card { padding: 20px; }
.apex-home .apex-wb__tab { min-height: 40px; }
.apex-home .apex-table-frame { overscroll-behavior-inline: contain; }
.apex-home .apex-table-frame:focus-visible { outline-offset: 4px; }
.apex-home .apex-tv-placeholder { gap: 12px; }
@media (max-width: 1080px) {
 .apex-home .apex-hero__grid { grid-template-columns: minmax(0,1fr); gap: 22px; }
 .apex-home .apex-hero__copy,.apex-home .apex-wb,.apex-home .apex-hero__support { grid-column: 1; grid-row: auto; }
 .apex-home .apex-hero__title { max-width: 18ch; }
 .apex-home .apex-table-hint { display: block; }
 .apex-home .apex-matrix { min-width: 970px; }
 .apex-home .apex-matrix th:first-child,.apex-home .apex-matrix td:first-child { position: sticky; left: 0; z-index: 1; background: #111f36; box-shadow: 1px 0 0 var(--border-dark-strong); }
 .apex-home .apex-matrix td:first-child { max-width: 150px; padding-left: 12px; }
}
@media (max-width: 640px) {
 .apex-home .apex-band { padding: 40px 0; }
 .apex-home .apex-hero { padding: 30px 0 38px; }
 .apex-home .apex-hero__title { font-size: clamp(2rem,9vw,2.65rem); max-width: 15ch; }
 .apex-home .apex-hero__lead { font-size: 1rem; line-height: 1.55; margin-bottom: 18px; }
 .apex-home .apex-hero__pill { font-size: .65rem; letter-spacing: .045em; margin-bottom: 14px; }
 .apex-home .apex-hero__ctas { gap: 8px; }
 .apex-home .apex-wb__lenses { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
 .apex-home .apex-wb__metrics { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
 .apex-home .apex-wb__metric { min-width: 0; padding: 8px; }
 .apex-home .apex-wb__metric-val { font-size: .76rem; overflow-wrap: anywhere; }
 .apex-home .apex-wb__metric-lbl { font-size: .65rem; }
 .apex-home .apex-lens-box { padding: 9px; }
 .apex-home .apex-lens-box__row { flex-wrap: wrap; gap: 4px; }
 .apex-home .apex-hero__facts { gap: 10px; }
 .apex-home .apex-tool-card { padding: 20px; }
 .apex-home .apex-section-head { gap: 12px; }
 .apex-home .apex-h2 { font-size: 1.75rem; }
 .apex-home .apex-table-frame { max-width: 100%; }
 .apex-home .apex-matrix td:first-child { min-width: 120px; max-width: 120px; }
 .apex-home .apex-matrix th:first-child { max-width: 120px; }
 .apex-home .apex-article-card { padding: 18px; }
 .apex-home .apex-tv-stage { height: 410px; }
}

/* Original Stock Analysis CTA — restored from the first ApexTicker homepage. */
.apex-home .apex-original-stock-section { padding: 36px 0; }
.apex-home .apex-original-stock-card { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; }
.apex-home .apex-original-stock-card h2 { line-height: 1.2; }
.apex-home .apex-original-stock-card p:last-child { margin-bottom: 0; }
@keyframes apex-original-stock-rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.apex-home .apex-original-stock-card .apex-original-stock-cta:hover,
.apex-home .apex-original-stock-card .apex-original-stock-cta:focus-visible { transform: scale(1.05) translateY(-2px); box-shadow: 0 15px 50px rgba(59,130,246,.5) !important; }
@media (max-width: 640px) {
  .apex-home .apex-original-stock-section { padding: 24px 0; }
  .apex-home .apex-original-stock-card { padding: 32px 18px !important; }
  .apex-home .apex-original-stock-card h2 { font-size: 1.85rem !important; }
  .apex-home .apex-original-stock-card h2 + p { font-size: 1rem !important; line-height: 1.65 !important; margin-bottom: 24px !important; }
  .apex-home .apex-original-stock-card .apex-original-stock-cta { padding: 15px 22px !important; max-width: 100%; font-size: 1rem !important; }
  .apex-home .apex-original-stock-card h2 + p + div { gap: 14px 18px !important; margin-bottom: 24px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .apex-home .apex-original-stock-card *, .apex-home .apex-original-stock-card .apex-original-stock-cta { animation: none !important; transition: none !important; }
  .apex-home .apex-original-stock-card .apex-original-stock-cta:hover, .apex-home .apex-original-stock-card .apex-original-stock-cta:focus-visible { transform: none; }
}
