:root {
  --bg: #0a0b0f;
  --bg-raised: #12141a;
  --bg-card: #16181f;
  --fg: #e4e1dc;
  --fg-muted: #6e6b68;
  --fg-dim: #3a3835;
  --accent: #00e5c8;
  --accent-dim: rgba(0, 229, 200, 0.12);
  --accent-border: rgba(0, 229, 200, 0.25);
  --font-display: 'JetBrains Mono', monospace;
  --font-body: 'Space Grotesk', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 11, 15, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--fg-dim);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--fg); }
.nav-actions { margin-left: 16px; }
.nav-github {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--fg-dim);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  transition: all 0.15s;
}
.nav-github:hover { border-color: var(--accent-border); color: var(--accent); }

/* HERO */
.hero {
  max-width: 1160px;
  margin: 0 auto;
  padding: 96px 24px 80px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--accent-border);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  margin-bottom: 28px;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 24px;
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
}
.hero-sub {
  max-width: 520px;
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}
.hero-cta-group {
  display: flex;
  gap: 12px;
  margin-bottom: 56px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--accent);
  color: #0a0b0f;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.88; }
.btn-primary.btn-large { padding: 15px 30px; font-size: 15px; border-radius: 10px; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid var(--fg-dim);
  color: var(--fg-muted);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s;
}
.btn-ghost:hover { border-color: var(--accent-border); color: var(--fg); }
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
}
.stat {
  display: flex;
  flex-direction: column;
  padding: 0 28px;
}
.stat:first-child { padding-left: 0; }
.stat-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 12px;
  color: var(--fg-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.stat-sep {
  width: 1px;
  height: 36px;
  background: var(--fg-dim);
  flex-shrink: 0;
}

/* DEMO SECTION */
.demo-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 100px;
}
.demo-label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 32px;
}
.demo-label-line { flex: 1; height: 1px; background: var(--fg-dim); }
.demo-browser {
  border: 1px solid var(--fg-dim);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-raised);
}
.browser-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--fg-dim);
  background: var(--bg-card);
}
.browser-dots { display: flex; gap: 6px; }
.browser-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--fg-dim); }
.browser-url {
  flex: 1;
  text-align: center;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--fg-muted);
  padding: 5px 12px;
  border: 1px solid var(--fg-dim);
  border-radius: 6px;
  background: var(--bg);
}
.browser-body { padding: 24px; }
.agent-panel {
  background: var(--bg-card);
  border: 1px solid var(--fg-dim);
  border-radius: 10px;
  overflow: hidden;
}
.agent-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--fg-dim);
  background: var(--bg-raised);
}
.agent-avatar {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--accent);
  color: #0a0b0f;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.agent-info { display: flex; flex-direction: column; gap: 2px; }
.agent-name { font-size: 13px; font-weight: 600; }
.agent-status { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--fg-muted); }
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
.agent-messages { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.msg { border-radius: 8px; padding: 10px 14px; font-size: 13px; line-height: 1.5; }
.msg-user { background: var(--accent-dim); color: var(--fg); border: 1px solid var(--accent-border); }
.msg-agent { background: var(--bg-raised); border: 1px solid var(--fg-dim); }
.msg-thinking { margin-bottom: 10px; }
.thinking-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}
.msg-actions { display: flex; flex-direction: column; gap: 6px; }
.action {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--fg-muted);
  font-family: var(--font-display);
}
.action.done { color: var(--fg-muted); }
.action.active { color: var(--accent); }
.agent-input { padding: 12px 16px; border-top: 1px solid var(--fg-dim); }
.input-field {
  padding: 10px 14px;
  border: 1px solid var(--fg-dim);
  border-radius: 8px;
  font-size: 13px;
  color: var(--fg-muted);
  font-family: var(--font-body);
  background: var(--bg);
}

