/* ===== Base tokens ===== */
:root {
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --bg: #0c1014;
  --text: #e8ecef;
  --dim: #97a3ad;
  --line: rgba(255, 255, 255, .12);
  --acc: #ff8a1f;
  --ok: #47c78a;
  --err: #ff6b5e;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background-color: var(--bg);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; }
[hidden] { display: none !important; }

/* ===== Logo (emblem + wordmark) ===== */
.logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.logo-mark { width: 40px; height: 40px; flex: none; }
.logo-word { display: flex; flex-direction: column; line-height: 1; }
.logo-word .lw-1 { font-size: 22px; font-weight: 800; letter-spacing: 4px; }
.logo-word .lw-1 em { font-style: normal; color: var(--acc); }
.logo-word .lw-2 { margin-top: 4px; font-size: 9.5px; font-weight: 600; letter-spacing: 4.6px; color: var(--dim); }

/* ===== Start-up screen: dark glass window ===== */
.boot {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  overflow: auto;
  background: radial-gradient(ellipse 90% 450px at 50% 42%, #182128 0%, #0f151a 100%);
}
.boot-card {
  position: relative;
  isolation: isolate;
  width: min(560px, 100%);
  margin: auto;
  border: 4px solid transparent;
  padding: 20px 30px 19px;
  text-align: center;
}
.boot-card::before {
  content: "";
  position: absolute; inset: -4px; z-index: -1;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(26, 31, 37, .9), rgba(16, 20, 24, .92));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.boot-logo { display: flex; align-items: center; justify-content: center; gap: 12px; height: 50px; user-select: none; }
.boot-logo .logo-mark { width: 46px; height: 46px; }
.boot-logo .lw-1 { font-size: 30px; line-height: 34px; letter-spacing: 5px; }
.boot-logo .lw-2 { display: none; }
.boot-title { margin: 9px 0 0; font-size: 24px; line-height: 28px; font-weight: 700; letter-spacing: .4px; color: #fff; }
.bubble {
  position: relative; display: inline-block; margin-top: 19px; max-width: 100%;
  padding: 15px 18px; background: rgba(255, 255, 255, .05);
  border: 2px solid rgba(255, 255, 255, .12); border-radius: 22px;
}
.bubble p { margin: 0; color: var(--text); font-size: 15px; line-height: 23px; font-weight: 600; }
.boot.failed .bubble { border-color: rgba(255, 107, 94, .45); background: rgba(255, 107, 94, .08); }
.boot.failed .bubble p { color: var(--err); }
.bar { width: min(420px, 100%); height: 8px; margin: 22px auto 0; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.bar-fill { height: 100%; width: 0; background: var(--acc); transition: width .25s ease; }
.boot.failed .bar-fill { background: var(--err); }
.step { margin: 12px 0 0; font-size: 11px; line-height: 16px; font-weight: 700; letter-spacing: 3px; color: var(--dim); }
.tips { text-align: left; margin-top: 19px; }
.tips h3 { margin: 0; font-size: 13px; line-height: 20px; font-weight: 700; letter-spacing: 2.6px; color: var(--acc); }
.tips-lead { margin: 10px 0 0; color: var(--dim); font-size: 14.5px; line-height: 22.5px; }
.tips ol { margin: 14px 0 0; padding-left: 19px; font-size: 14.5px; line-height: 22.5px; color: #d3dae0; }
.tips li + li { margin-top: 8.85px; }
.tips li b { font-weight: 700; color: #fff; }
.tips-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.btn {
  height: 42px; padding: 0 18px; border: 1px solid rgba(255, 255, 255, .24); border-radius: 4px;
  background: rgba(255, 255, 255, .05); color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer;
}
.btn:hover { background: rgba(255, 255, 255, .1); }
.btn-go { background: var(--acc); border-color: var(--acc); color: #121212; font-weight: 700; }
.btn-go:hover { background: #ff9d40; }
.sysline { margin: 15px 0 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); text-align: left; font-family: var(--mono); font-size: 11.5px; line-height: 16px; color: var(--dim); }

@media (max-width: 560px) {
  .boot { padding: 21px 16px 21px; align-items: flex-start; }
  .boot-card { padding: 18px 22px 21px; }
  .boot-logo { height: 40px; }
  .boot-logo .logo-mark { width: 36px; height: 36px; }
  .boot-logo .lw-1 { font-size: 22px; letter-spacing: 3.5px; }
  .boot-title { font-size: 18.5px; line-height: 22px; margin-top: 6px; }
}
@media (min-width: 561px) and (max-width: 1100px) {
  .boot-logo .lw-1 { font-size: 26px; letter-spacing: 4px; }
  .boot-title { font-size: 20px; line-height: 24px; margin-top: 6px; }
}
