:root {
  --page: #000;
  --panel: #000;
  --panel-header: #1d1d1d;
  --border: #303030;
  --terminal-border: #4d4d4d;
  --status-border: #827564;
  --green: #82eb7b;
  --green-bright: #9afa91;
  --green-muted: #65ad61;
  --terminal-text: #eee0c5;
  --mono: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--green);
  font-family: var(--mono);
  font-size: 18px;
  line-height: 1.45;
}

a {
  color: var(--green-bright);
  text-decoration-color: #4c824c;
  text-underline-offset: 3px;
}

a:hover {
  color: #b5f7aa;
}

.site-shell {
  width: min(840px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-color: var(--border);
  color: var(--green-muted);
}

.site-header {
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15.6px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-bright);
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 18px;
  height: 18px;
}

.site-nav a {
  color: var(--green-muted);
  text-decoration: none;
}

.hero {
  display: flex;
  flex-direction: column;
  padding: clamp(32px, 5vw, 64px) 0 80px;
}

.hero h1 {
  margin: 0;
  color: var(--green);
  font-size: clamp(14px, 2.7vw, 34px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.96;
  white-space: nowrap;
}

.install {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding: 13px 16px;
  border: 1px solid #4c824c;
  color: var(--green);
  font-size: 14px;
}

.copy-button {
  padding: 2px 0 2px 15px;
  border: 0;
  border-left: 1px solid #345c36;
  background: none;
  color: var(--green-muted);
  cursor: pointer;
  font: 12px var(--mono);
}

.copy-button:hover {
  color: var(--green-bright);
}

.scenario-terminal {
  display: flex;
  flex-direction: column;
  height: min(68vh, 44rem);
  margin-bottom: clamp(24px, 3vw, 38px);
  overflow: hidden;
  border: 1px solid var(--terminal-border);
  border-radius: 22px;
  background: var(--panel);
  color: var(--terminal-text);
  font: clamp(11px, 1.55vw, 18px) / 1.42 var(--mono);
  font-kerning: none;
  font-variant-ligatures: none;
}

.terminal-header {
  display: flex;
  flex: 0 0 46px;
  align-items: center;
  gap: 7px;
  padding: 0 15px;
  border-bottom: 1px solid #343434;
  background: var(--panel-header);
  color: #989898;
  font-size: 0.78em;
}

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

.terminal-dot.red {
  background: #ff5f57;
}

.terminal-dot.yellow {
  background: #febc2e;
}

.terminal-dot.green {
  background: #28c840;
}

.terminal-title {
  margin-left: 6px;
}

.scenario-screen {
  flex: 1;
  min-height: 0;
  padding: 1.25em 1.15em;
  overflow: auto;
  background: var(--panel);
  scrollbar-width: none;
  tab-size: 4;
  white-space: pre;
}

.scenario-screen::-webkit-scrollbar {
  display: none;
}

.scenario-line {
  min-height: 1.42em;
  white-space: pre;
}

.scenario-line.gap {
  height: 0.8em;
}

.scenario-prompt,
.scenario-command {
  color: #5bbd63;
}

.scenario-path {
  color: #11bac5;
  font-weight: 700;
}

.scenario-git {
  color: #ed2f83;
  font-weight: 700;
}

.scenario-muted {
  color: #e9dcc1;
}

.scenario-dir {
  color: #2788df;
  font-weight: 700;
}

.scenario-file {
  color: #ffbd26;
  font-weight: 700;
}

.scenario-error {
  color: #ff443c;
  font-weight: 700;
}

.scenario-cursor {
  display: inline-block;
  width: 0.65em;
  height: 1.15em;
  background: #ffb62d;
  vertical-align: -0.2em;
  animation: blink 1s steps(2) infinite;
}

.scenario-status {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  min-height: 2.6em;
  gap: 1em;
  padding: 0.45em 1.15em;
  overflow: hidden;
  border-top: 1px solid var(--status-border);
  background: var(--panel);
  color: var(--terminal-text);
  white-space: nowrap;
}

.scenario-status.show {
  display: flex;
}

.scenario-status .left {
  overflow: hidden;
  text-overflow: ellipsis;
}

.scenario-status .right {
  flex: none;
  color: var(--terminal-text);
}

.scenario-status .clock {
  font-weight: 700;
}

.site-footer {
  padding: 24px 0 40px;
  border-top: 1px solid var(--border);
  font-size: 14.4px;
}

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

@media (max-width: 650px) {
  .site-shell {
    width: min(840px, calc(100% - 32px));
  }

  .scenario-terminal {
    border-radius: 12px;
  }

  .scenario-screen {
    min-height: 25rem;
    padding: 1em 0.85em;
  }

  .scenario-status {
    padding: 0.45em 0.85em;
  }

  .scenario-status .right {
    font-size: 0.75em;
  }
}

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