Build a sleep tracker that helps me wake up refreshed. It should monitor movement and ambient sound overnight, estimate sleep stages, and trigger a smart alarm during a light‑sleep window I set (e.g., 30 minutes before my target wake time). Each morning, show an easy‑to‑read summary with cycle graphs and key metrics, and write the data to Apple Health. Keep a full history and sync it to the cloud so I can browse long‑term trends. Please use SwiftUI for the interface, a simple MVC‑style structure, and manage dependencies with Swift Package Manager.