/* DataPrism Premium Styling Sheet - VoltC Style (Improved UI/UX) */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg-main: #06070a;
  --bg-card: rgba(18, 22, 33, 0.7);
  --bg-darker: #0b0c10;
  --border-color: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(99, 102, 241, 0.25);
  
  /* Text Colors */
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #4b5563;

  /* Theme Accents */
  --accent-primary: #818cf8; /* Indigo */
  --accent-secondary: #2dd4bf; /* Teal */
  --accent-gradient: linear-gradient(135deg, #818cf8 0%, #2dd4bf 100%);
  
  --success: #10b981; /* Emerald */
  --warning: #f59e0b; /* Amber */
  --danger: #ef4444; /* Rose */
  
  --card-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  --glass-blur: blur(24px);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Custom Scrollbar for Chrome/Firefox */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Background Grid Decor (Faded radial mask) */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 45px 45px;
  z-index: -1;
  pointer-events: none;
  mask-image: radial-gradient(circle, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle, black 30%, transparent 80%);
}

.grid-overlay::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.09) 0%, transparent 70%);
  filter: blur(100px);
}

.grid-overlay::after {
  content: "";
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.06) 0%, transparent 70%);
  filter: blur(100px);
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background: rgba(6, 7, 10, 0.75);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.navbar-container {
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-icon {
  font-size: 1.6rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.btn-nav-download {
  background: var(--accent-gradient);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--bg-main);
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(129, 140, 248, 0.25);
  transition: var(--transition-smooth);
}

.btn-nav-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(129, 140, 248, 0.45);
}

/* Hamburger Button Styling */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 150;
}

.nav-hamburger span {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: all 0.3s ease;
  transform-origin: left;
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
}

/* Hero Section */
.hero {
  padding-top: 170px;
  padding-bottom: 90px;
  text-align: center;
}

.hero-badge-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
  animation: fadeIn 0.8s ease-out;
}

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.badge-indigo {
  background: rgba(129, 140, 248, 0.08);
  color: var(--accent-primary);
  border: 1px solid rgba(129, 140, 248, 0.18);
}

.badge-glow {
  box-shadow: 0 0 16px rgba(129, 140, 248, 0.15);
}

.hero h1 {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: fadeIn 0.8s ease-out;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 40px auto;
  line-height: 1.65;
  animation: fadeIn 1s ease-out;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 18px;
  animation: fadeIn 1.2s ease-out;
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--bg-main);
  border: none;
  border-radius: var(--radius-sm);
  padding: 15px 32px;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 25px rgba(129, 140, 248, 0.35);
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(129, 140, 248, 0.55);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 15px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Simulator Section */
.simulator-showcase {
  padding-bottom: 120px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 620px;
  margin: 0 auto 50px auto;
  line-height: 1.5;
}

/* VS Code Simulator Frame Layout */
.vscode-frame {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: #0d0e14;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  height: 620px;
  overflow: hidden;
  position: relative;
  transition: border-color 0.3s;
}

.vscode-frame:hover {
  border-color: rgba(129, 140, 248, 0.25);
}

.vscode-header {
  height: 42px;
  background: #08090d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--border-color);
}

.vscode-body-wrapper {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* VS Code Activity Bar */
.vscode-activitybar {
  width: 50px;
  background: #08090c;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--border-color);
  align-items: center;
  padding: 14px 0;
}

.activity-top, .activity-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.activity-item {
  color: #4b5563;
  font-size: 1.3rem;
  width: 48px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
}

.activity-item:hover {
  color: #9ca3af;
}

.activity-item.active {
  color: var(--accent-primary);
}

.activity-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10%;
  height: 80%;
  width: 2px;
  background-color: var(--accent-primary);
}

/* VS Code Content Editor Body */
.vscode-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #0b0c11;
  overflow: hidden;
}

/* Split Pane Workspace Layout */
.split-workspace {
  display: flex;
  flex: 1;
  height: calc(100% - 140px); /* Leave room for bottom terminal panel */
  overflow: hidden;
  position: relative;
}

/* VS Code Sidebar Explorer */
.vscode-sidebar {
  width: 190px;
  background: #08090c;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
  user-select: none;
  flex-shrink: 0;
}

.sidebar-header {
  padding: 10px 14px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.sidebar-section {
  padding: 8px 0;
}

.section-title {
  padding: 4px 14px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}

.file-tree {
  list-style: none;
  margin-top: 4px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: background 0.15s, color 0.15s;
}

.file-item:hover {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
}

.file-item.active {
  background: rgba(129, 140, 248, 0.08);
  color: var(--accent-primary);
  border-left: 2px solid var(--accent-primary);
  padding-left: 16px;
  font-weight: 600;
}

.file-icon-csv {
  color: var(--accent-secondary) !important;
}

.custom-upload-sec {
  border-top: 1px solid var(--border-color);
  margin-top: auto;
  padding: 12px 14px;
}

.btn-import-file {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-color);
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.btn-import-file:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
  background: rgba(129, 140, 248, 0.04);
}

