/* ==========================================================================
   ProfitPulse Capital — Core Design System
   --------------------------------------------------------------------------
   Ultra-premium dark-luxury fintech UI. Single shared stylesheet consumed by
   every page. Page-specific rules live in /assets/css/pages/<page>.css.

   Table of contents
   1.  Design Tokens (CSS custom properties)
   2.  Light-theme token overrides
   3.  Reset & base elements
   4.  Typography
   5.  Layout primitives (container, section, grid)
   6.  Section headings / eyebrows
   7.  Buttons
   8.  Cards & surfaces (glass, gradient border, feature)
   9.  Badges, pills, chips, dividers
   10. Navigation (glass navbar, mega menu, mobile drawer)
   11. Footer
   12. Marquee / ticker tape
   13. Stats & counters
   14. Process timeline / steps
   15. Pricing
   16. Testimonials
   17. Accordion (FAQ)
   18. Forms
   19. Tables
   20. Dashboard widgets
   21. Blog / article cards
   22. Inner-page hero + breadcrumb
   23. Utilities & animation classes
   24. Chrome: preloader, cursor, back-to-top, floating CTA, toast, progress
   25. Responsive breakpoints
   26. Reduced-motion & print
   ========================================================================== */

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
  /* --- Base background layers (deep space navy, never pure black) --- */
  --bg-0: #050816;          /* page base */
  --bg-1: #070b1f;          /* raised */
  --bg-2: #0a1029;          /* card */
  --bg-3: #0e1636;          /* card hover / elevated */
  --bg-inset: #04060f;      /* wells, code, insets */

  /* --- Brand palette --- */
  --emerald: #10b981;
  --emerald-bright: #34d399;
  --emerald-deep: #059669;
  --blue: #3b82f6;
  --blue-bright: #60a5fa;
  --blue-deep: #2563eb;
  --gold: #f5b83d;
  --gold-bright: #ffd27a;
  --gold-deep: #d99a2b;

  /* --- Text --- */
  --text-0: #f6f9ff;        /* headings / hi-contrast */
  --text-1: #c7d0e6;        /* body */
  --text-2: #8f9bc0;        /* muted */
  --text-3: #5f6a90;        /* faint / captions */

  /* --- Market semantics --- */
  --up: #22c55e;
  --up-soft: rgba(34, 197, 94, 0.14);
  --down: #f43f5e;
  --down-soft: rgba(244, 63, 94, 0.14);
  --warn: #fbbf24;

  /* --- Lines & strokes --- */
  --line: rgba(148, 163, 214, 0.12);
  --line-strong: rgba(148, 163, 214, 0.22);
  --line-faint: rgba(148, 163, 214, 0.07);

  /* --- Surfaces (glass) --- */
  --glass: rgba(255, 255, 255, 0.035);
  --glass-2: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-hi: rgba(255, 255, 255, 0.14);

  /* --- Gradients --- */
  --grad-brand: linear-gradient(135deg, var(--emerald) 0%, var(--blue) 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(16,185,129,0.18), rgba(59,130,246,0.18));
  --grad-gold: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 45%, var(--gold-deep) 100%);
  --grad-emerald: linear-gradient(135deg, var(--emerald-bright), var(--emerald-deep));
  --grad-text: linear-gradient(100deg, #ffffff 0%, #cfe0ff 40%, #86efc9 100%);
  --grad-line: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  --grad-mesh:
    radial-gradient(60% 55% at 12% 8%, rgba(16,185,129,0.16), transparent 60%),
    radial-gradient(55% 50% at 88% 6%, rgba(59,130,246,0.16), transparent 62%),
    radial-gradient(45% 45% at 50% 100%, rgba(245,184,61,0.08), transparent 70%);

  /* --- Glows & shadows --- */
  --glow-emerald: 0 0 0 1px rgba(16,185,129,0.35), 0 18px 50px -18px rgba(16,185,129,0.55);
  --glow-blue: 0 0 0 1px rgba(59,130,246,0.35), 0 18px 50px -18px rgba(59,130,246,0.55);
  --glow-gold: 0 0 0 1px rgba(245,184,61,0.4), 0 18px 50px -18px rgba(245,184,61,0.5);
  --shadow-sm: 0 2px 8px rgba(2, 5, 16, 0.4);
  --shadow-md: 0 12px 30px -12px rgba(2, 5, 16, 0.75);
  --shadow-lg: 0 34px 80px -30px rgba(2, 5, 16, 0.9);
  --shadow-card: 0 1px 0 0 var(--glass-hi) inset, 0 20px 50px -28px rgba(0,0,0,0.85);

  /* --- Radii --- */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* --- Spacing scale (4pt rhythm) --- */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 20px;  --sp-6: 24px;  --sp-8: 32px;  --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;
  --sp-32: 128px;

  /* --- Fluid type scale (clamp: min | vw | max) --- */
  --fs-display: clamp(2.9rem, 1.6rem + 5.6vw, 6.2rem);
  --fs-h1: clamp(2.3rem, 1.5rem + 3.3vw, 4rem);
  --fs-h2: clamp(1.9rem, 1.35rem + 2.2vw, 2.9rem);
  --fs-h3: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
  --fs-h4: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  --fs-lead: clamp(1.05rem, 0.98rem + 0.4vw, 1.28rem);
  --fs-body: 1rem;
  --fs-sm: 0.9rem;
  --fs-xs: 0.8rem;
  --fs-eyebrow: 0.78rem;

  /* --- Typography families --- */
  --font-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', ui-monospace, monospace;

  /* --- Motion --- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);      /* expo.out */
  --ease-in-out: cubic-bezier(0.83, 0, 0.17, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 0.18s;
  --t-med: 0.32s;
  --t-slow: 0.6s;

  /* --- Structure --- */
  --container: 1360px;
  --container-wide: 1560px;
  --nav-h: 76px;
  --blur: 18px;

  /* --- Z-index scale --- */
  --z-base: 1;
  --z-raised: 10;
  --z-sticky: 100;
  --z-nav: 500;
  --z-drawer: 800;
  --z-overlay: 900;
  --z-toast: 1000;
  --z-cursor: 9999;

  color-scheme: dark;
}

/* ==========================================================================
   2. LIGHT-THEME OVERRIDES
   ========================================================================== */
:root[data-theme='light'] {
  --bg-0: #eef2fb;
  --bg-1: #f6f8ff;
  --bg-2: #ffffff;
  --bg-3: #ffffff;
  --bg-inset: #e9eefb;

  --text-0: #0a1230;
  --text-1: #2b3660;
  --text-2: #5a6690;
  --text-3: #8a93b8;

  --line: rgba(20, 32, 80, 0.12);
  --line-strong: rgba(20, 32, 80, 0.2);
  --line-faint: rgba(20, 32, 80, 0.07);

  --glass: rgba(255, 255, 255, 0.7);
  --glass-2: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(20, 32, 80, 0.1);
  --glass-hi: rgba(255, 255, 255, 0.9);

  --grad-text: linear-gradient(100deg, #0a1230 0%, #1d4ed8 45%, #047857 100%);
  --grad-mesh:
    radial-gradient(60% 55% at 12% 8%, rgba(16,185,129,0.12), transparent 60%),
    radial-gradient(55% 50% at 88% 6%, rgba(59,130,246,0.12), transparent 62%),
    radial-gradient(45% 45% at 50% 100%, rgba(245,184,61,0.1), transparent 70%);

  --shadow-card: 0 1px 0 0 rgba(255,255,255,0.9) inset, 0 24px 50px -30px rgba(20,32,80,0.35);
  --shadow-lg: 0 40px 80px -40px rgba(20, 32, 80, 0.4);

  color-scheme: light;
}

/* ==========================================================================
   3. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Lenis manages scroll when active; native smooth is the no-JS fallback. */
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text-1);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Ambient page background: fixed mesh + subtle grid */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--grad-mesh);
  pointer-events: none;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--line-faint) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-faint) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 80%);
  opacity: 0.6;
  pointer-events: none;
}

