:root {
  --bg-base: #07090e;
  --bg-sidebar: #0b0f17;
  --bg-card: rgba(16, 24, 39, 0.6);
  --bg-code: #030712;
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: #06b6d4;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #06b6d4;
  --accent-glow: rgba(6, 182, 212, 0.2);
  --green: #10b981;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html {
  scroll-behavior: smooth;
}

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

body {
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.logo-icon {
  width: 28px;
  height: 28px;
  background: url('icon.svg') no-repeat center center / contain;
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}

.nav-links a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-main);
  text-decoration: none;
}

.btn-github {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 6px;
  color: var(--text-main) !important;
  font-weight: 500;
}

.btn-github:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Layout */
.layout {
  display: flex;
  max-width: 1440px;
  margin: 0 auto;
}

/* Sidebar */
.sidebar {
  width: 260px;
  flex-shrink: 0;
  height: calc(100vh - 60px);
  position: sticky;
  top: 60px;
  padding: 24px 20px;
  border-right: 1px solid var(--border);
  overflow-y: auto;
}

.sidebar-group {
  margin-bottom: 24px;
}

.sidebar-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding-left: 12px;
}

.sidebar-menu {
  list-style: none;
}

.sidebar-menu a {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-muted);
  border-radius: 6px;
  transition: all 0.15s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.sidebar-menu a.active {
  color: var(--accent);
  font-weight: 600;
}

/* Main Content */
.content {
  flex: 1;
  max-width: 860px;
  padding: 40px 48px 80px;
}

.hero {
  margin-bottom: 48px;
}

.hero-tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 9999px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Sections */
.doc-section,
h3[id],
section[id] {
  scroll-margin-top: 80px;
}

.doc-section {
  margin-bottom: 48px;
}

.doc-section h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.doc-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 12px;
}

.doc-section p {
  color: #cbd5e1;
  margin-bottom: 16px;
  font-size: 15px;
}

/* Code Blocks */
pre {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 18px;
}

code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  color: #38bdf8;
}

pre code {
  background: transparent;
  padding: 0;
  color: #e2e8f0;
}

/* Callout */
.callout {
  background: rgba(6, 182, 212, 0.05);
  border-left: 3px solid var(--accent);
  padding: 16px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 20px;
}

.callout p {
  margin: 0;
  font-size: 14px;
  color: #cbd5e1;
}

/* Download Cards */
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.download-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.download-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none !important;
  transition: transform 0.15s;
}

.btn-download:hover {
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 860px) {
  .sidebar {
    display: none;
  }
  .content {
    padding: 24px;
  }
  .download-grid {
    grid-template-columns: 1fr;
  }
}
