/* 1950Labs v2 teaser — amber-phosphor terminal */

:root {
  --bg: #0a0c10;
  --panel: #0e1218;
  --panel-2: #12171f;
  --border: #232b36;
  --text: #cdd6e0;
  --dim: #78828f;
  --faint: #4a545f;
  --accent: #f0a84b;        /* amber phosphor */
  --accent-soft: #f0a84b26;
  --ok: #4ac26b;
  --red: #e5534b;
  --yellow: #d4a72c;
  --mono: "SF Mono", "Fira Code", "JetBrains Mono", Menlo, Consolas, monospace;
}

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

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.accent { color: var(--accent); }
.hidden { display: none !important; }

/* subtle scanline texture */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0,0,0,.12) 2px 4px);
  z-index: 999;
}

/* ============ BOOT ============ */

.boot {
  position: fixed; inset: 0;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  cursor: pointer;
}

.boot-inner { width: min(640px, 92vw); }

.boot-brand {
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 700;
  letter-spacing: .04em;
  text-align: center;
  color: #fff;
}

.boot-tagline {
  text-align: center;
  color: var(--dim);
  font-size: 11px;
  letter-spacing: .35em;
  margin: 6px 0 28px;
}

.boot-progress {
  display: flex; align-items: center; gap: 8px;
  color: var(--dim);
  margin-bottom: 28px;
}

.boot-bar {
  flex: 1; height: 10px;
  border: 1px solid var(--border);
  background: var(--panel);
  overflow: hidden;
}

.boot-bar-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #b97a2e, var(--accent));
  transition: width .25s ease;
}

.boot-pct { min-width: 4ch; color: var(--accent); }

.boot-log { min-height: 230px; }

.boot-line {
  display: flex; gap: 10px;
  white-space: pre-wrap;
  animation: fadeline .15s ease;
}

@keyframes fadeline { from { opacity: 0; } to { opacity: 1; } }

.boot-line .ok { color: var(--ok); flex: none; }
.boot-line .msg { color: var(--text); }
.boot-line .note { color: var(--dim); margin-left: auto; text-align: right; }

.boot-skip {
  margin-top: 24px;
  text-align: center;
  color: var(--faint);
  font-size: 12px;
  animation: blinkslow 1.6s infinite;
}

@keyframes blinkslow { 0%, 100% { opacity: .9; } 50% { opacity: .25; } }

/* ============ TERMINAL WINDOW ============ */

.term {
  min-height: 100%;
  display: flex;
  justify-content: center;
  padding: clamp(8px, 3vw, 32px);
}

.term-window {
  width: min(1000px, 100%);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
  display: flex; flex-direction: column;
  overflow: hidden;
}

.term-titlebar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--dim);
}

.tb-left, .tb-right { display: flex; align-items: center; gap: 10px; }

.tb-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.tb-dot.red { background: #e5534b; }
.tb-dot.yellow { background: #d4a72c; }
.tb-dot.green { background: #4ac26b; }

.tb-title { margin-left: 6px; color: var(--text); }

.tb-btn {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 10px;
  cursor: pointer;
}
.tb-btn:hover { color: var(--accent); border-color: var(--accent); }

.tb-status { display: flex; align-items: center; gap: 5px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 6px var(--ok); }

.tb-menu-wrap { position: relative; }

.tb-menu-btn {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid #5a4322;
  border-radius: 4px;
  padding: 3px 10px;
  cursor: pointer;
}

.tb-menu-btn:hover, .tb-menu-btn.open {
  background: var(--accent);
  border-color: var(--accent);
  color: #14100a;
}

.caret-down { font-size: 9px; }

.menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  min-width: 250px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0,0,0,.6);
  padding: 6px;
  animation: dropIn .12s ease;
}

.menu-dropdown[hidden] { display: none; }

@keyframes dropIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.md-item {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  text-align: left;
  font-family: var(--mono);
  font-size: 13px;
  background: transparent;
  border: none;
  border-radius: 5px;
  padding: 7px 10px;
  cursor: pointer;
}

.md-item:hover { background: var(--accent-soft); }
.md-num { color: var(--faint); font-size: 11px; }
.md-cmd { color: var(--accent); font-weight: 700; }
.md-desc { color: var(--dim); font-size: 12px; }

.term-body {
  padding: clamp(16px, 4vw, 36px);
  flex: 1;
}

.welcome-chip {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--dim);
  margin-bottom: 22px;
}
.welcome-chip strong { color: var(--text); }

