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

html, body, #root {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #f9fafb;
}

#root:empty {
  background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 50%, #e8f0fe 100%);
}

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

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes fadeInLogo {
  0% {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

#loading-content {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  animation: fadeInUp 0.4s ease-out 0.2s forwards;
}

#loading-content .splash-logo {
  width: 160px;
  height: auto;
  opacity: 0;
  animation: fadeInLogo 0.5s ease-out 0.3s forwards;
}

#loading-content .splash-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e2e8f0;
  border-top-color: #1e3a5f;
  border-radius: 50%;
  animation: spinner 0.8s linear infinite, fadeIn 0.3s ease-out 0.5s forwards;
  opacity: 0;
}

#loading-content .platform-name {
  font-size: 18px;
  font-weight: 700;
  color: #1e3a5f;
  letter-spacing: -0.02em;
}

#loading-content .platform-subtitle {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  margin-top: -8px;
}

#loading-content .loading-status {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
}

#loading-content .project-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-top: 8px;
}

#loading-content .project-badge .label {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#loading-content .project-badge img {
  height: 22px;
  width: auto;
}

#root:not(:empty) + #loading-content,
#root:not(:empty) ~ #loading-content {
  display: none;
}
