/* ===========================================================
   alexlab — sober aviation HUD
   Flight head-up display aesthetic. Thin blue vectors, lots of
   negative space. One accent (HUD blue), sky-blue for the role.
   =========================================================== */

:root {
  --bg:      #060a0f;
  --bg-2:    #0a1118;
  --panel:   rgba(10, 20, 30, 0.82);
  --ink:     #d6ebf7;
  --dim:     #5f8195;
  --dimmer:  #38505f;

  --acc:     #4fd6ff;          /* HUD blue */
  --sky:     #8fdcff;          /* sky blue — the role line */
  --acc-soft: rgba(79, 214, 255, 0.12);
  --acc-glow: rgba(79, 214, 255, 0.45);
  --line:    rgba(79, 214, 255, 0.16);
  --line-2:  rgba(79, 214, 255, 0.34);
  --ok:      #57e6a0;
  --danger:  #ff5e6e;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: radial-gradient(120% 90% at 50% 30%, var(--bg-2), var(--bg) 70%), var(--bg);
  color: var(--ink);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Overlays */
.scanlines {
  position: fixed; inset: 0; pointer-events: none; z-index: 9000;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,0.10) 2px 3px);
  mix-blend-mode: multiply; opacity: 0.45;
}
.vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 8000;
  background: radial-gradient(120% 100% at 50% 50%, transparent 58%, rgba(0,0,0,0.5));
}

/* HUD corner brackets */
.bracket { position: fixed; width: 30px; height: 30px; z-index: 20; pointer-events: none; border: 1.5px solid var(--line-2); }
.bracket.tl { top: 16px; left: 16px;  border-right: 0; border-bottom: 0; }
.bracket.tr { top: 16px; right: 16px; border-left: 0;  border-bottom: 0; }
.bracket.bl { bottom: 16px; left: 16px;  border-right: 0; border-top: 0; }
.bracket.br { bottom: 16px; right: 16px; border-left: 0;  border-top: 0; }

/* ===========================================================
   SHELL
   =========================================================== */
.site {
  position: fixed; inset: 0; z-index: 10;
  display: grid; grid-template-rows: 52px 1fr;
  opacity: 1;
}

/* Top bar */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px; border-bottom: 1px solid var(--line);
}
.top-left { display: flex; align-items: center; gap: 12px; }
/* chip / IC logo mark — links home */
.mark {
  display: block; width: 18px; height: 14px; border: 1.5px solid var(--acc); border-radius: 2px;
  position: relative; box-shadow: 0 0 8px var(--acc-glow); cursor: pointer;
  background: radial-gradient(circle at 4px 4px, var(--acc) 0 1.3px, transparent 1.6px);
  background-repeat: no-repeat; transition: box-shadow .2s, transform .2s;
}
.mark:hover { box-shadow: 0 0 16px var(--acc-glow); transform: translateY(-1px); }
.mark::before, .mark::after {
  content: ""; position: absolute; left: 3px; right: 3px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--acc) 0 2px, transparent 2px 5px);
}
.mark::before { top: -3px; }
.mark::after { bottom: -3px; }
.brand { font-size: 15px; letter-spacing: 3px; color: var(--ink); }
.top-right { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: 2px; color: var(--dim); }
.top-right .clock { color: var(--acc); text-shadow: 0 0 9px var(--acc-glow); min-width: 52px; text-align: right; }
.top-right .sep { color: var(--dimmer); }

/* ===========================================================
   STAGE
   =========================================================== */
