:root {
  --bg: #04020b;
  --violet: #3a0ca3;
  --teal: #00f5d4;
  --magenta: #ff3cac;
  --text: #e6f1ff;
  --grid-color: rgba(0, 245, 212, 0.07);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Share Tech Mono", monospace;
  overflow: hidden;
  height: 100vh;
}

/* Bootup sequence */
.bootup-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  text-align: center;
  font-size: 1.2rem;
  letter-spacing: 1px;
  animation: flicker 3s infinite alternate;
}

.boot-line {
  opacity: 0;
  animation: typeIn 0.8s forwards;
}

.boot-line:nth-child(1) { animation-delay: 0.3s; }
.boot-line:nth-child(2) { animation-delay: 1s; }
.boot-line:nth-child(3) { animation-delay: 1.7s; }
.boot-line:nth-child(4) { animation-delay: 2.4s; }

@keyframes typeIn {
  0% { opacity: 0; filter: blur(6px); }
  100% { opacity: 1; filter: blur(0); }
}

.hidden { display: none; }

/* Main UI */
#main-ui {
  position: relative;
  height: 100vh;
  width: 100%;
  background: radial-gradient(circle at center, rgba(58,12,163,0.1) 0%, rgba(0,0,0,0.95) 100%);
}

.grid-bg {
  position: absolute;
  width: 200%;
  height: 200%;
  background-image: linear-gradient(var(--grid-color) 1px, transparent 1px),
                    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 80px 80px;
  top: -50%;
  left: -50%;
  animation: drift 60s linear infinite;
}

@keyframes drift {
  from { transform: translate(0, 0) rotate(0deg); }
  to { transform: translate(50px, 50px) rotate(360deg); }
}

/* Title */
.center-title {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.center-title h1 {
  font-size: clamp(60px, 8vw, 140px);
  background: linear-gradient(90deg, var(--magenta), var(--teal), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: glowPulse 4s infinite alternate;
  letter-spacing: 2px;
}

.center-title h2 {
  font-size: 1.2rem;
  margin-top: 20px;
  opacity: 0.8;
  color: var(--teal);
  animation: fadeIn 5s forwards;
  animation-delay: 3s;
}

/* Console */
.console {
  position: absolute;
  bottom: 40px;
  left: 40px;
  font-size: 1rem;
  opacity: 0;
  animation: fadeIn 3s forwards;
  animation-delay: 4.5s;
}

.console .active {
  color: var(--teal);
}

@keyframes glowPulse {
  0% { text-shadow: 0 0 10px var(--teal), 0 0 20px var(--violet); }
  100% { text-shadow: 0 0 20px var(--magenta), 0 0 40px var(--teal); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.4; }
}
