/* =====================================================================
   NexaLink Financial - Custom Styles
   Brand tokens, strategy layer, hotspots, modals, animations
   ===================================================================== */

/* ===================== BRAND TOKENS ===================== */
:root {
  --nx-primary: #00C2FF;
  --nx-primary-dark: #00A3D9;
  --nx-primary-light: #33CFFF;

  --nx-dark: #0A0F1E;
  --nx-dark-2: #111729;
  --nx-dark-3: #1A2236;
  --nx-dark-4: #232D42;

  --nx-gray-100: #F3F4F6;
  --nx-gray-200: #E5E7EB;
  --nx-gray-300: #D1D5DB;
  --nx-gray-500: #6B7280;
  --nx-gray-600: #4B5563;
  --nx-gray-700: #374151;
  --nx-white: #FFFFFF;

  /* Audience colors */
  --nx-enterprise: #8B5CF6;
  --nx-smb: #10B981;
  --nx-developer: #F59E0B;
  --nx-partner: #EC4899;
  --nx-compliance: #14B8A6;

  /* Strategy layer */
  --hotspot-color: #FF3366;
  --hotspot-glow: rgba(255, 51, 102, 0.25);

  /* Additional accents */
  --nx-blue: #3B82F6;
  --nx-purple: #8B5CF6;
  --nx-teal: #14B8A6;
  --nx-amber: #F59E0B;
  --nx-red: #EF4444;

  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ===================== BASE ===================== */
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); overflow-x: hidden; }

/* ===================== STRATEGY LAYER — HIDDEN (keep code, hide UI) ===================== */
/* Remove this block to re-enable the strategy hotspot layer */
.strategy-toggle-btn,
.hotspot,
.hotspot-counter,
.audience-filter,
.modal-overlay {
  display: none !important;
}

/* ===================== STRATEGY MODE TOGGLE ===================== */
.strategy-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.strategy-toggle-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--hotspot-color);
  color: white;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(255, 51, 102, 0.35);
  transition: all 0.3s;
  letter-spacing: 0.02em;
}
.strategy-toggle-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 51, 102, 0.45);
}
.strategy-toggle-btn .toggle-icon { font-size: 18px; }

body:not(.strategy-active) .strategy-toggle-btn {
  background: var(--nx-dark);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

/* Hotspot counter badge */
.hotspot-counter {
  position: fixed;
  bottom: 76px;
  right: 24px;
  z-index: 9998;
  background: var(--nx-dark);
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s;
  pointer-events: none;
}
body.strategy-active .hotspot-counter {
  opacity: 1;
  transform: translateY(0);
}
.hotspot-counter strong { color: var(--hotspot-color); }

/* ===================== AUDIENCE FILTER PILLS ===================== */
.audience-filter {
  position: fixed;
  bottom: 108px;
  right: 24px;
  z-index: 9998;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  max-width: 520px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s;
  pointer-events: none;
}
body.strategy-active .audience-filter {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.audience-pill {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  background: var(--nx-dark);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.audience-pill:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.8);
}
.audience-pill.active {
  background: var(--hotspot-color);
  border-color: var(--hotspot-color);
  color: white;
}
.audience-pill[data-audience="enterprise"].active { background: var(--nx-enterprise); border-color: var(--nx-enterprise); }
.audience-pill[data-audience="smb"].active { background: var(--nx-smb); border-color: var(--nx-smb); }
.audience-pill[data-audience="developer"].active { background: var(--nx-developer); border-color: var(--nx-developer); color: #1a1a1a; }
.audience-pill[data-audience="partner"].active { background: var(--nx-partner); border-color: var(--nx-partner); }
.audience-pill[data-audience="compliance"].active { background: var(--nx-compliance); border-color: var(--nx-compliance); }

.audience-pill .pill-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 4px;
}
.audience-pill[data-audience="enterprise"] .pill-dot { background: var(--nx-enterprise); }
.audience-pill[data-audience="smb"] .pill-dot { background: var(--nx-smb); }
.audience-pill[data-audience="developer"] .pill-dot { background: var(--nx-developer); }
.audience-pill[data-audience="partner"] .pill-dot { background: var(--nx-partner); }
.audience-pill[data-audience="compliance"] .pill-dot { background: var(--nx-compliance); }
.audience-pill.active .pill-dot { background: white; }
.audience-pill[data-audience="developer"].active .pill-dot { background: #1a1a1a; }

/* ===================== HOTSPOTS ===================== */
.hotspot {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--hotspot-color);
  border: 2px solid white;
  cursor: pointer;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  color: white;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  box-shadow: 0 2px 12px rgba(255, 51, 102, 0.4);
}
.hotspot::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--hotspot-color);
  opacity: 0;
  animation: none;
}

