:root {
  --bg: #080d18;
  --surface: #0e1626;
  --surface2: #16213a;
  --border: #1e2d45;
  --text: #d8e4f0;
  --text-muted: #5a7590;
  --accent: #7ecff5;
  --accent2: #3b9fd8;
  --code-bg: #0c1420;
  --code-border: #1a2e45;
}

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

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

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

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

/* Nav */
nav {
  border-bottom: 1px solid var(--border);
  background: rgba(8,13,24,.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 54px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent);
  letter-spacing: -.01em;
  display: flex;
  align-items: center;
  gap: .45rem;
}
.nav-logo svg { width: 22px; height: 22px; }
.nav-links { display: flex; gap: 1.5rem; margin-left: auto; }
.nav-links a {
  color: var(--text-muted);
  font-size: .9rem;
  transition: color .15s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* Main layout */
main { max-width: 960px; margin: 0 auto; padding: 3.5rem 1.5rem 6rem; }
.page-narrow { max-width: 720px; }

/* Hero */
.hero {
  padding: 4rem 0 3rem;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: rgba(126,207,245,.08);
  border: 1px solid rgba(126,207,245,.2);
  color: var(--accent);
  font-size: .78rem;
  font-family: 'SF Mono', 'Fira Code', Menlo, monospace;
  padding: .25rem .7rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  letter-spacing: .04em;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.12;
  margin-bottom: 1rem;
  color: #fff;
}
.hero h1 span { color: var(--accent); }
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2.2rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1.3rem;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  border: none;
}
.btn-primary {
  background: var(--accent2);
  color: #fff;
}
.btn-primary:hover { background: #4aaee5; text-decoration: none; color: #fff; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* Install snippet */
.install-box {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: 8px;
  padding: .7rem 1.1rem;
  margin: 1.8rem auto 0;
  font-family: 'SF Mono', 'Fira Code', Menlo, monospace;
  font-size: .88rem;
  color: var(--accent);
}
.install-box .prompt { color: var(--text-muted); }

/* Hero image */
.hero-img-wrap {
  margin: 3rem auto 0;
  max-width: 800px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
}
.hero-img-wrap img { width: 100%; display: block; }

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin: 3.5rem 0;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.4rem;
}
.feature-icon { margin-bottom: .8rem; }
.feature-icon img { width: 40px; height: 40px; }
.feature-card h3 {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: .35rem;
  color: #fff;
}
.feature-card p { font-size: .87rem; color: var(--text-muted); }

/* Section titles */
.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #fff;
  margin-bottom: 1.5rem;
}
.section-title.with-line {
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--border);
}

/* Blog list */
.post-list { display: flex; flex-direction: column; gap: .9rem; }
.post-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.2rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  transition: border-color .15s;
}
.post-item:hover { border-color: var(--accent2); text-decoration: none; }
.post-item h3 { font-size: .97rem; font-weight: 600; color: #fff; margin-bottom: .2rem; }
.post-item p { font-size: .85rem; color: var(--text-muted); }
.post-date { font-size: .8rem; color: var(--text-muted); white-space: nowrap; font-family: monospace; margin-top: .15rem; }

/* Content page */
.content h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #fff;
  margin-bottom: .6rem;
  line-height: 1.2;
}
.content .post-meta {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 2.2rem;
  font-family: monospace;
}
.content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 2.2rem 0 .8rem;
  letter-spacing: -.02em;
}
.content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.6rem 0 .5rem;
}
.content p { margin-bottom: 1rem; color: var(--text); }
.content ul, .content ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.content li { margin-bottom: .35rem; color: var(--text); }
.content code {
  font-family: 'SF Mono', 'Fira Code', Menlo, monospace;
  font-size: .85em;
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  padding: .1em .35em;
  border-radius: 3px;
  color: var(--accent);
}
.content pre {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: 8px;
  padding: 1.2rem 1.4rem;
  overflow-x: auto;
  margin: 1.2rem 0;
}
.content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: .86rem;
  color: #a8c8e8;
}
.content a { color: var(--accent); }
.content a:hover { color: var(--accent2); }
.content blockquote {
  border-left: 3px solid var(--accent2);
  padding-left: 1rem;
  margin: 1.2rem 0;
  color: var(--text-muted);
  font-style: italic;
}
.content .callout {
  background: rgba(126,207,245,.06);
  border: 1px solid rgba(126,207,245,.15);
  border-radius: 6px;
  padding: .9rem 1.1rem;
  margin: 1.2rem 0;
  font-size: .9rem;
}
.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: .88rem;
}
.content th {
  text-align: left;
  padding: .5rem .8rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 500;
}
.content td {
  padding: .5rem .8rem;
  border-bottom: 1px solid rgba(30,45,69,.5);
}
.content .post-img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin: 1.5rem 0;
}

/* Page header */
.page-header {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}
.page-header .breadcrumb {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: .6rem;
  font-family: monospace;
}
.page-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
}

/* Changelog */
.changelog-entry { margin-bottom: 2.5rem; }
.changelog-entry h2 {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 1rem;
}
.version-badge {
  font-family: monospace;
  font-size: .8rem;
  background: rgba(59,159,216,.12);
  border: 1px solid rgba(59,159,216,.25);
  color: var(--accent2);
  padding: .15rem .5rem;
  border-radius: 4px;
}
.changelog-date { font-size: .8rem; color: var(--text-muted); font-family: monospace; }

/* Docs sidebar layout */
.docs-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  align-items: start;
}
.docs-sidebar {
  position: sticky;
  top: 70px;
}
.docs-nav-section {
  margin-bottom: 1.5rem;
}
.docs-nav-title {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .5rem;
}
.docs-nav-links { display: flex; flex-direction: column; gap: .3rem; }
.docs-nav-links a {
  font-size: .87rem;
  color: var(--text-muted);
  padding: .25rem .5rem;
  border-radius: 4px;
  transition: all .12s;
}
.docs-nav-links a:hover,
.docs-nav-links a.active {
  color: var(--accent);
  background: rgba(126,207,245,.07);
  text-decoration: none;
}

/* Terminal screenshot */
.terminal-wrap {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 1.5rem 0;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.terminal-wrap img { width: 100%; display: block; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy { font-size: .82rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 1.2rem; }
.footer-links a { font-size: .82rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--text); text-decoration: none; }

@media (max-width: 640px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; }
  .hero h1 { font-size: 1.9rem; }
  .nav-links { gap: 1rem; }
}
