:root {
  --bg: #0a0a0a;
  --bg-term: #0d0d0d;
  --bg-bar: #1a1a1a;
  --text: #c0c0c0;
  --text-bright: #e0e0e0;
  --muted: #666;
  --accent: #00ff41;
  --accent-dim: #008f24;
  --prompt-user: #00ff41;
  --prompt-path: #4488ff;
  --line: #1a1a1a;
  --ok: #00ff41;
  --warn: #ffaa00;
  --err: #ff3333;
}

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

html, body {
  height: 100%;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Scanline overlay */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.03) 0px,
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 1;
}

/* Faint grid */
.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    linear-gradient(rgba(0, 255, 65, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 65, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Terminal window */
.terminal-window {
  width: min(900px, 94vw);
  margin: 30px auto 60px;
  position: relative;
  z-index: 2;
  border: 1px solid #222;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8), 0 0 2px rgba(0, 255, 65, 0.1);
}

/* Title bar */
.title-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-bar);
  padding: 8px 14px;
  border-bottom: 1px solid #222;
}

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

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.title-path {
  margin-left: 10px;
  color: var(--muted);
  font-size: 12px;
}

/* Terminal body */
.terminal-body {
  background: var(--bg-term);
  padding: 20px 24px;
  min-height: 400px;
}

/* Boot sequence */
.boot-seq {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #1a1a1a;
}

.boot-line {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.boot-line .ok {
  color: var(--ok);
}

/* Hero */
.hero {
  margin-bottom: 20px;
}

.prompt-line {
  color: var(--text-bright);
  font-size: 14px;
  margin-bottom: 6px;
}

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

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

.cursor {
  color: var(--text-bright);
}

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

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

.hero-output {
  color: var(--text);
  font-size: 13px;
  line-height: 1.7;
  padding-left: 20px;
  border-left: 1px solid #1a1a1a;
  margin-left: 4px;
  max-width: 72ch;
}

/* Nav */
.nav-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 20px 0 24px;
  padding: 10px 0;
  border-top: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
}

.nav-cmd {
  color: var(--accent-dim);
  text-decoration: none;
  font-size: 13px;
  padding: 4px 10px;
  border: 1px solid #1a1a1a;
  border-radius: 3px;
  transition: all 0.15s ease;
}

.nav-cmd:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
  background: rgba(0, 255, 65, 0.05);
}

/* Sections */
.term-section {
  margin-bottom: 24px;
}

.section-header {
  color: var(--text-bright);
  font-size: 13px;
  margin-bottom: 8px;
  font-weight: 500;
}

/* Build entries */
.build-entry {
  margin-bottom: 16px;
  padding-left: 16px;
  border-left: 1px solid #1a1a1a;
}

.build-date {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

/* Lists */
.term-list {
  list-style: none;
  padding-left: 0;
}

.term-list li {
  color: var(--text);
  font-size: 13px;
  line-height: 1.7;
  padding-left: 16px;
  position: relative;
}

.term-list li::before {
  content: '›';
  color: var(--accent-dim);
  position: absolute;
  left: 0;
}

/* Loading text */
.loading-text {
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
}

/* Footer */
.term-footer {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #1a1a1a;
}

.term-footer p:first-child {
  color: var(--text-bright);
  font-size: 14px;
}

.footer-note {
  color: var(--muted);
  font-size: 11px;
  margin-top: 10px;
}

/* Responsive */
@media (max-width: 600px) {
  .terminal-window {
    margin: 12px auto;
    border-radius: 0;
  }

  .terminal-body {
    padding: 16px;
  }

  .nav-bar {
    flex-direction: column;
  }

  .nav-cmd {
    display: block;
  }
}

/* Accessibility — reduce motion */
@media (prefers-reduced-motion: reduce) {
  .cursor.blink {
    animation: none;
  }
  .scanlines {
    display: none;
  }
}
