/* ==========================================================================
   Scrimptech — "MU/TH/UR 6000" theme  (v3)
   --------------------------------------------------------------------------
   Green-phosphor ship-computer console: monochrome green on black, all-caps
   terminal labels, CRT scanlines + vignette + bloom. Amber/red survive only
   as caution/critical accents.
   Visual-only, layered on top of each page's own <style> block and loaded
   LAST, so these rules win. No page content is changed.
   To revert: remove the <link rel="stylesheet" href="aliens.css?v=3"> line.
   ========================================================================== */

:root {
  --a-bg:      #040a06;
  --a-bg-1:    #07130c;
  --a-bg-2:    #0b1a11;
  --a-panel:   #071009;
  --a-panel-2: #0a150d;
  --a-screen:  #04120a;
  --a-code:    #04120a;
  --a-text:    #cdeedd;
  --a-text-2:  #a8dcc0;
  --a-mut:     #6fae8a;
  --a-dim:     #46735a;
  --a-green:   #3dff8f;
  --a-green-2: #a6ffcb;
  --a-amber:   #ffb000; /* caution only */
  --a-red:     #ff5a36; /* critical only */
  --a-hazard:  #ffd60a;
  --a-line:      rgba(61, 255, 143, 0.18);
  --a-line-soft: rgba(61, 255, 143, 0.10);
  --a-glow:    0 0 8px rgba(61, 255, 143, 0.50);
  --a-mono:    'Share Tech Mono', ui-monospace, 'JetBrains Mono', 'Fira Code', monospace;
}

html { background: var(--a-bg); }

body {
  background: var(--a-bg) !important;
  color: var(--a-text) !important;
}

::selection { background: rgba(61, 255, 143, 0.30); color: #04120a; }

/* --- ambient CRT: green bezel strip + scanlines + vignette + bloom -------- */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  z-index: 1000;
  pointer-events: none;
  background: repeating-linear-gradient(45deg,
    var(--a-green) 0 9px, var(--a-bg) 9px 18px);
  opacity: 0.75;
  box-shadow: 0 0 14px rgba(61, 255, 143, 0.45);
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.55;
  background:
    repeating-linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 0 1px, rgba(0, 0, 0, 0.26) 1px 3px),
    radial-gradient(120% 100% at 50% 50%,
      transparent 55%, rgba(0, 0, 0, 0.62) 100%);
}

/* --- type: monospace + all-caps terminal ---------------------------------- */
h1, h2, h3, h4,
.top-nav a, .hero-badge, .step-num, .toc h4,
.card .link, .gh-link, .quickstart h3 {
  font-family: var(--a-mono) !important;
}
h1, h2, h3, .card h3, section h3 {
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* --- top nav -------------------------------------------------------------- */
.top-nav {
  background: rgba(4, 10, 6, 0.95) !important;
  border-bottom: 1px solid var(--a-line) !important;
}
.top-nav a {
  color: var(--a-green) !important;
  text-transform: uppercase;
  letter-spacing: 0.10em;
}
.top-nav a:hover { color: var(--a-green-2) !important; text-shadow: var(--a-glow); }

/* --- hero ----------------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--a-bg-1) 0%, var(--a-bg-2) 50%, var(--a-bg-1) 100%) !important;
  border-bottom: 1px solid var(--a-line) !important;
}
.hero::before {
  background:
    repeating-linear-gradient(to bottom,
      rgba(61, 255, 143, 0.05) 0 1px, transparent 1px 3px),
    radial-gradient(circle at 50% 0%, rgba(61, 255, 143, 0.16) 0%, transparent 60%) !important;
}
.hero h1 {
  background: linear-gradient(135deg, #e4ffee 0%, var(--a-green) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  filter: drop-shadow(0 0 18px rgba(61, 255, 143, 0.45));
}
.hero p { color: var(--a-mut) !important; }
.hero .meta { color: var(--a-dim) !important; }
.hero-stats span { color: var(--a-dim) !important; }
.hero-stats strong { color: var(--a-green-2) !important; }
.hero-badge {
  background: rgba(61, 255, 143, 0.10) !important;
  color: var(--a-green) !important;
  border: 1px solid var(--a-line) !important;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: inset 0 0 12px rgba(61, 255, 143, 0.08);
}
.hero-badge::after {
  content: '\2588'; /* decorative HUD cursor block (no article text added) */
  margin-left: 0.6ch;
  animation: a-blink 1.1s steps(1) infinite;
}
@keyframes a-blink { 50% { opacity: 0; } }