body.strategy-active .hotspot {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
body.strategy-active .hotspot::before {
  animation: hotspot-ping 2s infinite;
}
body.strategy-active .hotspot:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 20px rgba(255, 51, 102, 0.5);
}

/* Audience-specific hotspot colors */
.hotspot[data-audience="enterprise"] { background: var(--nx-enterprise); box-shadow: 0 2px 12px rgba(139,92,246,0.4); }
.hotspot[data-audience="enterprise"]::before { border-color: var(--nx-enterprise); }
.hotspot[data-audience="smb"] { background: var(--nx-smb); box-shadow: 0 2px 12px rgba(16,185,129,0.4); }
.hotspot[data-audience="smb"]::before { border-color: var(--nx-smb); }
.hotspot[data-audience="developer"] { background: var(--nx-developer); box-shadow: 0 2px 12px rgba(245,158,11,0.4); }
.hotspot[data-audience="developer"]::before { border-color: var(--nx-developer); }
.hotspot[data-audience="partner"] { background: var(--nx-partner); box-shadow: 0 2px 12px rgba(236,72,153,0.4); }
.hotspot[data-audience="partner"]::before { border-color: var(--nx-partner); }
.hotspot[data-audience="compliance"] { background: var(--nx-compliance); box-shadow: 0 2px 12px rgba(20,184,166,0.4); }
.hotspot[data-audience="compliance"]::before { border-color: var(--nx-compliance); }

/* Audience filtering: dim non-matching hotspots */
body.filter-enterprise .hotspot:not([data-audience="enterprise"]):not([data-audience="all"]) { opacity: 0.12; pointer-events: none; }
body.filter-smb .hotspot:not([data-audience="smb"]):not([data-audience="all"]) { opacity: 0.12; pointer-events: none; }
body.filter-developer .hotspot:not([data-audience="developer"]):not([data-audience="all"]) { opacity: 0.12; pointer-events: none; }
body.filter-partner .hotspot:not([data-audience="partner"]):not([data-audience="all"]) { opacity: 0.12; pointer-events: none; }
body.filter-compliance .hotspot:not([data-audience="compliance"]):not([data-audience="all"]) { opacity: 0.12; pointer-events: none; }

@keyframes hotspot-ping {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0; transform: scale(2); }
}

/* Hotspot label tooltip */
.hotspot-label {
  position: absolute;
  left: 36px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--nx-dark);
  color: white;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.hotspot:hover .hotspot-label { opacity: 1; }
.hotspot-label.left { left: auto; right: 36px; }

/* Make relative containers for hotspots */
.has-hotspot { position: relative; }
.hotspot-anchor {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.hotspot-anchor > .hotspot {
  position: absolute;
  top: -12px;
  right: -12px;
}
.hotspot-anchor.anchor-left > .hotspot {
  right: auto;
  left: -12px;
}

/* ===================== MODAL ===================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 30, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal {
  background: var(--nx-white);
  border-radius: 16px;
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}
.modal-overlay.active .modal { transform: translateY(0) scale(1); }

.modal-header {
  padding: 28px 32px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.modal-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.modal-section-badge {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(255, 51, 102, 0.08);
  color: var(--hotspot-color);
}
.modal-rec-badge {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(0, 194, 255, 0.08);
  color: var(--nx-primary-dark);
}
.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--nx-gray-200);
  background: var(--nx-gray-100);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--nx-gray-500);
  transition: all 0.2s;
  flex-shrink: 0;
}
.modal-close:hover { background: var(--nx-gray-200); color: var(--nx-dark); }

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--nx-dark);
  letter-spacing: -0.02em;
  padding: 0 32px;
  margin-bottom: 4px;
}

.modal-body { padding: 16px 32px 32px; }
.modal-body p {
  font-size: 14.5px;
  color: var(--nx-gray-600);
  line-height: 1.7;
  margin-bottom: 16px;
}
.modal-body p:last-child { margin-bottom: 0; }

.modal-quote {
  background: var(--nx-dark);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 20px 0;
}
.modal-quote p {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 14px !important;
  color: rgba(255, 255, 255, 0.8) !important;
  line-height: 1.6;
  margin-bottom: 8px !important;
}
.modal-quote-source {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  color: var(--nx-primary);
  letter-spacing: 0.02em;
}

.modal-ref {
  background: var(--nx-gray-100);
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.modal-ref-icon { font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.modal-ref-content {
  font-family: var(--font-heading);
  font-size: 12px;
  color: var(--nx-gray-600);
  line-height: 1.5;
}
.modal-ref-content strong { color: var(--nx-dark); display: block; margin-bottom: 2px; }

.modal-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.modal-tag {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--nx-gray-200);
  color: var(--nx-gray-500);
}

/* ===================== SCROLL ANIMATIONS ===================== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ===================== MEGA MENU ===================== */
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,0.8);
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 600;
  padding: 20px 16px;
  transition: color 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.nav-link:hover { color: white; }
