:root {
  color-scheme: dark;
  --font-family: "Pixelify Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: var(--font-family);
  background: #000000;
  color: #e6edf3;
  overflow: hidden;
}

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
}

.terminal-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.terminal-bg {
  position: absolute;
  width: min(42vw, 560px);
  height: min(36vh, 300px);
  border: 1px solid rgba(226, 230, 236, 0.16);
  border-radius: 10px;
  overflow: hidden;
  backdrop-filter: blur(1px);
  box-shadow: 0 0 30px rgba(170, 178, 190, 0.12);
  opacity: 0.32;
}

.terminal-a {
  top: 4%;
  left: 2%;
}

.terminal-b {
  top: 8%;
  right: 2%;
}

.terminal-c {
  bottom: 6%;
  left: 4%;
}

.terminal-d {
  bottom: 4%;
  right: 4%;
}

.terminal-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.95)),
    repeating-linear-gradient(
      to bottom,
      rgba(229, 232, 237, 0.11) 0,
      rgba(229, 232, 237, 0.11) 1px,
      transparent 1px,
      transparent 22px
    ),
    repeating-linear-gradient(
      to right,
      rgba(214, 219, 227, 0.035) 0,
      rgba(214, 219, 227, 0.035) 1px,
      transparent 1px,
      transparent 30px
    );
}

.terminal-lines {
  position: absolute;
  inset: 0;
  color: #e6ebf2;
  font-family: var(--font-family);
  font-size: 0.9rem;
  line-height: 1.6;
  text-shadow: 0 0 10px rgba(219, 225, 236, 0.3);
  padding-top: 0.25rem;
}

.terminal-lines p {
  margin: 0;
  padding: 0.15rem 1.25rem;
  white-space: nowrap;
}

.term-cmd {
  color: #f2f4f7;
}

.term-dim {
  color: #9aa3b2;
}

.term-topic {
  color: #d8dee9;
}

.term-info {
  color: #9ed0ff;
}

.term-success {
  color: #b8f0c8;
}

.term-warning {
  color: #f5d88a;
}

.term-error {
  color: #ff9a9a;
}

.term-debug {
  color: #c9b8ff;
}

.term-cyan {
  color: #8ee8f0;
}

.hero {
  width: min(700px, 92vw);
  text-align: left;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(219, 226, 236, 0.24);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.86);
  overflow: hidden;
  letter-spacing: 0.06em;
}

.hero-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(215, 221, 230, 0.16);
  background: linear-gradient(
    180deg,
    rgba(26, 28, 32, 0.82),
    rgba(12, 14, 18, 0.78)
  );
}

.dot {
  width: 0.68rem;
  height: 0.68rem;
  border-radius: 50%;
  display: inline-block;
}

.dot-red {
  background: #ff5f57;
}

.dot-yellow {
  background: #febc2e;
}

.dot-green {
  background: #28c840;
}

.hero-tab {
  margin-left: 0.55rem;
  font-family: var(--font-family);
  font-size: 0.85rem;
  color: #d4d9e1;
  letter-spacing: 0.05em;
}

.hero-body {
  padding: 1.6rem 1.8rem 2rem;
}

.prompt {
  margin: 0 0 0.9rem;
  color: #e3e7ee;
  font-family: var(--font-family);
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  text-shadow: 0 0 8px rgba(220, 226, 236, 0.25);
}

.title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: #f2f4f7;
}

.description {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0.05em;
  color: #bcc4d1;
  max-width: 52ch;
}

.npm-button {
  display: inline-block;
  text-decoration: none;
  color: #f0f2f6;
  background: rgba(28, 31, 37, 0.9);
  border: 1px solid rgba(221, 227, 235, 0.5);
  border-radius: 0.5rem;
  padding: 0.7rem 1rem;
  font-weight: 600;
  font-family: var(--font-family);
  letter-spacing: 0.05em;
  box-shadow: 0 0 16px rgba(196, 203, 214, 0.2);
  transition:
    transform 120ms ease,
    filter 120ms ease,
    box-shadow 120ms ease;
}

.npm-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 0 24px rgba(208, 214, 223, 0.3);
}

.npm-button:active {
  transform: translateY(0);
}
