/* ── Home page styles ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0d1117;
  color: #c9d1d9;
  min-height: 100vh;
}

/* ── Header ────────────────────────────────────────────────────────────── */
header {
  background: #161b22;
  border-bottom: 1px solid #30363d;
  padding: 28px 40px;
}
header h1 {
  font-size: 2rem;
  color: #e6edf3;
  letter-spacing: .02em;
}
header .sub {
  margin-top: 6px;
  font-size: .95rem;
  color: #8b949e;
}

/* ── Main grid ──────────────────────────────────────────────────────────── */
main {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 24px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 24px;
}

/* ── Tool cards ─────────────────────────────────────────────────────────── */
.tool-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .12s;
  position: relative;
}
.tool-card:hover {
  border-color: #58a6ff;
  box-shadow: 0 0 0 1px #58a6ff30, 0 8px 24px #00000050;
  transform: translateY(-2px);
}

.tool-icon {
  font-size: 2.4rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.tool-body {
  flex: 1;
}
.tool-body h2 {
  font-size: 1.25rem;
  color: #e6edf3;
  margin-bottom: 8px;
}
.tool-body p {
  font-size: .875rem;
  color: #8b949e;
  line-height: 1.55;
  margin-bottom: 14px;
}
.tool-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tool-body ul li {
  font-size: .8rem;
  color: #8b949e;
  padding-left: 14px;
  position: relative;
}
.tool-body ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #3fb950;
  font-size: .75rem;
}

.tool-arrow {
  font-size: 1.3rem;
  color: #30363d;
  flex-shrink: 0;
  align-self: center;
  transition: color .15s, transform .15s;
}
.tool-card:hover .tool-arrow {
  color: #58a6ff;
  transform: translateX(3px);
}
