:root {
  --bg: #050505;
  --bg-soft: #0a0a0a;
  --bg-card: #0f0f0f;
  --accent: #00e5ff;
  --red: #ff1a1a;
  --muted: #888;
  --text: #e6e6e6;
  --border: #222;
  --mono: "JetBrains Mono", monospace;
  --display: "Orbitron", sans-serif;
  --ease-out: cubic-bezier(0.22, 0.9, 0.42, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  overflow-x: hidden;
}

body {
  background-image:
    radial-gradient(circle at top, #0e0e0e 0, #050505 70%),
    repeating-linear-gradient(
      0deg,
      rgba(0,0,0,0.15),
      rgba(0,0,0,0.15) 1px,
      transparent 2px
    );
}

/* BOOT SCREEN */
#boot-screen {
  position: fixed;
  inset: 0;
  background: #000;
  color: var(--accent);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 40px;
}

.watermark {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 800;
  color: rgba(255,255,255,0.04);
  letter-spacing: 0.4em;
  pointer-events: none;
  z-index: 1;
}

.terminal-box {
  background: rgba(0,0,0,0.8);
  border: 1px solid var(--border);
  padding: 24px 28px;
  max-width: 720px;
  width: 100%;
  box-shadow: 0 0 30px rgba(0, 230, 255, 0.12);
  font-family: var(--mono);
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.line {
  opacity: 0;
  animation: fadeLine 0.25s var(--ease-out) forwards;
}

@keyframes fadeLine {
  to { opacity: 1; }
}

/* MAIN INTERFACE */
#main-interface {
  opacity: 0;
  transform: translateY(8px) scale(0.997);
  transition: all 0.7s var(--ease-out);
}

#main-interface.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* TOP BAR */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  background: linear-gradient(to right, rgba(0,0,0,0.98), rgba(5,5,5,0.96));
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  gap: 16px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.logo .red {
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  color: var(--red);
  letter-spacing: 0.12em;
  text-shadow: 0 0 16px rgba(255,26,26,0.6);
}

.logo .sub {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.18em;
}

.top-bar nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.top-bar nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s, text-shadow 0.2s;
}

.top-bar nav a:hover {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(0,230,255,0.8);
}

.status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.blink {
  color: #00ff88;
  animation: blink 1.4s steps(1, start) infinite;
}

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