@font-face {
  font-family: "Satoshi";
  src: url("./assets/fonts/Satoshi-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("./assets/fonts/Satoshi-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a1019;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.75);
  --accent: #55e6a5;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--text);
  background-color: var(--bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.error-section {
  min-height: 100vh;
}

.error-content h1 {
  margin: 0 0 20px;
}

.in-progress-section {
  padding: 150px 20px 80px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.in-progress-container {
  width: min(1320px, 100%);
  margin: 0 auto;
}

.in-progress-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.in-progress-heading h1 {
  font-size: 64px;
  line-height: 1.05;
}

.in-progress-heading h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.in-progress-heading p {
  margin: 12px 0 0;
  font-size: 16px;
  color: var(--muted);
}

.in-progress-visual img {
  width: 100%;
  max-width: 640px;
  height: auto;
  display: block;
  margin-left: auto;
}

a.logo-chaotic {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  margin-top: 48px;
}

a.logo-chaotic .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-word {
  display: inline-flex;
  letter-spacing: 0;
}

.logo-letter {
  display: inline-block;
  will-change: transform, opacity, filter;
}

.logo-word .logo-letter:nth-child(1) { --dx: -8px; --dy: -6px; --rot: -8deg; --delay: 0ms; }
.logo-word .logo-letter:nth-child(2) { --dx: 6px; --dy: -4px; --rot: 6deg; --delay: 30ms; }
.logo-word .logo-letter:nth-child(3) { --dx: -5px; --dy: 7px; --rot: -6deg; --delay: 60ms; }
.logo-word .logo-letter:nth-child(4) { --dx: 9px; --dy: 3px; --rot: 8deg; --delay: 90ms; }
.logo-word .logo-letter:nth-child(5) { --dx: -7px; --dy: 2px; --rot: -7deg; --delay: 120ms; }
.logo-word .logo-letter:nth-child(6) { --dx: 5px; --dy: -8px; --rot: 7deg; --delay: 150ms; }
.logo-word .logo-letter:nth-child(7) { --dx: -9px; --dy: 4px; --rot: -9deg; --delay: 180ms; }

a.logo-chaotic.logo-variant-2:hover .logo-letter {
  animation: letterFlip 800ms ease-in-out infinite;
  animation-delay: var(--delay);
}

@keyframes letterFlip {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 1;
  }
  40% {
    transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scaleX(-1);
    opacity: 0.85;
  }
  70% {
    transform: translate(calc(var(--dx) * -0.3), calc(var(--dy) * -0.3))
      rotate(calc(var(--rot) * -0.5)) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 1;
  }
}

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

a.logo-chaotic:hover .logo-cube {
  animation: cubeSpin 1.6s ease-in-out infinite alternate;
}

.in-progress-logo .logo-cube {
  width: 180px;
  height: 180px;
  max-width: 180px;
  max-height: 180px;
  display: block;
}

.in-progress-logo .logo-chaotic-word,
.in-progress-logo .logo-shapes-word {
  font-family: "Satoshi", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 64px;
  line-height: 1;
}

.in-progress-logo .logo-chaotic-word {
  font-weight: 700;
  color: var(--text);
}

.in-progress-logo .logo-shapes-word {
  font-weight: 500;
  color: var(--accent);
}

@media (max-width: 991px) {
  .in-progress-section {
    padding-top: 120px;
    padding-bottom: 70px;
  }

  .in-progress-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .in-progress-heading {
    text-align: center;
  }

  a.logo-chaotic {
    justify-content: center;
  }

  .in-progress-visual img {
    margin: 0 auto;
    max-width: 420px;
  }
}

@media (max-width: 767px) {
  .in-progress-heading h1 {
    font-size: 46px;
  }

  .in-progress-heading h2 {
    font-size: 24px;
  }

  .in-progress-logo .logo-cube {
    width: 120px;
    height: 120px;
    max-width: 120px;
    max-height: 120px;
  }

  .in-progress-logo .logo-chaotic-word,
  .in-progress-logo .logo-shapes-word {
    font-size: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  a.logo-chaotic:hover .logo-letter,
  a.logo-chaotic:hover .logo-cube {
    animation: none;
  }
}