img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: rgba(16, 185, 129, 0.32); color: #fff; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-inset); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--emerald-deep), var(--blue-deep));
  border-radius: 999px;
  border: 3px solid var(--bg-inset);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(var(--emerald), var(--blue)); }

:focus-visible {
  outline: 2px solid var(--emerald-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: var(--z-toast);
  padding: 10px 18px;
  background: var(--emerald);
  color: #04120c;
  border-radius: var(--r-sm);
  font-weight: 600;
  transition: top var(--t-fast) var(--ease-out);
}
.skip-link:focus { top: 16px; }

/* ==========================================================================
   4. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-0);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.015em; }
h4 { font-size: var(--fs-h4); letter-spacing: -0.01em; }
p { color: var(--text-1); }
strong { color: var(--text-0); font-weight: 600; }
small { font-size: var(--fs-sm); }
code, kbd, pre { font-family: var(--font-mono); }

.lead { font-size: var(--fs-lead); color: var(--text-1); line-height: 1.7; }
.muted { color: var(--text-2); }
.mono { font-family: var(--font-mono); font-feature-settings: 'tnum' 1; letter-spacing: -0.01em; }
.tnum { font-variant-numeric: tabular-nums; }

.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-emerald { color: var(--emerald-bright); }
.text-blue { color: var(--blue-bright); }
.text-gold {
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.text-up { color: var(--up); }
.text-down { color: var(--down); }
.text-glow { text-shadow: 0 0 24px rgba(52, 211, 153, 0.5); }
.balance { text-wrap: balance; }

/* ==========================================================================
   5. LAYOUT PRIMITIVES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}
.container-wide { max-width: var(--container-wide); }
.container-narrow { max-width: 820px; }

.section {
  position: relative;
  padding-block: clamp(64px, 9vw, 130px);
}
.section-sm { padding-block: clamp(48px, 6vw, 80px); }
.section-tight { padding-block: clamp(40px, 5vw, 64px); }

.grid { display: grid; gap: var(--sp-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: var(--sp-2); } .gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); } .gap-6 { gap: var(--sp-6); }
.wrap { flex-wrap: wrap; }

/* Decorative section glow divider */
.rule {
  height: 1px;
  border: 0;
  background: var(--grad-line);
  margin-block: var(--sp-12);
}

/* ==========================================================================
   6. SECTION HEADINGS / EYEBROWS
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--emerald-bright);
  padding: 7px 14px;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-pill);
  background: var(--glass);
  backdrop-filter: blur(10px);
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 10px var(--emerald-bright);
}
.eyebrow.is-blue { color: var(--blue-bright); }
.eyebrow.is-blue::before { background: var(--blue-bright); box-shadow: 0 0 10px var(--blue-bright); }
.eyebrow.is-gold { color: var(--gold-bright); }
.eyebrow.is-gold::before { background: var(--gold-bright); box-shadow: 0 0 10px var(--gold-bright); }

.section-head { max-width: 680px; margin-bottom: var(--sp-12); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: var(--sp-5); }
.section-head h2 { margin-bottom: var(--sp-4); }
.section-head p { color: var(--text-2); font-size: var(--fs-lead); }

/* ==========================================================================
   7. BUTTONS
   ========================================================================== */
.btn {
  --btn-bg: var(--glass-2);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--r-pill);
  color: var(--text-0);
  background: var(--btn-bg);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  transition: transform var(--t-med) var(--ease-out),
              box-shadow var(--t-med) var(--ease-out),
              border-color var(--t-med) var(--ease-out),
              background var(--t-med) var(--ease-out);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary {
  background: var(--grad-gold);
  color: #1a1204;
  border-color: transparent;
  box-shadow: 0 10px 30px -12px rgba(245, 184, 61, 0.6);
}
.btn-primary:hover { box-shadow: var(--glow-gold), 0 16px 40px -14px rgba(245,184,61,0.7); }

.btn-emerald {
  background: var(--grad-emerald);
  color: #04120c;
  border-color: transparent;
  box-shadow: 0 10px 30px -12px rgba(16, 185, 129, 0.55);
}
.btn-emerald:hover { box-shadow: var(--glow-emerald); }

.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--glass-2); border-color: var(--glass-hi); }

