:root {
  --bg-deep: #060814;
  --bg-mid: #0c1230;
  --accent: #4f9dff;
  --accent-2: #7c3aed;
  --text: #e8ecff;
  --text-dim: #8a91b8;
}

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

html, body {
  height: 100%;
}

body {
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(circle at 50% 0%, var(--bg-mid), var(--bg-deep) 70%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  max-width: 640px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(79, 157, 255, 0.35);
  border-radius: 999px;
  background: rgba(79, 157, 255, 0.08);
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  animation: fade-in-down 0.8s ease-out;
}

.title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: clamp(2.8rem, 9vw, 5.5rem);
  letter-spacing: 0.03em;
  line-height: 1;
  text-shadow: 0 0 30px rgba(79, 157, 255, 0.35);
  animation: fade-in-up 0.9s ease-out;
}

.accent {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.construction {
  position: relative;
  width: 220px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2.5rem 0 1.5rem;
}

.gear {
  position: absolute;
  color: var(--accent);
  filter: drop-shadow(0 0 12px rgba(79, 157, 255, 0.5));
}

.gear--big {
  font-size: 4.5rem;
  top: 0;
  left: 20px;
  animation: spin 6s linear infinite;
}

.gear--small {
  font-size: 2.6rem;
  top: 45px;
  left: 110px;
  color: var(--accent-2);
  filter: drop-shadow(0 0 10px rgba(124, 58, 237, 0.5));
  animation: spin-reverse 4.5s linear infinite;
}

.worker {
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: 3rem;
  color: var(--text);
  animation: bob 2.2s ease-in-out infinite;
}

.subtitle {
  color: var(--text-dim);
  font-weight: 300;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.typing {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;
  color: var(--accent);
  min-height: 1.4rem;
  margin-bottom: 2rem;
}

.cursor {
  display: inline-block;
  animation: blink 1s step-end infinite;
}

.progress {
  width: 100%;
  max-width: 320px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.progress__bar {
  height: 100%;
  width: 40%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  background-size: 200% 100%;
  animation: progress-slide 2.8s ease-in-out infinite, shimmer 2s linear infinite;
}

.footer {
  color: var(--text-dim);
  font-size: 0.8rem;
  opacity: 0.7;
}

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

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

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

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

@keyframes fade-in-down {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes progress-slide {
  0% { width: 20%; margin-left: 0%; }
  50% { width: 60%; margin-left: 30%; }
  100% { width: 20%; margin-left: 0%; }
}

@keyframes shimmer {
  from { background-position: 0% 0; }
  to { background-position: 200% 0; }
}

@media (max-width: 480px) {
  .construction {
    width: 180px;
    height: 120px;
  }
  .gear--big { font-size: 3.5rem; }
  .gear--small { font-size: 2rem; left: 90px; }
  .worker { font-size: 2.4rem; }
}
