body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", sans-serif;
  margin: 0;
  padding: 0;
  background: #ffffff;
}

.loading-content {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.3s ease-out;
}

.loading-content.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-logo {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
  text-align: center;
}

.loading-subtitle {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.125rem;
  color: #64748b;
  text-align: center;
  margin-bottom: 2rem;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e2e8f0;
  border-top: 3px solid #3b82f6;
  border-radius: 50%;
  animation: loading-spin 1s linear infinite;
}

@keyframes loading-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.hero-critical {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-content {
  max-width: 64rem;
  text-align: center;
  position: relative;
  z-index: 10;
}

.hero-title {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: #1e293b;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.hero-subtitle {
  margin: 1.5rem auto 0 auto;
  max-width: 32rem;
  font-size: 1.125rem;
  line-height: 2rem;
  color: #64748b;
}

@media (min-width: 640px) {
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

.pwa-install-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #1e293b;
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(30, 41, 59, 0.3);
  z-index: 1000;
  font-size: 14px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 1;
  transform: translateY(0);
}

.pwa-install-button:hover,
.pwa-install-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(30, 41, 59, 0.4);
}

.pwa-install-button:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.pwa-install-button--hidden {
  opacity: 0;
  transform: translateY(100px);
  pointer-events: none;
}

.pwa-install-button__emoji {
  font-size: 16px;
}

.pwa-hint {
  position: fixed;
  background: #1e293b;
  color: #ffffff;
  padding: 16px;
  border-radius: 12px;
  font-family: inherit;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(30, 41, 59, 0.3);
  max-width: 280px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 1;
}

.pwa-hint__emoji {
  font-size: 20px;
}

.pwa-hint__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.pwa-hint__title {
  font-weight: 600;
  font-size: 14px;
}

.pwa-hint__subtitle {
  font-size: 12px;
  opacity: 0.8;
}

.pwa-hint__close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.pwa-hint__close:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

@keyframes pwa-slide-down {
  from {
    transform: translateY(-100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pwa-slide-up {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.pwa-hint--safari {
  top: 20px;
  right: 20px;
  animation: pwa-slide-down 0.3s ease;
}

.pwa-hint--ios {
  bottom: 20px;
  left: 20px;
  right: 20px;
  animation: pwa-slide-up 0.3s ease;
}

.pwa-hint--hidden {
  opacity: 0;
  pointer-events: none;
}