.btn-glass { background: var(--glass-2); backdrop-filter: blur(10px); }
.btn-glass:hover { background: var(--glass-hi); border-color: var(--glass-hi); }

/* Sheen sweep on primary/emerald buttons */
.btn-primary::after, .btn-emerald::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.4) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out);
}
.btn-primary:hover::after, .btn-emerald:hover::after { transform: translateX(120%); }

.btn-sm { padding: 10px 18px; font-size: 0.85rem; }
.btn-lg { padding: 18px 36px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-icon { padding: 13px; border-radius: 50%; }

/* Magnetic wrapper (JS moves inner .btn) */
.magnetic { display: inline-flex; }

/* Text / arrow link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--emerald-bright);
  transition: gap var(--t-med) var(--ease-out), color var(--t-fast);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--t-med) var(--ease-out); }
.link-arrow:hover { gap: 12px; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ==========================================================================
   8. CARDS & SURFACES
   ========================================================================== */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
}

.card {
  position: relative;
  background:
    linear-gradient(180deg, var(--glass-2), var(--glass)) padding-box;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  overflow: hidden;
  transition: transform var(--t-med) var(--ease-out),
              border-color var(--t-med) var(--ease-out),
              box-shadow var(--t-med) var(--ease-out);
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--glass-hi);
  box-shadow: var(--shadow-lg);
}

/* Spotlight that follows cursor (JS sets --mx/--my) */
.card-spot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%),
              rgba(16, 185, 129, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease-out);
  pointer-events: none;
}
.card-spot:hover::before { opacity: 1; }

/* Animated gradient border */
.card-gradient {
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, var(--bg-2), var(--bg-1)) padding-box,
    linear-gradient(135deg, rgba(16,185,129,0.6), rgba(59,130,246,0.55), rgba(245,184,61,0.5)) border-box;
}

.feature-card { display: flex; flex-direction: column; gap: var(--sp-4); }
.feature-card .card-ico {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--grad-brand-soft);
  border: 1px solid var(--glass-border);
  color: var(--emerald-bright);
}
.feature-card .card-ico svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: var(--fs-h4); }
.feature-card p { color: var(--text-2); font-size: var(--fs-sm); }

.icon-chip {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: var(--grad-brand-soft);
  border: 1px solid var(--glass-border);
  color: var(--emerald-bright);
  flex: none;
}
.icon-chip svg { width: 22px; height: 22px; }
.icon-chip.is-blue { color: var(--blue-bright); }
.icon-chip.is-gold { color: var(--gold-bright); }

/* Bento grid helper */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--sp-5); }
.col-2 { grid-column: span 2; } .col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; } .col-6 { grid-column: span 6; }
.row-2 { grid-row: span 2; }

/* ==========================================================================
   9. BADGES, PILLS, CHIPS, DIVIDERS
   ========================================================================== */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  font-size: var(--fs-xs); font-weight: 600;
  border-radius: var(--r-pill);
  background: var(--glass-2);
  border: 1px solid var(--glass-border);
  color: var(--text-1);
}
.badge-up { color: var(--up); background: var(--up-soft); border-color: transparent; }
.badge-down { color: var(--down); background: var(--down-soft); border-color: transparent; }
.badge-gold { color: var(--gold-bright); background: rgba(245,184,61,0.12); border-color: transparent; }
.badge-live {
  color: var(--emerald-bright);
  background: rgba(16,185,129,0.12);
  border-color: transparent;
}
.badge-live .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 0 0 rgba(52,211,153,0.6);
  animation: pulse-dot 1.8s var(--ease-out) infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(52,211,153,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  font-size: var(--fs-sm); font-weight: 500;
  border-radius: var(--r-pill);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-2);
  transition: all var(--t-fast) var(--ease-out);
  cursor: pointer;
}
.chip:hover, .chip.is-active {
  color: var(--text-0);
  border-color: var(--emerald);
  background: rgba(16,185,129,0.08);
}

/* ==========================================================================
   10. NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  transition: transform var(--t-med) var(--ease-out);
}
.nav {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-6);
  transition: all var(--t-med) var(--ease-out);
}
/* Glass panel appears when scrolled */
.site-header.scrolled .nav-inner {
  background: rgba(6, 10, 26, 0.72);
  backdrop-filter: blur(var(--blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  border-color: var(--glass-border);
  box-shadow: var(--shadow-md);
}
:root[data-theme='light'] .site-header.scrolled .nav-inner {
  background: rgba(255, 255, 255, 0.8);
}
.nav-inner {
  margin-top: 14px;
  padding-inline: 20px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: all var(--t-med) var(--ease-out);
}

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
  color: var(--text-0);
}
.brand-name span { color: var(--emerald-bright); }

.nav-menu { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 15px;
  font-size: 0.92rem; font-weight: 500;
  color: var(--text-2);
  border-radius: var(--r-sm);
  transition: color var(--t-fast) var(--ease-out), background var(--t-fast);
}
.nav-link:hover, .nav-link[aria-current='page'] { color: var(--text-0); background: var(--glass); }
.nav-link .caret { width: 14px; height: 14px; transition: transform var(--t-med) var(--ease-out); }
.nav-item:hover .caret { transform: rotate(180deg); }

/* Mega menu */
.mega {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: min(720px, 88vw);
  padding: var(--sp-6);
  background: rgba(8, 12, 30, 0.92);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out), visibility var(--t-med);
  /* Grace period before closing, so a momentary loss of hover while the
     cursor travels down to the panel does not slam it shut. Opening stays
     instant - see the zeroed delay in the :hover rule below. */
  transition-delay: 0.18s;
}
/* Hover bridge.
   The panel is offset 14px below the nav item, and that strip belonged to
   neither element: moving the cursor down toward the menu crossed dead space,
   hover was lost and the menu vanished before it could be reached. This
   pseudo-element extends the panel's hit area upward to meet the nav item. It
   stops exactly at the item's bottom edge so it never covers the nav link
   itself (a real link), and inherits pointer-events:none while the panel is
   closed, so it can never block anything underneath. */
