:root {
  --bg: #08110c;
  --panel: rgba(8, 21, 13, 0.9);
  --line: rgba(90, 255, 149, 0.18);
  --text: #b3ffcc;
  --muted: #66b886;
  --glow: #4fff8d;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Mono", monospace;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(79, 255, 141, 0.08), transparent 30rem),
    linear-gradient(180deg, #06100a 0%, var(--bg) 100%);
  overflow-x: hidden;
}

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background: #040905;
  transition: opacity 500ms ease, visibility 500ms ease;
}

.boot-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.boot-panel,
.terminal-window,
.terminal-topbar {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.boot-panel {
  width: min(640px, calc(100vw - 2rem));
  padding: 1.4rem;
}

.boot-title,
.boot-hint,
.window-header,
.terminal-label,
.command-chip,
.mini-grid span,
.archive-grid span {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  color: var(--muted);
}

.boot-log p,
.prompt-line,
.summary,
.output-body p,
.archive-grid strong,
.mini-grid strong {
  margin: 0;
  line-height: 1.7;
}

.boot-log {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0 1.2rem;
}

.progress-shell {
  height: 0.85rem;
  border: 1px solid var(--line);
}

.progress-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #2dff73, #8effb0);
  box-shadow: 0 0 22px rgba(79, 255, 141, 0.36);
}

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 100% 4px;
}

.terminal-shell {
  width: min(1220px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 1rem 0 3rem;
  opacity: 0;
  transition: opacity 600ms ease;
}

.terminal-shell.is-ready {
  opacity: 1;
}

.terminal-topbar {
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 1rem;
}

.led {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
}

.red { background: #ff5f57; }
.amber { background: #febc2e; }
.green { background: #28c840; }

.terminal-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
}

.terminal-window {
  min-height: 220px;
}

.hero-window {
  min-height: 420px;
}

.window-header {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
}

.window-body {
  padding: 1.2rem;
}

h1 {
  margin: 1rem 0;
  max-width: 11ch;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 0.94;
}

.summary {
  max-width: 42rem;
  color: var(--muted);
}

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

.command-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.command-chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 0.8rem 1rem;
  cursor: pointer;
  font-family: inherit;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.command-chip:hover,
.command-chip:focus-visible {
  transform: translateY(-2px);
  background: rgba(79, 255, 141, 0.08);
  box-shadow: 0 0 22px rgba(79, 255, 141, 0.12);
}

.mini-grid,
.archive-grid {
  display: grid;
  gap: 1rem;
}

.mini-grid strong,
.archive-grid strong {
  display: block;
  margin-top: 0.45rem;
}

.output-body {
  min-height: 220px;
}

.archive-window,
.output-window {
  grid-column: span 2;
}

@media (max-width: 900px) {
  .terminal-grid {
    grid-template-columns: 1fr;
  }

  .archive-window,
  .output-window {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .terminal-shell {
    width: min(100vw - 1rem, 1220px);
  }

  h1 {
    font-size: clamp(2.2rem, 11vw, 3.6rem);
  }

  .command-row {
    flex-direction: column;
  }
}