/* --- sections ------------------------------------------------------------- */
section h2, section h3 { color: var(--a-green-2) !important; }
section h2 { text-shadow: 0 0 14px rgba(61, 255, 143, 0.22); }
section h2::before {
  background: linear-gradient(180deg, var(--a-green), #12b566) !important;
  box-shadow: var(--a-glow);
}
section h2::after {
  content: '\2588';
  color: var(--a-green);
  font-size: 0.62em;
  line-height: 1;
  margin-left: 0.55rem;
  opacity: 0.75;
  animation: a-blink 1.1s steps(1) infinite;
}
section p, section ul, section ol, section li { color: var(--a-text-2) !important; }
section strong { color: var(--a-green-2) !important; }

/* --- cards ---------------------------------------------------------------- */
.card {
  background: linear-gradient(145deg, var(--a-panel), var(--a-panel-2)) !important;
  border: 1px solid var(--a-line-soft) !important;
}
.card:hover {
  border-color: rgba(61, 255, 143, 0.45) !important;
  box-shadow: 0 0 0 1px rgba(61, 255, 143, 0.16),
              0 8px 24px rgba(0, 0, 0, 0.5),
              0 0 24px rgba(61, 255, 143, 0.14);
}
.card h3 { color: var(--a-green-2) !important; }
.card p { color: var(--a-mut) !important; }
.card .link { color: var(--a-green) !important; letter-spacing: 0.04em; }

/* --- guides: TOC + steps + callouts -------------------------------------- */
.toc { border-left: 1px solid var(--a-line) !important; }
.toc h4 { color: var(--a-mut) !important; text-transform: uppercase; letter-spacing: 0.09em; }
.toc a { color: var(--a-green) !important; }
.toc a::before { content: '> '; color: var(--a-green); opacity: 0.6; }
.toc a:hover::before, .toc a.active::before {
  opacity: 1;
  text-shadow: 0 0 6px rgba(61, 255, 143, 0.6);
}
.toc a:hover { color: var(--a-green-2) !important; }
.toc a.active { color: #fff !important; text-shadow: var(--a-glow); }

.step, .mini-card, .img-card, .quickstart {
  background: linear-gradient(145deg, var(--a-panel), var(--a-panel-2)) !important;
  border: 1px solid var(--a-line-soft) !important;
}
.quickstart { border-left: 4px solid var(--a-green) !important; }
.step-num {
  background: linear-gradient(180deg, var(--a-green), #12b566) !important;
  color: #04120a !important;
  box-shadow: var(--a-glow);
}
.mini-card h4, .img-card h4 { color: var(--a-green-2) !important; }
.mini-card p, .img-card p { color: var(--a-mut) !important; }
.img-card img { border: 1px solid var(--a-line-soft); }
.quickstart h3 { color: var(--a-green-2) !important; }
.quickstart li { color: var(--a-text-2) !important; }
.quickstart .quickstart-more { color: var(--a-dim) !important; }

.note {
  background: rgba(61, 255, 143, 0.06) !important;
  border: 1px solid rgba(61, 255, 143, 0.22) !important;
  border-left: 4px solid var(--a-green) !important;
  color: var(--a-green-2) !important;
  text-shadow: 0 0 6px rgba(61, 255, 143, 0.18);
}
.warn {
  background: rgba(255, 176, 0, 0.08) !important;
  border: 1px solid rgba(255, 176, 0, 0.28) !important;
  border-left: 4px solid var(--a-amber) !important;
  color: #ffdda0 !important;
}

/* --- tables --------------------------------------------------------------- */
th, td { border-bottom: 1px solid var(--a-line-soft) !important; }
th {
  color: var(--a-green) !important;
  background: rgba(61, 255, 143, 0.08) !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
td { color: var(--a-text-2) !important; }

/* --- buttons / links ------------------------------------------------------ */
.gh-link {
  background: rgba(61, 255, 143, 0.10) !important;
  border: 1px solid rgba(61, 255, 143, 0.35) !important;
  color: var(--a-green) !important;
}
.gh-link:hover {
  background: rgba(61, 255, 143, 0.20) !important;
  box-shadow: var(--a-glow);
}

/* --- code: MU/TH/UR green phosphor screens -------------------------------- */
code.inline {
  background: rgba(61, 255, 143, 0.12) !important;
  color: var(--a-green-2) !important;
  text-shadow: 0 0 6px rgba(61, 255, 143, 0.20);
}
pre[class*="language-"], code[class*="language-"] {
  background: var(--a-screen) !important;
  color: #b9f0cd !important;
  text-shadow: 0 0 6px rgba(61, 255, 143, 0.25) !important;
}
pre[class*="language-"] {
  border: 1px solid rgba(61, 255, 143, 0.18) !important;
  box-shadow: 0 0 0 1px rgba(61, 255, 143, 0.06),
              inset 0 0 26px rgba(61, 255, 143, 0.05);
}
.token.comment, .token.prolog, .token.doctype, .token.cdata { color: #4f8f68 !important; }
.token.punctuation { color: #86e0a6 !important; }
.token.property, .token.tag, .token.boolean, .token.number,
.token.constant, .token.symbol, .token.deleted { color: #5cff9d !important; }
.token.selector, .token.attr-name, .token.string, .token.char,
.token.builtin, .token.inserted { color: #a8ffca !important; }
.token.operator, .token.entity, .token.url { color: #6dffab !important; }
.token.atrule, .token.attr-value, .token.keyword { color: var(--a-green) !important; }
.token.function, .token.class-name { color: #c8ffdd !important; }
.token.regex, .token.important, .token.variable { color: #8fffbb !important; }

/* --- inline SVG diagrams: retint presentation attributes ------------------ */
.diagram svg text { font-family: var(--a-mono) !important; }
.diagram svg [fill="#94a3b8"] { fill: var(--a-mut) !important; }
.diagram svg [fill="#818cf8"] { fill: var(--a-green-2) !important; }
.diagram svg [fill="#a5b4fc"] { fill: var(--a-green-2) !important; }
.diagram svg [fill="#e2e8f0"] { fill: var(--a-text) !important; }
.diagram svg [fill="#64748b"] { fill: var(--a-dim) !important; }
.diagram svg [stroke="#6366f1"] { stroke: var(--a-green) !important; }
.diagram svg [stroke="#818cf8"] { stroke: var(--a-green-2) !important; }
.diagram svg [stroke="#a78bfa"] { stroke: var(--a-green-2) !important; }
.diagram svg stop[stop-color="#1e293b"] { stop-color: var(--a-bg-2) !important; }
.diagram svg stop[stop-color="#0f172a"] { stop-color: var(--a-bg-1) !important; }

/* --- footer --------------------------------------------------------------- */
footer {
  border-top: 1px solid var(--a-line-soft) !important;
  color: var(--a-dim) !important;
}

/* --- inline style colors present in the mark-up --------------------------- */
[style*="color: #64748b"] { color: var(--a-dim) !important; }
[style*="color:#818cf8"] { color: var(--a-green) !important; }
[style*="color: #94a3b8"] { color: var(--a-mut) !important; }
[style*="color: #cbd5e1"] { color: var(--a-text-2) !important; }

/* --- HUD corner brackets on the main panels ------------------------------- */
.card, .step, .quickstart, .img-card { position: relative; }
.card::before, .step::before, .quickstart::before, .img-card::before,
.card::after, .step::after, .quickstart::after, .img-card::after {
  content: '';
  position: absolute;
  width: 11px;
  height: 11px;
  pointer-events: none;
  border: 0 solid rgba(61, 255, 143, 0.42);
}
.card::before, .step::before, .quickstart::before, .img-card::before {
  top: 7px; left: 7px;
  border-top-width: 1px; border-left-width: 1px;
}
.card::after, .step::after, .quickstart::after, .img-card::after {
  bottom: 7px; right: 7px;
  border-bottom-width: 1px; border-right-width: 1px;
}
.card:hover::before, .card:hover::after { border-color: var(--a-green); box-shadow: var(--a-glow); }

/* --- scrollbar ------------------------------------------------------------ */
* { scrollbar-color: var(--a-green) var(--a-bg); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--a-bg); }
::-webkit-scrollbar-thumb { background: #1f7a48; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--a-green); }

/* --- faint CRT hum on the scanline overlay -------------------------------- */
@keyframes a-crt {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.62; }
}
body::after { animation: a-crt 7s ease-in-out infinite; }

/* ==========================================================================
   MU/TH/UR console panel — home page, decorative ("fake data, looks only")
   ========================================================================== */
.muthur-wrap { padding: 2.5rem 0 0 !important; }
.muthur {
  position: relative;
  background: linear-gradient(145deg, #04120a, #06170d);
  border: 1px solid rgba(61, 255, 143, 0.28);
  border-radius: 12px;
  overflow: hidden;
  font-family: var(--a-mono);
  color: var(--a-green-2);
  text-shadow: 0 0 6px rgba(61, 255, 143, 0.25);
  box-shadow: 0 0 0 1px rgba(61, 255, 143, 0.06),
              inset 0 0 40px rgba(61, 255, 143, 0.05),
              0 10px 30px rgba(0, 0, 0, 0.5);
}
.muthur::before, .muthur::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border: 0 solid var(--a-green);
  opacity: 0.7;
  pointer-events: none;
}
.muthur::before { top: 6px; left: 6px; border-top-width: 1px; border-left-width: 1px; }
.muthur::after { bottom: 6px; right: 6px; border-bottom-width: 1px; border-right-width: 1px; }

.muthur-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1rem;
  background: rgba(61, 255, 143, 0.08);
  border-bottom: 1px solid rgba(61, 255, 143, 0.22);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--a-green);
}
.muthur-stat { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--a-green-2); font-size: 0.72rem; }
.muthur-stat .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--a-green);
  box-shadow: 0 0 8px var(--a-green);
  animation: a-pulse 1.6s ease-in-out infinite;
}
@keyframes a-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.muthur-screen {
  position: relative;
  overflow: hidden;
  padding: 1rem 1.2rem;
  font-size: 0.9rem;
  line-height: 1.95;
  background:
    repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,0.20) 2px 3px),
    radial-gradient(120% 100% at 50% 50%, transparent 60%, rgba(0,0,0,0.5) 100%);
}
.muthur-screen::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: -40px;
  height: 40px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(61, 255, 143, 0.10), transparent);
  animation: a-sweep 4.5s linear infinite;
}
@keyframes a-sweep { 0% { top: -40px; } 100% { top: 100%; } }

.muthur-line { display: flex; align-items: baseline; gap: 0.6rem; margin: 0; white-space: nowrap; }
.muthur-line b { color: var(--a-green); font-weight: 400; }
.muthur-cmd { color: var(--a-green); }
.muthur-dots { flex: 1 1 auto; min-width: 1rem; border-bottom: 1px dotted rgba(61, 255, 143, 0.30); transform: translateY(-0.28em); }
.muthur-cursor { animation: a-blink 1.1s steps(1) infinite; }
.muthur-gauge .track {
  flex: 1 1 auto;
  align-self: center;
  height: 9px;
  background: rgba(61, 255, 143, 0.10);
  border: 1px solid rgba(61, 255, 143, 0.28);
  border-radius: 3px;
  overflow: hidden;
}
.muthur-gauge .track i {
  display: block;
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--a-green) 0 6px, #12b566 6px 9px);
  box-shadow: 0 0 10px rgba(61, 255, 143, 0.5);
}
.muthur-foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.55rem 1rem;
  border-top: 1px solid rgba(61, 255, 143, 0.18);
  background: rgba(61, 255, 143, 0.05);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--a-mut);
}

