/* ============================================
   DATA DASHBOARD PREVIEW COMPONENTS
   For marketing site data visualization
   ============================================ */

.landing-section--data-focus {
  background: linear-gradient(135deg,
    oklch(from var(--lch-surface) l c h) 0%,
    oklch(from var(--lch-paper) l c h) 100%);
  overflow: hidden;
}

.dashboard-preview {
  max-width: 1000px;
  margin: var(--space-3xl) auto 0;
  background: var(--surface-raised);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.dashboard-preview__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-2xl);
  background: linear-gradient(135deg, #1e3a5f 0%, #2d8a7b 100%);
  color: white;
}

.dashboard-preview__title {
  font-size: var(--text-lg);
  font-weight: 700;
}

.dashboard-preview__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
}

.dashboard-preview__badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-live 2s ease-in-out infinite;
}

@keyframes pulse-live {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.dashboard-preview__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.dashboard-stat {
  background: var(--paper);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: all 0.2s ease;
}

.dashboard-stat:hover {
  background: var(--surface);
}

.dashboard-stat__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: oklch(var(--lch-primary) / 0.08);
  border-radius: var(--radius-sm);
  color: #1e3a5f;
}

.dashboard-stat__icon svg {
  width: 24px;
  height: 24px;
}

.dashboard-stat__value {
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.dashboard-stat__label {
  font-size: var(--text-sm);
  color: var(--ink-60);
  font-weight: 500;
}

.dashboard-stat__trend {
  font-size: var(--text-xs);
  color: var(--ink-50);
  font-weight: 600;
}

.dashboard-stat__trend--up {
  color: #2d8a7b;
}

.dashboard-stat__trend--success {
  color: #2d8a7b;
}

.dashboard-chart {
  padding: var(--space-2xl);
  background: var(--paper);
}

.dashboard-chart__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--border-light);
}

.dashboard-chart__header h4 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.dashboard-chart__export {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: oklch(var(--lch-primary) / 0.08);
  color: #1e3a5f;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dashboard-chart__export:hover {
  background: oklch(var(--lch-primary) / 0.12);
}

.dashboard-chart__export svg {
  flex-shrink: 0;
}

.dashboard-chart__bars {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.dashboard-chart__bar {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--space-md);
  align-items: center;
}

.dashboard-chart__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-75);
}

.dashboard-chart__track {
  position: relative;
  height: 32px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.dashboard-chart__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, #2d8a7b 0%, #1e6b5f 100%);
  border-radius: var(--radius-sm);
  transition: width 0.5s ease;
}

.dashboard-chart__value {
  position: absolute;
  right: var(--space-sm);
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink);
}

.data-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
  margin-top: var(--space-3xl);
}

.data-benefit {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.data-benefit__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(45, 138, 123, 0.1) 0%, rgba(45, 138, 123, 0.05) 100%);
  border-radius: var(--radius-md);
  color: #2d8a7b;
  flex-shrink: 0;
}

.data-benefit__icon svg {
  width: 28px;
  height: 28px;
}

.data-benefit h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.data-benefit p {
  font-size: var(--text-base);
  color: var(--ink-60);
  margin: 0;
  line-height: 1.6;
}

/* Impact Numbers Section */
.impact-numbers {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d8a7b 100%);
  padding: var(--space-3xl) 0;
  color: white;
  text-align: center;
}

.impact-numbers h2 {
  color: white;
  margin-bottom: var(--space-2xl);
  font-size: var(--text-2xl);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3xl);
  max-width: 1100px;
  margin: 0 auto;
}

.impact-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.impact-value {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  color: white;
}

.impact-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.mid-cta-section {
  padding: var(--space-2xl) 0;
  background: var(--surface);
}

.mid-cta-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-2xl);
  background: var(--surface-raised);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
}

.mid-cta-card h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 var(--space-sm) 0;
}

.mid-cta-card p {
  font-size: var(--text-base);
  color: var(--ink-60);
  margin: 0 0 var(--space-lg) 0;
}

/* Responsive Dashboard */
@media (max-width: 1024px) {
  .dashboard-preview__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .data-benefits {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
  }
}

@media (max-width: 768px) {
  .dashboard-preview__header {
    flex-direction: column;
    gap: var(--space-sm);
    align-items: flex-start;
    padding: var(--space-md) var(--space-lg);
  }

  .dashboard-preview__grid {
    grid-template-columns: 1fr;
  }

  .dashboard-stat {
    padding: var(--space-lg);
  }

  .dashboard-chart {
    padding: var(--space-lg);
  }

  .dashboard-chart__bar {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }

  .dashboard-chart__header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .data-benefit {
    flex-direction: row;
    gap: var(--space-lg);
    align-items: flex-start;
  }

  .data-benefit__icon {
    width: 48px;
    height: 48px;
  }

  .data-benefit__icon svg {
    width: 24px;
    height: 24px;
  }

  .impact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .impact-value {
    font-size: 36px;
  }
}
