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

body {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;

  background: linear-gradient(-45deg, #2e3a59, #1e2a38, #3c4b64, #1c2c40);
  background-size: 400% 400%;
  animation: gradientMove 15s ease infinite;

  font-family: "Courier New", monospace;
  color: #ffffff;
}

.typewriter-line {
  overflow: hidden;
  border-right: 2px solid #ffffff;
  white-space: nowrap;
  width: 0;
  font-size: clamp(1rem, 4vw, 2rem);
}

.line1 {
  animation:
    typing1 3s steps(30, end) forwards,
    blink 0.8s step-end infinite;
}

.line2 {
  animation:
    typing2 2s steps(20, end) forwards,
    blink 0.8s step-end infinite;
  animation-delay: 3.5s;
}

@keyframes gradientMove {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes typing1 {
  from { width: 0; }
  to   { width: 100%; }
}

@keyframes typing2 {
  from { width: 0; }
  to   { width: 100%; }
}

@keyframes blink {
  from, to { border-color: transparent; }
  50%      { border-color: #ffffff; }
}

@media (max-width: 400px) {
  body { padding: 1rem; }
  .typewriter-line { font-size: 1.1rem; }
}
