@import url("./common.css");

.scroll-container {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.content-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
  z-index: 2;
}

main {
  width: 80%;
  margin: 0 auto;
  padding-top: 105px;
  padding-bottom: 45px;
  text-align: center;
}

.intro {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.intro h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.desc {
  max-width: 600px;
  margin: 0 auto 30px auto;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.card h2 {
  font-size: 1.1rem;
  margin: 0 0 10px 0;
  color: var(--text);
}

.card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.scroll-hint {
  padding: 5px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.site-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.site-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.site-overlay iframe {
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  main {
    width: 95%;
  }

  .intro h1 {
    font-size: 2rem;
  }

  .features {
    grid-template-columns: 1fr;
  }
}