/* Center-Left: Monaco Code Editor Pane */
.editor-pane {
  flex: 4;
  display: flex;
  flex-direction: column;
  background: #090a0f;
  border-right: 1px solid var(--border-color);
  min-width: 150px;
  overflow: hidden;
}

.pane-header {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: #06070a;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.7rem;
  color: var(--text-secondary);
  user-select: none;
}

.editor-size {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.editor-container {
  flex: 1;
  display: flex;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.5;
}

.line-numbers {
  padding: 12px 6px;
  border-right: 1px solid rgba(255, 255, 255, 0.03);
  text-align: right;
  color: var(--text-muted);
  user-select: none;
  min-width: 32px;
  font-size: 0.7rem;
  background: rgba(0,0,0,0.1);
}

.line-numbers div {
  height: 18.75px; /* aligned with standard line height */
}

.code-textarea {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  padding: 12px 14px;
  color: #93c5fd; /* Soft blue code styling */
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.5;
  white-space: pre;
  overflow: auto;
  tab-size: 4;
}

/* Center Resizable Splitter Divider */
.pane-divider {
  width: 4px;
  background: rgba(255, 255, 255, 0.02);
  cursor: col-resize;
  z-index: 10;
  transition: background 0.15s;
}

.pane-divider:hover {
  background: var(--accent-primary);
}

/* Right Area: Visualizer Panel */
.visualizer-pane {
  flex: 6;
  display: flex;
  flex-direction: column;
  background: #0b0c11;
  min-width: 250px;
  overflow: hidden;
}

/* Console Log Bottom Panel */
.console-panel {
  height: 140px;
  background: #06070a;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: height 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 15;
}

.console-panel.collapsed {
  height: 30px !important;
}

.console-header {
  height: 30px;
  background: #08090d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  font-size: 0.7rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  user-select: none;
}

.console-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.65rem;
  font-weight: 600;
  transition: color 0.15s;
}

.console-toggle-btn:hover {
  color: var(--text-primary);
}

.console-body {
  flex: 1;
  padding: 8px 14px;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: 0.725rem;
  color: #34d399; /* Green bash style */
  background: #040508;
}

.console-body pre {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.4;
}

/* Adjustments for existing panels */
.upload-zone {
  padding: 30px;
}

.upload-zone.active {
  display: flex;
}

.upload-icon {
  font-size: 5rem;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 15px rgba(129, 140, 248, 0.25));
  animation: float 3.5s ease-in-out infinite;
}

.upload-zone h3 {
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.upload-zone p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 400px;
  margin-bottom: 32px;
}

.upload-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.btn-select-file {
  background: var(--accent-gradient);
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 28px;
  font-size: 0.9rem;
  font-weight: 800;
  color: #06070a;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(129, 140, 248, 0.3);
  transition: var(--transition-smooth);
}

.btn-select-file:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(129, 140, 248, 0.45);
}

.btn-sample-data {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-sample-data:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.upload-limits {
  font-size: 0.725rem;
  color: var(--text-muted);
}

/* Loading Zone */
.loading-zone {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.loading-zone.active {
  display: flex;
}

.spinner {
  width: 52px;
  height: 52px;
  border: 4px solid rgba(129, 140, 248, 0.08);
  border-left-color: var(--accent-primary);
  border-radius: 50%;
  animation: rotate 0.85s linear infinite;
  margin-bottom: 24px;
}

.loading-zone h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.progress-bar-container {
  width: 350px;
  height: 6px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 12px;
}

/* Dashboard Viewport Zone */
.dashboard-zone {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dashboard-tabs {
  height: 38px;
  background: #08090d;
  display: flex;
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  scrollbar-width: none;
}

.tab-btn {
  background: transparent;
  border: none;
  border-right: 1px solid var(--border-color);
  padding: 0 20px;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
}

.tab-btn.active {
  background: #0b0c11;
  color: var(--accent-primary);
  border-bottom: 2px solid var(--accent-primary);
}

.dashboard-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  background: #0b0c11;
}

.tab-pane {
  display: none;
  padding: 20px;
  height: 100%;
  overflow-y: auto;
}

.tab-pane.active {
  display: block;
}

/* Data Preview Tables */
.table-scroll {
  width: 100%;
  max-height: 100%;
  overflow: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #06070a;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

th, td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  white-space: nowrap;
}

th {
  background: rgba(255, 255, 255, 0.015);
  color: var(--text-primary);
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: inset 0 -1px 0 var(--border-color);
}

td {
  color: var(--text-secondary);
}

tr:hover td {
  background: rgba(255, 255, 255, 0.01);
}

td.null-cell {
  background: rgba(239, 68, 68, 0.08);
  color: var(--danger);
  font-style: italic;
}

/* Metrics Dashboard Summary */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.metric-card {
  background: #06070a;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s;
}

.metric-card:hover {
  transform: translateY(-2px);
}

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

.metric-card .value {
  font-size: 1.4rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

/* Insights tab split layout */
.insights-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
}

.card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 20px;
  background: rgba(0, 0, 0, 0.15);
}

.card h3 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.bg-darker {
  background: #06070a;
}

#insight-overview-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.suggest-card {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.78rem;
  margin-bottom: 8px;
}