.mega::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}
:root[data-theme='light'] .mega { background: rgba(255,255,255,0.96); }
.nav-item:hover .mega, .nav-item:focus-within .mega {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s;   /* open immediately */
}
.mega-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
.mega-link {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px;
  border-radius: var(--r-md);
  transition: background var(--t-fast) var(--ease-out);
}
.mega-link:hover { background: var(--glass-2); }
.mega-link .icon-chip { width: 40px; height: 40px; }
.mega-link h5 { font-family: var(--font-display); font-size: 0.96rem; color: var(--text-0); margin-bottom: 2px; }
.mega-link p { font-size: 0.82rem; color: var(--text-2); line-height: 1.4; }

.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }

/* Icon buttons (theme toggle, bell) */
.icon-btn {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text-1);
  transition: all var(--t-fast) var(--ease-out);
}
.icon-btn:hover { color: var(--text-0); border-color: var(--glass-hi); background: var(--glass-2); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn .sun { display: none; }
:root[data-theme='light'] .icon-btn .sun { display: block; }
:root[data-theme='light'] .icon-btn .moon { display: none; }
.bell-wrap { position: relative; }
.bell-dot {
  position: absolute; top: 8px; right: 9px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--bg-0);
}

/* Hamburger */
.nav-toggle { display: none; width: 44px; height: 44px; position: relative; border-radius: var(--r-sm); border: 1px solid var(--glass-border); background: var(--glass); }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text-0); border-radius: 2px; transition: transform var(--t-med) var(--ease-out), opacity var(--t-fast); }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: 0;
  z-index: var(--z-drawer);
  background: rgba(4, 6, 15, 0.6);
  backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-med) var(--ease-out), visibility var(--t-med);
}
.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-panel {
  position: absolute; top: 0; right: 0;
  width: min(400px, 88vw); height: 100%;
  padding: 92px 26px 32px;
  background: var(--bg-1);
  border-left: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform var(--t-slow) var(--ease-out);
  overflow-y: auto;
}
.mobile-nav.open .mobile-panel { transform: translateX(0); }
.mobile-links { display: flex; flex-direction: column; gap: 2px; }
.mobile-links a {
  padding: 15px 14px; font-family: var(--font-display); font-size: 1.05rem; font-weight: 500;
  color: var(--text-1); border-radius: var(--r-sm);
  border-bottom: 1px solid var(--line-faint);
  transition: color var(--t-fast), padding-left var(--t-fast) var(--ease-out);
}
.mobile-links a:hover { color: var(--emerald-bright); padding-left: 20px; }
.mobile-group > summary {
  list-style: none; cursor: pointer;
  padding: 15px 14px; font-family: var(--font-display); font-size: 1.05rem; font-weight: 500;
  color: var(--text-1); border-bottom: 1px solid var(--line-faint);
  display: flex; align-items: center; justify-content: space-between;
}
.mobile-group > summary::-webkit-details-marker { display: none; }
.mobile-group[open] > summary { color: var(--emerald-bright); }
.mobile-sublinks a { font-size: 0.95rem; padding-left: 28px; color: var(--text-2); }

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: var(--sp-24);
  padding-top: var(--sp-20);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(16,185,129,0.06), transparent 60%),
    var(--bg-1);
}
.footer-cta {
  margin-bottom: var(--sp-20);
  padding: clamp(36px, 5vw, 64px);
  border-radius: var(--r-xl);
  text-align: center;
  background:
    radial-gradient(90% 140% at 50% 0%, rgba(59,130,246,0.16), transparent 60%),
    var(--glass);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: var(--sp-10) var(--sp-8);
  padding-bottom: var(--sp-16);
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: var(--sp-5); font-weight: 600;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--text-2); font-size: 0.92rem; transition: color var(--t-fast), padding-left var(--t-fast) var(--ease-out); }
.footer-col a:hover { color: var(--emerald-bright); padding-left: 5px; }
.footer-brand p { color: var(--text-2); font-size: 0.92rem; max-width: 320px; margin-block: var(--sp-4) var(--sp-5); }
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: var(--r-sm); border: 1px solid var(--glass-border);
  background: var(--glass); color: var(--text-2);
  transition: all var(--t-fast) var(--ease-out);
}
.social-row a:hover { color: var(--text-0); border-color: var(--emerald); transform: translateY(-3px); background: rgba(16,185,129,0.1); }
.social-row svg { width: 18px; height: 18px; }
.footer-disclaimer {
  padding: var(--sp-6);
  border-radius: var(--r-md);
  background: var(--bg-inset);
  border: 1px solid var(--line);
  color: var(--text-3);
  font-size: 0.8rem; line-height: 1.7;
  margin-bottom: var(--sp-8);
}
.footer-disclaimer strong { color: var(--warn); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--sp-4);
  padding-block: var(--sp-8);
  border-top: 1px solid var(--line);
  color: var(--text-3); font-size: 0.85rem;
}
.footer-bottom .legal-links { display: flex; gap: var(--sp-5); flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--text-1); }

/* ==========================================================================
   12. MARQUEE / TICKER
   ========================================================================== */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-inset);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex; gap: var(--sp-8);
  width: max-content;
  padding-block: 14px;
  animation: marquee 40s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track.reverse { animation-direction: reverse; }
@keyframes marquee { to { transform: translateX(-50%); } }
.ticker-item {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.86rem;
  color: var(--text-2); white-space: nowrap;
}
.ticker-item .sym { color: var(--text-0); font-weight: 600; }
.ticker-item .chg.up { color: var(--up); }
.ticker-item .chg.down { color: var(--down); }

/* Logo marquee (trust bar) */
.logo-marquee .marquee-track { animation-duration: 32s; align-items: center; }
.logo-marquee .logo-item {
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
  color: var(--text-3); white-space: nowrap; letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 10px;
  transition: color var(--t-fast);
}
.logo-marquee .logo-item:hover { color: var(--text-1); }

/* ==========================================================================
   13. STATS & COUNTERS
   ========================================================================== */
.stat-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--sp-6);
}
.stat {
  padding: var(--sp-6);
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.2rem + 2.4vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-0);
  display: flex; align-items: baseline; gap: 2px;
}
.stat .num .suffix { color: var(--emerald-bright); }
.stat .label { margin-top: 10px; color: var(--text-2); font-size: 0.9rem; }