/* PROVIDERS */
.providers-section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 100px 24px;
  text-align: center;
}
.section-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin-bottom: 16px;
}
.section-sub {
  max-width: 480px;
  margin: 0 auto 56px;
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.7;
}
.providers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.provider-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 16px;
  border: 1px solid var(--fg-dim);
  border-radius: 10px;
  background: var(--bg-raised);
  transition: border-color 0.2s;
}
.provider-card:hover { border-color: var(--accent-border); }
.provider-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.p-claude { background: rgba(0, 229, 200, 0.12); color: var(--accent); }
.p-gpt { background: rgba(0, 229, 200, 0.08); color: var(--accent); }
.p-gemini { background: rgba(0, 229, 200, 0.08); color: var(--accent); }
.p-kimi { background: rgba(0, 229, 200, 0.08); color: var(--accent); }
.p-local { background: rgba(0, 229, 200, 0.08); color: var(--accent); }
.p-openrouter { background: rgba(0, 229, 200, 0.08); color: var(--accent); }
.provider-name { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--fg); }
.provider-sub { font-size: 12px; color: var(--fg-muted); }
.providers-note { font-size: 12px; color: var(--fg-muted); font-family: var(--font-display); }

/* FEATURES */
.features-section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px 100px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--fg-dim);
  border: 1px solid var(--fg-dim);
  border-radius: 12px;
  overflow: hidden;
}
.feature-card {
  background: var(--bg-raised);
  padding: 32px 28px;
}
.feature-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 14px;
}
.feature-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.feature-desc { font-size: 14px; color: var(--fg-muted); line-height: 1.65; }

/* OPEN SOURCE */
.open-source-section {
  background: var(--bg-raised);
  border-top: 1px solid var(--fg-dim);
  border-bottom: 1px solid var(--fg-dim);
}
.open-source-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 96px 24px;
  text-align: center;
}
.open-source-badge {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--accent-border);
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}
.open-source-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin-bottom: 20px;
}
.open-source-body {
  max-width: 560px;
  margin: 0 auto 48px;
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.7;
}
.open-source-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--fg-dim);
  border: 1px solid var(--fg-dim);
  border-radius: 10px;
  overflow: hidden;
  max-width: 700px;
  margin: 0 auto;
}
.compare-col {
  background: var(--bg-raised);
  padding: 24px 28px;
  text-align: left;
}
.compare-header {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--fg-muted);
  letter-spacing: 0.03em;
  margin-bottom: 14px;
}
.compare-items { display: flex; flex-direction: column; gap: 8px; }
.compare-items span { font-size: 13px; color: var(--fg-muted); }
.compare-right .compare-items span { color: var(--fg); }

/* MANIFESTO */
.manifesto-section {
  background: var(--bg);
  border-bottom: 1px solid var(--fg-dim);
}
.manifesto-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 96px 24px;
}
.manifesto-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.manifesto-quote {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--fg);
  border-left: 2px solid var(--accent);
  padding-left: 28px;
  margin-bottom: 28px;
  font-style: normal;
}
.manifesto-body {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.75;
  padding-left: 28px;
}

/* CLOSING */
.closing-section { text-align: center; }
.closing-inner { max-width: 600px; margin: 0 auto; padding: 100px 24px; }
.closing-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 16px;
}
.closing-sub { font-size: 17px; color: var(--fg-muted); margin-bottom: 36px; }
.closing-note { font-size: 13px; color: var(--fg-muted); margin-top: 16px; font-family: var(--font-display); }

/* FOOTER */
.footer {
  border-top: 1px solid var(--fg-dim);
  background: var(--bg-raised);
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 60px 24px 40px;
  display: flex;
  gap: 80px;
  justify-content: space-between;
}
.footer-brand { max-width: 220px; }
.footer-tagline { font-size: 14px; color: var(--fg-muted); margin-top: 12px; line-height: 1.6; }
.footer-links { display: flex; gap: 60px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 14px;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--fg); }
.footer-bottom {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 24px 32px;
  border-top: 1px solid var(--fg-dim);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--fg-muted);
  font-family: var(--font-display);
}

/* MOBILE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .hero { padding: 64px 24px 56px; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .stat-sep { display: none; }
  .providers-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .open-source-compare { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 40px; }
  .footer-links { flex-wrap: wrap; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .demo-browser { overflow-x: auto; }
  .agent-panel { min-width: 280px; }
}