:root {
  --bg:       #10131a;
  --bg2:      #161b26;
  --bg3:      #1c2130;
  --border:   #252c3d;
  --text:     #d4d8e2;
  --muted:    #8892a8;
  --accent:   #e08a30;
  --accent2:  #c87820;
  --link:     #e9a055;
  --code-bg:  #1a1f2e;
  --radius:   6px;
}

* { 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", Helvetica, Arial, sans-serif;
  line-height: 1.65;
  min-height: 100vh;
}

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

/* ── Layout ── */
.wrap    { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.wrap-lg { max-width: 1060px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ── */
nav {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky; top: 0; z-index: 99;
}
nav .inner {
  max-width: 1060px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 32px; height: 54px;
}
.nav-logo {
  font-weight: 700; font-size: 1.05rem; color: var(--text);
  display: flex; align-items: center; gap: 9px; letter-spacing: -.02em;
}
.nav-logo svg { flex-shrink: 0; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: .9rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.active { color: var(--accent); }

/* ── Hero ── */
.hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
}
.hero-badge {
  display: inline-block;
  background: rgba(224,138,48,.12);
  color: var(--accent);
  font-size: .78rem; font-weight: 600; letter-spacing: .06em;
  padding: 4px 12px; border-radius: 20px;
  border: 1px solid rgba(224,138,48,.25);
  margin-bottom: 20px; text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 800; letter-spacing: -.04em; line-height: 1.15;
  margin-bottom: 18px;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 1.15rem; color: var(--muted); max-width: 560px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius);
  font-size: .93rem; font-weight: 600; cursor: pointer;
  transition: opacity .15s;
}
.btn:hover { opacity: .85; text-decoration: none; }
.btn-primary { background: var(--accent); color: #0e0e0e; }
.btn-ghost   { border: 1px solid var(--border); color: var(--muted); background: transparent; }

/* ── Hero image ── */
.hero-img {
  margin-top: 48px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}
.hero-img img { width: 100%; display: block; }

/* ── Install strip ── */
.install-strip {
  margin: 40px 0 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  display: flex; align-items: center; gap: 12px;
}
.install-strip .prompt { color: var(--muted); font-family: monospace; font-size: .9rem; }
.install-strip code { font-family: monospace; font-size: .9rem; color: var(--accent); }

/* ── Features grid ── */
.features { padding: 64px 0; }
.features h2, .section-title {
  font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em;
  margin-bottom: 8px;
}
.section-sub { color: var(--muted); margin-bottom: 40px; }
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px;
}
.feature-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 20px;
}
.feature-icon {
  width: 36px; height: 36px; margin-bottom: 12px;
  background: rgba(224,138,48,.1);
  border: 1px solid rgba(224,138,48,.2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.feature-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.feature-card p  { font-size: .9rem; color: var(--muted); line-height: 1.55; }

/* ── Code block ── */
pre {
  background: var(--code-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px;
  overflow-x: auto; font-size: .875rem; line-height: 1.6;
}
code { font-family: "SFMono-Regular", Menlo, Consolas, monospace; font-size: .875rem; }
:not(pre) > code {
  background: var(--code-bg); padding: 2px 6px;
  border-radius: 4px; font-size: .855rem; color: var(--accent);
}

/* ── Terminal screenshot ── */
.terminal-wrap {
  margin: 32px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.terminal-wrap img { width: 100%; display: block; }

/* ── Blog list ── */
.posts-list { list-style: none; display: flex; flex-direction: column; gap: 1px; }
.post-item {
  display: flex; gap: 24px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.post-date { color: var(--muted); font-size: .85rem; min-width: 96px; font-variant-numeric: tabular-nums; }
.post-link { font-weight: 500; }
.post-tag  {
  font-size: .75rem; padding: 2px 8px; border-radius: 12px;
  background: rgba(224,138,48,.1); color: var(--accent);
  border: 1px solid rgba(224,138,48,.2); margin-left: 8px; white-space: nowrap;
}

/* ── Article ── */
.article { padding: 56px 0 80px; }
.article-header { margin-bottom: 40px; }
.article-header .meta { color: var(--muted); font-size: .88rem; margin-bottom: 12px; }
.article-header h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.article-cover { margin: 32px 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.article-cover img { width: 100%; display: block; }
.article h2 { font-size: 1.3rem; font-weight: 700; margin: 40px 0 12px; letter-spacing: -.02em; }
.article h3 { font-size: 1.05rem; font-weight: 600; margin: 28px 0 10px; }
.article p  { margin-bottom: 16px; }
.article ul, .article ol { padding-left: 22px; margin-bottom: 16px; }
.article li { margin-bottom: 6px; }
.article blockquote {
  border-left: 3px solid var(--accent); padding: 12px 20px;
  background: var(--bg2); border-radius: 0 var(--radius) var(--radius) 0;
  margin: 20px 0; color: var(--muted);
}

/* ── Sidebar layout (docs) ── */
.docs-layout { display: flex; gap: 0; min-height: calc(100vh - 54px); }
.docs-sidebar {
  width: 230px; flex-shrink: 0;
  border-right: 1px solid var(--border);
  padding: 32px 20px;
  position: sticky; top: 54px; height: calc(100vh - 54px); overflow-y: auto;
}
.docs-sidebar h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 20px 0 8px; }
.docs-sidebar h4:first-child { margin-top: 0; }
.docs-nav { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.docs-nav a {
  display: block; padding: 5px 10px; border-radius: 4px;
  font-size: .88rem; color: var(--muted);
}
.docs-nav a:hover { background: var(--bg2); color: var(--text); text-decoration: none; }
.docs-nav a.active { background: rgba(224,138,48,.1); color: var(--accent); }
.docs-content { flex: 1; padding: 40px 48px; max-width: 760px; }
.docs-content h1 { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: 8px; }
.docs-content .lead { color: var(--muted); font-size: 1.05rem; margin-bottom: 36px; border-bottom: 1px solid var(--border); padding-bottom: 24px; }
.docs-content h2 { font-size: 1.25rem; font-weight: 700; margin: 36px 0 10px; letter-spacing: -.02em; }
.docs-content h3 { font-size: 1rem; font-weight: 600; margin: 24px 0 8px; }
.docs-content p { margin-bottom: 14px; }
.docs-content ul, .docs-content ol { padding-left: 22px; margin-bottom: 14px; }
.docs-content li { margin-bottom: 5px; }
.docs-content pre { margin: 16px 0; }

/* ── Callout ── */
.callout {
  display: flex; gap: 12px; padding: 14px 18px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); margin: 20px 0;
}
.callout.tip   { border-left: 3px solid var(--accent); }
.callout.warn  { border-left: 3px solid #e05c30; }
.callout .callout-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.callout p { margin: 0; font-size: .9rem; color: var(--muted); }

/* ── Table ── */
table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .9rem; }
th { text-align: left; padding: 10px 14px; background: var(--bg2); color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
td { padding: 10px 14px; border-top: 1px solid var(--border); }

/* ── Changelog ── */
.changelog-entry { padding: 32px 0; border-bottom: 1px solid var(--border); }
.cl-version { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.cl-version h2 { font-size: 1.2rem; font-weight: 700; }
.cl-date { font-size: .84rem; color: var(--muted); }
.cl-tag  { font-size: .74rem; padding: 2px 9px; border-radius: 12px; font-weight: 600; }
.cl-tag.latest { background: rgba(224,138,48,.15); color: var(--accent); border: 1px solid rgba(224,138,48,.3); }
.cl-tag.stable { background: rgba(80,180,100,.1); color: #6dca85; border: 1px solid rgba(80,180,100,.25); }
.changelog-entry ul { padding-left: 20px; }
.changelog-entry li { margin-bottom: 5px; font-size: .93rem; }

/* ── About/Now page ── */
.prose { padding: 56px 0 80px; max-width: 680px; }
.prose h1 { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: 32px; }
.prose h2 { font-size: 1.2rem; font-weight: 700; margin: 36px 0 10px; letter-spacing: -.02em; }
.prose p  { margin-bottom: 16px; color: var(--text); }
.prose ul { padding-left: 20px; margin-bottom: 16px; }
.prose li { margin-bottom: 6px; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  margin-top: auto;
}
footer .inner {
  max-width: 1060px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  flex-wrap: wrap;
}
.footer-logo { font-size: .9rem; font-weight: 600; color: var(--muted); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: .85rem; color: var(--muted); }
.footer-links a:hover { color: var(--text); text-decoration: none; }

/* ── Responsive ── */
@media (max-width: 720px) {
  .docs-layout { flex-direction: column; }
  .docs-sidebar { width: 100%; height: auto; position: static; border-right: none; border-bottom: 1px solid var(--border); padding: 20px; }
  .docs-content { padding: 24px 16px; }
  nav .inner { gap: 16px; }
  .nav-links { gap: 14px; }
  .hero { padding: 48px 0 40px; }
}