.nav-link .nav-chevron {
  width: 0; height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 3.5px solid currentColor;
  opacity: 0.5;
  transition: transform 0.2s;
}
.nav-item:hover .nav-chevron { transform: rotate(180deg); opacity: 0.8; }

/* Dropdown panel (shared by mega + simple) */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  background: var(--nx-dark);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 2px solid var(--nx-primary);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  padding: 28px 32px 24px;
  z-index: 200;
}
.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Column layout */
.mega-cols { display: grid; gap: 32px; }
.mega-cols-3 { grid-template-columns: repeat(3, minmax(180px, 1fr)); min-width: 620px; }
.mega-cols-3.narrow { grid-template-columns: repeat(3, minmax(160px, 1fr)); min-width: 540px; }

.mega-col-header {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nx-primary);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mega-col a {
  display: block;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  padding: 5px 0;
  text-decoration: none;
  transition: color 0.15s, padding-left 0.15s;
}
.mega-col a:hover {
  color: white;
  padding-left: 4px;
}

/* Featured CTA links at bottom of columns */
.mega-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--nx-primary) !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  margin-top: 12px;
  padding-top: 10px !important;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.mega-cta:hover {
  color: var(--nx-primary-light) !important;
  padding-left: 4px;
}

/* Edge alignment: first and last items align to edges */
.nav-item:first-child .mega-menu { left: 0; transform: translateY(4px); }
.nav-item:first-child:hover .mega-menu { transform: translateY(0); }
.nav-item:last-child .mega-menu { left: auto; right: 0; transform: translateY(4px); }
.nav-item:last-child:hover .mega-menu { transform: translateY(0); }

/* ===================== TICKER STRIP ===================== */
.ticker-track {
  animation: ticker-scroll 30s linear infinite;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-track:hover {
  animation-play-state: paused;
}

/* ===================== HERO CODE TABS ===================== */
.hero-code-tab.active {
  color: white;
  border-bottom-color: var(--nx-primary);
}

/* ===================== PLATFORM EXPLORER TABS ===================== */
.explorer-tab.active {
  background: white;
  border-right: 3px solid var(--nx-primary);
}

.explorer-tab.active .font-heading.text-\[14px\] {
  color: var(--nx-primary);
}

/* ===================== SDK LANGUAGE TABS ===================== */
.sdk-tab.active {
  color: white;
  border-bottom-color: var(--nx-developer);
}

/* ===================== AUDIENCE CAROUSEL ===================== */
.audience-carousel {
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.15) transparent;
}

.audience-carousel::-webkit-scrollbar {
  height: 6px;
}

.audience-carousel::-webkit-scrollbar-track {
  background: transparent;
}

.audience-carousel::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.15);
  border-radius: 3px;
}

/* ===================== ENTERPRISE ACCORDION ===================== */
.ent-accordion-item {
  background: rgba(255,255,255,0.01);
  transition: background 0.3s ease;
}

.ent-accordion-content {
  transition: max-height 0.3s ease, padding-bottom 0.3s ease;
}

/* ===================== MOBILE NAVIGATION ===================== */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 30, 0.7);
  z-index: 9989;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
body.mobile-nav-open .mobile-nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 85vw;
  max-width: 380px;
  height: 100vh;
  height: 100dvh;
  background: #0A0F1E;
  z-index: 9990;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
body.mobile-nav-open .mobile-nav-drawer {
  transform: translateX(0);
}

body.mobile-nav-open {
  overflow: hidden;
}

