:root {
  --bg: #0d1117;
  --bg-alt: #10161f;
  --panel: #161b22;
  --border: #262c36;
  --text: #e6edf3;
  --text-dim: #9aa4b2;
  --accent: #4da6ff;
  --accent-hover: #7cc0ff;
  --accent-dim: #2b6cb0;
  --good: #3fb950;
  --warn: #d29922;
  --radius: 10px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

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

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: rgba(110, 118, 129, 0.15);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.brand-logo { width: 24px; height: 24px; display: block; }
.nav-links { display: flex; gap: 24px; font-size: 14px; }
.nav-links a { color: var(--text-dim); }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px 24px 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.hero h1 {
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}
.subhead {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 640px;
  margin: 0 0 28px;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #06121f; }
.btn-primary:hover { background: #6cb6ff; color: #06121f; }
.btn-secondary { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.hero-note { color: var(--text-dim); font-size: 13px; margin-top: 18px; }

.hero-shot {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}
.hero-shot img { display: block; width: 100%; height: auto; }

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.1fr 1.3fr; align-items: center; padding-top: 96px; }
  .hero h1 { font-size: 46px; }
}

/* Sections */
.section { padding: 64px 0; border-top: 1px solid var(--border); }
.section h2 {
  font-size: 28px;
  margin: 0 0 28px;
  letter-spacing: -0.01em;
}

/* Problem */
.problem-grid { display: grid; gap: 28px; }
.problem-list { color: var(--text-dim); }
.problem-list li { margin-bottom: 6px; }
.problem-answer {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.problem-answer h3 { margin-top: 0; font-size: 18px; }
.problem-answer p { color: var(--text-dim); margin-bottom: 0; }

@media (min-width: 900px) {
  .problem-grid { grid-template-columns: 1.3fr 1fr; }
}

/* Features */
.feature-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}
.feature-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.15s ease;
}
a.feature-card:hover {
  border-color: var(--accent-dim);
}
.feature-card h3 { margin: 0 0 10px; font-size: 16px; color: var(--text); }
.feature-card p { margin: 0 0 12px; color: var(--text-dim); font-size: 14.5px; }
.feature-card .feature-link { color: var(--accent); font-size: 13.5px; font-weight: 600; }

.screenshot-block { margin-top: 44px; }
.screenshot-block img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.caption { color: var(--text-dim); font-size: 13.5px; margin-top: 12px; text-align: center; }

/* Frameworks */
.framework-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  margin-bottom: 20px;
}
@media (min-width: 700px) {
  .framework-grid { grid-template-columns: 1fr 1fr; }
}
.framework-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.framework-card h3 { margin: 0 0 8px; }
.framework-status {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.framework-status.full { background: rgba(63, 185, 80, 0.15); color: var(--good); }
.framework-status.partial { background: rgba(210, 153, 34, 0.15); color: var(--warn); }
.framework-card p:last-child { color: var(--text-dim); margin-bottom: 0; font-size: 14.5px; }
.framework-note { color: var(--text-dim); font-size: 14px; max-width: 760px; }

/* Install */
.install-lead { color: var(--text-dim); max-width: 700px; }
.code-block {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  overflow-x: auto;
  font-size: 13.5px;
}
.code-block code { background: none; padding: 0; }
.install-note { color: var(--text-dim); font-size: 13.5px; }

/* Usage */
.usage-steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}
.usage-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 52px;
}
.usage-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.usage-steps h3 { margin: 4px 0 6px; font-size: 16.5px; }
.usage-steps p { margin: 0; color: var(--text-dim); }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 32px 0; }
.footer-inner p { margin: 0; color: var(--text-dim); font-size: 13.5px; }

/* Guide page */
.guide-hero { padding: 48px 0 8px; }
.guide-hero h1 { font-size: 32px; margin: 0 0 12px; }
.guide-hero p { color: var(--text-dim); max-width: 700px; }
.back-link { display: inline-block; margin-bottom: 20px; color: var(--text-dim); font-size: 14px; }
.back-link:hover { color: var(--accent); }
.guide-toc {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 700px) {
  .guide-toc { grid-template-columns: repeat(2, 1fr); }
}
.guide-toc a {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text);
  font-size: 14px;
}
.guide-toc a:hover { border-color: var(--accent-dim); }
.guide-toc .toc-num { color: var(--accent); font-weight: 700; margin-right: 8px; }

.guide-step {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 24px;
}
.guide-step-header { display: flex; align-items: baseline; gap: 14px; margin-bottom: 8px; }
.guide-step-number {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.guide-step h2 { margin: 0; font-size: 22px; }
.guide-step-lead { color: var(--text-dim); max-width: 720px; margin: 0 0 24px; }
.guide-substeps {
  list-style: none;
  counter-reset: substep;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 16px;
  max-width: 720px;
}
.guide-substeps li {
  counter-increment: substep;
  position: relative;
  padding-left: 30px;
  color: var(--text-dim);
  font-size: 14.5px;
}
.guide-substeps li::before {
  content: counter(substep) ".";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.guide-substeps strong { color: var(--text); }
.guide-shot { margin-top: 8px; }
.guide-shot img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.guide-shot.guide-shot-narrow img { max-width: 420px; }
.guide-shot.guide-shot-wide img { max-width: 900px; }
.guide-shot .caption { text-align: left; }
.guide-note {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 14px 18px;
  color: var(--text-dim);
  font-size: 13.5px;
  max-width: 720px;
  margin-top: 20px;
}
.guide-cta { padding: 48px 0; text-align: center; }
