:root {
  --bg: #050c16;
  --surface: #07111d;
  --surface2: #091522;
  --border: #10375c;
  --text: #eff6ff;
  --muted: #97a8bd;
  --accent: #7eff3b;
  --danger: #ff665c;
  --warning: #d7ff3f;
  --shadow: 0 28px 80px rgba(0, 0, 0, .48);
}

body {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(16, 55, 92, .10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 55, 92, .10) 1px, transparent 1px),
    radial-gradient(circle at 78% 34%, rgba(25, 103, 132, .15), transparent 31rem),
    linear-gradient(125deg, transparent 0 52%, rgba(16, 55, 92, .10) 52.1% 52.3%, transparent 52.4%);
  background-size: 64px 64px, 64px 64px, auto, auto;
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 12, 22, .18), transparent 35%, rgba(5, 12, 22, .35));
  z-index: 1;
}

.bg-cycle {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

.bg-cycle::after {
  background: linear-gradient(90deg, rgba(5, 12, 22, .94) 0%, rgba(5, 12, 22, .78) 45%, rgba(5, 12, 22, .58) 100%), linear-gradient(180deg, rgba(5, 12, 22, .38), rgba(5, 12, 22, .78));
  content: "";
  inset: 0;
  position: absolute;
  z-index: 2;
}

.bg-cycle span {
  animation: background-cycle 48s infinite;
  background-position: 68% center;
  background-repeat: no-repeat;
  background-size: cover;
  inset: 0;
  opacity: 0;
  position: absolute;
  transform: scale(1.015);
}

.bg-cycle span:nth-child(1) { background-image: url('/static/bg-01.webp'); animation-delay: 0s; }
.bg-cycle span:nth-child(2) { background-image: url('/static/bg-02.webp'); animation-delay: 12s; }
.bg-cycle span:nth-child(3) { background-image: url('/static/bg-03.webp'); animation-delay: 24s; }
.bg-cycle span:nth-child(4) { background-image: url('/static/bg-04.webp'); animation-delay: 36s; }

@keyframes background-cycle {
  0% { opacity: 0; }
  4%, 25% { opacity: .42; }
  29%, 100% { opacity: 0; }
}

.topbar {
  height: 76px;
  border: 1px solid var(--border);
  border-top-color: #155184;
  background: rgba(5, 12, 22, .92);
  margin: 10px auto 0;
  max-width: 1180px;
  position: sticky;
  padding: 0 26px;
}

.topbar::before,
.topbar::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--accent);
}

.topbar::before { left: 7px; top: 7px; border-left: 2px solid; border-top: 2px solid; }
.topbar::after { right: 7px; bottom: 7px; border-right: 2px solid; border-bottom: 2px solid; }

.brand {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.brand span { text-shadow: 0 0 16px rgba(126, 255, 59, .8); }
.shell { max-width: 1180px; padding-top: 58px; position: relative; z-index: 2; }

.hero {
  align-items: center;
  border-bottom: 1px solid rgba(16, 55, 92, .6);
  padding: 22px 0 44px;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 28%;
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 0 16px rgba(126, 255, 59, .35);
}

.hero h1 {
  font-family: Arial Black, Arial, sans-serif;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 900;
  letter-spacing: -.065em;
  line-height: .9;
  margin: 18px 0 22px;
  max-width: 900px;
  text-transform: uppercase;
}

.hero h1 span { color: var(--accent); text-shadow: 0 0 28px rgba(126, 255, 59, .12); }
.hero .muted { max-width: 730px; font-size: 17px; }

.eyebrow,
.meta,
.count,
.system-rail {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow::before { content: "●"; margin-right: 12px; text-shadow: 0 0 12px var(--accent); }

.primary,
.danger,
.card-actions button,
.ghost {
  border-radius: 0;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.primary {
  background: rgba(7, 17, 29, .86);
  border: 1px solid var(--accent);
  color: var(--text);
  box-shadow: inset 3px 3px 0 rgba(126, 255, 59, .16), 0 0 18px rgba(126, 255, 59, .06);
}

.primary:hover { color: var(--accent); background: rgba(126, 255, 59, .07); }
.toolbar { margin-top: 28px; }

.search {
  background: rgba(5, 12, 22, .84);
  border-radius: 0;
  border-color: var(--border);
  border-left: 3px solid var(--accent);
}

.command-grid { gap: 18px; }

.command-card {
  background: linear-gradient(145deg, rgba(9, 21, 34, .96), rgba(5, 12, 22, .92));
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: inset 0 1px rgba(126, 255, 59, .05), 0 18px 44px rgba(0, 0, 0, .28);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  position: relative;
}

.command-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, var(--accent), transparent 28%) top left / 42% 1px no-repeat;
}

.command-card h2 {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.risk-dot { box-shadow: 0 0 12px currentColor; }
.command-line { background: #030910; border-color: #144c73; border-radius: 0; }
.command-line code { color: #d8f8e8; }
.tags span { background: transparent; border: 1px solid var(--border); border-radius: 0; color: var(--muted); }
.card-actions button { border: 1px solid var(--border); background: transparent; }
.card-actions .copy { border-color: var(--accent); color: var(--accent); }
.card-actions button:hover { background: rgba(126, 255, 59, .07); }

dialog,
.login-card {
  border-radius: 0;
  border-color: var(--border);
  background: linear-gradient(145deg, #07111d, #050c16);
}

input,
textarea,
select {
  border-radius: 0;
  border-color: var(--border);
  background: #030910;
}

.system-rail {
  border: 1px solid var(--border);
  border-top-color: rgba(126, 255, 59, .55);
  color: var(--muted);
  display: flex;
  font-size: 9px;
  justify-content: space-between;
  margin-top: 24px;
  padding: 10px 14px;
}

.system-rail span:first-child { color: var(--accent); }
.login-card { position: relative; z-index: 2; }

@media (max-width: 760px) {
  .topbar { margin-top: 0; border-left: 0; border-right: 0; }
  .shell { padding-top: 28px; }
  .hero { padding-top: 12px; }
  .hero h1 { font-size: clamp(42px, 15vw, 68px); }
  .hero .muted { font-size: 15px; }
  .system-rail { gap: 8px; flex-wrap: wrap; letter-spacing: .08em; }
  .bg-cycle span { background-position: 70% center; }
  .bg-cycle::after { background: linear-gradient(180deg, rgba(5, 12, 22, .84), rgba(5, 12, 22, .94)); }
}

@media (prefers-reduced-motion: reduce) {
  .bg-cycle span { animation: none; opacity: 0; }
  .bg-cycle span:first-child { opacity: .36; }
}
