:root {
  --bg-color: #050507;
  --text-primary: #f4f4f7;
  --text-secondary: #8a8a93;
  --text-muted: #3f3f46;
  --accent-color: #a78bfa;
  --border-color: #18181b;
  --border-hover: #27272a;
  --btn-bg: #09090b;
  --btn-hover: #121214;
  --shadow-color: rgba(0, 0, 0, 0.8);
  --glow-opacity: 0.15;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  
  /* Initial Node Colors */
  --color-green: #10b981;
  --color-yellow: #f59e0b;
  --color-cyan: #06b6d4;
  --color-purple: #8b5cf6;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 800px;
  width: 100%;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.header {
  text-align: center;
}

.title {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.visualizer {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

.ascii-tree {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: left;
  white-space: pre;
  user-select: none;
  position: relative;
  height: 22.5em; /* 15 lines * 1.5 line-height */
  width: 65ch;    /* 65 characters wide */
  margin: 0 auto;
}

#floating-node {
  position: absolute;
  font-family: inherit;
  font-size: inherit;
  white-space: pre;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
}

/* Node/Text Types */
.txt {
  color: var(--text-muted);
  font-weight: 400;
  transition: color 0.3s ease;
}

.white {
  color: var(--text-primary);
  font-weight: 500;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* Connectors */
.conn {
  transition: color 0.4s ease, text-shadow 0.4s ease;
}

.green {
  color: var(--color-green);
}

.yellow {
  color: var(--color-yellow);
}

.cyan {
  color: var(--color-cyan);
}

.purple {
  color: var(--color-purple);
}

/* Footer & CTA */
.footer {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.cta-wrapper {
  display: flex;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: var(--btn-bg);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn:hover {
  background-color: var(--btn-hover);
  border-color: var(--border-hover);
}

.btn:active {
  transform: scale(0.98);
}

.icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.tagline {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Responsive adjustments */
@media (max-width: 540px) {
  .container {
    padding: 1.5rem 1rem;
  }
  
  .title {
    font-size: 1.25rem;
  }
  
  .ascii-tree {
    font-size: 0.54rem;
  }
}