/* ==========================================================================
   14. PROCESS TIMELINE / STEPS
   ========================================================================== */
.process { position: relative; display: grid; gap: var(--sp-6); }
.process-line {
  position: absolute; left: 27px; top: 20px; bottom: 20px;
  width: 2px;
  background: linear-gradient(var(--emerald), var(--blue), var(--gold));
  opacity: 0.5;
}
.process-step { position: relative; display: flex; gap: var(--sp-5); padding-left: 0; }
.process-num {
  width: 56px; height: 56px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  color: var(--text-0);
  background: var(--bg-2);
  border: 1px solid var(--glass-border);
  position: relative; z-index: 1;
}
.process-step:hover .process-num { border-color: var(--emerald); box-shadow: var(--glow-emerald); }
.process-body h3 { font-size: var(--fs-h4); margin-bottom: 6px; }
.process-body p { color: var(--text-2); font-size: var(--fs-sm); }

/* Horizontal timeline (about / journey) */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--emerald), var(--blue), transparent);
}
.timeline-item { position: relative; padding-bottom: var(--sp-10); }
.timeline-item::before {
  content: ''; position: absolute; left: -34px; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg-0); border: 3px solid var(--emerald);
  box-shadow: 0 0 0 4px rgba(16,185,129,0.14);
}
.timeline-item .year { font-family: var(--font-mono); color: var(--gold-bright); font-size: 0.85rem; font-weight: 600; }
.timeline-item h3 { font-size: var(--fs-h4); margin: 6px 0; }
.timeline-item p { color: var(--text-2); font-size: var(--fs-sm); }

/* ==========================================================================
   15. PRICING
   ========================================================================== */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); align-items: stretch; }
.price-card { display: flex; flex-direction: column; }
.price-card.featured {
  border-color: transparent;
  background:
    linear-gradient(180deg, var(--bg-2), var(--bg-1)) padding-box,
    var(--grad-gold) border-box;
  box-shadow: 0 30px 70px -34px rgba(245,184,61,0.4);
}
.price-card .plan-name { font-family: var(--font-display); font-weight: 600; color: var(--text-0); font-size: 1.05rem; }
.price-card .plan-desc { color: var(--text-2); font-size: 0.86rem; margin-top: 4px; }
.price-amount { display: flex; align-items: baseline; gap: 6px; margin-block: var(--sp-5); }
.price-amount .amt { font-family: var(--font-display); font-size: 3rem; font-weight: 700; letter-spacing: -0.03em; color: var(--text-0); }
.price-amount .per { color: var(--text-2); font-size: 0.9rem; }
.price-features { display: flex; flex-direction: column; gap: 12px; margin-block: var(--sp-6); flex: 1; }
.price-features li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-1); font-size: 0.9rem; }
.price-features li svg { width: 18px; height: 18px; color: var(--emerald-bright); flex: none; margin-top: 2px; }
.price-features li.off { color: var(--text-3); }
.price-features li.off svg { color: var(--text-3); }

.toggle-billing {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px; border-radius: var(--r-pill);
  background: var(--glass); border: 1px solid var(--glass-border);
}
.toggle-billing button {
  padding: 8px 18px; border-radius: var(--r-pill); font-size: 0.88rem; font-weight: 600;
  color: var(--text-2); transition: all var(--t-fast) var(--ease-out);
}
.toggle-billing button.is-active { color: #04120c; background: var(--grad-emerald); }

/* ==========================================================================
   16. TESTIMONIALS
   ========================================================================== */
.testimonial {
  display: flex; flex-direction: column; gap: var(--sp-5);
  height: 100%;
}
.testimonial .quote { color: var(--text-1); font-size: 1.02rem; line-height: 1.7; }
.testimonial .quote::before { content: '“'; color: var(--emerald); font-family: var(--font-display); font-size: 2.4rem; line-height: 0; vertical-align: -0.35em; margin-right: 6px; }
.testimonial .author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; color: #04120c;
  background: var(--grad-brand);
}
.testimonial .author .name { color: var(--text-0); font-weight: 600; font-size: 0.94rem; }
.testimonial .author .role { color: var(--text-2); font-size: 0.82rem; }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 16px; height: 16px; }

/* ==========================================================================
   17. ACCORDION / FAQ
   ========================================================================== */
.accordion { display: flex; flex-direction: column; gap: 12px; }
.acc-item {
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  background: var(--glass);
  overflow: hidden;
  transition: border-color var(--t-fast);
}
.acc-item[open] { border-color: var(--glass-hi); background: var(--glass-2); }
.acc-item summary {
  list-style: none; cursor: pointer;
  padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--text-0);
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary .acc-ico {
  width: 30px; height: 30px; flex: none; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--glass-border); color: var(--emerald-bright);
  transition: transform var(--t-med) var(--ease-out);
}
.acc-item[open] summary .acc-ico { transform: rotate(45deg); background: var(--grad-emerald); color: #04120c; border-color: transparent; }
.acc-body { padding: 0 24px 22px; color: var(--text-2); font-size: 0.94rem; line-height: 1.7; }

/* ==========================================================================
   18. FORMS
   ========================================================================== */
.field { position: relative; margin-bottom: var(--sp-5); }
.field label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--text-1); margin-bottom: 8px; }
.field label .req { color: var(--down); }
.input, .textarea, .select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-inset);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-sm);
  color: var(--text-0);
  font-size: 0.95rem;
  transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast);
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.15);
}
.textarea { min-height: 140px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238f9bc0' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.field-help { font-size: 0.8rem; color: var(--text-3); margin-top: 6px; }
.field-error { font-size: 0.8rem; color: var(--down); margin-top: 6px; display: none; }
.field.invalid .input, .field.invalid .textarea { border-color: var(--down); }
.field.invalid .field-error { display: block; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; color: var(--text-2); cursor: pointer; }
.checkbox input { margin-top: 3px; accent-color: var(--emerald); width: 16px; height: 16px; }
.form-note { font-size: 0.82rem; color: var(--text-3); }

/* Newsletter inline */
.newsletter { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter .input { flex: 1; min-width: 220px; }

/* ==========================================================================
   19. TABLES
   ========================================================================== */
.table-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line); }
table.data {
  width: 100%; border-collapse: collapse; font-size: 0.9rem;
  min-width: 560px;
}
table.data th, table.data td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
table.data th { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); font-weight: 600; background: var(--bg-inset); }
table.data td { color: var(--text-1); }
table.data tbody tr { transition: background var(--t-fast); }
table.data tbody tr:hover { background: var(--glass); }
table.data .num { font-family: var(--font-mono); text-align: right; }

