/* MemoryForge AI Labs — Base Theme */
:root {
  /* Colors */
  --bg-primary: #0a0a1a;
  --bg-secondary: #111128;
  --bg-card: #161633;
  --bg-card-hover: #1c1c40;
  --bg-input: #1a1a35;
  --bg-overlay: rgba(0, 0, 0, 0.7);

  --text-primary: #e8e8f0;
  --text-secondary: #9999b8;
  --text-muted: #666688;
  --text-accent: #4fc3f7;

  --accent-blue: #4fc3f7;
  --accent-green: #81c784;
  --accent-orange: #ffb74d;
  --accent-red: #e57373;
  --accent-purple: #ba68c8;
  --accent-yellow: #ffd54f;
  --accent-cyan: #4dd0e1;
  --accent-teal: #26a69a;

  --border-color: #2a2a50;
  --border-active: #4fc3f7;
  --border-subtle: #1e1e3e;

  --glow-blue: 0 0 20px rgba(79, 195, 247, 0.3);
  --glow-green: 0 0 20px rgba(129, 199, 132, 0.3);
  --glow-orange: 0 0 20px rgba(255, 183, 77, 0.3);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  --fs-xs: 0.7rem;
  --fs-sm: 0.8rem;
  --fs-base: 0.95rem;
  --fs-md: 1.1rem;
  --fs-lg: 1.4rem;
  --fs-xl: 2rem;
  --fs-2xl: 2.8rem;
  --fs-3xl: 3.5rem;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --nav-height: 56px;
  --sidebar-width: 280px;
  --max-content-width: 1400px;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--accent-cyan); }

img { max-width: 100%; display: block; }

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 600;
  color: var(--text-primary);
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

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

code, pre {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
}

pre {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  overflow-x: auto;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Utility Classes */
.container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.frame-16-9 {
  max-width: 1600px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

.text-center { text-align: center; }
.text-accent { color: var(--accent-blue); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

/* Animation utilities */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0ms; }
.stagger-2 { transition-delay: 100ms; }
.stagger-3 { transition-delay: 200ms; }
.stagger-4 { transition-delay: 300ms; }
.stagger-5 { transition-delay: 400ms; }

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(79, 195, 247, 0.2); }
  50% { box-shadow: 0 0 25px rgba(79, 195, 247, 0.5); }
}

@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slide-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fill-bar {
  from { width: 0%; }
  to { width: var(--fill-width, 100%); }
}

/* Page content area */
.page-content {
  padding-top: var(--nav-height);
  min-height: 100vh;
}

/* Section */
.section {
  padding: var(--space-3xl) 0;
}

.section-title {
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-lg);
}

.section-subtitle {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  max-width: 700px;
  margin-bottom: var(--space-2xl);
}

/* ========== DUAL-TRACK VISIBILITY ========== */
.track-business [data-track="technical"] { display: none; }
.track-technical [data-track="business"] { display: none; }
