:root {
  --primary: #0078d4;
  --primary-dark: #005a9e;
  --bg: #f5f5f5;
  --bg-card: #fff;
  --text: #333;
  --text-light: #666;
  --border: #e0e0e0;
}

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

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header */
header {
  background: var(--primary);
  color: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.logo {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
}
nav a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  margin-left: 24px;
  font-size: 14px;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: all .2s;
}
nav a:hover, nav a.active {
  color: #fff;
  border-bottom-color: #fff;
}

/* Main */
main { flex: 1; padding: 40px 0; }

/* Hero */
.hero {
  text-align: center;
  padding: 60px 0 40px;
}
.hero h1 {
  font-size: 2.4em;
  color: var(--primary);
  margin-bottom: 16px;
}
.hero p {
  font-size: 1.15em;
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto 28px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 28px;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid var(--primary);
  transition: all .2s;
  margin: 4px;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Cards */
.card {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  margin-bottom: 20px;
}
.card h3 { color: var(--primary); margin-bottom: 10px; font-size: 1.15em; }
.card p { color: var(--text-light); line-height: 1.7; }

/* Features */
.features { padding: 20px 0; }
.features h2 { text-align: center; color: var(--primary); font-size: 1.8em; }

/* Stats */
.stats { padding: 40px 0; text-align: center; }
.stat span { display: block; font-size: 2.4em; font-weight: 700; color: var(--primary); }
.stat p { color: var(--text-light); font-size: 0.95em; margin-top: 4px; }

/* Pricing */
.pricing-grid { margin-top: 32px; }
.pricing-card { text-align: center; position: relative; }
.pricing-card.featured { border: 2px solid var(--primary); transform: scale(1.03); }
.pricing-card .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 4px 16px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}
.price {
  font-size: 2.2em;
  font-weight: 700;
  color: var(--text);
  margin: 16px 0;
}
.price small { font-size: 0.45em; color: var(--text-light); }
.pricing-card ul {
  list-style: none;
  text-align: left;
  margin: 20px 0;
}
.pricing-card li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-light);
  font-size: 14px;
}
.pricing-card li:before { content: "✓ "; color: var(--primary); font-weight: 600; }

/* Docs Layout */
.docs-layout { display: flex; gap: 40px; }
.sidebar {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 76px;
  align-self: flex-start;
}
.sidebar h3 { color: var(--primary); margin-bottom: 12px; }
.sidebar ul { list-style: none; }
.sidebar li { margin: 8px 0; }
.sidebar a { color: var(--text-light); text-decoration: none; font-size: 14px; }
.sidebar a:hover { color: var(--primary); }
.docs-content { flex: 1; min-width: 0; }
.docs-content h2 { color: var(--primary); margin: 32px 0 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.docs-content h2:first-of-type { border-top: none; margin-top: 16px; }
.docs-content h3 { margin: 20px 0 8px; }
.docs-content ul { margin: 8px 0 16px 20px; }
.docs-content li { margin: 4px 0; color: var(--text-light); }
pre {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 16px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 12px 0;
  font-size: 13px;
  line-height: 1.5;
}
code { font-family: 'Cascadia Code', Consolas, monospace; }
p code { background: #f0f0f0; padding: 2px 6px; border-radius: 3px; font-size: 0.9em; }
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
th, td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
th { background: var(--bg); font-weight: 600; }

.subtitle { text-align: center; color: var(--text-light); font-size: 1.1em; margin-bottom: 8px; }

/* Footer */
footer {
  text-align: center;
  padding: 28px 0;
  color: var(--text-light);
  font-size: 13px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
footer a { color: var(--primary); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.8em; }
  .docs-layout { flex-direction: column; }
  .sidebar { width: 100%; position: static; }
  header .container { flex-direction: column; height: auto; padding: 12px 20px; }
  nav { margin-top: 8px; }
  nav a { margin: 0 12px 0 0; }
}
