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

@font-face {
  font-family: 'Minecraft';
  src: url('font/Minecraft.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: 'Minecraft', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
  color: #e6edf3;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.6;
  letter-spacing: 0.08em;
  position: relative;
  overflow-x: hidden;
  padding: clamp(1rem, 4vw, 2rem);
  background: #101510 url('assets/video-poster.webp') center / cover no-repeat fixed;
}

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: blur(8px);
  transform: scale(1.05);
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 8, 0.76);
  z-index: -1;
}

.container {
  text-align: center;
  width: min(100%, 640px);
  padding: clamp(1.75rem, 5vw, 3rem);
  background: rgba(8, 12, 8, 0.48);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(230, 237, 227, 0.1);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.logo {
  margin-bottom: clamp(1.75rem, 5vw, 2.5rem);
}

.logo-img {
  display: block;
  width: min(100%, 500px);
  height: auto;
  object-fit: contain;
  margin-inline: auto;
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
}

h1 {
  font-size: clamp(1.75rem, 7vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  color: #e6edf3;
  line-height: 1.25;
}

.subtitle {
  font-size: clamp(0.9rem, 3.5vw, 1.125rem);
  color: #8b949e;
  margin-bottom: clamp(1.75rem, 6vw, 2.5rem);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.progetto {
  margin-bottom: 3rem;
  color: #8b949e;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.sparklit-logo {
  height: 48px;
  width: auto;
  vertical-align: middle;
  margin-top: -10px;
}

.footer {
  margin-top: clamp(2rem, 8vw, 4rem);
  font-size: 0.8rem;
  color: #484f58;
}

.footer p {
  margin: 0;
}

.naza {
  color: #e6edf3;
  transition: color 0.2s ease;
}

.naza:hover {
  color: #f0883e;
}

@media (max-width: 640px) and (orientation: portrait) {
  body {
    align-items: stretch;
    padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
    background-attachment: scroll;
  }

  .bg-video {
    filter: blur(5px);
    transform: scale(1.08);
  }

  .container {
    min-height: calc(100dvh - 1.5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.25rem, 6vw, 2rem);
    border-radius: 16px;
  }

  .logo {
    margin-bottom: 2rem;
  }

  h1 {
    max-width: 12ch;
    margin-inline: auto;
  }

  .subtitle {
    max-width: 30ch;
    line-height: 1.75;
  }

  .progetto {
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
  }

  .sparklit-logo {
    height: 40px;
    margin-top: -7px;
  }

  .footer {
    margin-top: auto;
    padding-top: 2rem;
    line-height: 1.8;
  }

}

@media (max-width: 380px) and (orientation: portrait) {
  body {
    letter-spacing: 0.05em;
  }

  .container {
    padding-inline: 1rem;
  }

  h1 {
    font-size: 1.55rem;
  }

  .subtitle {
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-video {
    display: none;
  }

  .logo-img,
  .naza {
    transition: none;
  }
}
