:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

body {
  background: #000000;
  color: #ffffff;
  padding: 24px;
}

.home-screen {
  max-width: 1200px;
  margin: 0 auto;
}

.system-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid #333333;
}

.workspace-info {
  display: grid;
  gap: 16px;
  align-items: center;
  grid-template-columns: 56px 1fr;
}

.os-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 20px;
  font-weight: 700;
  color: #000000;
  background: #ffffff;
}

.workspace-name {
  margin: 0;
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.workspace-status {
  font-size: 14px;
  color: #888888;
  margin-top: 4px;
}

.user-context {
  font-size: 12px;
  color: #666666;
  margin-top: 2px;
}

.system-controls {
  display: flex;
  gap: 12px;
}

.control-button {
  border: 1px solid #333333;
  border-radius: 8px;
  background: transparent;
  color: #ffffff;
  font-size: 14px;
  padding: 8px 16px;
  cursor: pointer;
}

.control-button:hover {
  background: #333333;
}

.control-button--danger {
  border-color: #991b1b;
  background: #b91c1c;
  color: #ffffff;
}

.control-button--danger:hover {
  background: #7f1d1d;
}

.control-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
}

.control-icon i {
  width: 20px;
  height: 20px;
  display: grid;
}

.app-launcher {
  margin-top: 32px;
}

.launcher-title {
  margin: 0 0 24px;
  font-size: 20px;
  font-weight: 500;
  color: #cccccc;
}

.app-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1200px;
}

.app-tile {
  position: relative;
  display: block;
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid #333333;
  border-radius: 20px;
  background: #111111;
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-tile:hover {
  border-color: #555555;
  transform: scale(1.02);
}

.app-tile:active {
  transform: scale(0.98);
}

.app-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.3;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-tile:hover .app-background {
  transform: scale(1.1);
  opacity: 0.5;
}

.app-content {
  position: relative;
  display: grid;
  gap: 20px;
  align-items: center;
  grid-template-columns: 80px 1fr;
  padding: 28px;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.8) 100%
  );
}

.app-icon {
  font-size: 36px;
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.app-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.app-description {
  font-size: 13px;
  color: #cccccc;
  line-height: 1.4;
}

@media (max-width: 768px) {
  body {
    padding: 16px;
  }
  
  .system-header {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }
  
  .workspace-info {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .app-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .app-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 16px;
  }
}