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

:root {
  --bg: #080909;
  --panel: rgba(15, 17, 17, 0.86);
  --line: rgba(213, 255, 0, 0.19);
  --lime: #d5ff00;
  --text: #f1f4e9;
  --muted: #8c9586;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at 50% 40%, #202a19 0%, #0b0e0b 38%, #050606 76%);
  content: '';
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 36px 36px;
  content: '';
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

.terminal-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100% - 40px, 1060px);
  min-height: calc(100vh - 40px);
  margin: 20px auto;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 0 80px rgba(175, 255, 0, .07), inset 0 0 60px rgba(202, 255, 0, .025);
  overflow: hidden;
}

.terminal-shell.powering-down { filter: brightness(0); transition: filter .65s ease; }

.scanlines { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(215,255,0,.018) 4px); }
.topbar, .footer { display: flex; justify-content: space-between; gap: 20px; padding: 20px 28px; font: 11px 'DM Mono', monospace; letter-spacing: .1em; color: var(--muted); }
.topbar { border-bottom: 1px solid var(--line); }
.brand-lockup { display: flex; align-items: center; gap: 11px; }
.brand-logo { width: 25px; height: 21px; object-fit: contain; }
.brand { color: var(--lime); }
.system-status { display: flex; align-items: center; gap: 8px; }
.system-status i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }

.terminal-screen { position: relative; display: flex; flex: 1; flex-direction: column; align-items: center; padding: clamp(55px, 9vh, 100px) 24px 70px; text-align: center; }
.boot-label, .eyebrow, .card-label, .hint, .shutdown-kicker, .shutdown-signoff { font: 11px 'DM Mono', monospace; letter-spacing: .16em; }
.boot-label { margin-bottom: 42px; color: var(--muted); }
.hero-mark { width: 94px; height: 78px; margin: -12px auto 34px; opacity: .96; filter: drop-shadow(0 0 20px rgba(213,255,0,.12)); }
.hero-mark img { width: 100%; height: 100%; object-fit: contain; }
.eyebrow { margin: 0 0 18px; color: var(--lime); }
h1 { margin: 0; font-size: clamp(58px, 10vw, 124px); line-height: .86; letter-spacing: -.08em; text-transform: uppercase; font-weight: 600; }
h1 span { color: transparent; -webkit-text-stroke: 1px var(--text); }
.lead { margin: 30px 0 0; color: #bac1b0; font-size: clamp(15px, 2vw, 19px); line-height: 1.55; }
.terminal-log { width: min(100%, 570px); margin: 44px 0 24px; padding: 15px 18px; border-left: 2px solid var(--lime); background: rgba(213,255,0,.045); color: var(--muted); text-align: left; font: 12px/2 'DM Mono', monospace; }
.terminal-log p { margin: 0; }
.prompt { margin-right: 8px; color: var(--lime); }
.cursor { color: var(--lime); animation: blink 1s step-end infinite; }
.flag-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(100%, 570px); padding: 22px 24px; border: 1px solid rgba(213,255,0,.4); background: rgba(213,255,0,.07); text-align: left; }
.card-label { margin: 0 0 12px; color: var(--lime); }
code { color: var(--text); font: 12px/1.5 'DM Mono', monospace; overflow-wrap: anywhere; }
.flag-mark { display: grid; flex: 0 0 auto; place-items: center; width: 28px; height: 28px; border: 1px solid var(--lime); border-radius: 50%; color: var(--lime); }
.shutdown-button { display: flex; align-items: center; gap: 12px; margin-top: 40px; padding: 15px 24px; border: 1px solid var(--lime); background: var(--lime); color: #10130a; cursor: pointer; font: 600 12px 'DM Mono', monospace; letter-spacing: .15em; transition: transform .2s, box-shadow .2s, background .2s; }
.shutdown-button:hover, .shutdown-button:focus-visible { background: #edff82; box-shadow: 0 0 25px rgba(213,255,0,.45); transform: translateY(-2px); outline: none; }
.button-icon { font-size: 20px; line-height: 10px; }
.hint { margin: 14px 0 0; color: #60685c; letter-spacing: .08em; }
.footer { border-top: 1px solid var(--line); }

.shutdown-screen { position: fixed; inset: 0; z-index: 5; display: grid; place-items: center; background: #000; opacity: 0; pointer-events: none; transition: opacity 1.4s ease; }
.shutdown-screen.is-visible { opacity: 1; pointer-events: auto; }
.shutdown-message { max-width: 600px; padding: 30px; text-align: center; opacity: 0; transform: translateY(12px); transition: opacity 1s .7s, transform 1s .7s; }
.is-visible .shutdown-message { opacity: 1; transform: translateY(0); }
.shutdown-kicker { color: var(--lime); }
.shutdown-title { margin: 24px 0 16px; font-size: clamp(28px, 5vw, 58px); line-height: 1.05; letter-spacing: -.05em; }
.shutdown-subtitle { color: var(--muted); font-size: 15px; }
.shutdown-line { display: block; width: 55px; height: 1px; margin: 32px auto; background: var(--lime); }
.shutdown-signoff { color: #626b5d; }

@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 620px) {
  .terminal-shell { width: calc(100% - 20px); min-height: calc(100vh - 20px); margin: 10px auto; }
  .topbar, .footer { padding: 16px; font-size: 9px; }
  .system-status { display: none; }
  .terminal-screen { padding: 50px 16px 55px; }
  .boot-label { font-size: 9px; }
  .flag-card { align-items: flex-start; padding: 18px; }
  code { font-size: 10px; }
  .footer span:last-child { display: none; }
}
