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

:root {
  --bg: #0E1512;
  --surface: #15201C;
  --ink: #E8F0EC;
  --muted: #849185;
  --accent: #4FB891;
  --accent-2: #7BD3B0;
  --on-accent: #0E1512;
  --border: #27332D;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
}
*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
a { color: inherit; text-decoration: none; }

body::before {
  content: ""; position: fixed; inset: 0;
  background:
    repeating-linear-gradient(0deg,
      transparent 0,
      transparent 3px,
      color-mix(in srgb, var(--accent) 5%, transparent) 3px,
      color-mix(in srgb, var(--accent) 5%, transparent) 4px
    ),
    radial-gradient(800px 400px at 50% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%);
  pointer-events: none; z-index: 0;
  opacity: 0.8;
}

.bar {
  position: relative; z-index: 2;
  padding: 14px clamp(16px, 3vw, 26px);
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 18px; align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.bar__dots { display: inline-flex; gap: 8px; }
.dot { width: 13px; height: 13px; border-radius: 50%; }
.dot--r { background: #ff5f57; }
.dot--y { background: #febc2e; }
.dot--g { background: #28c840; }
.bar__title { text-align: center; font-size: 0.82rem; color: var(--muted); font-weight: 500; }
.bar__nav { display: flex; gap: 18px; font-size: 0.82rem; color: var(--muted); }
.bar__nav a { color: var(--muted); transition: color .15s; }
.bar__nav a:hover { color: var(--accent); }

.term {
  position: relative; z-index: 2;
  flex: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 56px) clamp(20px, 4vw, 40px);
  width: 100%;
  display: flex; flex-direction: column; gap: 24px;
}

.boot {
  background: var(--surface);
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: clamp(0.9rem, 1.3vw, 1.02rem);
  line-height: 1.7;
  color: var(--ink);
  margin: 0;
  white-space: pre-wrap;
  overflow-x: auto;
  box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--accent) 25%, transparent);
  animation: rise .8s ease .1s backwards;
}
.mu { color: var(--muted); }
.cmd { color: var(--accent); font-weight: 600; }
.ok { color: #22c55e; font-weight: 700; }
.val { color: var(--accent-2); }
.brand {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  display: inline-block;
  padding: 6px 0;
}
.caret {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.actions { display: flex; gap: 12px; flex-wrap: wrap; animation: rise .8s ease .3s backwards; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  border-radius: 8px;
  font-family: var(--mono); font-weight: 600; font-size: 0.94rem;
  transition: transform .15s, background-color .15s, border-color .15s, color .15s;
}
.btn__kbd {
  display: inline-grid; place-items: center;
  min-width: 26px; height: 26px;
  padding: 0 7px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--ink) 10%, transparent);
  border: 1px solid var(--border);
  font-size: 0.82rem;
}
.btn--run {
  background: var(--accent);
  color: var(--on-accent);
  border: 1px solid var(--accent);
}
.btn--run .btn__kbd { background: color-mix(in srgb, var(--on-accent) 15%, transparent); border-color: color-mix(in srgb, var(--on-accent) 30%, transparent); }
.btn--run:hover { transform: translateY(-1px); background: var(--accent-2); border-color: var(--accent-2); }
.btn--ghost {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn--ghost:hover { color: var(--ink); border-color: var(--accent); }

.status {
  position: relative; z-index: 2;
  padding: 10px clamp(16px, 3vw, 26px);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex; gap: clamp(12px, 3vw, 30px);
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted);
}
.status strong { color: var(--ink); font-weight: 600; }
.status a { color: var(--accent); }
.ld {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px color-mix(in srgb, #22c55e 25%, transparent);
  animation: blink2 2s ease-in-out infinite;
  margin-right: 4px;
}
@keyframes blink2 { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 640px) { .bar__title { display: none; } }

::selection { background: var(--accent); color: var(--on-accent); }
