/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: #e4e4e7;
  background: #09090b;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: #818cf8; text-decoration: none; transition: color 0.2s; }
a:hover { color: #a5b4fc; }
code, pre { font-family: 'JetBrains Mono', monospace; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(9,9,11,0.85); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-brand { font-weight: 700; font-size: 1.1rem; }
.brand-onechat { color: #60a5fa; }
.brand-x { color: #52525b; margin: 0 6px; }
.brand-openclaw { color: #f97316; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: #a1a1aa; font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: #e4e4e7; }
.nav-toggle { display: none; background: none; border: none; color: #e4e4e7; font-size: 1.5rem; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 8px;
  font-weight: 600; font-size: 0.9rem;
  transition: all 0.2s; cursor: pointer; border: none;
}
.btn-sm { padding: 6px 14px; font-size: 0.82rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-primary { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; }
.btn-primary:hover { background: linear-gradient(135deg, #818cf8, #a78bfa); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(99,102,241,0.3); }
.btn-outline { border: 1px solid #3f3f46; color: #e4e4e7; background: transparent; }
.btn-outline:hover { border-color: #6366f1; color: #fff; background: rgba(99,102,241,0.08); }

/* Hero */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,0.12) 0%, transparent 60%);
}
.hero-badge {
  display: inline-block;
  padding: 6px 16px; border-radius: 50px;
  background: rgba(34,197,94,0.12); color: #4ade80;
  font-size: 0.82rem; font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(34,197,94,0.2);
}
.hero h1 { font-size: 3.4rem; font-weight: 800; line-height: 1.15; margin-bottom: 20px; letter-spacing: -0.02em; }
.gradient-text {
  background: linear-gradient(135deg, #60a5fa, #818cf8, #c084fc);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub { font-size: 1.2rem; color: #a1a1aa; max-width: 600px; margin: 0 auto 36px; }
.hero-ctas { display: flex; gap: 16px; justify-content: center; margin-bottom: 60px; flex-wrap: wrap; }
.hero-stats { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.stat-num { font-size: 2rem; font-weight: 800; color: #fff; }
.stat-label { font-size: 0.82rem; color: #71717a; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }

/* Sections */
.section { padding: 100px 0; }
.section-dark { background: #0f0f12; }
.section-title { font-size: 2.2rem; font-weight: 800; text-align: center; margin-bottom: 12px; }
.section-sub { font-size: 1.1rem; color: #a1a1aa; text-align: center; max-width: 640px; margin: 0 auto 48px; }

/* Comparison */
.comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 800px; margin: 0 auto; }
.comparison-card {
  padding: 32px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
}
.comparison-card h3 { font-size: 1.2rem; margin-bottom: 20px; }
.comparison-card ul { list-style: none; }
.comparison-card li { padding: 8px 0; color: #a1a1aa; font-size: 0.95rem; border-bottom: 1px solid rgba(255,255,255,0.04); }
.comparison-card li:last-child { border-bottom: none; }
.comparison-card.bad { background: rgba(239,68,68,0.04); border-color: rgba(239,68,68,0.15); }
.comparison-card.bad h3 { color: #f87171; }
.comparison-card.bad li::before { content: "✗ "; color: #f87171; }
.comparison-card.good { background: rgba(34,197,94,0.04); border-color: rgba(34,197,94,0.15); }
.comparison-card.good h3 { color: #4ade80; }
.comparison-card.good li::before { content: "✓ "; color: #4ade80; }

/* Architecture */
.architecture {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 40px 20px; margin-bottom: 40px;
  background: rgba(255,255,255,0.02); border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  overflow-x: auto;
}
.arch-step {
  text-align: center; padding: 20px 16px;
  border-radius: 12px; min-width: 100px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}
.arch-step.highlight { background: rgba(99,102,241,0.1); border-color: rgba(99,102,241,0.3); }
.arch-icon { font-size: 2rem; margin-bottom: 8px; }
.arch-label { font-size: 0.78rem; color: #a1a1aa; font-weight: 500; line-height: 1.4; }
.arch-label small { color: #6366f1; }
.arch-arrow { color: #3f3f46; font-size: 1.5rem; font-weight: 300; flex-shrink: 0; }

.flow-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.flow-card {
  padding: 24px; border-radius: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
}
.flow-card h4 { margin-bottom: 8px; font-size: 1rem; }
.flow-card p { font-size: 0.9rem; color: #a1a1aa; }

/* Steps */
.steps { max-width: 700px; margin: 0 auto 40px; }
.step {
  display: flex; gap: 24px; padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.step:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 12px; font-weight: 800; font-size: 1.1rem; color: #fff;
}
.step-content h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.step-content p { font-size: 0.92rem; color: #a1a1aa; }

.setup-note {
  max-width: 700px; margin: 0 auto;
  padding: 24px; border-radius: 12px;
  background: rgba(99,102,241,0.06);
  border: 1px solid rgba(99,102,241,0.15);
}
.setup-note h4 { margin-bottom: 12px; }
.setup-note ul { list-style: none; }
.setup-note li { padding: 4px 0; color: #a1a1aa; font-size: 0.9rem; }
.setup-note li::before { content: "• "; color: #6366f1; }

/* Code blocks */
.code-block {
  background: #18181b; border: 1px solid #27272a;
  border-radius: 10px; padding: 16px 20px;
  overflow-x: auto; margin-top: 12px;
}
.code-block code, .code-block pre {
  font-size: 0.82rem; line-height: 1.6;
  color: #a5b4fc; white-space: pre;
}
.code-block pre { margin: 0; }

/* Tech grid */
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tech-card {
  padding: 28px; border-radius: 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
}
.tech-card h4 { margin-bottom: 16px; font-size: 1rem; }
.tech-table { width: 100%; font-size: 0.85rem; }
.tech-table td { padding: 8px 4px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.tech-table td:first-child { color: #a5b4fc; font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; }
.tech-table td:last-child { color: #a1a1aa; }

/* Latency */
.latency-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.85rem; color: #a1a1aa; border-bottom: 1px solid rgba(255,255,255,0.04); }
.latency-row.total { border-top: 2px solid rgba(99,102,241,0.3); border-bottom: none; margin-top: 4px; padding-top: 10px; color: #e4e4e7; }
.small-note { font-size: 0.78rem; color: #52525b; margin-top: 12px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.faq-item {
  padding: 24px; border-radius: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
}
.faq-item h4 { font-size: 0.95rem; margin-bottom: 8px; color: #e4e4e7; }
.faq-item p { font-size: 0.88rem; color: #a1a1aa; }

/* CTA */
.cta-section {
  text-align: center; padding: 100px 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(99,102,241,0.1) 0%, transparent 60%);
}
.cta-section h2 { font-size: 2.4rem; font-weight: 800; margin-bottom: 12px; }
.cta-section p { font-size: 1.1rem; color: #a1a1aa; margin-bottom: 32px; }

/* Footer */
.footer { border-top: 1px solid rgba(255,255,255,0.06); padding: 40px 0 32px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: #71717a; font-size: 0.85rem; }
.footer-links a:hover { color: #e4e4e7; }
.footer-meta { text-align: center; }
.footer-meta p { font-size: 0.78rem; color: #3f3f46; }

/* Language switcher */
.lang-switch {
  padding: 4px 12px; border-radius: 6px;
  background: rgba(255,255,255,0.06); font-weight: 600;
  font-size: 0.82rem !important;
}
.lang-switch:hover { background: rgba(255,255,255,0.12); color: #fff !important; }

/* Screenshot placeholders */
.screenshot-placeholder {
  margin-top: 16px; border-radius: 12px;
  border: 2px dashed rgba(99,102,241,0.3);
  background: rgba(99,102,241,0.04);
  overflow: hidden;
}
.placeholder-inner {
  padding: 40px 24px; text-align: center;
  color: #6366f1; font-size: 0.9rem; font-weight: 500;
}
.screenshot-placeholder img {
  width: 100%; display: block; border-radius: 10px;
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: rgba(9,9,11,0.95); padding: 24px; gap: 16px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-toggle { display: block; }
  .hero { padding: 120px 0 60px; }
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 1rem; }
  .hero-stats { gap: 24px; }
  .stat-num { font-size: 1.5rem; }
  .comparison { grid-template-columns: 1fr; }
  .architecture { flex-wrap: wrap; gap: 12px; padding: 24px 16px; }
  .arch-arrow { display: none; }
  .flow-detail { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 16px; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .section { padding: 60px 0; }
  .section-title { font-size: 1.7rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .step { flex-direction: column; gap: 12px; }
}