.mobile-nav-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-nav-chevron {
  transition: transform 0.3s ease;
}

/* ===================== JOURNEY PLAYER ===================== */

/* --- Play Button (in strategy-toggle stack) --- */
.journey-play-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--nx-dark);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 100px;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
  letter-spacing: 0.02em;
}
.journey-play-btn:hover {
  transform: translateY(-2px);
  border-color: var(--nx-primary);
  color: white;
  box-shadow: 0 8px 32px rgba(0, 194, 255, 0.2);
}
.journey-play-btn .journey-play-icon { font-size: 16px; color: var(--nx-primary); }

/* Hide play button when journey is active */
body.journey-active .journey-play-btn { display: none; }

/* --- Launcher Modal --- */
.journey-launcher-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 30, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.journey-launcher-overlay.active { opacity: 1; pointer-events: auto; }

.journey-launcher {
  background: var(--nx-white);
  border-radius: 20px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  padding: 28px 32px 24px;
}
.journey-launcher-overlay.active .journey-launcher { transform: translateY(0) scale(1); }

.journey-launcher-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.journey-launcher-section { margin-bottom: 20px; }
.journey-launcher-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nx-gray-500);
  margin-bottom: 10px;
}

/* Audience Cards Grid */
.journey-audience-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.journey-audience-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border: 1.5px solid var(--nx-gray-200);
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.journey-audience-card:hover:not([disabled]) {
  border-color: var(--nx-gray-300);
  background: var(--nx-gray-100);
}
.journey-audience-card.active {
  border-color: var(--nx-enterprise);
  background: rgba(139, 92, 246, 0.05);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}
.journey-audience-card[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}
.journey-badge-soon {
  position: absolute;
  top: 4px;
  right: 4px;
  font-family: var(--font-heading);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--nx-gray-200);
  color: var(--nx-gray-500);
  padding: 1px 5px;
  border-radius: 4px;
}

/* Stage Options (radio list) */
.journey-stage-options { display: flex; flex-direction: column; gap: 6px; }
.journey-stage-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1.5px solid var(--nx-gray-200);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.journey-stage-option:hover { border-color: var(--nx-gray-300); }
.journey-stage-option.active { border-color: var(--nx-enterprise); background: rgba(139, 92, 246, 0.03); }
.journey-stage-option input[type="radio"] { display: none; }
.journey-stage-radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--nx-gray-300);
  flex-shrink: 0;
  transition: all 0.2s;
  position: relative;
}
.journey-stage-option.active .journey-stage-radio { border-color: var(--nx-enterprise); }
.journey-stage-option.active .journey-stage-radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--nx-enterprise);
}

/* Goal Display */
.journey-goal {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--nx-gray-100);
  border-radius: 12px;
  margin-bottom: 20px;
}
.journey-goal i { font-size: 20px; flex-shrink: 0; }

/* Play Button */
.journey-play-start {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px;
  background: var(--nx-enterprise);
  color: white;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}
.journey-play-start:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(139, 92, 246, 0.4);
}

/* --- Step Card (Floating Panel) --- */
.journey-step-card {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 400px;
  max-height: 480px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  z-index: 9997;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}
body.journey-active .journey-step-card {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Progress Bar */
.journey-progress-bar {
  height: 3px;
  background: var(--nx-gray-200);
  width: 100%;
  flex-shrink: 0;
}
.journey-progress-fill {
  height: 100%;
  background: var(--nx-enterprise);
  transition: width 0.4s ease;
  border-radius: 0 3px 3px 0;
}

/* Step Header */
.journey-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 0;
}
.journey-step-counter { display: flex; align-items: center; gap: 8px; }
.journey-step-badge {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  color: var(--nx-enterprise);
  background: rgba(139, 92, 246, 0.08);
  padding: 3px 10px;
  border-radius: 100px;
}
.journey-stage-label {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nx-gray-500);
  background: var(--nx-gray-100);
  padding: 3px 10px;
  border-radius: 100px;
}
.journey-step-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--nx-gray-200);
  background: var(--nx-gray-100);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--nx-gray-500);
  transition: all 0.2s;
  flex-shrink: 0;
}
.journey-step-close:hover { background: var(--nx-gray-200); color: var(--nx-dark); }

/* Step Title */
.journey-step-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--nx-dark);
  letter-spacing: -0.02em;
  padding: 10px 18px 0;
  line-height: 1.3;
}

