:root {
  --bg-dark: #030712;
  --card-bg: rgba(15, 23, 42, 0.65);
  --card-border: rgba(255, 255, 255, 0.08);
  --primary-blue: #2563eb;
  --primary-cyan: #06b6d4;
  --accent-green: #22c55e;
  --accent-red: #ef4444;
  --text-muted: #cbd5e1;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: #f8fafc;
  font-family: var(--font-body);
  overflow-x: hidden;
  position: relative;
}

/* Override Bootstrap text-muted for maximum contrast & readability */
.text-muted {
  color: #cbd5e1 !important;
}

/* Ambient Mesh Light Glows */
.mesh-glow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.mesh-glow-1 {
  position: absolute;
  top: -100px;
  left: 20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, rgba(37, 99, 235, 0) 70%);
  filter: blur(80px);
}

.mesh-glow-2 {
  position: absolute;
  top: 400px;
  right: -100px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.18) 0%, rgba(6, 182, 212, 0) 70%);
  filter: blur(100px);
}

.bg-grid-pattern {
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Typography */
h1, h2, h3, .heading-font {
  font-family: var(--font-heading);
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 30%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar-glass {
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
  z-index: 1050;
}

.nav-link {
  color: #cbd5e1 !important;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #38bdf8 !important;
}

/* Badge Pill */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Buttons */
.btn-primary-custom {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  /* padding: 0.85rem 1.75rem; */
  font-weight: 600;
  border-radius: 10px;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.btn-primary-custom:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.6);
}

.btn-secondary-custom {
  background: rgba(255, 255, 255, 0.03);
  color: #f1f5f9;
  border: 1px solid var(--card-border);
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.btn-secondary-custom:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Glass Panels & Cards */
.glass-panel {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  height: 100%;
}

.glass-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 0 30px -10px rgba(37, 99, 235, 0.25);
}

/* Hero Terminal Window Mockup */
.terminal-window {
  background: #0b0f17;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 70px -15px rgba(0, 0, 0, 0.8), 0 0 50px rgba(37, 99, 235, 0.2);
  position: relative;
}

.terminal-header {
  background: #0f172a;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--card-border);
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot-red { background-color: #ef4444; }
.dot-yellow { background-color: #f59e0b; }
.dot-green { background-color: #10b981; }

.terminal-body {
  padding: 20px;
}

/* Metrics Ribbon */
.metrics-ribbon {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 28px 20px;
  backdrop-filter: blur(10px);
}

.metric-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-heading);
  margin-bottom: 4px;
}

.metric-label {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Feature Icons */
.icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  margin-bottom: 20px;
}

.card-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
}

/* Interactive Market Tabs Component */
.market-tab-btn {
  background: transparent;
  border: 1px solid var(--card-border);
  color: #94a3b8;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.market-tab-btn.active, .market-tab-btn:hover {
  background: rgba(37, 99, 235, 0.15);
  border-color: #3b82f6;
  color: #ffffff;
}

/* Dark Transparent Market Table */
#market-table,
#market-table table,
#market-table tr,
#market-table th,
#market-table td,
.table#market-table > :not(caption) > * > * {
  background-color: transparent !important;
  background: transparent !important;
  --bs-table-bg: transparent !important;
  --bs-table-accent-bg: transparent !important;
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

#market-table th {
  color: #94a3b8 !important;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

#market-table td.text-muted,
#market-table .text-muted {
  color: #94a3b8 !important;
}

#market-table tbody tr {
  transition: background-color 0.2s ease;
}

#market-table tbody tr:hover {
  background-color: rgba(37, 99, 235, 0.1) !important;
}

/* Persona Selector Cards */
.persona-card {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.persona-card.active, .persona-card:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: #3b82f6;
  transform: translateY(-2px);
}

.persona-card.active {
  box-shadow: inset 3px 0 0 #3b82f6;
}

/* Accordion Custom Styling */
.custom-accordion .accordion-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--card-border);
  border-radius: 12px !important;
  margin-bottom: 12px;
  overflow: hidden;
}

.custom-accordion .accordion-button {
  background: transparent;
  color: #ffffff;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 1.25rem;
  box-shadow: none;
}

.custom-accordion .accordion-button:not(.collapsed) {
  color: #38bdf8;
  background: rgba(30, 41, 59, 0.4);
}

.custom-accordion .accordion-button::after {
  filter: invert(1);
}

.custom-accordion .accordion-body {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 1.25rem;
}

.section-spacing {
  padding-top: 5rem;
  padding-bottom: 5rem;
  position: relative;
  z-index: 10;
}

/* Scroll Animation */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
