:root {
  --bg: #0a0a0f;
  --text: #e8e8e8;
  --accent: #4a9eff;
  --green: #4af78e;
  --dim: #888;
}

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

body {
  font-family: 'Courier New', 'Consolas', monospace;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.scene {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(74,247,142,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,247,142,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridMove 30s linear infinite;
}

@keyframes gridMove { to { transform: translateY(40px); } }

.terminal {
  padding: 2rem;
  max-width: 600px;
  width: 100%;
}

.line {
  opacity: 0;
  animation: appear 0.01s ease-out var(--delay, 0s) forwards;
  margin-bottom: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
}

.prompt {
  color: var(--green);
}

.typed {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  width: 0;
  animation:
    appear 0.01s ease-out var(--delay) forwards,
    typing 0.8s steps(var(--chars)) var(--delay) forwards;
  border-right: 2px solid var(--accent);
  animation-fill-mode: forwards;
  padding-right: 2px;
}

.typed.dim {
  font-size: 1rem;
  font-weight: 400;
  color: var(--dim);
}

.services {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: appear 0.01s ease-out var(--delay) forwards;
  margin-bottom: 0.4rem;
}

.service {
  color: var(--accent);
  font-size: 0.9rem;
}

.cursor {
  animation: blink 1s step-end infinite;
}

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

@keyframes typing {
  from { width: 0; }
  to { width: calc(var(--chars) * 1ch); border-color: transparent; }
}

@keyframes blink {
  50% { opacity: 0; }
}

footer {
  text-align: center;
  padding: 1.5rem;
  color: #333;
  font-size: 0.7rem;
  font-family: 'Courier New', monospace;
  z-index: 1;
}

@media (max-width: 600px) {
  .typed { font-size: 1.5rem; }
  .terminal { padding: 1.5rem; }
  .services { gap: 1rem; }
}