/* Step Body (scrollable) */
.journey-step-body {
  padding: 10px 18px 14px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.journey-step-body p {
  font-size: 13.5px;
  color: var(--nx-gray-600);
  line-height: 1.65;
  margin-bottom: 10px;
}
.journey-step-body p:last-child { margin-bottom: 0; }
.journey-step-body strong { color: var(--nx-dark); }

/* Navigation */
.journey-step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid var(--nx-gray-200);
  flex-shrink: 0;
}
.journey-nav-prev,
.journey-nav-next {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--nx-gray-200);
  background: white;
  color: var(--nx-gray-600);
  cursor: pointer;
  transition: all 0.2s;
}
.journey-nav-prev:hover {
  border-color: var(--nx-gray-400);
  color: var(--nx-dark);
}
.journey-nav-prev:disabled,
.journey-nav-next:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.journey-nav-next {
  background: var(--nx-enterprise);
  color: white;
  border-color: var(--nx-enterprise);
}
.journey-nav-next:hover:not(:disabled) { filter: brightness(1.1); }

/* Step Dots */
.journey-step-dots {
  display: flex;
  gap: 4px;
  align-items: center;
}
.journey-step-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nx-gray-200);
  transition: all 0.2s;
}
.journey-step-dot.active { background: var(--nx-enterprise); width: 18px; border-radius: 3px; }
.journey-step-dot.visited { background: rgba(139, 92, 246, 0.3); }

/* --- Section Highlight --- */
.journey-target-section {
  position: relative;
  z-index: 41;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.25), 0 0 40px rgba(139, 92, 246, 0.1);
  transition: box-shadow 0.4s ease;
}

/* Dim non-target sections when journey is active */
body.journey-active section:not(.journey-target-section) {
  opacity: 0.35;
  transition: opacity 0.4s ease;
}
body.journey-active .journey-target-section {
  opacity: 1;
  transition: opacity 0.4s ease;
}
body.journey-active nav,
body.journey-active footer,
body.journey-active .strategy-toggle,
body.journey-active .audience-filter,
body.journey-active .hotspot-counter,
body.journey-active .journey-step-card,
body.journey-active .modal-overlay.active {
  opacity: 1 !important;
}

/* ===================== JOURNEY CROSS-PAGE CURSOR ANIMATION ===================== */
.journey-cursor-anim {
  position: fixed;
  z-index: 10002;
  pointer-events: none;
  font-size: 28px;
  color: var(--hotspot-color);
  filter: drop-shadow(0 2px 8px rgba(255, 51, 102, 0.5));
  transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1), top 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: left, top;
}

@keyframes journey-click-ring {
  0%   { transform: translate(-50%, -50%) scale(0.3); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

.journey-click-pulse {
  position: fixed;
  z-index: 10002;
  pointer-events: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--hotspot-color);
  animation: journey-click-ring 0.5s ease-out forwards;
}

.journey-click-dot {
  position: fixed;
  z-index: 10002;
  pointer-events: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--hotspot-color);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.15s;
}
.journey-click-dot.visible { opacity: 1; }

/* ===================== CLICKABLE LINK GLOW ===================== */
/* When user clicks non-interactive space, real links/buttons in view pulse pink */
@keyframes clickable-glow-pulse {
  0%   { outline-color: rgba(255, 51, 102, 0); outline-offset: 2px; }
  20%  { outline-color: rgba(255, 51, 102, 0.8); outline-offset: 3px; }
  55%  { outline-color: rgba(255, 51, 102, 0.5); outline-offset: 3px; }
  100% { outline-color: rgba(255, 51, 102, 0); outline-offset: 2px; }
}

.clickable-glow {
  outline: 2px solid rgba(255, 51, 102, 0.8) !important;
  outline-offset: 3px;
  animation: clickable-glow-pulse 1.4s ease-out forwards !important;
  border-radius: inherit;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  .audience-filter { bottom: 70px; right: 16px; }
  .strategy-toggle { bottom: 16px; right: 16px; }
  .hotspot-counter { bottom: 70px; right: 16px; }

  .explorer-tab {
    padding: 12px 16px;
  }

  #platformExplorer {
    grid-template-columns: 1fr;
  }

  .journey-step-card {
    left: 8px;
    right: 8px;
    bottom: 80px;
    width: auto;
    max-height: 360px;
  }
  .journey-audience-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .journey-launcher {
    padding: 20px;
    max-width: 100%;
  }
}
