:root {
  --bg: #fafafa;
  --bg-alt: #f0f0f0;
  --bg-code: #1e1e2e;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --accent: #f97316;
  --accent-dark: #ea580c;
  --border: #e5e7eb;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* Container */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-mono);
  font-weight: 700;
  line-height: 1.3;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

h2::before {
  content: "# ";
  color: var(--accent);
  font-weight: 400;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: var(--accent-dark);
}

/* Nav */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

nav .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  overflow-x: auto;
}

nav .nav-brand {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

nav .nav-logo {
  height: 22px;
  width: auto;
}

nav a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

nav a:hover {
  color: var(--accent);
}

/* Sections */
section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type {
  border-bottom: none;
}

/* Hero */
.hero {
  text-align: center;
  padding: 5rem 0 4rem;
}

.hero-logo {
  max-width: 420px;
  width: 100%;
  margin-bottom: 1.5rem;
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.hero-tagline::after {
  content: "_";
  animation: blink 1s step-end infinite;
  color: var(--accent);
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-install {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  background: var(--bg-code);
  color: #cdd6f4;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  margin-bottom: 2rem;
}

.hero-install .prompt {
  color: var(--accent);
  user-select: none;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-badges img {
  height: 20px;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  transition: all 0.15s;
}

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

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

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

/* Feature bullets */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.feature-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.feature p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Section image */
.section-img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* Inline code */
code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-alt);
  padding: 0.15em 0.35em;
  border-radius: 3px;
}

/* Comparison grid */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.compare-card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.compare-card-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.compare-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Benchmark table */
.bench-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.bench-table th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid var(--border);
}

.bench-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.bench-table td:nth-child(2),
.bench-table td:nth-child(4) {
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.bench-table tr.highlight td {
  color: var(--accent-dark);
  font-weight: 600;
}

.bench-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* Code blocks */
.highlight {
  border-radius: 8px;
  overflow: hidden;
}

.highlight pre {
  margin: 0;
}

.highlight pre code {
  background: transparent;
  padding: 0;
}

.highlight pre code span {
  background: transparent !important;
}

pre {
  position: relative;
  background: var(--bg-code);
  color: #cdd6f4;
  border-radius: 8px;
  padding: 1.25rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 1rem 0;
}

pre::before {
  content: "● ● ●";
  display: block;
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  color: #585b70;
  margin-bottom: 0.75rem;
}

/* Section link */
.section-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-top: 1.5rem;
}

.section-link::after {
  content: " →";
}

/* Footer */
footer {
  padding: 2rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

footer a {
  color: var(--text-muted);
}

footer a:hover {
  color: var(--accent);
}

footer .footer-sep {
  margin: 0 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 3rem 0 2.5rem;
  }

  .hero-logo {
    max-width: 280px;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .features,
  .compare-grid {
    grid-template-columns: 1fr;
  }

  h2 {
    font-size: 1.25rem;
  }

  section {
    padding: 3rem 0;
  }

  .bench-table {
    font-size: 0.8rem;
  }

  .bench-table td:nth-child(3) {
    display: none;
  }

  .bench-table th:nth-child(3) {
    display: none;
  }
}
