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

:root {
  --bg: #000;
  --bg-1: #0a0a0a;
  --bg-2: #111;
  --border: #1f1f1f;
  --border-2: #2a2a2a;
  --text: #ededed;
  --text-2: #a1a1a1;
  --text-3: #666;
  --accent: #fff;
  --purple: #d95767;
  --purple-dim: rgba(217, 87, 103, 0.15);
  --green: #4ade80;
  --yellow: #facc15;
  --red: #f87171;
  --radius: 8px;
  --radius-lg: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--accent); }
.nav-github {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-2) !important;
  border-radius: var(--radius);
  padding: 5px 12px !important;
  color: var(--text) !important;
  font-size: 13px !important;
}
.nav-github:hover {
  border-color: #444 !important;
  background: var(--bg-2);
}

/* ── Hero ── */
.hero {
  padding: 100px 24px 60px;
  text-align: center;
}
.hero-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--purple);
  border: 1px solid rgba(192,132,252,0.3);
  border-radius: 100px;
  padding: 4px 12px;
  background: var(--purple-dim);
}
.hero-ascii {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(5px, 1.1vw, 13px);
  line-height: 1.4;
  color: var(--purple);
  background: none;
  border: none;
  padding: 0;
  white-space: pre;
  text-align: left;
}
.hero-sub {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 580px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-primary {
  background: var(--accent);
  color: #000;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.85; }
.btn-secondary {
  display: flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border-2);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.btn-secondary:hover { border-color: #444; background: var(--bg-2); }

/* ── Stats bar ── */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-1);
  padding: 20px 24px;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 40px;
}
.stat-num {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
}
.stat-label {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ── Sections ── */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  margin-bottom: 8px;
}
.section-sub {
  font-size: 15px;
  color: var(--text-2);
  margin-bottom: 48px;
}
.section-sub.left { margin-bottom: 16px; }

/* ── Features ── */
.features {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature-card {
  background: var(--bg);
  padding: 28px;
  transition: background 0.15s;
}
.feature-card:hover { background: var(--bg-1); }
.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}
.feature-card code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--purple);
  background: var(--purple-dim);
  padding: 1px 5px;
  border-radius: 4px;
}

/* ── CCW ── */
.ccw-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.ccw-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 640px;
}
.ccw-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ccw-score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  width: 40px;
  flex-shrink: 0;
}
.s10 { color: var(--purple); }
.s7 { color: var(--green); }
.s5 { color: var(--yellow); }
.s1 { color: var(--text-3); }
.ccw-bar {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--purple-dim), rgba(192,132,252,0.5));
  flex-shrink: 0;
  max-width: 200px;
}
.ccw-label {
  font-size: 13px;
  color: var(--text-2);
}

/* ── Install ── */
.install-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.step {
  display: flex;
  gap: 24px;
  padding: 28px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  transition: background 0.15s;
}
.step:last-child { border-bottom: none; }
.step:hover { background: var(--bg-1); }
.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  flex-shrink: 0;
  margin-top: 2px;
}
.step-content h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}
.step-note {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 10px;
}
.step-note code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-2);
  background: var(--bg-2);
  padding: 1px 5px;
  border-radius: 4px;
}

/* ── Code blocks ── */
pre {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  overflow-x: auto;
  margin-bottom: 12px;
}
pre:last-child { margin-bottom: 0; }
pre code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.65;
  background: none;
  padding: 0;
}

/* ── Commands ── */
.commands-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.cmd-grid {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cmd-row {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}
.cmd-row:last-child { border-bottom: none; }
.cmd-row:hover { background: var(--bg-1); }
.cmd-row code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--purple);
  white-space: nowrap;
  min-width: 180px;
}
.cmd-row span {
  font-size: 13px;
  color: var(--text-2);
}
.cmd-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-3);
}

/* ── Docker ── */
.docker-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.two-col .section-title { margin-bottom: 12px; }

/* ── Footer ── */
footer {
  padding: 32px 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-logo {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}
.footer-sub {
  font-size: 13px;
  color: var(--text-3);
  flex: 1;
}
.footer-link {
  font-size: 13px;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-link:hover { color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .feature-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .stats-bar { gap: 16px; }
  .stat { padding: 0 16px; }
  .stat-divider { display: none; }
  .hero { padding: 60px 24px 40px; }
  .section-title { font-size: 22px; }
  .cmd-row code { min-width: 140px; }
}
