* {
  box-sizing: border-box;
}

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

body {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Mono', monospace;
  background: linear-gradient(165deg, #fde047 0%, #a3e635 45%, #10b981 100%);
  background-attachment: fixed;
  color: #064e3b;
  overflow: hidden;
}

.stage {
  text-align: center;
  padding: 2rem;
}

.word {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  width: min(90vw, 720px);
  margin: 0 auto;
  font-size: clamp(2.8rem, 12vw, 7rem);
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  user-select: none;
}

.letter {
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(0);
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.dot {
  color: #047857;
  z-index: 2;
}

.dot.blink {
  animation: blink 0.6s steps(1) 3;
}

.word.animate .letter {
  transform: translateX(calc((var(--f) - var(--i)) * 100%));
}

.word.animate .dot {
  animation: none;
}

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

.tagline {
  margin-top: 1.5rem;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: clamp(0.9rem, 2.6vw, 1.25rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.tagline.show {
  opacity: 1;
  transform: translateY(0);
}

.description {
  margin-top: 1.25rem;
  margin-bottom: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: clamp(0.8rem, 2vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.description.show {
  opacity: 1;
  transform: translateY(0);
}

.links {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.4rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.links.show {
  opacity: 1;
  transform: translateY(0);
}

.links a {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: clamp(0.85rem, 2.2vw, 1rem);
  color: #064e3b;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.links a:hover {
  background: rgba(255, 255, 255, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

@media (prefers-reduced-motion: reduce) {
  .letter,
  .tagline,
  .description,
  .links {
    transition: none !important;
    animation: none !important;
  }

  .dot {
    animation: none !important;
  }

  .tagline,
  .description,
  .links {
    opacity: 1;
    transform: none;
  }
}

