/* Modern Professional Design System */
:root {
  --primary-50: #eff6ff;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --success-500: #10b981;
  --error-500: #ef4444;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-icon {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-600);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--gray-500);
  line-height: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary-600);
}

/* Language Switcher */
.language-switcher {
  position: relative;
}

.language-dropdown {
  position: relative;
}

.language-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--gray-600);
  transition: all 0.2s ease;
}

.language-button:hover {
  background: var(--gray-50);
  border-color: var(--primary-500);
  color: var(--primary-600);
}

.language-flag {
  font-size: 1rem;
}

.language-name {
  font-weight: 500;
}

.language-arrow {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.language-switcher.open .language-arrow {
  transform: rotate(180deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 10rem;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  display: none;
  z-index: 100;
}

.language-switcher.open .language-menu {
  display: block;
}

.language-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--gray-700);
  text-align: left;
  transition: all 0.2s ease;
}

.language-option:hover {
  background: var(--gray-50);
  color: var(--gray-900);
}

.language-option.active {
  background: var(--primary-50);
  color: var(--primary-700);
  font-weight: 500;
}

.language-option.active .language-flag {
  filter: drop-shadow(0 0 2px rgba(59, 130, 246, 0.3));
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--primary-600);
  color: white;
  border-color: var(--primary-600);
}

.btn-primary:hover {
  background: var(--primary-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--gray-600);
  border-color: var(--gray-300);
}

.btn-outline:hover {
  background: var(--gray-50);
  color: var(--gray-800);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--gray-50) 0%, #eff6ff 100%);
  padding: 5rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.hero-content {
  text-align: center;
  max-width: 56rem;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #dbeafe;
  color: var(--primary-700);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-600), #1e3a8a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 32rem;
  margin: 0 auto;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

/* Dashboard Section */
.dashboard-section {
  padding: 5rem 0;
  background: white;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 36rem;
  margin: 0 auto;
}

.dashboard-controls {
  display: flex;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding: 1.5rem;
  background: var(--gray-50);
  border-radius: 1rem;
  border: 1px solid var(--gray-200);
}

.control-group {
  flex: 1;
  max-width: none;
}

.control-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
  display: block;
}

.exchange-select {
  width: 100%;
  min-height: 5rem;
  padding: 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  background: white;
  font-size: 0.875rem;
  color: var(--gray-700);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.exchange-select:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px #dbeafe;
}

.control-help {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

/* Compact multi-select dropdown */
.multi-select { position: relative; width: 100%; }
.multi-select__button {
  width: 100%;
  padding: 0.625rem 0.875rem;
  text-align: left;
  background: white;
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
}
.multi-select__button::after {
  content: "▾";
  float: right;
  color: var(--gray-500);
}
.multi-select__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  max-height: 16rem;
  overflow: auto;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  display: none;
  z-index: 20;
}
.multi-select.open .multi-select__panel { display: block; }
.multi-select__option { padding: 0.375rem 0.25rem; }
.multi-select__option label { font-size: 0.875rem; color: var(--gray-700); display: flex; gap: 0.5rem; align-items: center; }
.multi-select__options .multi-select__option:not(:last-child) { border-bottom: 1px dashed var(--gray-200); }

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.metric-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.metric-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.metric-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.metric-icon {
  font-size: 1.5rem;
}

.metric-meta h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.2;
}

.metric-meta p {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin: 0;
}

.metric-value {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.metric-value.small {
  font-size: 1.25rem;
}

.metric-status {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  text-align: center;
}

.metric-status.bearish {
  background: #fee2e2;
  color: #dc2626;
}

.metric-status.bullish {
  background: #dcfce7;
  color: #059669;
}

.metric-status.neutral {
  background: var(--gray-100);
  color: var(--gray-600);
}

/* Additional Metrics Section */
.additional-metrics-section {
  margin: 3rem 0;
}

.additional-metrics-section .section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.additional-metrics-section .section-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.additional-metrics-section .section-header p {
  color: var(--gray-600);
  font-size: 1rem;
}

.additional-metrics {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.additional-metrics .metric-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.additional-metrics .metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-500);
}

/* Specific metric card styles */
.metric-card.whale-accum {
  border-left: 4px solid #8b5cf6;
}

.metric-card.derivatives-ifp {
  border-left: 4px solid #06b6d4;
}

.metric-card.etf-aum {
  border-left: 4px solid #10b981;
}

.metric-card.nvt-ratio {
  border-left: 4px solid #f59e0b;
}

.metric-card.puell-multiple {
  border-left: 4px solid #ef4444;
}

.metric-card.sopr {
  border-left: 4px solid #ec4899;
}

.metric-card.coinbase-premium {
  border-left: 4px solid #3b82f6;
}

.metric-card.scalping {
  border-left: 4px solid #84cc16;
}

/* Chart Container */
.chart-container {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.chart-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
}

.chart-legend {
  display: flex;
  gap: 1rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 9999px;
}

.legend-dot.inflow {
  background: var(--error-500);
}

.legend-dot.outflow {
  background: var(--success-500);
}

.chart-wrapper {
  position: relative;
  height: 400px;
}



/* Features Section */
.features-section {
  background: var(--gray-50);
  padding: 5rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 1.875rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.feature-specs {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-specs li {
  font-size: 0.875rem;
  color: var(--gray-500);
  padding: 0.25rem 0;
  position: relative;
  padding-left: 1rem;
}

.feature-specs li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success-500);
  font-weight: 600;
}

/* Footer */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand .brand-name {
  color: white;
}

.footer-brand .brand-tagline {
  color: var(--gray-500);
}

.footer-description {
  color: var(--gray-500);
  margin-top: 1rem;
  max-width: 24rem;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.footer-section h4 {
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.footer-section a {
  display: block;
  color: var(--gray-500);
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-700);
}

.footer-bottom p {
  color: var(--gray-500);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container { padding: 0 1rem; }
  .nav-content { flex-direction: column; gap: 1rem; height: auto; padding: 1rem 0; }
  .hero-title { font-size: 1.875rem; }
  .hero-stats { grid-template-columns: 1fr; gap: 1rem; }
  .dashboard-controls { flex-direction: column; align-items: stretch; }
  .metrics-grid { grid-template-columns: 1fr; }
  .additional-metrics { grid-template-columns: 1fr; }
  .additional-metrics-section .section-header h3 { font-size: 1.25rem; }
  .chart-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; gap: 2rem; }
  .footer-links { grid-template-columns: 1fr; }
}


