:root {
  --primary: #6366f1;
  --on-primary: #ffffff;
  --surface: #0f172a;
  --on-surface: #f8fafc;
  --surface-container: #1e293b;
  --border: rgba(148, 163, 184, 0.1);
  --text-muted: #94a3b8;
  --indigo-glow: rgba(99, 102, 241, 0.15);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--surface);
  color: var(--on-surface);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}

.bg-glow {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% -20%, var(--indigo-glow), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 280px;
  border-right: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: sticky;
  top: 0;
  height: 100vh;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
}

.main-content {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  width: 100%;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.logo h1 {
  font-size: 24px;
  letter-spacing: -0.02em;
}

.logo p {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-item {
  display: flex;
  items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-item.active {
  background: rgba(99, 102, 241, 0.1);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.nav-item:hover:not(.active) {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

/* Dashboard Specific Styles */
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.btn-login {
  background: var(--primary);
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s;
}

.btn-login:hover {
  transform: scale(1.02);
}

.hero-section {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(15, 23, 42, 0.5));
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 32px;
  padding: 48px;
  margin-bottom: 64px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero-content h2 {
  font-size: 48px;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-content p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.metric-card {
  background: var(--surface-container);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
}

.metric-card p {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.metric-card .value {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
}

.storyboard-card {
  background: var(--surface-container);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.storyboard-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary);
  opacity: 0.5;
}

.card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.tag {
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(99, 102, 241, 0.1);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.2);
  text-transform: uppercase;
  font-weight: 600;
}

.payload {
  background: rgba(0, 0, 0, 0.3);
  padding: 16px;
  border-radius: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #94a3b8;
  white-space: pre-wrap;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
}

.comparison-table th {
  text-align: left;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
}

.comparison-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

@media (max-width: 1024px) {
  .sidebar { width: 80px; }
  .nav-label { display: none; }
  .hero-section { grid-template-columns: 1fr; }
}
