:root {
  --bg: #0d1117;
  --panel: #161b22;
  --panel-2: #1c2230;
  --border: #30363d;
  --text: #e6edf3;
  --muted: #9198a1;
  --accent: #58a6ff;
  --accent-2: #3fb950;
  --warn: #d29922;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); }
p { margin: 12px 0; }
code {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.9em;
}
.muted { color: var(--muted); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.bar { display: flex; align-items: center; gap: 12px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: block; }
.logo-img { height: 28px; display: block; }
.site-header nav { margin-left: auto; font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--accent); }

/* Hero */
.hero {
  padding: 56px 0 40px;
  background: radial-gradient(ellipse at 50% 0%, rgba(88, 166, 255, 0.14), transparent 60%);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.hero-logo { height: 112px; max-width: 100%; }
h1 { font-size: 42px; line-height: 1.2; margin: 20px 0 8px; }
.tagline { font-size: 20px; color: var(--muted); margin: 0 0 20px; }
.hero .lead { font-size: 17px; max-width: 680px; margin: 0 auto; }
.cta { margin: 28px 0 8px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #0d1117; }
.btn.primary:hover { filter: brightness(1.1); }
.facts {
  list-style: none;
  padding: 0;
  margin: 36px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
  gap: 12px;
  max-width: 820px;
}
.facts li {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  font-size: 13px;
  color: var(--muted);
}
.facts span { display: block; font-size: 26px; font-weight: 700; color: var(--accent-2); }

/* Sections */
section { padding-top: 8px; }
h2 { font-size: 26px; margin: 52px 0 16px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
h3 { font-size: 18px; margin: 0 0 8px; }
h3.sub { margin: 32px 0 6px; }
h4 { font-size: 14px; margin: 0 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }

.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.tile {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
}
.tile p { margin: 0; color: var(--muted); font-size: 15px; }
.tile h3 { color: var(--accent); }

ul.checks { list-style: none; padding: 0; margin: 0; font-size: 15px; }
ul.checks li { position: relative; padding-left: 24px; margin: 6px 0; }
ul.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-2); font-weight: 700; }

.module-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 16px; margin-top: 14px; }
ul.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
ul.tags li {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 13px;
}
ul.tags small { color: var(--muted); }

ul.features { padding-left: 20px; }
ul.features li { margin: 10px 0; }
ul.features li strong { color: var(--accent-2); font-weight: 600; }

/* Workflow steps */
ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 14px; }
ol.steps li {
  counter-increment: step;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 15px;
  color: var(--muted);
}
ol.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #0d1117;
  font-weight: 700;
  margin-bottom: 8px;
}
ol.steps li strong { color: var(--text); }

/* Architecture */
.arch { display: flex; flex-direction: column; align-items: stretch; gap: 0; max-width: 720px; margin: 8px auto 0; }
.layer {
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  background: var(--panel);
  padding: 14px 18px;
}
.layer.engine { border-left-color: var(--warn); }
.layer.dt { border-left-color: var(--accent-2); }
.layer.files { border-left: 1px dashed var(--border); background: transparent; border-style: dashed; text-align: center; }
.layer-title { font-weight: 600; }
.layer-desc { font-size: 14px; color: var(--muted); }
.arrow { text-align: center; font-size: 12px; color: var(--muted); padding: 6px 0; }
.arrow::before { content: "▼ "; color: var(--border); }

/* Timeline */
ol.timeline { list-style: none; padding: 0 0 0 26px; margin: 0; border-left: 2px solid var(--border); }
ol.timeline li { position: relative; margin: 0 0 18px; }
ol.timeline li::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
}
ol.timeline li.done::before { background: var(--accent-2); border-color: var(--accent-2); }
ol.timeline li.active::before { background: var(--warn); border-color: var(--warn); box-shadow: 0 0 0 4px rgba(210, 153, 34, 0.25); }
.t-title { font-weight: 600; }
.t-desc { font-size: 14px; color: var(--muted); }
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--warn);
  border: 1px solid var(--warn);
  border-radius: 999px;
  padding: 0 8px;
  margin-left: 6px;
  vertical-align: middle;
}

.note {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-2);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--muted);
  margin-top: 16px;
}

/* FAQ */
details {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 10px 0;
}
details summary { cursor: pointer; font-weight: 600; }
details[open] summary { color: var(--accent); }
details p { color: var(--muted); font-size: 15px; margin-bottom: 0; }

/* Link cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 14px; margin-top: 16px; }
.card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease;
}
.card:hover { border-color: var(--accent); }
.card .title { font-weight: 600; color: var(--accent); }
.card .desc { font-size: 14px; color: var(--muted); margin-top: 4px; }

footer {
  border-top: 1px solid var(--border);
  margin-top: 56px;
  padding: 20px 0 40px;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 600px) {
  h1 { font-size: 32px; }
  .hero { padding-top: 36px; }
  .hero-logo { height: 80px; }
  .site-header nav { margin-left: 0; width: 100%; }
}
