:root {
  /* Colors - Indigo/Violet Scale */
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: #e0e7ff;
  --bg: #ffffff;
  --bg-subtle: #f9fafb;
  --text: #111827;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 48px;
  --space-2xl: 80px;

  /* Typography */
  --font-main: 'Geist', 'Inter', -apple-system, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
  color: var(--text-muted);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

/* Layout Components */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

section {
  margin-top: var(--space-2xl);
  padding: var(--space-xl) 0;
}

main > :first-child {
  margin-top: 0;
}

/* Navigation */
.nav-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 72px;
  display: flex;
  align-items: center;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
}

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

.nav-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: white;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--bg-subtle);
  border-color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--bg-subtle);
}

/* Hero Section */
.hero {
  padding: var(--space-2xl) 0;
  text-align: center;
  background: radial-gradient(circle at top center, #f5f3ff 0%, #ffffff 100%);
}

.hero-badge {
  display: inline-block;
  padding: 6px 12px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 64px;
}

.hero-preview {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 8px solid white;
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
  background: var(--bg-subtle);
  overflow: hidden;
  position: relative;
}

/* Grid Components */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.2s ease;
  overflow: hidden;
}

.card:hover {
  border-color: var(--primary);
}

.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

/* Placeholders */
.placeholder-image {
  background: #f3f4f6;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  position: relative;
}

.placeholder-image::after {
  content: attr(data-label);
}

.placeholder-image.square { aspect-ratio: 1/1; }
.placeholder-image.portrait { aspect-ratio: 3/4; }

.placeholder-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

/* Feature Specifics */
.section-tag {
  color: var(--primary);
  text-transform: uppercase;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-weight: 500;
}

/* Testimonials */
.scrolling-logos {
  display: flex;
  gap: 64px;
  overflow: hidden;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-item {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 1.5rem;
  white-space: nowrap;
  opacity: 0.5;
}

/* Footer */
footer {
  margin-top: var(--space-2xl);
  padding: 80px 0 40px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 64px;
}

.footer-col h4 {
  font-size: 0.875rem;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Auth Pages Styles */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
}

.auth-sidebar {
  flex: 1;
  background: #0f172a;
  color: white;
  padding: 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-form-container {
  width: 500px;
  background: white;
  padding: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* Dashboard Sidebar */
.dash-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.dash-sidebar {
  width: 260px;
  background: var(--bg-subtle);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
}

.dash-main {
  flex: 1;
  overflow-y: auto;
  background: white;
}

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.dash-nav-item:hover {
  background: #f1f5f9;
  color: var(--text);
}

.dash-nav-item.active {
  background: var(--primary-light);
  color: var(--primary);
}

/* Kanban Board */
.kanban-board {
  display: flex;
  gap: 20px;
  padding: 24px;
  overflow-x: auto;
  min-height: calc(100vh - 120px);
}

.kanban-column {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kanban-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}

.kanban-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: grab;
  box-shadow: var(--shadow-sm);
}

.kanban-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

/* Widgets */
.stat-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.timer-widget {
  background: #0f172a;
  color: white;
  padding: 24px;
  border-radius: var(--radius-lg);
  text-align: center;
}

.timer-display {
  font-size: 2.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin: 16px 0;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  display: inline-block;
  margin-right: 8px;
  box-shadow: 0 0 10px var(--success);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

/* Utility */
.badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-low { background: #f3f4f6; color: #6b7280; }
.badge-medium { background: #fef3c7; color: #d97706; }
.badge-high { background: #fee2e2; color: #dc2626; }

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

.animate-fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .bento-grid { grid-template-columns: 1fr; }
  .col-4, .col-6, .col-8 { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.5rem; }
}