/* staggered terminal reveal */
.muthur-screen .muthur-line { opacity: 0; animation: a-line 0.45s ease forwards; }
.muthur-screen .muthur-line:nth-child(1) { animation-delay: 0.10s; }
.muthur-screen .muthur-line:nth-child(2) { animation-delay: 0.20s; }
.muthur-screen .muthur-line:nth-child(3) { animation-delay: 0.30s; }
.muthur-screen .muthur-line:nth-child(4) { animation-delay: 0.40s; }
.muthur-screen .muthur-line:nth-child(5) { animation-delay: 0.50s; }
.muthur-screen .muthur-line:nth-child(6) { animation-delay: 0.60s; }
.muthur-screen .muthur-line:nth-child(7) { animation-delay: 0.70s; }
.muthur-screen .muthur-line:nth-child(8) { animation-delay: 0.80s; }
.muthur-screen .muthur-line:nth-child(9) { animation-delay: 0.90s; }
@keyframes a-line { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

@media (max-width: 600px) {
  .muthur-screen { font-size: 0.78rem; line-height: 1.8; }
  .muthur-bar { font-size: 0.64rem; letter-spacing: 0.08em; }
  .muthur-foot { font-size: 0.62rem; letter-spacing: 0.06em; }
  .muthur-line { gap: 0.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-badge::after, section h2::after { animation: none; }
  body::after { animation: none; }
  .muthur-screen .muthur-line { opacity: 1; animation: none; }
  .muthur-stat .dot, .muthur-cursor, .muthur-screen::after { animation: none; }
}
