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

html {
  overflow-x: hidden;
  overflow-y: scroll;
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  background-attachment: fixed;
  min-height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  z-index: 9998;
}

#global-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: transparent;
  z-index: 9999;
  padding: 0 2rem;
}

#global-nav .nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

#global-nav .nav-brand-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

#global-nav .nav-logo {
  width: 45px;
  height: 45px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}

#global-nav .nav-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.5px;
  user-select: none;
}

#global-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

#global-nav .nav-link {
  padding: 0.5rem 1rem;
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  border-radius: 6px;
  font-size: 0.95rem;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: all 0.2s ease;
}

#global-nav .nav-link:hover {
  color: #1e293b;
  background: #abd5db;
}

#global-nav .nav-link.active {
  color: #ffffff;
  background: #65999f;
  font-weight: 600;
}

.home-container,
#root {
  margin-top: 70px;
}

.home-container {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.welcome-title {
  font-family: 'Prata', serif;
  font-size: 2.5rem;
  font-weight: 400;
  color: #1e293b;
  letter-spacing: -0.5px;
  margin-bottom: 0.75rem;
}

.tagline {
  font-family: 'Prata', serif;
  font-size: 1.15rem;
  line-height: 1.8;
  color: #475569;
  max-width: 700px;
  font-weight: 400;
  margin-bottom: 1rem;
}

.tasks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  width: 100%;
  margin-top: 2rem;
}

.task-tile {
  font-family: 'Prata', serif;
  background: white;
  padding: 3rem 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: #8a5fc2;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.task-tile:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.2);
  border-color: #8a5fc2;
}

.task-icon {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.task-number {
  font-size: 3rem;
  font-weight: 700;
  color: #8a5fc2;
  margin-bottom: 0.5rem;
}

.task-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
}

@media (max-width: 768px) {
  #global-nav .nav-logo {
    width: 35px;
    height: 35px;
  }

  #global-nav .nav-brand {
    font-size: 1.25rem;
  }

  #global-nav .nav-links {
    gap: 0.75rem;
  }

  #global-nav .nav-link {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
  }

  .welcome-title {
    font-size: 2rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .home-container {
    padding: 2rem 1rem;
  }

  .tasks-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .task-tile {
    padding: 2.5rem 1.5rem;
  }
}

