:root {
  --bg-color: #0b0914;
  --bg-secondary: #131024;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent-primary: #8b5cf6;
  --accent-hover: #a78bfa;
  --accent-secondary: #ec4899;
  --glass-bg: rgba(30, 27, 46, 0.5);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --font-main: 'Inter', -apple-system, sans-serif;
  --font-mono: 'Fira Code', monospace;
  
  --agent-extractor: #10b981;
  --agent-processor: #f59e0b;
  --agent-researcher: #8b5cf6;
  --agent-clarifier: #ef4444;
  --agent-assembler: #ec4899;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

::selection {
  background: var(--accent-primary);
  color: #fff;
}

/* Background Blobs for vibe */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.4;
  animation: float 20s infinite ease-in-out alternate;
}
.blob-1 { top: -100px; left: -100px; width: 400px; height: 400px; background: var(--accent-primary); }
.blob-2 { top: 40%; right: -200px; width: 500px; height: 500px; background: var(--accent-secondary); animation-delay: -5s; }
.blob-3 { bottom: -200px; left: 20%; width: 600px; height: 600px; background: var(--agent-processor); animation-delay: -10s; opacity: 0.2;}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, -50px) scale(1.1); }
  100% { transform: translate(-30px, 30px) scale(0.9); }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.highlight {
  color: var(--accent-primary);
}
.highlight-text {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

/* Glass panel utility */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 16px;
}

/* --- Navigation --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 9, 20, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 1rem 0;
}
.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-text {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
}
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text-primary);
}
.github-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  color: black !important;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600 !important;
  transition: transform 0.2s, background 0.2s !important;
}
.github-btn:hover {
  transform: translateY(-2px);
  background: #f0f0f0;
}

/* --- Hero Section --- */
.hero {
  padding: 6rem 0;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
}
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-hover);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, #fff, #a1a1aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}
.hero-description {
  font-size: 1rem;
  color: var(--text-secondary);
  opacity: 0.8;
  margin-bottom: 2.5rem;
}
.code-install {
  display: inline-flex;
  align-items: center;
  background: #000;
  border: 1px solid #333;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #10b981;
}

/* --- Animation Window --- */
.animation-window {
  width: 100%;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}
.window-header {
  background: rgba(0,0,0,0.4);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
}
.window-controls {
  display: flex;
  gap: 6px;
  margin-right: 1rem;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.window-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  opacity: 0.8;
  margin: 0 auto;
  transform: translateX(-24px); /* offset for dots */
}
.window-body {
  position: relative;
  width: 100%;
  background: var(--bg-secondary);
  line-height: 0;
}
#factory-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Sections --- */
.section {
  padding: 6rem 0;
}
.dark-bg {
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.02);
}
.section-header {
  margin-bottom: 4rem;
}
.section-header.center {
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
}

/* --- Features Grid --- */
.grid-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.feature-card {
  padding: 2.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
.extractor-bg { background: rgba(16, 185, 129, 0.15); color: var(--agent-extractor); border: 1px solid rgba(16, 185, 129, 0.3); }
.processor-bg { background: rgba(245, 158, 11, 0.15); color: var(--agent-processor); border: 1px solid rgba(245, 158, 11, 0.3); }
.researcher-bg { background: rgba(139, 92, 246, 0.15); color: var(--agent-researcher); border: 1px solid rgba(139, 92, 246, 0.3); }
.clarifier-bg { background: rgba(239, 68, 68, 0.15); color: var(--agent-clarifier); border: 1px solid rgba(239, 68, 68, 0.3); }
.assembler-bg { background: rgba(236, 72, 153, 0.15); color: var(--agent-assembler); border: 1px solid rgba(236, 72, 153, 0.3); }

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.feature-card code {
  color: #fff;
  background: rgba(255,255,255,0.1);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}

/* --- Split Layout / Architecture --- */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split-text h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
.split-text p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}
.check-list {
  list-style: none;
}
.check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--agent-extractor);
  font-weight: bold;
}
.check-list li strong {
  color: var(--text-primary);
}
.code-snippet pre {
  margin: 0;
  padding: 2rem;
  overflow-x: auto;
}
.code-snippet code {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #e2e8f0;
}
/* simple manual syntax highlighting */
.language-xml .tag { color: #ec4899; }
.language-xml .attr { color: #8b5cf6; }

/* --- Commands --- */
.commands-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}
.command-row {
  display: flex;
  align-items: center;
  padding: 1.5rem 2rem;
}
.cmd-code {
  flex: 0 0 35%;
}
.cmd-code code {
  font-family: var(--font-mono);
  color: var(--accent-primary);
  background: rgba(139, 92, 246, 0.1);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}
.cmd-desc {
  flex: 1;
  color: var(--text-secondary);
}

/* --- Footer --- */
footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 4rem 0;
  text-align: center;
}
.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.footer-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.tagline {
  margin-top: 0.5rem;
  color: var(--accent-primary) !important;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-layout, .split-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .command-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}
@media (max-width: 768px) {
  .hero-title { font-size: 3rem; }
  .grid-features { grid-template-columns: 1fr; }
  .feature-card[style*="span 2"] { grid-column: span 1 !important; flex-direction: column !important; text-align: center !important; }
}
