@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg: #0d1117;
  --panel: #12161c;
  --border: #262c36;
  --text: #c9d1d9;
  --muted: #6e7681;
  --accent: #7ee787;
  --amber: #e3b341;
  --red: #ff6b6b;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(circle at 50% 0%, rgba(126, 231, 135, 0.05), transparent 60%);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.terminal {
  width: 100%;
  max-width: 640px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.terminal__bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: #161b22;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.dot--red { background: var(--red); }
.dot--yellow { background: var(--amber); }
.dot--green { background: var(--accent); }

.terminal__body {
  padding: 28px 24px 32px;
}

.line {
  margin: 0 0 14px 0;
  font-size: 0.95rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.line:last-child {
  margin-bottom: 0;
}

.line--rule {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: 0.85rem;
}

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

.prompt {
  color: var(--amber);
  margin-right: 8px;
}

.value {
  color: #ffffff;
  font-weight: 500;
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  margin-left: 6px;
  background: var(--accent);
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .cursor {
    animation: none;
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .line--rule {
    font-size: 0.7rem;
  }
}