.ascii {
  font-family: var(--mono);
  font-size: clamp(6px, 1.55vw, 15px);
  line-height: 1.15;
  color: var(--accent);
  text-shadow: 0 0 14px var(--accent-soft);
  overflow-x: auto;
  margin-bottom: 10px;
}

.ascii-fallback { display: none; font-size: 34px; letter-spacing: .06em; color: #fff; margin-bottom: 8px; }

.subtitle { color: var(--dim); margin-bottom: 6px; }

.hint-line { color: var(--dim); margin-bottom: 24px; }

.kbd-cmd {
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 7px;
  cursor: pointer;
}
.kbd-cmd:hover { border-color: var(--accent); background: var(--accent-soft); }

/* menu grid */

.menu {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
  margin-bottom: 26px;
}

.menu-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "num cmd arrow" "num desc arrow";
  column-gap: 10px;
  align-items: center;
  text-align: left;
  font-family: var(--mono);
  font-size: 13px;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-left: 2px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color .12s, background .12s, transform .12s;
}

.menu-item:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.mi-num { grid-area: num; color: var(--faint); }
.mi-cmd { grid-area: cmd; color: var(--accent); font-weight: 700; }
.mi-desc { grid-area: desc; color: var(--dim); font-size: 12px; }
.mi-arrow { grid-area: arrow; color: var(--faint); }
.menu-item:hover .mi-arrow { color: var(--accent); }

.menu-item.cta { border-color: #5a4322; }
.menu-item.cta .mi-cmd { color: #fff; background: var(--accent); color: #14100a; padding: 0 6px; border-radius: 3px; justify-self: start; }

/* output */

.output { display: flex; flex-direction: column; gap: 4px; }

.echo-line { color: var(--dim); margin-top: 14px; }
.echo-line .p-user, .echo-line .p-host { color: var(--dim); }
.echo-line .cmd { color: var(--accent); }

.out-block { padding: 2px 0 2px 2px; }

.out-block h2 {
  font-size: 13px;
  color: var(--accent);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 6px 0;
}

.out-block p { margin: 4px 0; }
.out-block .dim { color: var(--dim); }
.out-block .ok { color: var(--ok); }
.out-block .err { color: var(--red); }
.out-block a { color: var(--accent); }

.kv { display: grid; grid-template-columns: minmax(150px, auto) 1fr; gap: 2px 18px; margin: 8px 0; }
.kv .k { color: var(--dim); }
.kv .v { color: var(--text); }
.kv .v.big { color: var(--accent); font-weight: 700; }

.quote {
  border-left: 2px solid var(--accent);
  padding: 6px 14px;
  margin: 10px 0;
  color: var(--text);
}
.quote .who { color: var(--dim); font-size: 12px; margin-top: 4px; }

.next-hint { color: var(--faint); margin-top: 8px; }
.next-hint .kbd-cmd { font-size: 12px; }

/* prompt */

.prompt-box {
  display: flex; align-items: center; gap: 12px;
  overflow: hidden;
  margin-top: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 16px 18px;
  transition: border-color .15s, box-shadow .15s;
}

.prompt-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.prompt-enter {
  color: var(--faint);
  font-size: 16px;
  flex: none;
}

.prompt-box:focus-within .prompt-enter { color: var(--accent); }

.cmd-input::placeholder { color: var(--faint); }

.prompt-label { color: var(--dim); white-space: nowrap; }
.p-user { color: var(--accent); }
.p-host { color: var(--text); }
.p-path { color: var(--ok); }

.cmd-input {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text);
  background: transparent;
  border: none;
  outline: none;
  caret-color: var(--accent);
}

.cursor-block { display: none; }

/* footer */

.term-footer {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  background: var(--panel-2);
  font-size: 12px;
  color: var(--dim);
}

.tf-keys { display: flex; gap: 16px; flex-wrap: wrap; }

kbd {
  font-family: var(--mono);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0 5px;
  font-size: 11px;
  color: var(--text);
}

.tf-classic { color: var(--dim); text-decoration: none; }
.tf-classic:hover { color: var(--accent); }

/* responsive */

@media (max-width: 560px) {
  .ascii { display: none; }
  .ascii-fallback { display: block; }
  .tb-title, .tb-version, .tb-status { display: none; }
  .boot-line .note { display: none; }
  .menu { grid-template-columns: 1fr 1fr; }
  .tf-keys { display: none; }
  .term-footer { justify-content: center; }
  .p-at { display: none; }
  .prompt-box { padding: 14px; gap: 8px; }
  .menu-dropdown { max-width: calc(100vw - 40px); }
}