.suggest-card.High { border-left: 4px solid var(--danger); }
.suggest-card.Medium { border-left: 4px solid var(--warning); }
.suggest-card.Low { border-left: 4px solid var(--success); }

/* Heatmap Grid */
.correlation-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: center;
}

.heatmap-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #06070a;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
}

/* Quality health metrics dial */
.quality-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 20px;
}

.score-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-dial {
  width: 140px;
  height: 140px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
}

.score-dial svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.dial-progress {
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.3s ease;
}

.score-overlay {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  text-align: center;
}

.score-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.score-label {
  font-size: 0.65rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 2px;
}

/* Columns detailed profile cards */
.columns-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.col-detail-card {
  background: #06070a;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  transition: transform 0.2s;
}

.col-detail-card:hover {
  transform: translateY(-2px);
}

.col-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.col-name {
  font-size: 0.9rem;
  font-weight: 700;
}

.col-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.col-stat-item {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.col-stat-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  font-size: 0.75rem;
}

/* VS Code Footer Status Bar */
.vscode-footer {
  height: 24px;
  background: #06070a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  font-size: 0.7rem;
  color: #4b5563;
  border-top: 1px solid var(--border-color);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 36px 28px;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  transition: var(--transition-smooth);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(129, 140, 248, 0.4);
  box-shadow: 0 20px 40px rgba(129, 140, 248, 0.12);
}

.feature-card .icon {
  font-size: 2.5rem;
  margin-bottom: 24px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Math Specifications */
.math-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.math-card {
  background: rgba(18, 22, 33, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition-smooth);
}

.math-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 15px 35px rgba(99, 102, 241, 0.08);
  background: rgba(18, 22, 33, 0.65);
}

.math-card h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--accent-primary);
}

.math-card .formula {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 16px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  overflow-x: auto;
  font-size: 1.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--accent-secondary);
}

.math-card .formula .katex-display {
  margin: 0 !important;
}

/* Copy Marketplace Command Box */
.install-card {
  max-width: 600px;
  margin: 30px auto 0 auto;
  background: #06070a;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.install-header {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.install-body {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Copy button */
.btn-copy-command {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-copy-command:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.03);
}

/* Footer & Copyrights */
.site-footer {
  padding: 50px 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

/* --- RESPONSIVENESS (Media Queries) --- */

@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3rem;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .math-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .vscode-frame {
    height: 580px;
  }
  .insights-layout, .correlation-layout, .quality-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .columns-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navbar-container {
    padding: 0 1rem;
    position: relative;
  }
  .nav-hamburger {
    display: flex;
  }
  .nav-links {
    position: absolute;
    top: 75px;
    left: 0;
    right: 0;
    background-color: #0b0c10;
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px;
    display: none;
    box-shadow: var(--card-shadow);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-actions {
    display: none !important;
  }
  .hero {
    padding-top: 130px;
    padding-bottom: 60px;
  }
  .hero h1 {
    font-size: 2.3rem;
  }
  .hero p {
    font-size: 1rem;
    padding: 0 10px;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
  .vscode-frame {
    height: 520px;
  }
  .vscode-activitybar {
    display: none; /* Hide activity bar on mobile to maximize space */
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .math-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .vscode-header {
    padding: 0 10px;
  }
  .tab-btn {
    padding: 0 10px;
    font-size: 0.7rem;
  }
  .score-dial {
    width: 110px;
    height: 110px;
  }
  .score-number {
    font-size: 2.2rem;
  }
  .install-body {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .install-body code {
    font-size: 0.85rem;
  }
  .btn-copy-command {
    width: 100%;
    justify-content: center;
  }
}
