@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;700&display=swap');

:root {
  --bg-color: #050505;
  --accent-color: #ffffff;
  --text-muted: #888888;
  --glass-bg: rgba(255, 255, 255, 0.01);
  --glass-border: rgba(255, 255, 255, 0.1);
  --font-family: 'Outfit', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--accent-color);
  font-family: var(--font-family);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.background-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
  transition: all 0.5s ease;
}

.container {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem;
  background: var(--glass-bg);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--glass-border);
  border-radius: 60px;
  max-width: 500px;
  width: 90%;
  animation: fadeIn 2s ease-out;
}

.logo {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.status-indicator {
  font-size: 0.7rem;
  letter-spacing: 0.1rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 1rem;
}

.dot {
  width: 4px;
  height: 4px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px #fff;
  animation: breathe 3s infinite ease-in-out;
}

/* Agent Tooltip Refinement */
.agent-tooltip {
  position: fixed;
  background: rgba(5, 5, 5, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0;
  border-left: 2px solid #fff;
  padding-left: 1.5rem;
  pointer-events: auto;
  /* Enable interaction */
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
  width: 280px;
  cursor: pointer;
}

.agent-tooltip:hover {
  background: rgba(255, 255, 255, 0.05);
}

.agent-tooltip.active {
  opacity: 1;
  transform: translateX(0);
}

/* Agent Console (The functional part) */
.agent-console {
  display: none;
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  animation: slideDown 0.4s ease-out;
}

.agent-console.visible {
  display: block;
}

.console-input {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid #444;
  color: #fff;
  font-family: inherit;
  font-size: 0.7rem;
  padding: 0.5rem 0;
  margin-bottom: 0.5rem;
  outline: none;
}

.console-input::placeholder {
  color: #444;
}

.console-feed {
  font-family: monospace;
  font-size: 0.6rem;
  color: #00ff00;
  height: 80px;
  overflow-y: hidden;
  line-height: 1.4;
  opacity: 0.8;
}

.feed-line {
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid transparent;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scanLine {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

.agent-header {
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.agent-status-dot {
  width: 6px;
  height: 6px;
  background: #00ff00;
  border-radius: 50%;
  box-shadow: 0 0 8px #00ff00;
}

.agent-desc {
  font-size: 0.7rem;
  color: #888;
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 0.8rem;
}

.agent-meta {
  font-family: monospace;
  font-size: 0.6rem;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer {
  position: fixed;
  bottom: 2rem;
  width: 100%;
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.5;
  letter-spacing: 2px;
}

/* Mobile Responsiveness Improvements */
@media (max-width: 768px) {
  .container {
    padding: 2rem;
    max-width: 85%;
    border-radius: 40px;
  }

  .logo {
    font-size: 1.8rem;
  }

  .tagline {
    font-size: 0.65rem;
    letter-spacing: 2px;
  }

  .agent-tooltip {
    left: 2rem !important;
    top: auto !important;
    bottom: 6rem !important;
    width: calc(100% - 4rem);
    border-left: 2px solid #fff;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    filter: blur(10px);
  }

  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes breathe {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }

  50% {
    transform: scale(1.5);
    opacity: 0.8;
  }

  100% {
    transform: scale(1);
    opacity: 0.3;
  }
}