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

:root {
  --bg: #0e0e10;
  --terminal-bg: #141418;
  --text: #b0aca5;
  --text-secondary: #5a5650;
  --prompt: #6b9a6b;
  --highlight: #7aab7a;
  --cmd: #c0bbb5;
  --dot-1: #c46c6c;
  --dot-2: #c4b06c;
  --dot-3: #6cc478;
  --border: #2a2a2e;
  --header-bg: #1a1a1e;
  --scanline: rgba(255, 255, 255, 0.01);
}

html,
body {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Mono', monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
  padding: 2rem;
}

/* Scanlines */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  background: repeating-linear-gradient(
    0deg,
    var(--scanline) 0px,
    var(--scanline) 1px,
    transparent 1px,
    transparent 4px
  );
}

.terminal {
  width: 100%;
  max-width: 580px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  animation: terminalAppear 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes terminalAppear {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.terminal-header {
  background: var(--header-bg);
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot:nth-child(1) {
  background: var(--dot-1);
}
.terminal-dot:nth-child(2) {
  background: var(--dot-2);
}
.terminal-dot:nth-child(3) {
  background: var(--dot-3);
}

.terminal-title {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-left: 0.8rem;
  letter-spacing: 0.02em;
}

.terminal-body {
  background: var(--terminal-bg);
  padding: 1.5rem;
}

.line {
  font-size: 0.8rem;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}

.prompt {
  color: var(--prompt);
  font-weight: 500;
}

.cmd {
  color: var(--cmd);
  font-weight: 400;
}

.highlight {
  color: var(--highlight);
  font-weight: 500;
}

/* Typing animation for lines */
.line-1 {
  animation: lineReveal 0.3s ease forwards;
  animation-delay: 0.3s;
  opacity: 0;
}
.line-2 {
  animation: lineReveal 0.1s ease forwards;
  animation-delay: 0.6s;
  opacity: 0;
}
.line-3 {
  animation: lineReveal 0.3s ease forwards;
  animation-delay: 0.9s;
  opacity: 0;
}
.line-4 {
  animation: lineReveal 0.3s ease forwards;
  animation-delay: 1.2s;
  opacity: 0;
}
.line-5 {
  animation: lineReveal 0.3s ease forwards;
  animation-delay: 1.5s;
  opacity: 0;
}
.line-6 {
  animation: lineReveal 0.1s ease forwards;
  animation-delay: 1.8s;
  opacity: 0;
}
.line-7 {
  animation: lineReveal 0.3s ease forwards;
  animation-delay: 2.1s;
  opacity: 0;
}
.line-8 {
  animation: lineReveal 0.3s ease forwards;
  animation-delay: 2.4s;
  opacity: 0;
}
.line-9 {
  animation: lineReveal 0.1s ease forwards;
  animation-delay: 2.7s;
  opacity: 0;
}
.line-10 {
  animation: lineReveal 0.3s ease forwards;
  animation-delay: 3s;
  opacity: 0;
}

@keyframes lineReveal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.cursor {
  animation: blink 1s step-end infinite;
  color: var(--prompt);
  font-weight: 500;
}

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