:root {
  --bg: #05070a;
  --card: #0d1117;
  --text: #e6edf3;
  --muted: #8b949e;
  --lime: #afff38;
  --lime-soft: rgba(175, 255, 56, 0.1);
  --border: #30363d;
  --radius: 8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.wrapper { 
  max-width: 1100px; 
  margin: 0 auto; 
  padding: 0 24px; 
}

header {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 7, 10, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  height: 32px;
  width: auto;
  border-radius: 4px;
}

.logo-text {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: -0.5px;
}

.logo-text span { color: var(--lime); }

.nav-links a {
  margin-left: 24px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--lime); }

.hero {
  padding: 100px 0;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  margin: 0 0 20px;
  letter-spacing: -2px;
  line-height: 1.1;
}

.hero p {
  color: var(--muted);
  font-size: 1.25rem;
  max-width: 650px;
  margin: 0 auto 40px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--lime);
  color: #000;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(175, 255, 56, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  margin-left: 12px;
}

.btn-outline:hover {
  border-color: var(--lime);
  color: var(--lime);
  background: var(--lime-soft);
}

.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 60px;
  margin: 60px 0;
}

.sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-btn {
  text-align: left;
  padding: 12px 16px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s;
}

.sidebar-btn:hover, .sidebar-btn.active {
  background: var(--lime-soft);
  color: var(--lime);
  border-color: rgba(175, 255, 56, 0.2);
}

.content-section {
  display: none;
  animation: slideIn 0.4s ease forwards;
}

.content-section.active { display: block; }

h2 { font-size: 2rem; color: var(--text); margin-top: 0; }
p { color: var(--muted); font-size: 1.1rem; }

code {
  background: #1c2128;
  padding: 4px 8px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--lime);
  font-size: 0.9em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 60px;
}

.feature-card {
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.3s;
}

.feature-card:hover { border-color: var(--lime); }
.feature-card h3 { margin-top: 0; color: var(--lime); }
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.content-section img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 20px 0;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.content-section img:hover {
  border-color: var(--lime);
  transform: scale(1.01);
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.img-caption {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  margin-top: -10px;
  margin-bottom: 20px;
  font-style: italic;
}

.screenshot-full {
  width: 100%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.content-section img {
  cursor: zoom-in; 
  transition: transform 0.3s ease;
}

#image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 7, 10, 0.96);
  backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#image-modal.active {
  opacity: 1;
}

#modal-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

#image-modal.active {
  display: flex;
}

#image-modal.active #modal-img {
  transform: scale(1);
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 850px) {
  .docs-layout { grid-template-columns: 1fr; }
  .sidebar { position: relative; top: 0; margin-bottom: 40px; }
}
pre {
  background: #1c2128;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  overflow-x: auto;
  margin: 20px 0;
}

pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: 0.875rem;
  color: var(--text);
  display: block;
  line-height: 1.7;
}

ol, ul {
  color: var(--muted);
  font-size: 1.05rem;
  padding-left: 1.4em;
  line-height: 1.9;
}

li a { color: var(--lime); }

h3 {
  color: var(--text);
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.notice {
  background: var(--lime-soft);
  border-left: 3px solid var(--lime);
  border-radius: 4px;
  padding: 14px 18px;
  margin: 20px 0;
  color: var(--text);
  font-size: 0.95rem;
}

.notice-warn {
  background: rgba(255, 190, 56, 0.08);
  border-color: #ffbe38;
}

.check-list {
  list-style: none;
  padding-left: 0;
}

.check-list li {
  padding: 5px 0 5px 28px;
  position: relative;
  font-size: 1rem;
}

.check-list li::before {
  position: absolute;
  left: 0;
  font-weight: 700;
}

.check-list li.done::before { content: "✓"; color: var(--lime); }
.check-list li.wip::before  { content: "⧗"; color: #ffbe38; }
.check-list li.planned::before { content: "○"; color: var(--muted); }

.grid-table {
  border-collapse: collapse;
  margin: 16px 0;
}

.grid-table td {
  border: 1px solid var(--border);
  padding: 14px 24px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  color: var(--lime);
  background: #1c2128;
  font-size: 1rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 20px;
  background: var(--card);
}

.faq-item h3 {
  margin-top: 0;
  color: var(--lime);
}