/* ==========================================================================
   20. DASHBOARD WIDGETS
   ========================================================================== */
.dash {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--sp-4);
}
.widget {
  background: linear-gradient(180deg, var(--glass-2), var(--glass));
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  overflow: hidden;
}
.widget-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-4); }
.widget-head h4 { font-size: 0.95rem; font-family: var(--font-display); }
.widget-head .sub { font-size: 0.76rem; color: var(--text-3); font-family: var(--font-mono); }

/* Chart canvas holder */
.chart-holder { position: relative; width: 100%; }
.chart-holder canvas { width: 100% !important; }

/* Heatmap */
.heatmap { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.heat-cell {
  border-radius: 8px; padding: 12px 10px; min-height: 66px;
  display: flex; flex-direction: column; justify-content: space-between;
  font-family: var(--font-mono);
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform var(--t-fast) var(--ease-out);
}
.heat-cell:hover { transform: scale(1.05); z-index: 1; }
.heat-cell .hs { font-size: 0.78rem; font-weight: 700; color: #fff; }
.heat-cell .hv { font-size: 0.72rem; opacity: 0.9; }

/* Watchlist / gainers-losers rows */
.quote-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 4px; border-bottom: 1px solid var(--line-faint);
}
.quote-row:last-child { border-bottom: 0; }
.quote-row .q-sym { display: flex; align-items: center; gap: 10px; }
.q-logo { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; color: #fff; flex: none; }
.quote-row .q-name { font-size: 0.72rem; color: var(--text-3); }
.quote-row .q-price { font-family: var(--font-mono); font-size: 0.9rem; color: var(--text-0); text-align: right; }
.quote-row .q-chg { font-family: var(--font-mono); font-size: 0.78rem; }
.q-spark { width: 70px; height: 30px; flex: none; }

/* Live market feed status badge (driven by assets/js/market-data.js) */
.mkt-status {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: var(--sp-3);
  padding: 5px 12px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em;
  background: var(--bg-inset); border: 1px solid var(--line-faint);
  color: var(--text-2);
}
.mkt-status .mkt-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--text-3); }
.mkt-status[data-state="live"] { color: var(--up); border-color: rgba(34,197,94,0.28); }
.mkt-status[data-state="live"] .mkt-dot { background: var(--up); animation: mkt-pulse 2s ease-in-out infinite; }
.mkt-status[data-state="closed"] .mkt-dot { background: var(--text-3); }
.mkt-status[data-state="stale"] { color: #f5b83d; border-color: rgba(245,184,61,0.28); }
.mkt-status[data-state="stale"] .mkt-dot { background: #f5b83d; }
.mkt-status[data-state="offline"] { color: var(--down); border-color: rgba(244,63,94,0.28); }
.mkt-status[data-state="offline"] .mkt-dot { background: var(--down); }
@keyframes mkt-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  50% { opacity: 0.65; box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}
@media (prefers-reduced-motion: reduce) {
  .mkt-status[data-state="live"] .mkt-dot { animation: none; }
}

/* Gauge (fear & greed) */
.gauge { position: relative; width: 100%; max-width: 240px; margin-inline: auto; }
.gauge-val { text-align: center; margin-top: -18px; }
.gauge-val .g-num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; line-height: 1; }
.gauge-val .g-label { font-size: 0.82rem; color: var(--text-2); font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }

/* Sentiment / allocation bars */
.meter { height: 8px; border-radius: 999px; background: var(--bg-inset); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 999px; background: var(--grad-emerald); }
.alloc-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.alloc-row .dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.alloc-row .a-name { font-size: 0.86rem; color: var(--text-1); flex: 1; }
.alloc-row .a-pct { font-family: var(--font-mono); font-size: 0.86rem; color: var(--text-0); }

/* News card */
.news-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-faint); }
.news-item:last-child { border-bottom: 0; }
.news-item .n-tag { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; height: fit-content; flex: none; }
.news-item h5 { font-size: 0.88rem; color: var(--text-1); font-family: var(--font-body); font-weight: 500; line-height: 1.45; }
.news-item .n-time { font-size: 0.74rem; color: var(--text-3); font-family: var(--font-mono); }

/* ==========================================================================
   21. BLOG / ARTICLE CARDS
   ========================================================================== */
.post-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.post-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.post-thumb .thumb-art { position: absolute; inset: 0; }
.post-thumb .post-cat {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 11px; border-radius: var(--r-pill);
  background: rgba(4,6,15,0.7); backdrop-filter: blur(8px); color: var(--emerald-bright);
  border: 1px solid var(--glass-border);
}
.post-body { padding: var(--sp-6); display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-meta { display: flex; gap: 14px; font-size: 0.78rem; color: var(--text-3); font-family: var(--font-mono); }
.post-card h3 { font-size: 1.15rem; line-height: 1.3; transition: color var(--t-fast); }
.post-card:hover h3 { color: var(--emerald-bright); }
.post-card p { color: var(--text-2); font-size: 0.88rem; flex: 1; }
.post-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-faint); }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: var(--sp-12); }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; display: grid; place-items: center; padding-inline: 12px;
  border-radius: var(--r-sm); border: 1px solid var(--glass-border); background: var(--glass);
  color: var(--text-2); font-size: 0.9rem; font-family: var(--font-mono); transition: all var(--t-fast) var(--ease-out);
}
.pagination a:hover { color: var(--text-0); border-color: var(--emerald); }
.pagination .is-active { color: #04120c; background: var(--grad-emerald); border-color: transparent; font-weight: 600; }

/* ==========================================================================
   22. INNER-PAGE HERO + BREADCRUMB
   ========================================================================== */
.page-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 96px));
  padding-bottom: clamp(40px, 6vw, 80px);
  overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 90% at 50% -10%, rgba(59,130,246,0.14), transparent 65%);
}
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--text-3); font-family: var(--font-mono); margin-bottom: var(--sp-5); }
.breadcrumb a { color: var(--text-2); transition: color var(--t-fast); }
.breadcrumb a:hover { color: var(--emerald-bright); }
.breadcrumb .sep { color: var(--text-3); }
.page-hero h1 { font-size: var(--fs-h1); margin-bottom: var(--sp-4); max-width: 16ch; }
.page-hero.center h1 { margin-inline: auto; }
.page-hero .lead { max-width: 620px; }
.page-hero.center { text-align: center; }
.page-hero.center .lead { margin-inline: auto; }