.stage { position: relative; overflow: hidden; }
.hud { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage-inner {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 54px; padding: 30px 24px;
}

/* Hero */
.hero { text-align: center; position: relative; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 140%; height: 220%; background: radial-gradient(50% 50% at 50% 50%, var(--bg) 30%, transparent 72%);
  z-index: -1;
}
.hero-kick {
  font-size: 12px; letter-spacing: 6px; color: var(--sky);
  text-shadow: 0 0 12px rgba(143, 220, 255, 0.4); margin-bottom: 14px;
}
.hero-word {
  font-family: 'Chakra Petch', sans-serif; font-weight: 700; margin: 0;
  font-size: clamp(54px, 11vw, 128px); line-height: 0.92; letter-spacing: 5px;
  color: #eef9ff; text-shadow: 0 0 30px var(--acc-glow), 0 0 3px var(--acc);
}
.hero-sub { margin-top: 14px; font-size: 13px; letter-spacing: 3px; color: var(--dim); }

/* Windows-Terminal style shell block (translucent, behind it the circuit bg) */
.winterm { width: min(740px, 94vw); border-radius: 8px; overflow: hidden;
  background: rgba(12, 18, 26, 0.66); backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 26px 64px rgba(0,0,0,0.55); }
.winterm-bar { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px;
  background: rgba(8, 12, 18, 0.66); border-bottom: 1px solid rgba(255,255,255,0.06); }
.wt-tab { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 16px;
  background: rgba(22, 30, 40, 0.92); border-radius: 7px 7px 0 0; font-size: 12.5px; color: var(--ink); letter-spacing: .5px; }
.wt-ico { width: 12px; height: 12px; border-radius: 2px; background: var(--acc); box-shadow: 0 0 8px var(--acc-glow); }
.wt-new { color: var(--dim); font-size: 17px; line-height: 1; }
.wt-win { margin-left: auto; display: flex; gap: 16px; }
.wt-win i { width: 12px; height: 12px; border-radius: 2px; background: rgba(255,255,255,0.18); cursor: pointer; transition: background .15s, transform .15s; }
.wt-win i:hover { background: rgba(255,255,255,0.4); }
.wt-win i.wt-close:hover { background: var(--danger); }
.wt-tab { cursor: pointer; }
/* minimized: hide body, collapse to the title bar */
.winterm.min .wt-body { display: none; }
/* maximized: take more of the stage */
.winterm.max { width: min(1100px, 96vw); }
.winterm.max .wt-body { height: min(64vh, 620px); }
/* ---- Terminal body ---- */
.wt-body {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13.5px; line-height: 1.6; color: var(--ink);
  padding: 14px 16px 12px; height: min(46vh, 420px); overflow-y: auto;
  cursor: text;
}
.wt-body::-webkit-scrollbar { width: 9px; }
.wt-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 9px; }
.wt-out { }
.wt-block { margin: 0 0 7px; white-space: pre-wrap; word-break: break-word; }
.cp-user { color: var(--acc); }
.cp-path { color: var(--sky); }
.wt-echo { margin-top: 4px; }
.wt-cmd { color: #ffe39a; }
.wt-err { color: var(--danger); }
.wt-go { color: var(--ok); }
.dimx { color: var(--dim); }

/* banner */
.wt-banner { color: var(--dim); margin-bottom: 12px; }
.wt-banner-l1 { color: var(--sky); }
.wt-banner-l2 { margin-top: 2px; }

/* help */
.wt-help-title { color: var(--dim); margin-bottom: 8px; }
.wt-help-row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 2px 0; }
.wt-help-cmd { color: var(--acc); }
.wt-help-desc { color: var(--ink); }

/* ls listing */
.wt-ls-head { color: var(--dim); margin-bottom: 8px; }
.wt-ls-row { display: grid; grid-template-columns: 56px 1fr 20px; gap: 10px; align-items: baseline;
  padding: 5px 8px; margin: 0 -8px; border-radius: 4px; cursor: pointer; transition: background .12s; }
.wt-ls-row:hover { background: var(--acc-soft); }
.wt-ls-mode { color: var(--dimmer); }
.wt-ls-name { color: var(--acc); font-weight: 600; }
.wt-ls-sub { color: var(--dim); }
.wt-ls-go { color: var(--dim); opacity: 0; transition: opacity .12s; text-align: right; }
.wt-ls-row:hover .wt-ls-go { opacity: 1; color: var(--acc); }

/* tab-completion columns */
.wt-cols { display: flex; flex-wrap: wrap; gap: 4px 22px; color: var(--acc); }

/* about doc */
.wt-doc { padding: 4px 0; }
.wt-doc-h { color: var(--acc); letter-spacing: 1px; margin: 10px 0 6px; }
.wt-doc-h:first-child { margin-top: 0; }
.wt-doc-name { font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 26px; letter-spacing: 1px; color: #eef9ff; }
.wt-doc-role { color: var(--sky); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; margin: 2px 0 8px; }
.wt-doc-bio p { color: var(--ink); margin: 0 0 7px; max-width: 60ch; }
.wt-doc-contact { color: var(--dim); }
.wt-doc-contact span { color: var(--dim); }
.wt-doc-contact a { color: var(--acc); text-decoration: none; }
.wt-doc-contact a:hover { text-decoration: underline; }

/* input line */
.wt-input-line { display: flex; align-items: baseline; gap: 8px; }
.wt-prompt { white-space: nowrap; }
.wt-field { position: relative; flex: 1; min-width: 0; }
.wt-input {
  width: 100%; background: transparent; border: 0; outline: 0;
  font-family: inherit; font-size: inherit; color: var(--ink);
  caret-color: transparent; padding: 0; position: relative; z-index: 2;
}
.wt-ghost { position: absolute; left: 0; top: 0; z-index: 1; color: var(--dimmer); pointer-events: none; white-space: pre; }
.wt-caret { position: absolute; top: 1px; width: 8px; height: 16px; background: var(--acc);
  z-index: 1; animation: cliBlink 1.1s steps(2) infinite; }
@keyframes cliBlink { 0%, 50% { opacity: 1 } 50.01%, 100% { opacity: 0 } }
.cp-cursor { display: inline-block; width: 8px; height: 14px; background: var(--acc); margin-left: 4px; vertical-align: -2px; animation: cliBlink 1.1s steps(2) infinite; }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 880px) {
  .stage-inner { gap: 40px; }
}
@media (max-width: 560px) {
  .wt-body { height: 50vh; font-size: 12.5px; }
  .wt-ls-row { grid-template-columns: 44px 1fr 16px; }
  .stage-inner { justify-content: center; padding-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .site { transition: none; opacity: 1; }
}
