:root {
  --primary: oklch(0.451 0.233 142.1);
  --secondary: oklch(0.466 0.213 328.1);
  --primary-foreground: oklch(0.985 0 0);
  --secondary-foreground: oklch(0.985 0 0);
}

/* Main container */
#preloader {
  font-family: 'Exo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Background animated elements */
.background-elements {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.bg-element {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  animation: pulse 3s ease-in-out infinite;
}

.bg-element-1 {
  top: -10rem;
  right: -10rem;
  width: 20rem;
  height: 20rem;
  background: color-mix(in oklch, var(--primary) 10%, transparent);
}

.bg-element-2 {
  bottom: -10rem;
  left: -10rem;
  width: 20rem;
  height: 20rem;
  background: color-mix(in oklch, var(--secondary) 10%, transparent);
  animation-delay: 1s;
}

.bg-element-3 {
  top: 25%;
  left: 25%;
  width: 8rem;
  height: 8rem;
  background: color-mix(in oklch, var(--primary) 5%, transparent);
  animation-delay: 2s;
}

/* Main content */
.main-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

/* Logo section */
.logo-section {
  margin-bottom: 4.5rem;
  display: flex;
  justify-content: center;
  animation: fadeIn 1s ease-out;
}

.logo-wrapper {
  position: relative;
}

.logo-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    color-mix(in oklch, var(--primary) 20%, transparent),
    color-mix(in oklch, var(--secondary) 20%, transparent)
  );
  border-radius: 1rem;
  filter: blur(1.5rem);
  transform: scale(1.1);
}

.logo-container {
  position: relative;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.logo-symbol-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.logo-symbol {
  position: relative;
  width: 4rem;
  height: 4rem;
}

.logo-bg-1 {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 0.75rem;
  transform: rotate(12deg);
  opacity: 0.8;
}

.logo-bg-2 {
  position: absolute;
  inset: 0.5rem;
  background: linear-gradient(45deg, var(--secondary), var(--primary));
  border-radius: 0.5rem;
  transform: rotate(-12deg);
}

.logo-center {
  position: absolute;
  inset: 1rem;
  background: white;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-letter {
  font-size: 1.25rem;
  font-weight: bold;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.company-name {
  font-size: 1.5rem;
  font-weight: bold;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  letter-spacing: 0.05em;
}

.company-tagline {
  font-size: 0.875rem;
  color: #4b5563;
  margin-top: 0.25rem;
  font-weight: 500;
}

/* Spinner section */
.spinner-section {
  margin-bottom: 3rem;
  display: flex;
  justify-content: center;
}

.loading-spinner {
  position: relative;
}

.spinner-main {
  width: 4rem;
  height: 4rem;
  position: relative;
}

.spinner-ring {
  position: absolute;
  border-radius: 50%;
}

.spinner-ring-1 {
  inset: 0;
  border: 4px solid color-mix(in oklch, var(--secondary) 30%, transparent);
  animation: pulse 2s ease-in-out infinite;
}

.spinner-ring-2 {
  inset: 0.5rem;
  border: 4px solid var(--primary);
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

.spinner-ring-3 {
  inset: 1rem;
  border: 2px solid var(--secondary);
  border-right-color: transparent;
  animation: spin 0.8s linear infinite reverse;
}

.spinner-dots {
  position: absolute;
  inset: -2rem;
}

.spinner-dot {
  position: absolute;
  border-radius: 50%;
  animation: bounce 1.5s ease-in-out infinite;
}

.spinner-dot-1 {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0.5rem;
  height: 0.5rem;
  background: var(--primary);
  animation-delay: 0s;
}

.spinner-dot-2 {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 0.375rem;
  height: 0.375rem;
  background: var(--secondary);
  animation-delay: 0.2s;
}

.spinner-dot-3 {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0.5rem;
  height: 0.5rem;
  background: var(--primary);
  animation-delay: 0.4s;
}

.spinner-dot-4 {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 0.375rem;
  height: 0.375rem;
  background: var(--secondary);
  animation-delay: 0.6s;
}

/* Loading text */
.loading-text {
  margin: 0 auto 2rem;
  max-width: 28rem;
  padding: 0 1rem;
}

.loading-message {
  font-size: 1.875rem;
  font-weight: bold;
  color: #1f2937;
  animation: fadeIn 1s ease-out;
}

.loading-subtitle {
  color: #4b5563;
  font-size: 1.125rem;
  animation: fadeIn 1s ease-out 0.3s both;
}

/* Progress dots */
.progress-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.progress-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

.progress-dot-2 {
  animation-delay: 0.2s;
}

.progress-dot-3 {
  animation-delay: 0.4s;
}

/* Bottom brand */
.bottom-brand {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
}

.brand-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
  animation: fadeIn 1s ease-out 1s both;
}

.brand-icon {
  width: 1.5rem;
  height: 1.5rem;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-icon-inner {
  width: 0.75rem;
  height: 0.75rem;
  background: white;
  border-radius: 0.125rem;
}

.brand-text {
  font-size: 0.875rem;
  font-weight: 500;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-25%);
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .loading-message {
    font-size: 1.5rem;
  }

  .logo-container {
    padding: 1.5rem;
  }

  .company-name {
    font-size: 1.25rem;
  }
}