/* Prose (legal / long-form) */
.prose { max-width: 780px; }
.prose h2 { font-size: var(--fs-h3); margin-top: var(--sp-12); margin-bottom: var(--sp-4); }
.prose h3 { font-size: var(--fs-h4); margin-top: var(--sp-8); margin-bottom: var(--sp-3); }
.prose p { margin-bottom: var(--sp-4); color: var(--text-1); }
.prose ul { margin-bottom: var(--sp-4); display: flex; flex-direction: column; gap: 10px; }
.prose ul li { position: relative; padding-left: 26px; color: var(--text-1); }
.prose ul li::before { content: ''; position: absolute; left: 4px; top: 10px; width: 7px; height: 7px; border-radius: 2px; background: var(--emerald); transform: rotate(45deg); }
.prose a { color: var(--emerald-bright); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text-0); }

/* ==========================================================================
   23. UTILITIES & ANIMATION CLASSES
   ========================================================================== */
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-2 { margin-top: var(--sp-2); } .mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); } .mt-8 { margin-top: var(--sp-8); }
.mt-12 { margin-top: var(--sp-12); }
.mb-4 { margin-bottom: var(--sp-4); } .mb-6 { margin-bottom: var(--sp-6); }
.mb-8 { margin-bottom: var(--sp-8); } .mb-12 { margin-bottom: var(--sp-12); }
.full { width: 100%; } .relative { position: relative; }
.hidden { display: none; }
.divider { height: 1px; background: var(--line); border: 0; }

/* Reveal-on-scroll (GSAP toggles .is-in; CSS provides no-JS fallback) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-l { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal-l.is-in { opacity: 1; transform: none; }
.reveal-r { opacity: 0; transform: translateX(40px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal-r.is-in { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(0.94); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal-scale.is-in { opacity: 1; transform: none; }
[data-stagger] > * { opacity: 0; transform: translateY(24px); }
[data-stagger].is-in > * { opacity: 1; transform: none; transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
/* Per-child delay reproducing the 0.08s stagger GSAP used to apply, so the
   effect survives without the CDN library. */
[data-stagger].is-in > *:nth-child(1)  { transition-delay: 0s; }
[data-stagger].is-in > *:nth-child(2)  { transition-delay: 0.08s; }
[data-stagger].is-in > *:nth-child(3)  { transition-delay: 0.16s; }
[data-stagger].is-in > *:nth-child(4)  { transition-delay: 0.24s; }
[data-stagger].is-in > *:nth-child(5)  { transition-delay: 0.32s; }
[data-stagger].is-in > *:nth-child(6)  { transition-delay: 0.40s; }
[data-stagger].is-in > *:nth-child(7)  { transition-delay: 0.48s; }
[data-stagger].is-in > *:nth-child(8)  { transition-delay: 0.56s; }
[data-stagger].is-in > *:nth-child(n+9) { transition-delay: 0.64s; }

/* Floating animation for decorative cards */
@keyframes float-y { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.floaty { animation: float-y 6s var(--ease-in-out) infinite; }
.floaty.slow { animation-duration: 9s; }
.floaty.delay { animation-delay: -3s; }

@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes glow-pulse { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }

/* Glow orb decoration */
.orb { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; z-index: -1; opacity: 0.55; }
.orb.emerald { background: radial-gradient(circle, rgba(16,185,129,0.6), transparent 70%); }
.orb.blue { background: radial-gradient(circle, rgba(59,130,246,0.55), transparent 70%); }
.orb.gold { background: radial-gradient(circle, rgba(245,184,61,0.4), transparent 70%); }

/* Aspect helpers */
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-1-1 { aspect-ratio: 1 / 1; }

/* ==========================================================================
   24. CHROME: preloader, cursor, back-to-top, floating CTA, toast, progress
   ========================================================================== */
/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--grad-brand); z-index: var(--z-toast);
  box-shadow: 0 0 12px rgba(16,185,129,0.7);
  transition: width 0.1s linear;
}

/* Preloader */
.preloader {
  position: fixed; inset: 0; z-index: 99999;
  display: grid; place-items: center;
  background: var(--bg-0);
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader .pl-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.preloader .pl-logo { width: 64px; height: 64px; animation: glow-pulse 1.6s ease-in-out infinite; }
.preloader .pl-bar { width: 180px; height: 3px; border-radius: 999px; background: var(--glass-2); overflow: hidden; }
.preloader .pl-bar > span { display: block; height: 100%; width: 0%; background: var(--grad-brand); transition: width 0.3s var(--ease-out); }
.preloader .pl-text { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-3); }

/* Custom cursor (desktop only, enabled via JS) */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: var(--z-cursor); pointer-events: none; border-radius: 50%; transform: translate(-50%, -50%); mix-blend-mode: difference; }
.cursor-dot { width: 7px; height: 7px; background: #fff; }
.cursor-ring { width: 38px; height: 38px; border: 1.5px solid rgba(255,255,255,0.6); transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), background 0.25s; }
.cursor-ring.hover { width: 58px; height: 58px; background: rgba(255,255,255,0.1); }
body.has-cursor { cursor: none; }
body.has-cursor a, body.has-cursor button { cursor: none; }

/* Back to top */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: var(--z-sticky);
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--glass-2); border: 1px solid var(--glass-border);
  color: var(--text-0); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: all var(--t-med) var(--ease-out);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--emerald); box-shadow: var(--glow-emerald); }

