.main-home { max-width: 78rem; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--line);
}

.hero-versions {
  margin: 0 0 14px;
  font-family: var(--font-mc);
  font-size: 0.85rem;
  color: var(--xp);
  text-shadow: 2px 2px 0 #1b3a06;
}
html[data-theme="light"] .hero-versions { color: #2f8a2f; text-shadow: none; }

.hero h1 {
  margin: 0;
  font-size: clamp(2.3rem, 1.4rem + 3.4vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 820;
  max-width: 13ch;
}

.hero-lead { margin: 20px 0 0; font-size: 1.2rem; line-height: 1.55; color: var(--muted); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-actions .btn { min-height: 46px; padding: 0 20px; font-size: 1rem; }
.hero-hint { margin: 18px 0 0; font-size: 0.9rem; color: var(--faint); }

.hero-demo { min-width: 0; }
.hero-demo figure.code { margin: 0; box-shadow: var(--shadow-2); }
.hero-arrow { margin: 18px 0 8px; font-size: 0.92rem; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.hero-arrow::before { content: ""; width: 18px; height: 18px; border-left: 2px solid var(--faint); border-bottom: 2px solid var(--faint); border-bottom-left-radius: 8px; margin-top: -10px; }
.hero-demo .mc { margin: 0; }

.home-section { padding: 52px 0 8px; }
.home-section > h2 { margin: 0 0 8px; font-size: 1.8rem; letter-spacing: -0.02em; font-weight: 800; }
.home-section > h2 .anchor { display: none; }
.home-intro { margin: 0 0 24px; color: var(--muted); max-width: 70ch; }

.path-list { list-style: none; margin: 0; padding: 0; counter-reset: part; display: grid; gap: 0; }
.path-item {
  counter-increment: part;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
}
.path-item:last-child { border-bottom: 1px solid var(--line-soft); }
.path-num {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-family: var(--font-mc);
  font-size: 1.05rem;
  color: var(--text);
  background: var(--surface);
  border: 2px solid var(--line);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.18), inset 3px 3px 0 rgba(255, 255, 255, 0.06);
}
.path-item.complete .path-num { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.path-title { margin: 0; font-size: 1.15rem; font-weight: 760; }
.path-title a { color: var(--text); text-decoration: none; }
.path-title a:hover { color: var(--accent-ink); }
.path-blurb { margin: 2px 0 8px; color: var(--muted); font-size: 0.95rem; }
.path-progress { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; color: var(--faint); }
.path-bar { width: 160px; height: 6px; border-radius: 3px; background: var(--raised); overflow: hidden; }
.path-bar span { display: block; height: 100%; width: 0; background: var(--ok); border-radius: 3px; }
.path-go { white-space: nowrap; }

.tool-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
}
.tool-grid li { margin: 0; background: var(--bg); }
.tool-grid a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 18px; text-decoration: none; color: var(--text); }
.tool-grid a:hover { background: var(--surface); }
.tool-name { font-weight: 760; }
.tool-grid a:hover .tool-name { color: var(--accent-ink); }
.tool-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.45; }

.home-practice { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.practice-copy h2 { margin: 0 0 8px; font-size: 1.8rem; letter-spacing: -0.02em; font-weight: 800; }
.practice-copy h2 .anchor { display: none; }
.practice-copy p { color: var(--muted); max-width: 52ch; }
.practice-preview {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  min-height: 120px;
}
.pp-level { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pp-level .xp-level { font-size: 22px; }
.pp-level .xp-bar { width: 100%; height: 12px; }
.pp-next { margin: 0; font-size: 0.95rem; }
.pp-next a { font-weight: 700; }
.pp-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; font-size: 0.92rem; }
.pp-list li { display: flex; align-items: center; gap: 10px; }
.pp-dot { width: 10px; height: 10px; border: 2px solid var(--line); flex: none; }
.pp-list li.solved .pp-dot { background: var(--ok); border-color: var(--ok); }

.live-steps { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; max-width: 72ch; }

.home-foot { margin-top: 56px; padding: 22px 0 0; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.86rem; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 40px; }
  .hero h1 { max-width: 18ch; }
}

@media (max-width: 760px) {
  .home-practice { grid-template-columns: minmax(0, 1fr); }
  .path-item { grid-template-columns: 44px minmax(0, 1fr); }
  .path-go { grid-column: 2; justify-self: start; }
  .path-num { width: 36px; height: 36px; font-size: 0.9rem; }
  .path-bar { width: 110px; }
}
