/* gdzconstruct deploy v2 */
:root {
  --accent: #f59e0b;
  --accent-soft: rgba(245, 158, 11, 0.18);
  --bg: #0a0d12;
  --bg-elevated: #121821;
  --text: #f4f7fb;
  --text-muted: #9aa8bc;
  --line: rgba(255, 255, 255, 0.08);
  --glow: rgba(245, 158, 11, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: radial-gradient(circle at 50% 0%, #182033 0%, var(--bg) 48%);
  color: var(--text);
  overflow: hidden;
}

.scene {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 20%, transparent 72%);
  opacity: 0;
  animation: gridReveal 1.4s ease forwards 0.2s;
}

@keyframes gridReveal {
  from {
    opacity: 0;
    transform: scale(1.04);
  }
  to {
    opacity: 0.55;
    transform: scale(1);
  }
}

.build-stage {
  position: absolute;
  left: 50%;
  bottom: 18%;
  width: min(420px, 72vw);
  height: 220px;
  transform: translateX(-50%);
}

.piece {
  position: absolute;
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.35));
}

.foundation {
  left: 12%;
  bottom: 0;
  width: 76%;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(180deg, #3d4658, #2a3140);
  animation: pieceIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.5s;
}

.wall-left,
.wall-right {
  bottom: 18px;
  width: 22%;
  height: 92px;
  background: linear-gradient(180deg, #4a5568 0%, #2f3747 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.wall-left {
  left: 16%;
  animation: pieceIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards 1s;
}

.wall-right {
  right: 16%;
  animation: pieceIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards 1.35s;
}

.beam {
  left: 18%;
  bottom: 110px;
  width: 64%;
  height: 10px;
  border-radius: 2px;
  background: linear-gradient(90deg, #5a6478, var(--accent), #5a6478);
  animation: pieceIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards 1.7s;
}

.roof {
  left: 22%;
  bottom: 120px;
  width: 0;
  height: 0;
  border-left: 28% solid transparent;
  border-right: 28% solid transparent;
  border-bottom: 52px solid #3a4354;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.25));
  animation: roofIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards 2s;
}

@keyframes pieceIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes roofIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.crane {
  right: 4%;
  bottom: 18px;
  width: 90px;
  height: 150px;
  animation: pieceIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.8s;
}

.crane-mast {
  position: absolute;
  left: 42px;
  bottom: 0;
  width: 6px;
  height: 120px;
  background: linear-gradient(180deg, var(--accent), #b45309);
  border-radius: 3px;
}

.crane-arm {
  position: absolute;
  left: 10px;
  top: 18px;
  width: 72px;
  height: 5px;
  background: #d4dae4;
  border-radius: 3px;
  transform-origin: 32px center;
  animation: craneSwing 4s ease-in-out infinite 2.4s;
}

.crane-cable {
  position: absolute;
  left: 58px;
  top: 22px;
  width: 2px;
  height: 42px;
  background: rgba(255, 255, 255, 0.35);
  animation: cableDrop 4s ease-in-out infinite 2.4s;
}

.crane-load {
  position: absolute;
  left: 52px;
  top: 62px;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 2px;
  animation: loadLift 4s ease-in-out infinite 2.4s;
}

@keyframes craneSwing {
  0%,
  100% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(5deg);
  }
}

@keyframes cableDrop {
  0%,
  100% {
    height: 42px;
  }
  50% {
    height: 58px;
  }
}

@keyframes loadLift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(16px);
  }
}

.particles {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  animation: floatUp 4.5s ease-in infinite;
}

@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.6);
  }
  15% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
    transform: translateY(-120px) scale(1);
  }
}

.content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem 8rem;
  opacity: 0;
  transform: translateY(18px);
  animation: contentReveal 1s cubic-bezier(0.22, 1, 0.36, 1) forwards 2.35s;
}

@keyframes contentReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo-wrap {
  margin-bottom: 1.35rem;
  padding: 0.35rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 68%);
  animation: logoIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards 2.15s;
  opacity: 0;
  transform: translateY(12px) scale(0.94);
}

.logo {
  display: block;
  width: clamp(108px, 22vw, 148px);
  height: auto;
  border-radius: 50%;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.45));
}

@keyframes logoIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.9rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(18, 24, 33, 0.72);
  backdrop-filter: blur(10px);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--glow);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 var(--glow);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.headline {
  margin: 0;
  max-width: 14ch;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.message {
  margin: 1.1rem 0 0;
  max-width: 36ch;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  line-height: 1.65;
  color: var(--text-muted);
}

.submessage {
  margin: 0.65rem 0 0;
  max-width: 30ch;
  font-size: 0.95rem;
  color: rgba(154, 168, 188, 0.85);
}

.progress-wrap {
  width: min(280px, 72vw);
  margin-top: 2rem;
}

.progress-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b45309, var(--accent), #fcd34d);
  animation: progressBuild 2.2s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.6s;
}

@keyframes progressBuild {
  to {
    width: 100%;
  }
}

.progress-label {
  margin-top: 0.65rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(154, 168, 188, 0.7);
}

.content.loaded .progress-label {
  animation: fadeLabel 0.5s ease forwards 2.8s;
}

@keyframes fadeLabel {
  to {
    opacity: 0;
  }
}

@media (max-width: 640px) {
  .build-stage {
    bottom: 10%;
    height: 180px;
    opacity: 0.75;
  }

  .content {
    padding-bottom: 6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .content {
    opacity: 1;
    transform: none;
  }
}