/* Floating WhatsApp / CTA */
.float-cta {
  position: fixed; left: 26px; bottom: 26px; z-index: var(--z-sticky);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 14px; border-radius: var(--r-pill);
  background: var(--grad-emerald); color: #04120c; font-weight: 600; font-size: 0.9rem;
  box-shadow: 0 14px 34px -12px rgba(16,185,129,0.6);
  transition: transform var(--t-med) var(--ease-out);
}
.float-cta:hover { transform: translateY(-3px) scale(1.02); }
.float-cta svg { width: 22px; height: 22px; }

/* Live notification toast */
.toast-stack { position: fixed; right: 22px; bottom: 90px; z-index: var(--z-toast); display: flex; flex-direction: column; gap: 12px; width: min(340px, calc(100vw - 44px)); pointer-events: none; }
.toast {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--r-md);
  background: rgba(8,12,30,0.92); border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px); box-shadow: var(--shadow-lg);
  transform: translateX(120%); opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.5s;
  pointer-events: auto;
}
.toast.show { transform: none; opacity: 1; }
.toast .t-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--up-soft); color: var(--up); }
.toast .t-title { font-size: 0.86rem; font-weight: 600; color: var(--text-0); }
.toast .t-desc { font-size: 0.78rem; color: var(--text-2); }
.toast .t-time { font-size: 0.7rem; color: var(--text-3); font-family: var(--font-mono); margin-top: 2px; }

/* AI chat assistant launcher + panel */
.ai-fab {
  position: fixed; right: 26px; bottom: 86px; z-index: var(--z-sticky);
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad-brand); color: #04120c;
  box-shadow: 0 14px 34px -12px rgba(59,130,246,0.6);
  transition: transform var(--t-med) var(--ease-out);
}
.ai-fab:hover { transform: scale(1.06) translateY(-2px); }
.ai-fab svg { width: 24px; height: 24px; }

/* AI assistant slide-up panel */
.ai-panel {
  position: fixed; right: 24px; bottom: 150px; z-index: var(--z-overlay);
  width: min(370px, calc(100vw - 40px)); max-height: min(560px, calc(100vh - 200px));
  display: flex; flex-direction: column;
  background: rgba(8, 12, 30, 0.96); border: 1px solid var(--glass-border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden; transform: translateY(18px) scale(0.97);
  transform-origin: bottom right;
  transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out), visibility var(--t-med);
}
:root[data-theme='light'] .ai-panel { background: rgba(255,255,255,0.97); }
.ai-panel.open { opacity: 1; visibility: visible; transform: none; }
.ai-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.ai-id { display: flex; align-items: center; gap: 12px; }
.ai-avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: #04120c; background: var(--grad-brand); }
.ai-id strong { display: block; font-family: var(--font-display); font-size: 0.95rem; color: var(--text-0); }
.ai-id em { font-style: normal; font-size: 0.74rem; color: var(--emerald-bright); font-family: var(--font-mono); }
.ai-close { width: 34px; height: 34px; }
.ai-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.ai-msg { max-width: 85%; padding: 12px 14px; border-radius: 14px; font-size: 0.86rem; line-height: 1.55; }
.ai-msg.bot { background: var(--glass-2); border: 1px solid var(--glass-border); color: var(--text-1); border-bottom-left-radius: 4px; align-self: flex-start; }
.ai-msg.user { background: var(--grad-emerald); color: #04120c; border-bottom-right-radius: 4px; align-self: flex-end; font-weight: 500; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ai-chips .chip { font-size: 0.78rem; padding: 7px 12px; }
.ai-input { display: flex; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--line); }
.ai-input .input { padding: 11px 14px; }
.ai-note { text-align: center; font-size: 0.7rem; color: var(--text-3); padding-bottom: 12px; }
@media (max-width: 680px) { .ai-panel { bottom: 92px; right: 12px; } }

/* Cookie / disclaimer bar */
.consent-bar {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%) translateY(140%);
  z-index: var(--z-overlay); width: min(760px, calc(100vw - 32px));
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: space-between;
  padding: 16px 20px; border-radius: var(--r-lg);
  background: rgba(8,12,30,0.95); border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px); box-shadow: var(--shadow-lg);
  transition: transform 0.6s var(--ease-out);
}
.consent-bar.show { transform: translateX(-50%) translateY(0); }
.consent-bar p { font-size: 0.82rem; color: var(--text-2); flex: 1; min-width: 240px; }
.consent-bar a { color: var(--emerald-bright); text-decoration: underline; }

/* Light-theme surfaces.
   .toast and .consent-bar hard-code a dark panel while their text uses theme
   tokens, so in light mode they rendered dark text on a dark panel — illegible.
   Matches how .mega and .ai-panel are already handled above. */
:root[data-theme='light'] .toast { background: rgba(255, 255, 255, 0.95); }
:root[data-theme='light'] .consent-bar { background: rgba(255, 255, 255, 0.96); }

/* ==========================================================================
   25. RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .bento { grid-template-columns: repeat(4, 1fr); }
  .col-3 { grid-column: span 2; }
}
@media (max-width: 900px) {
  .nav-menu { display: none; }
  .nav-toggle { display: block; }
  .nav-actions .btn.desktop-only { display: none; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .price-card.featured { order: -1; }
  .dash { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 680px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .col-2, .col-3, .col-4, .col-6 { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .dash { grid-template-columns: 1fr; }
  .heatmap { grid-template-columns: repeat(3, 1fr); }
  .to-top { right: 16px; bottom: 16px; }
  .float-cta span { display: none; }
  .float-cta { padding: 14px; }
  .cursor-dot, .cursor-ring { display: none; }
  body.has-cursor { cursor: auto; }
}
@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   26. REDUCED MOTION & PRINT
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-l, .reveal-r, .reveal-scale, [data-stagger] > * { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none !important; }
}

@media print {
  .site-header, .site-footer, .to-top, .float-cta, .ai-fab, .toast-stack, .consent-bar, .preloader, .cursor-dot, .cursor-ring, .scroll-progress { display: none !important; }
  body { background: #fff; color: #000; }
  body::before, body::after { display: none; }
}
