:root {
  --bg-primary: #f7f5f2;
  --bg-secondary: #fffef9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --text-primary: #2c2c2c;
  --text-secondary: #6b6b6b;
  --text-muted: #9a9a9a;
  --accent: #c4a87c;
  --accent-soft: #e8dcc8;
  --accent-hover: #b8996d;
  --border: rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.03);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.15);
  --spotify-green: #1db954;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  z-index: 9999;
  mix-blend-mode: overlay;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  pointer-events: none;
  animation: float 25s ease-in-out infinite;
  will-change: transform;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(232, 220, 200, 0.8) 0%, rgba(240, 230, 216, 0.4) 100%);
  top: -150px;
  right: -150px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 229, 247, 0.7) 0%, rgba(232, 240, 248, 0.3) 100%);
  bottom: -100px;
  left: -100px;
  animation-delay: -8s;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(232, 212, 212, 0.6) 0%, rgba(245, 232, 232, 0.3) 100%);
  top: 50%;
  left: 35%;
  animation-delay: -16s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  25% {
    transform: translate(30px, -30px) scale(1.08) rotate(5deg);
  }
  50% {
    transform: translate(-20px, 20px) scale(0.92) rotate(-5deg);
  }
  75% {
    transform: translate(-30px, -15px) scale(1.05) rotate(3deg);
  }
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(247, 245, 242, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

nav:hover {
  background: rgba(247, 245, 242, 0.95);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
}

.logo:hover {
  transform: translateY(-2px);
}

.logo-icon {
  width: 36px;
  height: 36px;
  position: relative;
  filter: drop-shadow(0 2px 8px rgba(196, 168, 124, 0.3));
}

.crescent-moon {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  animation: glow 4s ease-in-out infinite, rotate 20s linear infinite;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes glow {
  0%, 100% {
    opacity: 0.8;
    filter: drop-shadow(0 0 4px rgba(196, 168, 124, 0.4));
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 12px rgba(196, 168, 124, 0.8));
  }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.clock {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  min-width: 100px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  transition: var(--transition);
}

.clock:hover {
  color: var(--accent);
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-links a:hover {
  color: var(--text-primary);
  transform: translateY(-2px);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 1rem;
}

.nav-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.nav-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow);
}

.dark-mode-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.3rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.dark-mode-toggle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  opacity: 0;
  transition: var(--transition);
}

.dark-mode-toggle:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.dark-mode-toggle:hover::before {
  opacity: 0.2;
}

.dark-mode-toggle:active {
  transform: scale(0.95);
}

main {
  padding-top: 120px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero {
  text-align: center;
  padding: 5rem 2rem 3rem;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4.5rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  font-weight: 300;
  letter-spacing: 0.08em;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--text-muted);
  animation: fadeInUp 1s ease-out 0.6s both;
}

.empty-state svg {
  width: 96px;
  height: 96px;
  margin-bottom: 2rem;
  opacity: 0.25;
  animation: float 6s ease-in-out infinite;
}

.empty-state p {
  font-size: 1rem;
  line-height: 1.8;
  max-width: 400px;
  margin: 0 auto;
}

footer {
  text-align: center;
  padding: 4rem 2rem;
  margin-top: auto;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

footer p + p {
  margin-top: 0.75rem;
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

footer a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: var(--transition);
}

footer a:hover {
  color: var(--accent);
}

footer a:hover::after {
  width: 100%;
}

.spotify-tab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
}

.spotify-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 16px 0 0 16px;
  padding: 1.25rem 0.875rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  transition: var(--transition);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.spotify-toggle:hover {
  background: var(--bg-secondary);
  padding-left: 1.25rem;
  box-shadow: var(--shadow-lg);
  transform: translateX(-4px);
}

.spotify-icon {
  width: 28px;
  height: 28px;
  fill: var(--spotify-green);
  filter: drop-shadow(0 2px 4px rgba(29, 185, 84, 0.3));
  transition: var(--transition);
}

.spotify-toggle:hover .spotify-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 8px rgba(29, 185, 84, 0.5));
}

.spotify-toggle span {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  font-weight: 500;
}

.spotify-panel {
  position: fixed;
  right: -340px;
  top: 0;
  width: 340px;
  height: 100vh;
  background: var(--bg-card);
  backdrop-filter: blur(32px) saturate(180%);
  border-left: 1px solid var(--border);
  padding: 6rem 1.75rem 2rem;
  transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 85;
  overflow-y: auto;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
}

.spotify-panel.open {
  right: 0;
}

.spotify-panel h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1.75rem;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.spotify-placeholder {
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.spotify-placeholder svg {
  filter: drop-shadow(0 4px 12px rgba(29, 185, 84, 0.4));
}

.spotify-placeholder p {
  color: #b3b3b3;
  font-size: 0.9rem;
  margin: 1.5rem 0;
  line-height: 1.6;
}

.spotify-connect {
  background: var(--spotify-green);
  color: white;
  border: none;
  padding: 0.875rem 2rem;
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(29, 185, 84, 0.3);
  letter-spacing: 0.05em;
}

.spotify-connect:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 24px rgba(29, 185, 84, 0.5);
}

.spotify-connect:active {
  transform: translateY(0) scale(0.98);
}

.close-spotify {
  position: absolute;
  top: 1.75rem;
  right: 1.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-spotify:hover {
  color: var(--text-primary);
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: rotate(90deg) scale(1.1);
}
