:root {
  --ergonomic-bg: #0f172a;
  --ergonomic-surface: #1e293b;
  --ergonomic-surface-bright: #334155;
  --ergonomic-vibe: #06b6d4;
  --ergonomic-vibe-hover: #0891b2;
  --ergonomic-accent: #f97316;
  --ergonomic-ink-light: #f8fafc;
  --ergonomic-ink-muted: #94a3b8;
  --ergonomic-gradient: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
  --ergonomic-card-gradient: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ergonomic-radius: 16px;
  --ergonomic-pill-radius: 999px;
}

/* Base Body Styles */
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Background Pattern Layer */
.vitality-bg-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.03;
  background-image: radial-gradient(#06b6d4 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Scroll Progress Bar */
@keyframes progress-grow {
  to {
    width: 100%;
  }
}

.scroll-progress {
  height: 3px;
  width: 0;
  animation: progress-grow linear;
  animation-timeline: scroll();
}

/* Viewport Scroll Reveal */
@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.reveal {
  animation: slide-up 0.6s linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 40%;
}

/* Header & Drawer Styles */
.workplace-top-nav {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-item-link {
  font-weight: 500;
  transition: color 0.2s ease;
  text-decoration: none;
}

.nav-item-link:hover {
  color: var(--ergonomic-vibe) !important;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background-color: var(--ergonomic-ink-light);
  transition: all 0.3s ease;
}

.mobile-drawer-overlay {
  display: none;
  background: var(--ergonomic-surface);
  border-bottom: 1px solid var(--ergonomic-surface-bright);
}

#mobile-toggle-check:checked ~ .mobile-drawer-overlay {
  display: flex;
}

/* Buttons & Interactive Elements */
.action-pill-button {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.action-pill-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(6, 182, 212, 0.4);
}

/* Bento Grid Layout */
.habit-bento-mesh {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}

.bento-span-2 {
  grid-column: span 2;
}

.bento-span-3 {
  grid-column: span 3;
}

.bento-span-4 {
  grid-column: span 4;
}

.bento-span-6 {
  grid-column: span 6;
}

.vitality-item-box {
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.vitality-item-box:hover {
  transform: scale(1.02);
}

/* Responsive Bento Grid Fallbacks */
@media (max-width: 1024px) {
  .bento-span-4 {
    grid-column: span 6;
  }
  .bento-span-2 {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  .habit-bento-mesh > * {
    grid-column: span 6 !important;
  }
}