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

:root {
  --primary-dark: #0f0f12;
  --orange-start: #ff7a00;
  --orange-end: #ffb347;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background-color: var(--primary-dark);
  color: #ffffff;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  opacity: 0;
  animation: pageReveal 1.2s ease-out forwards;
}

@keyframes pageReveal {
  to {
    opacity: 1;
  }
}

.hero-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/Image-perlander-arknights-endfield_.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
  animation: subtleZoom 20s ease-in-out infinite;
}

@keyframes subtleZoom {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

.hero-content {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 0;
}

.hero-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: -1;
}

.content-container {
  max-width: 650px;
  text-align: center;
  z-index: 1;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: rgba(255, 140, 0, 0.15);
  border: 1px solid var(--orange-start);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--orange-end);
  margin-bottom: 1.5rem;
  animation: contentFadeIn 1s ease-out 0.2s backwards;
}

.headline {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.8px;
  text-shadow: 0 6px 35px rgba(0, 0, 0, 0.9);
  animation: contentFadeIn 1s ease-out 0.35s backwards;
}

.highlight {
  background: linear-gradient(90deg, var(--orange-start), var(--orange-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subheadline {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.85);
  animation: contentFadeIn 1s ease-out 0.5s backwards;
}

.cta-button {
  position: relative;
  display: inline-block;
  padding: 22px 65px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange-start), var(--orange-end));
  border: none;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 18px 60px rgba(255, 140, 0, 0.75);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
  animation: ctaPulse 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
  z-index: 2;
  white-space: nowrap;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 140, 0, 0.6) 0%, transparent 70%);
  border-radius: 14px;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: glowPulse 3s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes contentFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ctaPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  50% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1.6);
  }
}

.cta-button.shake {
  animation: ctaPulse 3s ease-in-out infinite, microShake 0.4s ease-in-out;
}

@keyframes microShake {
  0%, 100% {
    transform: translateX(0) scale(1);
  }
  25% {
    transform: translateX(-2px) scale(1.05);
  }
  75% {
    transform: translateX(2px) scale(1.05);
  }
}

.cta-button:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 24px 70px rgba(255, 140, 0, 0.9);
}

.cta-button:active {
  transform: scale(1.02);
}

.trust-text {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  animation: contentFadeIn 1s ease-out 0.65s backwards;
}

.overlay {
  display: none;
}

.footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  background: linear-gradient(to top, rgba(15, 15, 18, 0.85), transparent);
}

.footer-links {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.footer-links span {
  margin: 0 0.5rem;
}

.footer-copyright {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .headline {
    font-size: 2.5rem;
  }

  .subheadline {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
  }

  .cta-button {
    padding: 18px 50px;
    font-size: 22px;
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 1.5rem;
  }

  .content-container {
    max-width: 100%;
  }

  .headline {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .subheadline {
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.55;
  }

  .cta-button {
    padding: 16px 40px;
    font-size: 18px;
    width: 100%;
  }

  .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.95rem;
  }

  .trust-text {
    font-size: 0.8rem;
    margin-top: 1.5rem;
  }
}
